T
- The type of image the rendered can write topublic class BlobExtractorRenderer<T> extends AbstractRenderer<T>
colour, image
Constructor and Description |
---|
BlobExtractorRenderer(Image<T,?> image,
Image<T,?> copyImage)
Default constructor that takes the image to draw into and the image to
copy from.
|
BlobExtractorRenderer(int width,
int height,
Image<T,?> img)
Default constructor that takes the image to draw into and the image to
copy from.
|
Modifier and Type | Method and Description |
---|---|
void |
process(ConnectedComponent cc)
Copies pixels that are within the connected component from the copyImage
into the write image.
|
getColour, getImage, setColour
public BlobExtractorRenderer(Image<T,?> image, Image<T,?> copyImage)
image
- The image to draw intocopyImage
- The image to copy pixels frompublic BlobExtractorRenderer(int width, int height, Image<T,?> img)
width
- The width of the image to createheight
- The height of the image to createimg
- The image to copy pixels frompublic void process(ConnectedComponent cc)
ConnectedComponent
.cc
- The ConnectedComponent
to process.ConnectedComponentProcessor.process(org.openimaj.image.pixel.ConnectedComponent)