Package boofcv.factory.feature.associate
Class ConfigAssociateGreedy
java.lang.Object
boofcv.factory.feature.associate.ConfigAssociateGreedy
- All Implemented Interfaces:
Configuration
,Serializable
Configuration for
AssociateGreedyDesc
.- See Also:
-
Field Summary
Modifier and TypeFieldDescriptionboolean
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
If more than zero then this is the maximum allowed error/distance between two features for a match to be accepteddouble
An association is only accepted if the ratio between the second best and best score is less than this value. -
Constructor Summary
ConstructorDescriptionConfigAssociateGreedy
(boolean forwardsBackwards) ConfigAssociateGreedy
(boolean forwardsBackwards, double maxErrorThreshold) ConfigAssociateGreedy
(boolean forwardsBackwards, double scoreRatioThreshold, double maxErrorThreshold) -
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
-
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
-