Commit e9022e41 authored by Nicola Vigano's avatar Nicola Vigano
Browse files

Alignment: perform correlation between neighboring images



Signed-off-by: Nicola Vigano's avatarNicola VIGANÒ <nicola.vigano@esrf.fr>
parent d4a8ea03
......@@ -497,7 +497,10 @@ class DetectorTranslationAlongBeam(AlignmentBase):
cc_hs = np.fft.fftfreq(img_shape[-1], 1 / img_shape[-1])
# do correlations
ccs = [self._compute_correlation_fft(img_stack[0, ...], img_stack[ii, ...], padding_mode) for ii in range(1, num_imgs)]
ccs = [
self._compute_correlation_fft(img_stack[ii - 1, ...], img_stack[ii, ...], padding_mode)
for ii in range(1, num_imgs)
]
shifts_vh = np.empty((num_imgs - 1, 2))
for ii, cc in enumerate(ccs):
......
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