Perform k-nearest-neighbours (KNN) search
Namespace: Emgu.CV.FlannAssembly: Emgu.CV (in Emgu.CV.dll) Version: 2.2.1.1150 (2.2.1.1150)
Syntax
C# | Visual Basic | Visual C++ |
Parameters
- queries
- Matrix<(Of <(<'Single>)>)>
A row by row matrix of descriptors to be query for nearest neighbours
- squareDistances
- Matrix<(Of <(<'Single>)>)>
The square of the Eculidean distance between the neighbours
- knn
- Int32
Number of nearest neighbors to search for
- checks
- Int32
The number of times the tree(s) in the index should be recursively traversed. A higher value for this parameter would give better search precision, but also take more time. If automatic configuration was used when the index was created, the number of checks required to achieve the specified precision was also computed, in which case this parameter is ignored