public class RotateImageTransform extends BaseImageTransform<org.bytedeco.opencv.opencv_core.Mat>
converter, currentImage, random| Constructor and Description |
|---|
RotateImageTransform(float angle)
Calls
this(null, 0, 0, angle, 0). |
RotateImageTransform(float centerx,
float centery,
float angle,
float scale)
Constructs an instance of the ImageTransform.
|
RotateImageTransform(Random random,
float angle)
Calls
this(random, 0, 0, angle, 0). |
RotateImageTransform(Random random,
float centerx,
float centery,
float angle,
float scale)
Constructs an instance of the ImageTransform.
|
| Modifier and Type | Method and Description |
|---|---|
protected ImageWritable |
doTransform(ImageWritable image,
Random random) |
float[] |
query(float... coordinates)
Transforms the given coordinates using the parameters that were used to transform the last image.
|
getCurrentImage, transform, transformpublic RotateImageTransform(float angle)
this(null, 0, 0, angle, 0).public RotateImageTransform(Random random, float angle)
this(random, 0, 0, angle, 0).public RotateImageTransform(float centerx,
float centery,
float angle,
float scale)
centerx - maximum deviation in x of center of rotation (relative to image center)centery - maximum deviation in y of center of rotation (relative to image center)angle - maximum rotation (degrees)scale - maximum scaling (relative to 1)public RotateImageTransform(Random random, float centerx, float centery, float angle, float scale)
random - object to use (or null for deterministic)centerx - maximum deviation in x of center of rotation (relative to image center)centery - maximum deviation in y of center of rotation (relative to image center)angle - maximum rotation (degrees)scale - maximum scaling (relative to 1)protected ImageWritable doTransform(ImageWritable image, Random random)
doTransform in class BaseImageTransform<org.bytedeco.opencv.opencv_core.Mat>public float[] query(float... coordinates)
ImageTransformquery in interface ImageTransformquery in class BaseImageTransform<org.bytedeco.opencv.opencv_core.Mat>coordinates - to transforms (x1, y1, x2, y2, ...)Copyright © 2022. All rights reserved.