dexp.processing.deskew.classic_deskew

dexp.processing.deskew.classic_deskew(image: numpy.ndarray, depth_axis: int, lateral_axis: int, dx: float, dz: float, angle: float, camera_orientation: int = 0, flip_depth_axis: bool = False, epsilon: float = 0.01, order: int = 1, padding: bool = True, copy: bool = True, internal_dtype=None)[source]

Classic Deskewing.

Parameters
imageinput image (skewed 3D stack)
depth_axisDepth axis.
lateral_axisLateral axis.
dzfloat, scanning step (stage or galvo scanning step, not the same as the distance between the slices)
dxfloat, pixel size of the camera
anglefloat, incident angle of the light sheet, angle between the light sheet and the optical axis in degrees
camera_orientationCamera orientation correction expressed as a number of 90 deg rotations to be performed

per 2D image in stack – if required.

flip_depth_axisFlips depth axis to deskew in the opposite orientation (True for view 0 and False for view 1)
epsilonrelative tolerance to non-integral shifts: if the shift is not _exactly_ integer, to which extent

do we actually tolerate that when switching between the ‘roll’ method and full interpolation approach.

orderinterpolation order (when necessary only!)
paddingApply padding, or not.
copySet to True to force copy of images.
internal_dtypeinternal dtype to perform computation
Returns
Deskewed image