Class Draw
-
- All Implemented Interfaces:
Destroyable
,GlobalInfoSupporter
,LoggingLevelHandler
,LoggingSupporter
,OptionHandler
,SizeOfHandler
,Serializable
public class Draw extends AbstractImageSegmentationContainerFilter
Draws the layers that have a color specified onto the base image.- Author:
- fracpete (fracpete at waikato dot ac dot nz)
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected float
m_Alpha
the alpha value to use.protected BaseKeyValuePair[]
m_LayerColorMappings
the layer/color mappings.-
Fields inherited from class adams.core.option.AbstractOptionHandler
m_OptionManager
-
Fields inherited from class adams.core.logging.LoggingObject
m_Logger, m_LoggingIsEnabled, m_LoggingLevel
-
-
Constructor Summary
Constructors Constructor Description Draw()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
alphaTipText()
Returns the tip text for this property.void
defineOptions()
Adds options to the internal list of options.protected ImageSegmentationContainer
doFilter(ImageSegmentationContainer cont)
Performs the filtering of the container.float
getAlpha()
Returns the alpha value to use for the overlays (0: transparent, 1: opaque).BaseKeyValuePair[]
getLayerColorMappings()
Returns the mappings of label/color (in hex notation).String
globalInfo()
Returns a string describing the object.String
layerColorMappingsTipText()
Returns the tip text for this property.void
setAlpha(float value)
Sets the alpha value to use for the overlays (0: transparent, 1: opaque).void
setLayerColorMappings(BaseKeyValuePair[] value)
Sets the mappings of label/color (in hex notation).-
Methods inherited from class adams.data.imagesegmentation.filter.AbstractImageSegmentationContainerFilter
check, filter
-
Methods inherited from class adams.core.option.AbstractOptionHandler
cleanUpOptions, destroy, finishInit, getDefaultLoggingLevel, getOptionManager, initialize, loggingLevelTipText, newOptionManager, reset, setLoggingLevel, toCommandLine, toString
-
Methods inherited from class adams.core.logging.LoggingObject
configureLogger, getLogger, getLoggingLevel, initializeLogging, isLoggingEnabled, sizeOf
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface adams.core.logging.LoggingLevelHandler
getLoggingLevel
-
-
-
-
Field Detail
-
m_LayerColorMappings
protected BaseKeyValuePair[] m_LayerColorMappings
the layer/color mappings.
-
m_Alpha
protected float m_Alpha
the alpha value to use.
-
-
Method Detail
-
globalInfo
public String globalInfo()
Returns a string describing the object.- Specified by:
globalInfo
in interfaceGlobalInfoSupporter
- Specified by:
globalInfo
in classAbstractOptionHandler
- Returns:
- a description suitable for displaying in the gui
-
defineOptions
public void defineOptions()
Adds options to the internal list of options.- Specified by:
defineOptions
in interfaceOptionHandler
- Overrides:
defineOptions
in classAbstractOptionHandler
-
setLayerColorMappings
public void setLayerColorMappings(BaseKeyValuePair[] value)
Sets the mappings of label/color (in hex notation).- Parameters:
value
- the mappings
-
getLayerColorMappings
public BaseKeyValuePair[] getLayerColorMappings()
Returns the mappings of label/color (in hex notation).- Returns:
- the mappings
-
layerColorMappingsTipText
public String layerColorMappingsTipText()
Returns the tip text for this property.- Returns:
- tip text for this property suitable for displaying in the GUI or for listing the options.
-
setAlpha
public void setAlpha(float value)
Sets the alpha value to use for the overlays (0: transparent, 1: opaque).- Parameters:
value
- the alpha value
-
getAlpha
public float getAlpha()
Returns the alpha value to use for the overlays (0: transparent, 1: opaque).- Returns:
- the alpha value
-
alphaTipText
public String alphaTipText()
Returns the tip text for this property.- Returns:
- tip text for this property suitable for displaying in the GUI or for listing the options.
-
doFilter
protected ImageSegmentationContainer doFilter(ImageSegmentationContainer cont)
Performs the filtering of the container.- Specified by:
doFilter
in classAbstractImageSegmentationContainerFilter
- Parameters:
cont
- the container to filter- Returns:
- the filtered container
-
-