How do i calculate hessian matrix for an image?

38 ビュー (過去 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.

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by