public class BoxImageTransform extends BaseImageTransform<org.bytedeco.opencv.opencv_core.Mat>
converter, currentImage, random| Constructor and Description |
|---|
BoxImageTransform(int width,
int height)
Calls
this(null, width, height). |
BoxImageTransform(Random random,
int width,
int height)
Constructs an instance of the ImageTransform.
|
| Modifier and Type | Method and Description |
|---|---|
protected ImageWritable |
doTransform(ImageWritable image,
Random random)
Takes an image and returns a boxed version of the image.
|
float[] |
query(float... coordinates)
Transforms the given coordinates using the parameters that were used to transform the last image.
|
getCurrentImage, transform, transformpublic BoxImageTransform(int width,
int height)
this(null, width, height).public BoxImageTransform(Random random, int width, int height)
random - object to use (or null for deterministic)width - of the boxed image (pixels)height - of the boxed image (pixels)protected ImageWritable doTransform(ImageWritable image, Random random)
doTransform in class BaseImageTransform<org.bytedeco.opencv.opencv_core.Mat>image - to transform, null == end of streamrandom - object to use (or null for deterministic)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.