Class BoofCVMeanShiftLikelihood
- java.lang.Object
-
- adams.core.logging.LoggingObject
-
- adams.core.logging.CustomLoggingLevelObject
-
- adams.core.option.AbstractOptionHandler
-
- adams.flow.transformer.objecttracker.AbstractObjectTracker
-
- adams.flow.transformer.objecttracker.AbstractSimpleReportBasedObjectTracker
-
- adams.flow.transformer.objecttracker.AbstractBoofCVObjectTracker
-
- adams.flow.transformer.objecttracker.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 Summary
Fields Modifier and Type Field Description protected int
m_MaxIterations
the maximum number of iterations.protected int
m_MaxPixelValue
the maximum pixel value.protected int
m_NumBands
the number of bands in the image.protected int
m_NumBins
the number of bins.protected boofcv.abst.tracker.MeanShiftLikelihoodType
m_Type
the type of likelihood.-
Fields inherited from class adams.flow.transformer.objecttracker.AbstractBoofCVObjectTracker
m_ImageType, m_Tracker
-
Fields inherited from class adams.flow.transformer.objecttracker.AbstractSimpleReportBasedObjectTracker
m_Current, m_Init
-
Fields inherited from class adams.flow.transformer.objecttracker.AbstractObjectTracker
m_Initialized, m_LastLocations
-
-
Constructor Summary
Constructors Constructor Description BoofCVMeanShiftLikelihood()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
defineOptions()
Adds options to the internal list of options.int
getMaxIterations()
Returns the maximum number of iterations.int
getMaxPixelValue()
Returns the maximum pixel value (usually 255 when using bytes).int
getNumBands()
Returns the number of bands in the image.int
getNumBins()
Returns the number of bins for the histogram.boofcv.abst.tracker.MeanShiftLikelihoodType
getType()
Returns the likelihood typeString
globalInfo()
Returns a string describing the object.String
maxIterationsTipText()
Returns the tip text for this property.String
maxPixelValueTipText()
Returns the tip text for this property.protected boofcv.abst.tracker.TrackerObjectQuad
newTracker()
Instantiates a new tracker.String
numBandsTipText()
Returns the tip text for this property.String
numBinsTipText()
Returns the tip text for this property.void
setMaxIterations(int value)
Sets the maximum number of iterations.void
setMaxPixelValue(int value)
Sets the maximum pixel value (usually 255 when using bytes).void
setNumBands(int value)
Sets the number of bands in the image.void
setNumBins(int value)
Sets the number of bins for the histogram.void
setType(boofcv.abst.tracker.MeanShiftLikelihoodType value)
Sets the likelihood type.String
typeTipText()
Returns the tip text for this property.-
Methods inherited from class adams.flow.transformer.objecttracker.AbstractBoofCVObjectTracker
doInitTracking, doTrackObjects, getImageType, imageTypeTipText, setImageType
-
Methods inherited from class adams.flow.transformer.objecttracker.AbstractSimpleReportBasedObjectTracker
currentTipText, getCurrent, getInit, getInitialLocations, getQuickInfo, initTipText, postProcessTrackedObjects, setCurrent, setInit
-
Methods inherited from class adams.flow.transformer.objecttracker.AbstractObjectTracker
checkInitTracking, checkTrackObjects, initTracking, isInitialized, reset, trackObjects
-
Methods inherited from class adams.core.option.AbstractOptionHandler
cleanUpOptions, destroy, finishInit, getDefaultLoggingLevel, getOptionManager, initialize, loggingLevelTipText, newOptionManager, setLoggingLevel, toCommandLine, toString
-
Methods inherited from class adams.core.logging.LoggingObject
configureLogger, getLogger, getLoggingLevel, initializeLogging, isLoggingEnabled, sizeOf
-
-
-
-
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.
-
-
Method Detail
-
globalInfo
public String globalInfo()
Returns a string describing the object.- Specified by:
globalInfo
in interfaceadams.core.GlobalInfoSupporter
- Specified by:
globalInfo
in classadams.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 interfaceadams.core.option.OptionHandler
- Overrides:
defineOptions
in classAbstractBoofCVObjectTracker
-
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 classAbstractBoofCVObjectTracker
- Returns:
- the tracker
-
-