Package boofcv.abst.scene.nister2006
Class ConfigRecognitionNister2006
java.lang.Object
boofcv.abst.scene.nister2006.ConfigRecognitionNister2006
- All Implemented Interfaces:
Configuration
,Serializable
Configuration for recognition algorithms based on
RecognitionVocabularyTreeNister2006
- See Also:
-
Field Summary
Modifier and TypeFieldDescriptionSpecifies which norm to use.int
When converting a descriptor into a word it will return the word which is this many hops from the leaf.final ConfigKMeans
Clustering algorithm used when learning the hierarchical treefinal ConfigLength
When learning, if a node is viewed by more than this number of images then its weight is set to zero.final ConfigLength
When learning, if a node has less than this number of points it will not spawn children.boolean
If true then it will learn node weights.int
Critical tuning parameter for performance.final ConfigLength
When making a query, If a node has an inverted file list greater than this amount then it will be skipped when scoring.long
Seed used in random number generatorsConfiguration for the tree when it's being learned -
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 hierarchical tree -
tree
Configuration for the tree when it's being learned -
distanceNorm
Specifies which norm to use. L1 should yield better results but is slower than L2 to compute. -
minimumDepthFromRoot
public int minimumDepthFromRootCritical tuning parameter for performance. A node can't be a "word" in the descriptor if it's this close to the root node. Small values will prune less or no images in the database. As a result more images are considered slowing everything down. However, if this is set too high then valid images are pruned and recognition goes down. If set larger than tree.maximumLevel, then there are no valid nodes. -
queryMaximumImagesInNode
When making a query, If a node has an inverted file list greater than this amount then it will be skipped when scoring. This should be viewed as a last ditch effort when the query is too slow as it will degrade the quality. For example, with 1,000,000 images, setting this to be 5000 images reduced query time from 7,000 (ms) to 85 (ms). -
learningMaximumImagesInNode
When learning, if a node is viewed by more than this number of images then its weight is set to zero. This is useful because it provides a more strategic way to eliminate less informative words from the image descriptor than by settingminimumDepthFromRoot
. Disabled by default. -
learningMinimumPointsForChildren
When learning, if a node has less than this number of points it will not spawn children. If relative then its relative to the total number of points. This is intended to avoid over fitting. -
learnNodeWeights
public boolean learnNodeWeightsIf true then it will learn node weights. If false the all nodes but the root node will have a weight of 1.0 -
featureSingleWordHops
public int featureSingleWordHopsWhen converting a descriptor into a word it will return the word which is this many hops from the leaf. The leaf can be too specific and by "hoping" away from the leaf it gets more generic and will have more matches. If words are being used for frame-to-frame matching then this is a critical parameter. Default value will force it to the root's children. This won't fail but might not be the most effective choice. -
randSeed
public long randSeedSeed used in random number generators
-
-
Constructor Details
-
ConfigRecognitionNister2006
public ConfigRecognitionNister2006()
-
-
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
-