class
ShiftScaleRotate
extends
_WarpTransformShiftScaleRotate(shift_limit: float | tuple[float, float] = 0.0625, scale_limit: float | tuple[float, float] = 0.1, rotate_limit: float | tuple[float, float] = 45, interpolation: int | str | Interpolation = 1, border_mode: int = 4, value: float = 0.0, p: float = 0.5)Random shift + scale + rotation (Albumentations ShiftScaleRotate).
Parameters
shift_limitfloat or (float, float)= 0.0625Fraction-of-size translation range (applied to both axes).
scale_limitfloat or (float, float)= 0.1Scale-delta range (effective scale is
1 + s).rotate_limitfloat or (float, float)= 45Rotation-angle range in degrees.
As in
Rotate.As in
Rotate.As in
Rotate.As in
Rotate.Used by 1
Constructors
1Instance methods
1Sample per-call random parameters for ShiftScaleRotate.
Parameters
imgTensorImage tensor; its spatial size is read to anchor the warp
and to convert
shift_limit from a fraction-of-size into
pixel translations.Returns
WarpParamsCarries the composed (3, 3) matrix (rotate about the
image centre, then scale and translate) and out_hw
equal to the input (H, W).
Notes
The sampled rotation angle is negated when fed to
affine_matrix to align the math-convention CCW
rotation with the cv2 / image-convention CW rotation used by
Rotate.