Mathematics, Fourier Transform, Image Processing, Numpy.
y1+dist_y:y2+dist_y, -1]) The phase correlation algorithm outputs the correct shift. corr = phase_correlation(before_shift, after_shift) np.unravel_index(np.argmax(corr, axis=None), corr.shape) The shift-correlation can be visualized as follows. The coordinates of the highest peak are exactly equal