T
- The type of image into which to drawpublic class BoundingBoxRenderer<T> extends AbstractRenderer<T>
Modifier and Type | Field and Description |
---|---|
protected boolean |
fill |
colour, image
Constructor and Description |
---|
BoundingBoxRenderer(Image<T,?> image,
T colour,
boolean fill)
Default constructor that takes the image to draw into and the colour
in which to draw the bounding box.
|
BoundingBoxRenderer(int width,
int height,
T colour,
boolean fill)
Constructor that creates an image to draw into and takes the colour
in which to draw the bounding box.
|
Modifier and Type | Method and Description |
---|---|
void |
process(ConnectedComponent cc)
Perform an operation on the given
ConnectedComponent . |
getColour, getImage, setColour
protected boolean fill
public BoundingBoxRenderer(Image<T,?> image, T colour, boolean fill)
image
- The image into which to drawcolour
- The colour in which to draw the box.fill
- Fill the box.public BoundingBoxRenderer(int width, int height, T colour, boolean fill)
width
- The width of the image to createheight
- The height of the image to createcolour
- The colour in which to draw the box.fill
- Fill the box.public void process(ConnectedComponent cc)
ConnectedComponent
.cc
- The ConnectedComponent
to process.ConnectedComponentProcessor.process(org.openimaj.image.pixel.ConnectedComponent)