﻿cvFindFeatures Method (tr, desc, results, dist, k, emax)
Emgu CV Library Documentation
cvFindFeatures Method (tr, desc, results, dist, k, emax)
NamespacesEmgu.CVCvInvokecvFindFeatures(IntPtr, IntPtr, IntPtr, IntPtr, Int32, Int32)

www.emgu.com/wiki
Finds (with high probability) the k nearest neighbors in tr for each of the given (row-)vectors in desc, using best-bin-first searching ([Beis97]). The complexity of the entire operation is at most O(m*emax*log2(n)), where n is the number of vectors in the tree
Declaration Syntax
 C# Visual Basic Visual C++
```public static void cvFindFeatures(
IntPtr tr,
IntPtr desc,
IntPtr results,
IntPtr dist,
int k,
int emax
)```
```Public Shared Sub cvFindFeatures ( _
tr As IntPtr, _
desc As IntPtr, _
results As IntPtr, _
dist As IntPtr, _
k As Integer, _
emax As Integer _
)```
```public:
static void cvFindFeatures(
IntPtr tr,
IntPtr desc,
IntPtr results,
IntPtr dist,
int k,
int emax
)```
Parameters
tr (IntPtr)
Pointer to kd-tree index of reference vectors
desc (IntPtr)
m x d matrix of (row-)vectors to find the nearest neighbors of
results (IntPtr)
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 (IntPtr)
m x k matrix of distances to k nearest neighbors
k (Int32)
The number of neighbors to find
emax (Int32)
The maximum number of leaves to visit

Assembly: Emgu.CV (Module: Emgu.CV) Version: 1.5.0.0 (1.5.0.0)