I'm trying to solve the following question about "Harris Corner Detection".
Consider the following image:
As the first step of the "Harris Corner Detection", we should compute the derivatives using the differentiation kernels shown above. No normalization (division by 2) is needed.
What I did: $$ I_{x}=\frac{\partial I(x,y)}{\partial x}=I(x+1,y)-I(x-1,y)=\begin{bmatrix}4 & 9 & 12\\ 8 & 11 & 14\\ 10 & 15 & 16 \end{bmatrix}-\begin{bmatrix}0 & 1 & 4\\ 0 & 5 & 7\\ 4 & 9 & 12 \end{bmatrix}=\begin{bmatrix}4 & 8 & 8\\ 8 & 6 & 7\\ 6 & 6 & 4 \end{bmatrix} $$ But the solution should be (source):
I'm a bit confused about spatial derivative calculation. I took the formula from here. What am I missing?
I quite don't get how to calculate: $$ M=\sum_{x,y}w(x,y)\begin{bmatrix}I_{x}^{2} & I_{x}I_{y}\\ I_{x}I_{y} & I_{y}^{2} \end{bmatrix} $$ I'm also a bit confused about terminology. Is $I_x$ actually that matrix or is it some value? function?
Is it possible to show how can I calculate $M$ using the following formula I provided above?