Class 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 a BufferedImage as basis for their calculation.
    Version:
    $Revision$
    Author:
    FracPete (fracpete at waikato dot ac dot nz)
    See Also:
    Serialized Form
    • Constructor Detail

      • AbstractBufferedImageBasedHeatmapThreshold

        public AbstractBufferedImageBasedHeatmapThreshold()
    • Method Detail

      • defineOptions

        public void defineOptions()
        Adds options to the internal list of options.
        Specified by:
        defineOptions in interface adams.core.option.OptionHandler
        Overrides:
        defineOptions in class adams.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 heatmap
        img - 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 class AbstractHeatmapThreshold
        Parameters:
        map - the map to base the calculation on
        Returns:
        the threshold