How do i calculate hessian matrix for an image?

122 views (last 30 days)
i need to calculate hessian matrix manually.can anyone help?

Accepted Answer

David Legland
David Legland on 20 Mar 2013
Hi, you need to compute second derivatives in each direction, using something like:
[gx, gy] = gradient(double(img));
[gxx, gxy] = gradient(gx);
[gxy, gyy] = gradient(gy);
The coefficients of the hessian matrix for each pixel are given by gxx, gxy and gyy.

Sign in to comment.

More Answers (1)

Yongkai liu
Yongkai liu on 24 Dec 2018
Thanks! It seems that in practice, we use the second derivative of gassian filter convoluted on image to get the hessian matrix feature of image.


Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!