Class BoofCVMeanShiftLikelihood

  • All Implemented Interfaces:
    adams.core.Destroyable, adams.core.GlobalInfoSupporter, adams.core.logging.LoggingLevelHandler, adams.core.logging.LoggingSupporter, adams.core.option.OptionHandler, adams.core.QuickInfoSupporter, adams.core.SizeOfHandler, ObjectTracker, Serializable

    public class BoofCVMeanShiftLikelihood
    extends AbstractBoofCVObjectTracker
    Very basic and very fast implementation of mean-shift which uses a fixed sized rectangle for its region. Works best when the target is composed of a single color.

    -logging-level <OFF|SEVERE|WARNING|INFO|CONFIG|FINE|FINER|FINEST> (property: loggingLevel)
        The logging level for outputting errors and debugging output.
        default: WARNING
     
    -type <HISTOGRAM|HISTOGRAM_RGB_to_HSV|HISTOGRAM_INDEPENDENT_RGB_to_HSV> (property: type)
        The likelihood type to use.
        default: HISTOGRAM
     
    -max-iterations <int> (property: maxIterations)
        The maximum number of iterations to perform.
        default: 30
        minimum: 1
     
    -num-bins <int> (property: numBins)
        The number of bins to use for the histogram.
        default: 5
        minimum: 1
     
    -max-pixel-value <int> (property: maxPixelValue)
        The maximum value of the pixel values (usually 255, since using bytes).
        default: 255
        minimum: 1
     
    -num-bands <int> (property: numBands)
        The number of bands in the image (= 3 for RGB).
        default: 3
        minimum: 1
     
    Author:
    FracPete (fracpete at waikato dot ac dot nz)
    See Also:
    Serialized Form
    • Field Detail

      • m_Type

        protected boofcv.abst.tracker.MeanShiftLikelihoodType m_Type
        the type of likelihood.
      • m_MaxIterations

        protected int m_MaxIterations
        the maximum number of iterations.
      • m_NumBins

        protected int m_NumBins
        the number of bins.
      • m_MaxPixelValue

        protected int m_MaxPixelValue
        the maximum pixel value.
      • m_NumBands

        protected int m_NumBands
        the number of bands in the image.
    • Constructor Detail

      • BoofCVMeanShiftLikelihood

        public BoofCVMeanShiftLikelihood()
    • Method Detail

      • globalInfo

        public String globalInfo()
        Returns a string describing the object.
        Specified by:
        globalInfo in interface adams.core.GlobalInfoSupporter
        Specified by:
        globalInfo in class adams.core.option.AbstractOptionHandler
        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 interface adams.core.option.OptionHandler
        Overrides:
        defineOptions in class AbstractBoofCVObjectTracker
      • setType

        public void setType​(boofcv.abst.tracker.MeanShiftLikelihoodType value)
        Sets the likelihood type.
        Parameters:
        value - the type
      • getType

        public boofcv.abst.tracker.MeanShiftLikelihoodType getType()
        Returns the likelihood type
        Returns:
        the type
      • typeTipText

        public String typeTipText()
        Returns the tip text for this property.
        Returns:
        tip text for this property suitable for displaying in the GUI or for listing the options.
      • setMaxIterations

        public void setMaxIterations​(int value)
        Sets the maximum number of iterations.
        Parameters:
        value - the iterations
      • getMaxIterations

        public int getMaxIterations()
        Returns the maximum number of iterations.
        Returns:
        the iterations
      • maxIterationsTipText

        public String maxIterationsTipText()
        Returns the tip text for this property.
        Returns:
        tip text for this property suitable for displaying in the GUI or for listing the options.
      • setNumBins

        public void setNumBins​(int value)
        Sets the number of bins for the histogram.
        Parameters:
        value - the bins
      • getNumBins

        public int getNumBins()
        Returns the number of bins for the histogram.
        Returns:
        the bins
      • numBinsTipText

        public String numBinsTipText()
        Returns the tip text for this property.
        Returns:
        tip text for this property suitable for displaying in the GUI or for listing the options.
      • setMaxPixelValue

        public void setMaxPixelValue​(int value)
        Sets the maximum pixel value (usually 255 when using bytes).
        Parameters:
        value - the maximum
      • getMaxPixelValue

        public int getMaxPixelValue()
        Returns the maximum pixel value (usually 255 when using bytes).
        Returns:
        the maximum
      • maxPixelValueTipText

        public String maxPixelValueTipText()
        Returns the tip text for this property.
        Returns:
        tip text for this property suitable for displaying in the GUI or for listing the options.
      • setNumBands

        public void setNumBands​(int value)
        Sets the number of bands in the image.
        Parameters:
        value - the bands
      • getNumBands

        public int getNumBands()
        Returns the number of bands in the image.
        Returns:
        the bands
      • numBandsTipText

        public String numBandsTipText()
        Returns the tip text for this property.
        Returns:
        tip text for this property suitable for displaying in the GUI or for listing the options.
      • newTracker

        protected boofcv.abst.tracker.TrackerObjectQuad newTracker()
        Instantiates a new tracker.
        Specified by:
        newTracker in class AbstractBoofCVObjectTracker
        Returns:
        the tracker