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
Modifier and TypeFieldDescriptionSpecifies which norm to use.final ConfigKMeans
Clustering algorithm used when learning the wordsWhich Nearest Neighbor Algorithm will be used.int
Number of words in the dictionarylong
Random number generator seed used when clustering -
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
-
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: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
-