-
etspy.align.apply_shifts_cuda(stack: TomoStack, shifts: TomoShifts | ndarray, method: 'interp' | 'fourier' =
'fourier'
) TomoStack [source] Apply a series of shifts to a TomoStack using CUDA acceleration.
- 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
).- method: 'interp' | 'fourier' =
'fourier'
¶ Image shifts can be applied using either interpolation via scipy.ndimage.shift or via Fourier shift as implemented in scipy.ndimage.fourier_shift. Must be either ‘interp’ or ‘fourier’.
- Returns:¶
shifted – Copy of input stack after shifts are applied
- Return type:¶