Align stack using a center of mass method.
Data is first registered using PyStackReg. Then, the shifts
perpendicular to the tilt axis are refined by a center of
mass analysis.
- Parameters:
- stack: TomoStack
The image series to be aligned
- nslices: int
Number of slices to return
- Returns:
shifts – The X- and Y-shifts to be applied to each image
- Return type:
ndarray