T - The type of image to draw intopublic class BorderRenderer<T> extends AbstractRenderer<T>
colour, image| Constructor and Description |
|---|
BorderRenderer(Image<T,?> image,
T colour,
ConnectedComponent.ConnectMode mode)
Default constructor that takes the image to draw into, the colour
to draw the boundary and the connect mode to use to extract the
boundary.
|
BorderRenderer(int width,
int height,
T colour,
ConnectedComponent.ConnectMode mode)
Constructor that creates the image to draw into, and takes the colour
to draw the boundary and the connect mode to use to extract the
boundary.
|
| Modifier and Type | Method and Description |
|---|---|
void |
process(ConnectedComponent cc)
Draws the boundary of the connected component into the image.
|
getColour, getImage, setColourpublic BorderRenderer(Image<T,?> image, T colour, ConnectedComponent.ConnectMode mode)
image - The image to draw into.colour - The colour to use to draw the boundarymode - The ConnectedComponent.ConnectMode to use to extract the boundary.public BorderRenderer(int width, int height, T colour, ConnectedComponent.ConnectMode mode)
width - The width of the image to createheight - The height of the image to createcolour - The colour to use to draw the boundarymode - The ConnectedComponent.ConnectMode to use to extract the boundary.public void process(ConnectedComponent cc)
ConnectedComponent.cc - The ConnectedComponent to process.ConnectedComponentProcessor.process(org.openimaj.image.pixel.ConnectedComponent)