i was struggling with phase correlation for a while when i tried to get translation shift for some test images i am working with where they gave me irrational results (1214 , -936) instead of (0,0) ...
For the case where f=0.26, plot the magnitude after the fftshift for three different length signals side by side (N=32, N=128, and N=512), increasing the length of the FFT accordingly. Then plot the ...