etspy.align.apply_shifts(stack: TomoStack, shifts: TomoShifts | ndarray) TomoStack[source]

Apply a series of shifts to a TomoStack.

Parameters:
stack: TomoStack

The image series to be aligned

shifts: TomoShifts | ndarray

The X- (tilt parallel) and Y-shifts (tilt perpendicular) to be applied to each image. Should be of size (*stack.axes_manager.navigation_shape[::-1], 2), with Y-shifts in the shifts[:, 0] position and X-shifts in shifts[:, 1] position (if shifts is a ndarray).

Returns:

shifted – Copy of input stack after shifts are applied

Return type:

TomoStack