sthoduka / imreg_fmt

Image registration based on the Fourier-Mellin transform
https://sthoduka.github.io/imreg_fmt/
GNU General Public License v3.0
98 stars 22 forks source link

how to get peak of IFFT of phase diff #4

Closed Sunyouteng closed 4 years ago

Sunyouteng commented 4 years ago

In paper the peak should greater than 0.03. So i want to know how to get it, it should be an interface.

sthoduka commented 4 years ago

Hi, the peak is calculated here: https://github.com/sthoduka/imreg_fmt/blob/master/src/image_dft.cpp#L144 The variables row and col passed to the function will contain the location of the peak when the function returns.

An example of the function being called is here: https://github.com/sthoduka/imreg_fmt/blob/master/src/image_registration.cpp#L43