Package boofcv.factory.feature.associate
Class ConfigAssociateNearestNeighbor
java.lang.Object
boofcv.factory.feature.associate.ConfigAssociateNearestNeighbor
- All Implemented Interfaces:
Configuration,Serializable
Configuration for
AssociateNearestNeighbor_ST.- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionbooleanIf true then the score which represents the distance between two features is squared.doubleIf more than zero then this is the maximum allowed error/distance between two features for a match to be acceptedintThe maximum number of nodes it will search in a KD-Tree.doubleIf less than one then the best two matches are found the ratio is defined as the distance of the best divided by the distance of the second best. -
Constructor Summary
Constructors -
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
-
distanceIsSquared
public boolean distanceIsSquaredIf true then the score which represents the distance between two features is squared. If this flag is true then when the score ratio is computed the square root will be used. -
scoreRatioThreshold
public double scoreRatioThresholdIf less than one then the best two matches are found the ratio is defined as the distance of the best divided by the distance of the second best. Matches are only accepted if less than this ratio -
maxErrorThreshold
public double maxErrorThresholdIf more than zero then this is the maximum allowed error/distance between two features for a match to be accepted -
maxNodesSearched
public int maxNodesSearchedThe maximum number of nodes it will search in a KD-Tree. Setting a limit will improve speed at the cost of accuracy.
-
-
Constructor Details
-
ConfigAssociateNearestNeighbor
public ConfigAssociateNearestNeighbor()
-
-
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
-