darfix.core.imageRegistration.find_shift#

darfix.core.imageRegistration.find_shift(img1, img2, upsample_factor=1000)[source]#

Uses the function register_translation from skimage to find the shift between two images.

Parameters:
  • img1 (array_like) – first image.

  • img2 (array_like) – second image, must be same dimensionsionality as img1.

  • upsample_factor (int) – optional.

Return type:

ndarray