Package boofcv.abst.tracker
Class ConfigComaniciu2003
java.lang.Object
boofcv.abst.tracker.ConfigComaniciu2003
- All Implemented Interfaces:
Configuration,Serializable
Configuration for
Comaniciu2003_to_TrackerObjectQuad.- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionWhich interpolation method should it use.floatLargest value a pixel can have.intMaximum number of mean-shift iterations.floatMean-shift will stop when the change is below this threshold.floatThe scale is allowed to be reduced by this much from the original region which is selected.intNumber of histogram bins for each band.intNumber of points it samples along each axis of the rectangle.doubleUsed to compute weights.floatSpecifies how much it will scale the region up and down by when testing for a scale change.floatWeighting factor which limits the amount it will change the scale.booleanIf true the histogram will be updated using the most recent image. -
Constructor Summary
ConstructorsConstructorDescriptionConfigComaniciu2003(boolean estimateScale) ConfigComaniciu2003(int numSamples, int numHistogramBins, float scaleWeight) -
Method Summary
Modifier and TypeMethodDescriptionvoidChecks to see if the configuration is valid.setTo(ConfigComaniciu2003 src) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface boofcv.struct.Configuration
serializeActiveFields, serializeInitialize
-
Field Details
-
numSamples
public int numSamplesNumber of points it samples along each axis of the rectangle. Default is 30. -
numSigmas
public double numSigmasUsed to compute weights. Number of standard deviations away the sides will be from the center. Shouldn't need to tune this. Try 3. -
numHistogramBins
public int numHistogramBinsNumber of histogram bins for each band. Try 5 -
maxPixelValue
public float maxPixelValueLargest value a pixel can have. For 8-bit images this is 255. Floating point images are some times normalized to 1. -
updateHistogram
public boolean updateHistogramIf true the histogram will be updated using the most recent image. Try false. -
meanShiftMaxIterations
public int meanShiftMaxIterationsMaximum number of mean-shift iterations. Try 30 -
meanShiftMinimumChange
public float meanShiftMinimumChangeMean-shift will stop when the change is below this threshold. Try 1e-4f -
scaleWeight
public float scaleWeightWeighting factor which limits the amount it will change the scale. Value from 0 to 1. Closer to 0 the more it will prefer the most recent estimate. Try 0.1 -
scaleChange
public float scaleChangeSpecifies how much it will scale the region up and down by when testing for a scale change. Allowed values are from 0 to 1, inclusive. 0 means no scale change and 1 is 100% increase and decrease. If no scale change is considered it can run 3x faster. If the target doesn't change scale then the tracker is much more robust. The paper recommends 0.1. By default scale change is set to 0. -
minimumSizeRatio
public float minimumSizeRatioThe scale is allowed to be reduced by this much from the original region which is selected. Default is 0.25 -
interpolation
Which interpolation method should it use.
-
-
Constructor Details
-
ConfigComaniciu2003
public ConfigComaniciu2003(int numSamples, int numHistogramBins, float scaleWeight) -
ConfigComaniciu2003
public ConfigComaniciu2003(boolean estimateScale) -
ConfigComaniciu2003
public ConfigComaniciu2003()
-
-
Method Details
-
setTo
-
checkValidity
public void checkValidity()Description copied from interface:ConfigurationChecks to see if the configuration is valid. If it is invalid, throw an exception explaining what is incorrect.- Specified by:
checkValidityin interfaceConfiguration
-