Package boofcv.factory.segmentation
Class ConfigSlic
java.lang.Object
boofcv.factory.segmentation.ConfigSlic
- All Implemented Interfaces:
Configuration,Serializable
Configuration used when creating
SegmentSlic via
FactoryImageSegmentation.- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionConnection rule that is used when merging small regions.intNumber of regions which will be initially seeded.floatLarger values place more weight on the spacial component.intNumber of mean-shift iterations. -
Constructor Summary
ConstructorsConstructorDescriptionConfigSlic(int numberOfRegions) ConfigSlic(int numberOfRegions, float spacialWeight) -
Method Summary
Modifier and TypeMethodDescriptionvoidChecks to see if the configuration is valid.setTo(ConfigSlic 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
-
numberOfRegions
public int numberOfRegionsNumber of regions which will be initially seeded. The actually number of regions at the end will vary a bit due to merging of small regions and the image border. -
spacialWeight
public float spacialWeightLarger values place more weight on the spacial component. For 8-bit RGB a value of 200 works well. -
totalIterations
public int totalIterationsNumber of mean-shift iterations. Typically has converged by 10 iterations. -
connectRule
Connection rule that is used when merging small regions.
-
-
Constructor Details
-
ConfigSlic
public ConfigSlic(int numberOfRegions) -
ConfigSlic
public ConfigSlic(int numberOfRegions, float spacialWeight) -
ConfigSlic
public ConfigSlic()
-
-
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
-