-
etspy.align.tilt_com(stack: TomoStack, slices: ndarray | None =
None
, nslices: int | None =None
) TomoStack [source] Perform tilt axis alignment using center of mass (CoM) tracking.
Compares path of specimen to the path expected for an ideal cylinder
- Parameters:¶
- stack: TomoStack¶
TomoStack containing the tilt series data
- slices: ndarray | None =
None
¶ Locations at which to perform the Center of Mass analysis. If not provided, an appropriate list of slices will be automatically determined.
- nslices: int | None =
None
¶ Nubmer of slices to use for the analysis (only used if the
slices
parameter is not specified). IfNone
, 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:¶