Class AbstractBufferedImageBasedHeatmapThreshold
- java.lang.Object
-
- adams.core.logging.LoggingObject
-
- adams.core.logging.CustomLoggingLevelObject
-
- adams.core.option.AbstractOptionHandler
-
- adams.data.filter.heatmapthreshold.AbstractHeatmapThreshold
-
- adams.data.filter.heatmapthreshold.AbstractBufferedImageBasedHeatmapThreshold
-
- All Implemented Interfaces:
adams.core.Destroyable
,adams.core.GlobalInfoSupporter
,adams.core.logging.LoggingLevelHandler
,adams.core.logging.LoggingSupporter
,adams.core.option.OptionHandler
,adams.core.SizeOfHandler
,Serializable
- Direct Known Subclasses:
Otsu
public abstract class AbstractBufferedImageBasedHeatmapThreshold extends AbstractHeatmapThreshold
Ancestor of threshold algorithms that use aBufferedImage
as basis for their calculation.- Version:
- $Revision$
- Author:
- FracPete (fracpete at waikato dot ac dot nz)
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected HeatmapToBufferedImageConversion
m_Conversion
for generating the BufferedImage.
-
Constructor Summary
Constructors Constructor Description AbstractBufferedImageBasedHeatmapThreshold()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description String
conversionTipText()
Returns the tip text for this property.void
defineOptions()
Adds options to the internal list of options.protected double
doCalcThreshold(Heatmap map)
Performs the actual calculation of the threshold.protected abstract double
doCalcThreshold(Heatmap map, BufferedImage img)
Performs the actual calculation of the threshold using the image.HeatmapToBufferedImageConversion
getConversion()
Returns the conversion to use for turning the heatmap into a BufferedImage.void
setConversion(HeatmapToBufferedImageConversion value)
Sets the conversion to use for turning the heatmap into a BufferedImage.-
Methods inherited from class adams.data.filter.heatmapthreshold.AbstractHeatmapThreshold
calcThreshold, check
-
Methods inherited from class adams.core.option.AbstractOptionHandler
cleanUpOptions, destroy, finishInit, getDefaultLoggingLevel, getOptionManager, globalInfo, initialize, loggingLevelTipText, newOptionManager, reset, setLoggingLevel, toCommandLine, toString
-
Methods inherited from class adams.core.logging.LoggingObject
configureLogger, getLogger, getLoggingLevel, initializeLogging, isLoggingEnabled, sizeOf
-
-
-
-
Field Detail
-
m_Conversion
protected HeatmapToBufferedImageConversion m_Conversion
for generating the BufferedImage.
-
-
Method Detail
-
defineOptions
public void defineOptions()
Adds options to the internal list of options.- Specified by:
defineOptions
in interfaceadams.core.option.OptionHandler
- Overrides:
defineOptions
in classadams.core.option.AbstractOptionHandler
-
setConversion
public void setConversion(HeatmapToBufferedImageConversion value)
Sets the conversion to use for turning the heatmap into a BufferedImage.- Parameters:
value
- the conversion
-
getConversion
public HeatmapToBufferedImageConversion getConversion()
Returns the conversion to use for turning the heatmap into a BufferedImage.- Returns:
- the conversion
-
conversionTipText
public String conversionTipText()
Returns the tip text for this property.- Returns:
- tip text for this property suitable for displaying in the GUI or for listing the options.
-
doCalcThreshold
protected abstract double doCalcThreshold(Heatmap map, BufferedImage img)
Performs the actual calculation of the threshold using the image.- Parameters:
map
- the original heatmapimg
- the generated image to use- Returns:
- the threshold
-
doCalcThreshold
protected double doCalcThreshold(Heatmap map)
Performs the actual calculation of the threshold.- Specified by:
doCalcThreshold
in classAbstractHeatmapThreshold
- Parameters:
map
- the map to base the calculation on- Returns:
- the threshold
-
-