cv.DescriptorMatcher/DescriptorMatcher - MATLAB File Help
cv.DescriptorMatcher/DescriptorMatcher

Creates a descriptor matcher by name

matcher = cv.DescriptorMatcher(type)
matcher = cv.DescriptorMatcher(type, 'OptionName',optionValue, ...)

Input

Options

The Brute-force matcher constructor (BFMatcher) accepts the following options:

The Flann-based matcher constructor (FlannBasedMatcher) takes the following optional arguments:

IndexParams Options for FlannBasedMatcher

The following are the options for FLANN indexers (Fast Library for Approximate Nearest Neighbors):

Linear

Linear index takes no options.

Saved

Saved index takes only one argument specifying the filename.

KDTree and Composite

KMeans and Composite

HierarchicalClustering

LSH

Autotuned

Example

For example, KDTree with tree size = 4 is specified by:

matcher = cv.DescriptorMatcher('FlannBasedMatcher', ...
    'Index',  {'KDTree', 'Trees', 4}, ...
    'Search', {'Sorted', true})

Here is an example for loading a saved index:

matcher = cv.DescriptorMatcher('FlannBasedMatcher', ...
    'Index', {'Saved', '/path/to/saved/index.xml'})

References

[ArthurKmeansPP2007]:

Arthur and S. Vassilvitskii "k-means++: the advantages of careful seeding", Proceedings of the eighteenth annual ACM-SIAM symposium on Discrete algorithms, 2007

[LSH]:

Multi-Probe LSH: Efficient Indexing for High-Dimensional Similarity Search by Qin Lv, William Josephson, Zhe Wang, Moses Charikar, Kai Li., Proceedings of the 33rd International Conference on Very Large Data Bases (VLDB). Vienna, Austria. September 2007

See also