-
-
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
Default "phase" normalization of phase_cross_correlation gives invalid error estimate #6376
Comments
Hey @mwshinn, |
I can submit a PR to fix it, but it's not clear to me which solution would be preferred. This is not so much a software bug as a conceptual bug: when using a phase-normalised matrix, the metric chosen as the error measure here almost always returns 1. There are a few potential solutions I can think of, listed below in order of preference:
|
Hi - I just hit that bug which is present since 0.19.0, as I was relying on the returned error to select the best configuration. I would support solution 1 above ( |
Hey, there hasn't been any activity on this issue for more than 180 days. For now, we have marked it as "dormant" until there is some new activity. You are welcome to reach out to people by mentioning them here or on our forum if you need more feedback! If you think that this issue is no longer relevant, you may close it by yourself; otherwise, we may do it at some point (either way, it will be done manually). In any case, thank you for your contributions so far! |
Description
The new "phase" normalization for the phase_cross_correlation always gives an error measurement of 1. This applies across a wide range of inputs/datatypes. This is a regression as of 0.19.2.
Looking at the code, this normalization appears to convert the "image_product" matrix into a matrix of ones, making the cross-correlation matrix a delta spike at the origin. The error is the maximum of this matrix, which is always 1. I have not been able to find in the documentation or comments any information on what this new normalization method is supposed to do, so I can't submit a PR (or even know if this is the intended behavior).
Way to reproduce
A workaround to make scripts compatible with 0.19.2 as well as previous versions is:
Version information
The text was updated successfully, but these errors were encountered: