public class ScaleImageTransform extends BaseImageTransform<org.bytedeco.opencv.opencv_core.Mat>
converter, currentImage, random| Constructor and Description |
|---|
ScaleImageTransform(float delta)
Calls
this(null, delta, delta). |
ScaleImageTransform(float dx,
float dy)
Calls
this(null, dx, dy). |
ScaleImageTransform(Random random,
float delta)
Calls
this(random, delta, delta). |
ScaleImageTransform(Random random,
float dx,
float dy)
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 ScaleImageTransform(float delta)
this(null, delta, delta).public ScaleImageTransform(Random random, float delta)
this(random, delta, delta).public ScaleImageTransform(float dx,
float dy)
this(null, dx, dy).public ScaleImageTransform(Random random, float dx, float dy)
random - object to use (or null for deterministic)dx - maximum scaling in width of the image (pixels)dy - maximum scaling in height of the image (pixels)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.