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 floatm_Alphathe alpha value to use.protected BaseKeyValuePair[]m_LayerColorMappingsthe 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 StringalphaTipText()Returns the tip text for this property.voiddefineOptions()Adds options to the internal list of options.protected ImageSegmentationContainerdoFilter(ImageSegmentationContainer cont)Performs the filtering of the container.floatgetAlpha()Returns the alpha value to use for the overlays (0: transparent, 1: opaque).BaseKeyValuePair[]getLayerColorMappings()Returns the mappings of label/color (in hex notation).StringglobalInfo()Returns a string describing the object.StringlayerColorMappingsTipText()Returns the tip text for this property.voidsetAlpha(float value)Sets the alpha value to use for the overlays (0: transparent, 1: opaque).voidsetLayerColorMappings(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:
globalInfoin interfaceGlobalInfoSupporter- Specified by:
globalInfoin classAbstractOptionHandler- Returns:
- a description suitable for displaying in the gui
-
defineOptions
public void defineOptions()
Adds options to the internal list of options.- Specified by:
defineOptionsin interfaceOptionHandler- Overrides:
defineOptionsin 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:
doFilterin classAbstractImageSegmentationContainerFilter- Parameters:
cont- the container to filter- Returns:
- the filtered container
-
-