Package boofcv.factory.feature.associate
Class ConfigAssociateGreedy
java.lang.Object
boofcv.factory.feature.associate.ConfigAssociateGreedy
- All Implemented Interfaces:
Configuration
,Serializable
public class ConfigAssociateGreedy extends Object implements Configuration
Configuration for
AssociateGreedyDesc
.- See Also:
- Serialized Form
-
Field Summary
Fields Modifier and Type Field Description boolean
forwardsBackwards
If true then for a match to be accepted the two features must be each others mutually best match when associating in the forwards and backwards direction.double
maxErrorThreshold
If more than zero then this is the maximum allowed error/distance between two features for a match to be accepteddouble
scoreRatioThreshold
An association is only accepted if the ratio between the second best and best score is less than this value. -
Constructor Summary
Constructors Constructor Description ConfigAssociateGreedy()
ConfigAssociateGreedy(boolean forwardsBackwards)
ConfigAssociateGreedy(boolean forwardsBackwards, double maxErrorThreshold)
ConfigAssociateGreedy(boolean forwardsBackwards, double scoreRatioThreshold, double maxErrorThreshold)
-
Method Summary
Modifier and Type Method Description void
checkValidity()
Checks to see if the configuration is valid.ConfigAssociateGreedy
setTo(ConfigAssociateGreedy 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
-
forwardsBackwards
public boolean forwardsBackwardsIf true then for a match to be accepted the two features must be each others mutually best match when associating in the forwards and backwards direction. -
scoreRatioThreshold
public double scoreRatioThresholdAn association is only accepted if the ratio between the second best and best score is less than this value. Closer to zero is more strict and closer to 1.0 is less strict. Set to a value ≥ 1.0 to disable. -
maxErrorThreshold
public double maxErrorThresholdIf more than zero then this is the maximum allowed error/distance between two features for a match to be accepted
-
-
Constructor Details
-
ConfigAssociateGreedy
public ConfigAssociateGreedy(boolean forwardsBackwards, double maxErrorThreshold) -
ConfigAssociateGreedy
public ConfigAssociateGreedy(boolean forwardsBackwards, double scoreRatioThreshold, double maxErrorThreshold) -
ConfigAssociateGreedy
public ConfigAssociateGreedy(boolean forwardsBackwards) -
ConfigAssociateGreedy
public ConfigAssociateGreedy()
-
-
Method Details
-
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
-
setTo
-