abstract etspy.align.StackAligner.calculate_shifts() ndarray[source]

Calculate the alignment shifts using the selected strategy.

Returns:

shifts – An array of shape (n_images, 2) containing the calculated shifts. The first column shifts[:, 0] should contain Y-shifts (perpendicular to the tilt axis) and the second column shifts[:, 1] should contain X-shifts (parallel to the tilt axis).

Return type:

ndarray