Class Otsu

  • All Implemented Interfaces:
    CleanUpHandler, Destroyable, GlobalInfoSupporter, LoggingLevelHandler, LoggingSupporter, OptionHandler, ShallowCopySupporter<AbstractImageFeatureGenerator>, SizeOfHandler, TechnicalInformationHandler, Serializable, Comparable

    public class Otsu
    extends AbstractBoofCVFeatureGenerator
    implements TechnicalInformationHandler
    Computes the variance based threshold using Otsu's method from an input image (gray scale; boofcv.struct.image.GrayU8).

    For more information see:
    WikiPedia. Otsu's method.

     @misc{missing_id,
        author = {WikiPedia},
        title = {Otsu's method},
        HTTP = {https://en.wikipedia.org/wiki/Otsu%27s_method}
     }
     


    -logging-level <OFF|SEVERE|WARNING|INFO|CONFIG|FINE|FINER|FINEST> (property: loggingLevel)
        The logging level for outputting errors and debugging output.
        default: WARNING
     
    -converter <adams.data.featureconverter.AbstractFeatureConverter> (property: converter)
        The feature converter to use to produce the output data.
        default: adams.data.featureconverter.SpreadSheet -data-row-type adams.data.spreadsheet.DenseDataRow -spreadsheet-type adams.data.spreadsheet.SpreadSheet
     
    -field <adams.data.report.Field> [-field ...] (property: fields)
        The fields to add to the output.
        default: 
     
    -notes <adams.core.base.BaseString> [-notes ...] (property: notes)
        The notes to add as attributes to the generated data, eg 'PROCESS INFORMATION'
        .
        default: 
     
    -min <int> (property: min)
        The minimum value to use in the computation (included).
        default: 0
        minimum: 0
     
    -max <int> (property: max)
        The maximum value to use in the computation (excluded).
        default: 256
        minimum: 1
     
    Version:
    $Revision: 9598 $
    Author:
    fracpete (fracpete at waikato dot ac dot nz), Dale (dale at cs dot waikato dot ac dot nz)
    See Also:
    Serialized Form
    • Field Detail

      • m_Min

        protected int m_Min
        the min value.
      • m_Max

        protected int m_Max
        the max value.
    • Constructor Detail

      • Otsu

        public Otsu()
    • Method Detail

      • getTechnicalInformation

        public TechnicalInformation getTechnicalInformation()
        Returns an instance of a TechnicalInformation object, containing detailed information about the technical background of this class, e.g., paper reference or book this class is based on.
        Specified by:
        getTechnicalInformation in interface TechnicalInformationHandler
        Returns:
        the technical information about this class
      • setMin

        public void setMin​(int value)
        Sets the minimum value for the computation.
        Parameters:
        value - the minimum (incl)
      • getMin

        public int getMin()
        Returns the minimum value for the computation.
        Returns:
        the minimum (incl)
      • minTipText

        public String minTipText()
        Returns the tip text for this property.
        Returns:
        tip text for this property suitable for displaying in the gui
      • setMax

        public void setMax​(int value)
        Sets the maximum value for the computation.
        Parameters:
        value - the maximum (excl)
      • getMax

        public int getMax()
        Returns the maximum value for the computation.
        Returns:
        the maximum (excl)
      • maxTipText

        public String maxTipText()
        Returns the tip text for this property.
        Returns:
        tip text for this property suitable for displaying in the gui