While I was searching for Hessian matrix, I read about partial derivative of an image. I am confused and I could not imagine any meaning of a derivative of an image.
How can I calculate the partial derivatives of an image?
While I was searching for Hessian matrix, I read about partial derivative of an image. I am confused and I could not imagine any meaning of a derivative of an image.
How can I calculate the partial derivatives of an image?
First, your grayscale image should be represented as a matrix, with entries corresponding to brightness.
Then use numerical gradient twice, like this:
Incidentally,
Ixy
will be the same asIyx
; the mixed partial derivatives are equal (this holds for derivatives in calculus, too).Matlab documentation explains the meaning of the numerical gradient: