Class ConfigMeanShiftSearch
java.lang.Object
boofcv.factory.feature.detect.peak.ConfigMeanShiftSearch
- All Implemented Interfaces:
Configuration
,Serializable
Configuration for performing a mean-shift search for a local peak
- See Also:
-
Field Summary
Modifier and TypeFieldDescriptiondouble
When motion along both axises is less than this hold the searchint
Maximum number of mean shift iterations it will performboolean
If the region will have an "odd" region.boolean
If mean-shift will only consider positive values in the intensity function -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Checks to see if the configuration is valid.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
-
maxIterations
public int maxIterationsMaximum number of mean shift iterations it will perform -
convergenceTol
public double convergenceTolWhen motion along both axises is less than this hold the search -
odd
public boolean oddIf the region will have an "odd" region. Odd regions have a width that is an odd number, i.e. 2*radius+1 and start sampling at -radius. Even regions have an even width (2*radius) and start sampling at -(radius-0.5). Odd is used if there's a single sharp peak, even is used if the peak is two pixels. -
positiveOnly
public boolean positiveOnlyIf mean-shift will only consider positive values in the intensity function
-
-
Constructor Details
-
ConfigMeanShiftSearch
public ConfigMeanShiftSearch(int maxIterations, double convergenceTol) -
ConfigMeanShiftSearch
public ConfigMeanShiftSearch()
-
-
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
-