public class ConfigurableRendererMono extends Object implements ConnectedComponentProcessor
FImage
s.Modifier and Type | Field and Description |
---|---|
protected FImage |
image
The image to draw into
|
protected EnumSet<ConfigurableRenderOptions> |
options
The options to draw with
|
Modifier | Constructor and Description |
---|---|
protected |
ConfigurableRendererMono(EnumSet<ConfigurableRenderOptions> options)
Protected constructor that takes a set of options to draw.
|
|
ConfigurableRendererMono(FImage image,
EnumSet<ConfigurableRenderOptions> options)
Constructor that takes an image to draw into and a set of options to draw.
|
|
ConfigurableRendererMono(int width,
int height,
EnumSet<ConfigurableRenderOptions> options)
Constructor that creates an image to draw into and takes 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.
|
FImage |
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 ConfigurableRendererMono(EnumSet<ConfigurableRenderOptions> options)
options
- The options to drawpublic ConfigurableRendererMono(FImage image, EnumSet<ConfigurableRenderOptions> options)
image
- The image to draw intooptions
- The options to drawpublic ConfigurableRendererMono(int width, int height, EnumSet<ConfigurableRenderOptions> options)
width
- The width of the image to createheight
- The height 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.