nabu.processing.rotation
source module nabu.processing.rotation
Classes
-
Rotation — Initiate a Rotation object.
source class Rotation(shape, angle, center=None, mode='edge', reshape=False, **sk_kwargs)
Initiate a Rotation object.
Parameters
-
shape : tuple of int — Shape of the images to process
-
angle : float — Rotation angle in DEGREES
-
center : tuple of float, optional — Coordinates of the center of rotation, in the format (X, Y) (mind the non-python convention !). Default is ((Nx - 1)/2.0, (Ny - 1)/2.0)
-
mode : str, optional — Padding mode. Default is "edge".
-
reshape : bool, optional
Other Parameters
All the other parameters are passed directly to scikit image 'rotate' function: order, cval, clip, preserve_range.
Methods
source method Rotation.rotate(img, output=None)
Raises
-
ValueError