ncempy.eval.stack_align module¶
- ncempy.eval.stack_align.stack_align(stack, align_type='static', **kwargs)[source]¶
Align a series of images by correlation using multicorr. All images are aligned to the start image or as dynamically starting with the start image and then each successive image. keyword arguments are passed to multicorr. Shifting is done in Fourier space which is very accurate, but wraps edges.
- Parameters:
stack (ndarray, 3D,) – Stack of images to align. Shape [num, Y, X]
align_type (str) – static or dynamic alignment. Static aligns all images to the first image. Dynamic aligns each image to the previous image starting with the first image
- Returns:
A tuple containing the aligned images as a 3D ndarray of shape [num, Y, X] and shifts as a 2D ndarray of shape [num, 2]
- Return type:
tuple, aligned stack, shifts