T - The type of image into which to drawpublic class OrientatedBoundingBoxRenderer<T> extends AbstractRenderer<T>
colour, image| Constructor and Description |
|---|
OrientatedBoundingBoxRenderer(Image<T,?> image,
T colour)
Default constructor that takes the image to draw into and the colour in
which to draw the bounding box.
|
OrientatedBoundingBoxRenderer(int width,
int height,
T colour)
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, setColourpublic OrientatedBoundingBoxRenderer(Image<T,?> image, T colour)
image - The image into which to drawcolour - The colour in which to draw the box.public OrientatedBoundingBoxRenderer(int width, int height, T colour)
width - The width of the image to createheight - The height of the image to createcolour - The colour in which to draw the box.public void process(ConnectedComponent cc)
ConnectedComponent.cc - The ConnectedComponent to process.ConnectedComponentProcessor.process(org.openimaj.image.pixel.ConnectedComponent)