How do i calculate hessian matrix for an image?

조회 수: 45 (최근 30일)
suresh G
suresh G 2013년 3월 20일
댓글: Ismail Zouaoui 2019년 7월 23일
i need to calculate hessian matrix manually.can anyone help?

채택된 답변

David Legland
David Legland 2013년 3월 20일
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
Zirui WANG
Zirui WANG 2019년 1월 11일
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)
?
Ismail Zouaoui
Ismail Zouaoui 2019년 7월 23일
I guess that Gyx = Gxy

댓글을 달려면 로그인하십시오.

추가 답변 (1개)

Yongkai liu
Yongkai liu 2018년 12월 24일
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.

카테고리

Help CenterFile Exchange에서 Solver Outputs and Iterative Display에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by