Package boofcv.abst.scene.ann
Class ConfigRecognitionNearestNeighbor
java.lang.Object
boofcv.abst.scene.ann.ConfigRecognitionNearestNeighbor
- All Implemented Interfaces:
Configuration,Serializable
Configuration for
FeatureSceneRecognitionNearestNeighbor.- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionSpecifies which norm to use.final ConfigKMeansClustering algorithm used when learning the wordsWhich Nearest Neighbor Algorithm will be used.intNumber of words in the dictionarylongRandom number generator seed used when clustering -
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
-
kmeans
Clustering algorithm used when learning the words -
nearestNeighbor
Which Nearest Neighbor Algorithm will be used. -
numberOfWords
public int numberOfWordsNumber of words in the dictionary -
distanceNorm
Specifies which norm to use. L1 should yield better results but is slower than L2 to compute. -
randSeed
public long randSeedRandom number generator seed used when clustering
-
-
Constructor Details
-
ConfigRecognitionNearestNeighbor
public ConfigRecognitionNearestNeighbor()
-
-
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
-