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
Modifier and TypeFieldDescriptionWhich interpolation method should it use.float
Largest value a pixel can have.int
Maximum number of mean-shift iterations.float
Mean-shift will stop when the change is below this threshold.float
The scale is allowed to be reduced by this much from the original region which is selected.int
Number of histogram bins for each band.int
Number of points it samples along each axis of the rectangle.double
Used to compute weights.float
Specifies how much it will scale the region up and down by when testing for a scale change.float
Weighting factor which limits the amount it will change the scale.boolean
If true the histogram will be updated using the most recent image. -
Constructor Summary
ConstructorDescriptionConfigComaniciu2003
(boolean estimateScale) ConfigComaniciu2003
(int numSamples, int numHistogramBins, float scaleWeight) -
Method Summary
Modifier and TypeMethodDescriptionvoid
Checks 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, wait
Methods 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:Configuration
Checks to see if the configuration is valid. If it is invalid, throw an exception explaining what is incorrect.- Specified by:
checkValidity
in interfaceConfiguration
-