etspy.align.calculate_shifts_stackreg(stack: TomoStack, start: int | None, show_progressbar: bool) ndarray[source]

Calculate shifts using PyStackReg.

Parameters:
stack: TomoStack

The image series to be aligned

start: int | None

Position in tilt series to use as starting point for the alignment. If None, the slice closest to the midpoint will be used.

show_progressbar: bool

Enable/disable progress bar

Returns:

shifts – The X- and Y-shifts to be applied to each image

Return type:

ndarray