darfix.core.imageRegistration.apply_shift#

darfix.core.imageRegistration.apply_shift(img, shift, shift_approach='fft')[source]#

Function to apply the shift to an image.

Parameters:
  • img (2-dimensional array_like) – Input array, can be complex.

  • shift (2-dimensional array_like) – The shift to be applied to the image. shift[0] refers to the y-axis, shift[1] refers to the x-axis.

  • shift_approach (Union[linear, fft]) – The shift method to be used to apply the shift.

Returns:

real ndarray