How do i calculate hessian matrix for an image?
45 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
suresh G
el 20 de Mzo. de 2013
Comentada: Ismail Zouaoui
el 23 de Jul. de 2019
i need to calculate hessian matrix manually.can anyone help?
0 comentarios
Respuesta aceptada
David Legland
el 20 de Mzo. de 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.
regards
5 comentarios
Zirui WANG
el 11 de En. de 2019
Thanks a lot for the answer, but I think there is a small order issue in the last line?
I think the last line should be
[gyx, gyy] = gradient(gx)
instead of
[gxy, gyy] = gradient(gx)
?
Más respuestas (1)
Yongkai liu
el 24 de Dic. de 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.
0 comentarios
Ver también
Categorías
Más información sobre Solver Outputs and Iterative Display en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!