Package org.datavec.image.transform
Class ShowImageTransform
- java.lang.Object
-
- org.datavec.image.transform.BaseImageTransform
-
- org.datavec.image.transform.ShowImageTransform
-
- All Implemented Interfaces:
Operation,ImageTransform
public class ShowImageTransform extends BaseImageTransform
-
-
Field Summary
-
Fields inherited from class org.datavec.image.transform.BaseImageTransform
converter, currentImage, random
-
-
Constructor Summary
Constructors Constructor Description ShowImageTransform(String title)Callsthis(title, -1).ShowImageTransform(String title, int delay)Constructs an instance of the ImageTransform with a newCanvasFrame.ShowImageTransform(org.bytedeco.javacv.CanvasFrame canvas)Callsthis(canvas, -1).ShowImageTransform(org.bytedeco.javacv.CanvasFrame canvas, int delay)Constructs an instance of the ImageTransform from aCanvasFrame.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected ImageWritabledoTransform(ImageWritable image, Random random)float[]query(float... coordinates)Transforms the given coordinates using the parameters that were used to transform the last image.-
Methods inherited from class org.datavec.image.transform.BaseImageTransform
getCurrentImage, transform, transform
-
-
-
-
Constructor Detail
-
ShowImageTransform
public ShowImageTransform(org.bytedeco.javacv.CanvasFrame canvas)
Callsthis(canvas, -1).
-
ShowImageTransform
public ShowImageTransform(org.bytedeco.javacv.CanvasFrame canvas, int delay)Constructs an instance of the ImageTransform from aCanvasFrame.- Parameters:
canvas- to display images indelay- max time to wait in milliseconds (0 == infinity, negative == no wait)
-
ShowImageTransform
public ShowImageTransform(String title)
Callsthis(title, -1).
-
ShowImageTransform
public ShowImageTransform(String title, int delay)
Constructs an instance of the ImageTransform with a newCanvasFrame.- Parameters:
title- of the new CanvasFrame to display images indelay- max time to wait in milliseconds (0 == infinity, negative == no wait)
-
-
Method Detail
-
doTransform
protected ImageWritable doTransform(ImageWritable image, Random random)
- Specified by:
doTransformin classBaseImageTransform
-
query
public float[] query(float... coordinates)
Description copied from interface:ImageTransformTransforms the given coordinates using the parameters that were used to transform the last image.- Specified by:
queryin interfaceImageTransform- Overrides:
queryin classBaseImageTransform- Parameters:
coordinates- to transforms (x1, y1, x2, y2, ...)- Returns:
- transformed coordinates
-
-