T - The image type into which this renderer can drawpublic class CentroidRenderer<T> extends AbstractRenderer<T>
colour, image| Constructor and Description |
|---|
CentroidRenderer(Image<T,?> image,
T colour)
Default constructor that takes the image to draw into
and the colour to draw the centroid.
|
CentroidRenderer(int width,
int height,
T colour)
Constructor that creates the image to draw into
and takes the colour to draw the centroid.
|
| Modifier and Type | Method and Description |
|---|---|
void |
process(ConnectedComponent cc)
Draws the component's centroid into the image as a small 5 pixel square
centred on the centroid.
|
getColour, getImage, setColourpublic CentroidRenderer(Image<T,?> image, T colour)
image - the image to draw intocolour - The colour to draw the centroid.public CentroidRenderer(int width, int height, T colour)
width - the width of the image to createheight - the height of the image to createcolour - The colour to draw the centroid.public void process(ConnectedComponent cc)
ConnectedComponent.cc - The ConnectedComponent to process.ConnectedComponentProcessor.process(org.openimaj.image.pixel.ConnectedComponent)