public class ShowImageTransform extends BaseImageTransform
converter, currentImage, random
Constructor and Description |
---|
ShowImageTransform(org.bytedeco.javacv.CanvasFrame canvas)
Calls
this(canvas, -1) . |
ShowImageTransform(org.bytedeco.javacv.CanvasFrame canvas,
int delay)
Constructs an instance of the ImageTransform from a
CanvasFrame . |
ShowImageTransform(String title)
Calls
this(title, -1) . |
ShowImageTransform(String title,
int delay)
Constructs an instance of the ImageTransform with a new
CanvasFrame . |
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 ShowImageTransform(org.bytedeco.javacv.CanvasFrame canvas)
this(canvas, -1)
.public ShowImageTransform(org.bytedeco.javacv.CanvasFrame canvas, int delay)
CanvasFrame
.canvas
- to display images indelay
- max time to wait in milliseconds (0 == infinity, negative == no wait)public ShowImageTransform(String title)
this(title, -1)
.public ShowImageTransform(String title, int delay)
CanvasFrame
.title
- of the new CanvasFrame to display images indelay
- max time to wait in milliseconds (0 == infinity, negative == no wait)protected ImageWritable doTransform(ImageWritable image, Random random)
doTransform
in class BaseImageTransform
public float[] query(float... coordinates)
ImageTransform
query
in interface ImageTransform
query
in class BaseImageTransform
coordinates
- to transforms (x1, y1, x2, y2, ...)Copyright © 2020. All rights reserved.