Class ConfigExtract
java.lang.Object
boofcv.abst.feature.detect.extract.ConfigExtract
- All Implemented Interfaces:
Configuration
,Serializable
- Direct Known Subclasses:
ConfigGeneralDetector
General configuration for
NonMaxSuppression
.- See Also:
-
Field Summary
Modifier and TypeFieldDescriptionboolean
If true then local maximums will be foundboolean
If false then local maximums will be foundint
Size of border around the image in which pixels are not considered.int
Search radius of the non-maximum region.float
Minimum feature intensity it will consider when detecting a maximum.boolean
Is a strict test used to test for local maximums. -
Constructor Summary
ConstructorDescriptionConfigExtract
(int radius, float threshold) Constructor which defaults to an ignore border of 0 and to using a strict ruleConfigExtract
(int radius, float threshold, int ignoreBorder, boolean useStrictRule) ConfigExtract
(int radius, float threshold, int ignoreBorder, boolean useStrictRule, boolean detectMinimums, boolean detectMaximums) -
Method Summary
Modifier and TypeMethodDescriptionvoid
Checks to see if the configuration is valid.static ConfigExtract
max
(int radius, float threshold, int ignoreBorder, boolean useStrictRule) static ConfigExtract
min
(int radius, float threshold, int ignoreBorder, boolean useStrictRule) setTo
(ConfigExtract 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
-
radius
public int radiusSearch radius of the non-maximum region. Most common value is 1 for a 3x3 region. Default is 1. -
threshold
public float thresholdMinimum feature intensity it will consider when detecting a maximum. For local minimums it will use a value of -threshold. Defaults to 0. -
ignoreBorder
public int ignoreBorderSize of border around the image in which pixels are not considered. Default is 0. -
useStrictRule
public boolean useStrictRuleIs a strict test used to test for local maximums. If strict the local maximum must be greater than all its neighbors, otherwise it just needs to be greater than or equal to its neighbors. Default is true. -
detectMinimums
public boolean detectMinimumsIf false then local maximums will be found -
detectMaximums
public boolean detectMaximumsIf true then local maximums will be found
-
-
Constructor Details
-
ConfigExtract
public ConfigExtract(int radius, float threshold, int ignoreBorder, boolean useStrictRule, boolean detectMinimums, boolean detectMaximums) -
ConfigExtract
public ConfigExtract(int radius, float threshold, int ignoreBorder, boolean useStrictRule) -
ConfigExtract
public ConfigExtract(int radius, float threshold) Constructor which defaults to an ignore border of 0 and to using a strict rule -
ConfigExtract
public ConfigExtract()
-
-
Method Details
-
max
public static ConfigExtract max(int radius, float threshold, int ignoreBorder, boolean useStrictRule) -
min
public static ConfigExtract min(int radius, float threshold, int ignoreBorder, boolean useStrictRule) -
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
-