public class Rectangle extends AbstractImageProcessor
imageKeyDEFAULT_IMAGE_KEY| Constructor and Description |
|---|
Rectangle() |
| Modifier and Type | Method and Description |
|---|---|
int |
getHeight() |
String |
getOutput() |
int |
getWidth() |
int |
getX() |
int |
getY() |
stream.Data |
process(stream.Data item,
ImageRGB img) |
void |
setHeight(int height) |
void |
setOutput(String output) |
void |
setWidth(int width) |
void |
setX(int x) |
void |
setY(int y) |
getImage, process, setImagepublic String getOutput()
@Parameter(description="Key/name of the attribute into which the output cropped image is placed, default is \'frame:cropped\'.") public void setOutput(String output)
output - the output to setpublic int getX()
@Parameter(description="x coordinate of the lower-left corder of the rectangle for cropping, defaults to 0.") public void setX(int x)
x - the x to setpublic int getY()
@Parameter(description="y coordinate of the lower-left corder of the rectangle for cropping, defaults to 0.") public void setY(int y)
y - the y to setpublic int getWidth()
@Parameter(description="Width of the rectangle to crop, default is 10.") public void setWidth(int width)
width - the width to setpublic int getHeight()
@Parameter(description="Height of the rectangle to crop, default is 10.") public void setHeight(int height)
height - the height to setpublic stream.Data process(stream.Data item,
ImageRGB img)
process in interface ImageProcessorprocess in class AbstractImageProcessorAbstractImageProcessor.process(stream.Data,
stream.image.ImageRGB)Copyright © 2015. All rights reserved.