skued.align

skued.align(image, reference, mask=None, fill_value=0.0)

Align a diffraction image to a reference. Subpixel resolution available.

Parameters:
  • image (~numpy.ndarray, shape (M,N)) – Image to be aligned.

  • reference (~numpy.ndarray, shape (M,N)) – image will be align onto the reference image.

  • mask (~numpy.ndarray or None, optional) – Mask that evaluates to True on valid pixels of the array image.

  • fill_value (float, optional) – Edges will be filled with fill_value after alignment.

Returns:

aligned – Aligned image.

Return type:

~numpy.ndarray, shape (M,N)

See also

ialign

generator of aligned images