- 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 theshifts[:, 0]
position and X-shifts inshifts[:, 1]
position (ifshifts
is andarray
).
- Returns:¶
shifted – Copy of input stack after shifts are applied
- Return type:¶