darfix.core.imageRegistration.shift_correction#
- darfix.core.imageRegistration.shift_correction(data, n_shift, shift_approach='fft', callback=None)[source]#
Function to apply shift correction technique to stack of images.
- Parameters:
data (array_like) – The stack of images to apply the shift to.
n_shift (array_like) – Array with the shift to be applied at every image. The first row has the shifts in the y-axis and the second row the shifts in the x-axis. For image
i
the shift applied will be:shift_y = n_shift[0][i] shift_x = n_shift[1][i]`
.shift_approach (Union[linear,`fft`]) – Name of the shift approach to be used. Default: fft.
callback (Union[None,Function]) – Callback function to update the progress.
- Returns:
The shifted images.
- Return type:
ndarray