Package boofcv.factory.segmentation
Class ConfigSegmentMeanShift
java.lang.Object
boofcv.factory.segmentation.ConfigSegmentMeanShift
- All Implemented Interfaces:
Configuration
,Serializable
Configuration for
SegmentMeanShift
- See Also:
-
Field Summary
Modifier and TypeFieldDescriptionfloat
Radius of mean-shift region for color in Euclidean distance.Connection rule when segmenting disconnected regions.boolean
Improve runtime by approximating running mean-shift on each pixel.int
Minimum allowed size of a region in pixels.int
Radius of mean-shift region in pixels. -
Constructor Summary
ConstructorDescriptionConfigSegmentMeanShift
(int spacialRadius, float colorRadius, int minimumRegionSize, boolean fast) -
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
-
spacialRadius
public int spacialRadiusRadius of mean-shift region in pixels. Try 6 -
colorRadius
public float colorRadiusRadius of mean-shift region for color in Euclidean distance. For 8bit RGB color space try 15 -
minimumRegionSize
public int minimumRegionSizeMinimum allowed size of a region in pixels. Try 30 -
fast
public boolean fastImprove runtime by approximating running mean-shift on each pixel. Try true. -
connectRule
Connection rule when segmenting disconnected regions. Try FOUR
-
-
Constructor Details
-
ConfigSegmentMeanShift
public ConfigSegmentMeanShift() -
ConfigSegmentMeanShift
public ConfigSegmentMeanShift(int spacialRadius, float colorRadius, int minimumRegionSize, boolean fast)
-
-
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
-