public class ConfigurableRendererRGB extends Object implements ConnectedComponentProcessor
MBFImage
s.Modifier and Type | Field and Description |
---|---|
protected MBFImage |
image
The image to draw into
|
protected EnumSet<ConfigurableRenderOptions> |
options
The options to draw with
|
Modifier | Constructor and Description |
---|---|
protected |
ConfigurableRendererRGB(EnumSet<ConfigurableRenderOptions> options)
Protected constructor that takes a set of options to draw.
|
|
ConfigurableRendererRGB(int rows,
int cols,
EnumSet<ConfigurableRenderOptions> options)
Constructor that creates an image to draw into and takes a set of options
to draw.
|
|
ConfigurableRendererRGB(MBFImage image,
EnumSet<ConfigurableRenderOptions> options)
Constructor that takes an image to draw into and a set of options to draw.
|
Modifier and Type | Method and Description |
---|---|
Float[] |
getColour(ConfigurableRenderOptions r)
Get the colour that a specific option will be drawn in.
|
MBFImage |
getImage()
Get the rendered image.
|
void |
process(ConnectedComponent cc)
Perform an operation on the given
ConnectedComponent . |
void |
setColour(ConfigurableRenderOptions r,
Float[] colour)
Set the colour of a specific option to override the default.
|
protected EnumSet<ConfigurableRenderOptions> options
protected ConfigurableRendererRGB(EnumSet<ConfigurableRenderOptions> options)
options
- The options to drawpublic ConfigurableRendererRGB(MBFImage image, EnumSet<ConfigurableRenderOptions> options)
image
- The image to draw intooptions
- The options to drawpublic ConfigurableRendererRGB(int rows, int cols, EnumSet<ConfigurableRenderOptions> options)
rows
- The height of the image to createcols
- The width of the image to createoptions
- The set of options to drawpublic void process(ConnectedComponent cc)
ConnectedComponent
.process
in interface ConnectedComponentProcessor
cc
- The ConnectedComponent
to process.ConnectedComponentProcessor.process(org.openimaj.image.pixel.ConnectedComponent)
public void setColour(ConfigurableRenderOptions r, Float[] colour)
r
- The option to set the colour forcolour
- The colour to draw that option in.public Float[] getColour(ConfigurableRenderOptions r)
r
- The option to get the colour of.