class
Rotate
extends
_WarpTransformRotate(limit: float | tuple[float, float] = 90, interpolation: int | str | Interpolation = 1, border_mode: int = 4, value: float = 0.0, p: float = 0.5)Rotate by a random angle in [-limit, limit] (Albumentations Rotate).
Parameters
limitfloat or (float, float)= 90Rotation-angle range in degrees.
No description.
border_modeint= 4OpenCV border code (0 constant, 1 replicate, 2/4 reflect).
valuefloat= 0.0Constant fill (only used with
border_mode=0).pfloat= 0.5No description.
Used by 1
Constructors
1Instance methods
1Sample per-call random parameters for Rotate.
Parameters
imgTensorImage tensor; its spatial size is read to anchor the
rotation about the image centre and to set
out_hw.Returns
WarpParamsCarries the (3, 3) forward pixel-coordinate rotation
matrix and out_hw equal to the input
(H, W). Angle is sampled uniformly from limit.