-
-
Notifications
You must be signed in to change notification settings - Fork 2.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Expanded on Hessian eigenvalue test #1442
base: main
Are you sure you want to change the base?
Conversation
Thanks also here for investigating. However, I don't think there is a problem with the eigenvalue computation:
Note, that The problem of the It would be highly appreciated, if that kernel function would be fixed. As a start, these references should be helpful: http://campar.in.tum.de/Chair/HaukeHeibelGaussianDerivatives, http://campar.in.tum.de/twiki/pub/Chair/HaukeHeibelGaussianDerivatives/gaussian2d.m |
This is a high priority; if you can make any progress on this I would be
much obliged.
|
Sure, I can look into it. By any chance is there any sample data or some such where the Hessian is known, so that I can see where the error is for small sigma? |
Sorry, I think I'm missing something--what is the error for small sigma? I notice that the kernel is extremely close to the identity, e.g.
but if I'm not mistaken this is correct since sigma is small (0.1) and, e.g., |
@ahojnnes What are your thoughts around this PR? |
I am relatively certain that the Hessian matrix implementation is right now. Something is bogus with the hessian_matrix_det function though. E.g. the updated value in ll128-129 is not used at all... |
They seem to behave differently in terms of the return scale of values, e.g.:
|
This is a start on addressing #1393. Unfortunately I'm not familiar with computing the Hessian via convolution for an image, so I can't think of a good way to test the
hessian_matrix
function in more detail. I did try testing thehessian_matrix_det
function by matching against the determinant of the matrix returned byhessian_matrix
, but the values weren't even close, and varied considerably based onsigma
. For example,I'm probably missing something here, so if anyone could clear that up I'd be happy to write tests for
hessian_matrix_det
andhessian_matrix
.