etspy.align.calc_shifts_cl(stack: TomoStack, cl_ref_index: int | None, cl_resolution: float, cl_div_factor: int) ndarray[source]

Calculate shifts using the common line method.

Used to align stack in dimension parallel to the tilt axis

Parameters:
stack: TomoStack

The stack on which to calculate shifts

cl_ref_index: int | None

Tilt index of reference projection. If not provided the projection closest to the middle of the stack will be chosen.

cl_resolution: float

Degree of sub-pixel analysis

cl_div_factor: int

Factor used to determine number of iterations of alignment.

Returns:

yshifts – Shifts parallel to tilt axis for each projection

Return type:

ndarray