Package boofcv.factory.segmentation
Class ConfigFh04
java.lang.Object
boofcv.factory.segmentation.ConfigFh04
- All Implemented Interfaces:
Configuration
,Serializable
Configuration for
SegmentFelzenszwalbHuttenlocher04
.- See Also:
-
Field Summary
Modifier and TypeFieldDescriptionint
If set to a value larger than 0 then an approximate sorting routine will be used.Connection rule used to connect regions.float
Tuning parameter.int
Minimum allowed size of a region. -
Constructor Summary
ConstructorDescriptionConfigFh04
(float k, int minimumRegionSize) ConfigFh04
(float k, int minimumRegionSize, ConnectRule connectRule, int approximateSortBins) ConfigFh04
(int k, int minimumRegionSize, ConnectRule connectRule) -
Method Summary
Modifier and TypeMethodDescriptionvoid
Checks to see if the configuration is valid.setTo
(ConfigFh04 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
-
K
public float KTuning parameter. Larger regions are preferred for larger values of K. Try 100 -
minimumRegionSize
public int minimumRegionSizeMinimum allowed size of a region. -
connectRule
Connection rule used to connect regions. ConnectRule.EIGHT was using in the original paper. -
approximateSortBins
public int approximateSortBinsIf set to a value larger than 0 then an approximate sorting routine will be used. This improves speed by about 40%. A value of 2000 is recommended.
-
-
Constructor Details
-
ConfigFh04
public ConfigFh04() -
ConfigFh04
public ConfigFh04(float k, int minimumRegionSize) -
ConfigFh04
-
ConfigFh04
-
-
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
-