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
public static void FindFeatures( CvFeatureTree tr, CvMat desc, CvMat results, CvMat dist )
Parameters
- tr
- Type: OpenCvSharpCvFeatureTree
pointer to kd-tree index of reference vectors. - 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.
See Also