shift_correction
- shift_correction(images)[source]
Shift correction of all images in a stack. This function is more precise than
biggest_common_sector()
but more time consuming. The memory footprint is the same.This function computes the relative translation between the images with the first image in the stack as the reference image. The images are translated into the coordinate system of the 0th image form the stack.
Warping of the images which could be a result of strain is not accounted for. If the warp cant be neglected do not use this function!
- Parameters
- images: list, ImageStack
Images represented as np.ndarray. All images must have the same dimensionality! If the width and height of the images is not the same, they are cut to the shape of the smallest image.
- Returns
- out: list, ImageStack
list or ImageStack with the corrected images.