public class RotateImageTransform extends BaseImageTransform<org.bytedeco.opencv.opencv_core.Mat>
opencv_imgproc.warpAffine(Mat, Mat, Mat, Size, int, int, Scalar)
with given properties (interMode, borderMode, and borderValue).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, transform
public 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)
ImageTransform
query
in interface ImageTransform
query
in class BaseImageTransform<org.bytedeco.opencv.opencv_core.Mat>
coordinates
- to transforms (x1, y1, x2, y2, ...)Copyright © 2020. All rights reserved.