Mathematics, Fourier Transform, Image Processing, Numpy.
700)) corr = phase_correlation(output_1, output_2) shape = corr.shape # Locate maximum maxima = np.unravel_index(np.argmax(corr), shape) midpoints = np.array([np.fix(axis_size / 2) for axis_size in shape]) shifts = np.stack(maxima).astype(np.float64) shifts[shifts > midpoints] -=