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
FieldsModifier and TypeFieldDescriptionbooleanIf 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.doubleIf more than zero then this is the maximum allowed error/distance between two features for a match to be accepteddoubleAn association is only accepted if the ratio between the second best and best score is less than this value. -
Constructor Summary
ConstructorsConstructorDescriptionConfigAssociateGreedy(boolean forwardsBackwards) ConfigAssociateGreedy(boolean forwardsBackwards, double maxErrorThreshold) ConfigAssociateGreedy(boolean forwardsBackwards, double scoreRatioThreshold, double maxErrorThreshold) -
Method Summary
Modifier and TypeMethodDescriptionvoidChecks to see if the configuration is valid.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods 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:ConfigurationChecks to see if the configuration is valid. If it is invalid, throw an exception explaining what is incorrect.- Specified by:
checkValidityin interfaceConfiguration
-
setTo
-