class etspy.align.TiltCOMAligner(etspy.align.TiltAligner)[source]

Tilt alignment class for center of mass method.

Perform tilt axis alignment using center of mass (CoM) tracking.

Compares path of specimen to the path expected for an ideal cylinder

Parameters:
slices

Locations at which to perform the Center of Mass analysis. If not provided, an appropriate list of slices will be automatically determined.

nslices

Nubmer of slices to use for the analysis (only used if the slices parameter is not specified). If None, a value of 10% of the x-axis size will be used, clamped to the range [3, 50].

Returns:

out – Copy of the input stack after rotation and translation to center and make the tilt axis vertical

Return type:

TomoStack

Constructors

TiltCOMAligner(stack, **kwargs)[source]

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

Methods

align_tilt_axis() TomoStack[source]

Align tilt axis with center of mass tracking.