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
Modifier and TypeFieldDescriptionboolean
If true then the score which represents the distance between two features is squared.double
If more than zero then this is the maximum allowed error/distance between two features for a match to be acceptedint
The maximum number of nodes it will search in a KD-Tree.double
If 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
-
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
-
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: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
-