Commit 8db1e720 authored by Nicola Vigano's avatar Nicola Vigano
Browse files

Alignment: fixed linear correlation bug



Signed-off-by: Nicola Vigano's avatarNicola VIGANÒ <nicola.vigano@esrf.fr>
parent 51dae7c2
......@@ -251,7 +251,9 @@ class AlignmentBase(object):
cc = np.real(np.fft.ifft2(img_fft_1 * img_fft_2))
if not do_circular_conv:
cc = np.fft.fftshift(cc, axes=(-2, -1))
cc = cc[padding[0] : -padding[0], padding[1] : -padding[1]]
cc = np.fft.ifftshift(cc, axes=(-2, -1))
return cc
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment