class etspy.align.CoMAligner(etspy.align.StackAligner)[source]

Center of mass (COM) tracking alignment strategy.

A Python implementation of algorithms described in: T. Sanders. Physically motivated global alignment method for electron tomography, Advanced Structural and Chemical Imaging vol. 1 (2015) pp 1-11. https://doi.org/10.1186/s40679-015-0005-7

start

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

Enable/disable progress bar

Returns:

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

Return type:

ndarray

Constructors

CoMAligner(stack: TomoStack, start: int | None = 0, ...)[source]

Initialize self. See help(type(self)) for accurate signature.

Methods

calculate_shifts() ndarray[source]

Calculate shifts using center of mass tracking method.

align(shift_method: 'interp' | 'fourier' = 'fourier') TomoStack[source]

Perform stack alignment.