T - The type of pixelpublic class BlobRenderer<T> extends AbstractRenderer<T>
colour, image| Constructor and Description |
|---|
BlobRenderer(Image<T,?> image,
T colour)
Default constructor that takes the image to draw into and
the colour in which to draw the blobs.
|
BlobRenderer(int width,
int height,
T colour)
Default constructor creates the image to draw into and takes
the colour in which to draw the blobs.
|
| Modifier and Type | Method and Description |
|---|---|
void |
process(ConnectedComponent cc)
Draws connected component into an image as a coloured blob.
|
getColour, getImage, setColourpublic BlobRenderer(Image<T,?> image, T colour)
image - The image to draw intocolour - The colour to draw the blobs.public BlobRenderer(int width, int height, T colour)
width - the width of the imageheight - the height of the imagecolour - The colour to draw the blobs.public void process(ConnectedComponent cc)
ConnectedComponent.cc - The ConnectedComponent to process.ConnectedComponentProcessor.process(org.openimaj.image.pixel.ConnectedComponent)