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
Modifier and TypeFieldDescriptionConnection rule that is used when merging small regions.int
Number of regions which will be initially seeded.float
Larger values place more weight on the spacial component.int
Number of mean-shift iterations. -
Constructor Summary
ConstructorDescriptionConfigSlic
(int numberOfRegions) ConfigSlic
(int numberOfRegions, float spacialWeight) -
Method Summary
Modifier and TypeMethodDescriptionvoid
Checks 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, wait
Methods 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: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
-