Finds approximate k nearest neighbors of given vectors using best-bin-first search.
Namespace: OpenCvSharp
Assembly: OpenCvSharp (in OpenCvSharp.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax
Parameters
- desc
- Type: OpenCvSharpCvMat
m x d matrix of (row-)vectors to find the nearest neighbors of. - results
- Type: OpenCvSharpCvMat
m x k set of row indices of matching vectors (referring to matrix passed to cvCreateFeatureTree). Contains -1 in some columns if fewer than k neighbors found. - dist
- Type: OpenCvSharpCvMat
m x k matrix of distances to k nearest neighbors. - k
- Type: SystemInt32
The number of neighbors to find. - emax
- Type: SystemInt32
The maximum number of leaves to visit.
See Also