T - The type of image into which to draw the axespublic class AxisRenderer<T> extends AbstractRenderer<T>
colour, image| Constructor and Description |
|---|
AxisRenderer(Image<T,?> image,
T colour)
Default constructor that takes an image to draw into and a colour
in which to draw the axes.
|
AxisRenderer(int width,
int height,
T colour)
Constructor that creates an image of the given size and a colour
in which to draw the axes.
|
| Modifier and Type | Method and Description |
|---|---|
void |
process(ConnectedComponent cc)
Draws the principle axes of the connected component into the image.
|
getColour, getImage, setColourpublic AxisRenderer(Image<T,?> image, T colour)
image - The image to draw intocolour - The colour to draw the axespublic AxisRenderer(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 axespublic void process(ConnectedComponent cc)
ConnectedComponent.cc - The ConnectedComponent to process.ConnectedComponentProcessor.process(org.openimaj.image.pixel.ConnectedComponent)