delta.utilities.deskew

delta.utilities.deskew(image: numpy.ndarray[Any, numpy.dtype[numpy.float32]]) float

Compute rotation angle of chambers in image for rotation correction. From: https://gist.github.com/panzerama/beebb12a1f9f61e1a7aa8233791bc253 Not extensively tested. You can skip rotation correction if your chambers are about +/- 1 degrees of horizontal

Parameters
image2D numpy array

Input image.

Returns
rotation_numberfloat

Rotation angle of the chambers for correction.