-
-
Notifications
You must be signed in to change notification settings - Fork 55.8k
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
Add missing sqrt to magSpectrum(). #20102
Conversation
For phase correlation, the | | in DFT' (F G* / |F G*|) means absolute value and not magnitude, right? Is |
In my code I replaced: |
In the book Image Processing, Analysis, and Machine Vision, the magnitude function | F(u,v) | is defined as sqrt(R(u,v)^2 + I(u,v)^2). So it seems that the magnitude function on a spectrum is indeed the right operation and is denoted with single bars rather than double? |
👍 |
Thank you. |
resolves #20100
Pull Request Readiness Checklist
See details at https://github.com/opencv/opencv/wiki/How_to_contribute#making-a-good-pull-request
Patch to opencv_extra has the same branch name.
Add some std::sqrt() to magSpectrum().
#20100