http://www.emgu.com
Find the k nearest neighbour using the brute force matcher.

Namespace: Emgu.CV.OpenCL
Assembly: Emgu.CV.OpenCL (in Emgu.CV.OpenCL.dll) Version: 2.4.10.1935 (2.4.10.1935)

Syntax

C#
public void KnnMatchSingle(
	OclMat<T> queryDescriptors,
	OclMat<T> modelDescriptors,
	OclMat<int> modelIdx,
	OclMat<float> distance,
	int k,
	OclMat<byte> mask
)
Visual Basic
Public Sub KnnMatchSingle ( 
	queryDescriptors As OclMat(Of T),
	modelDescriptors As OclMat(Of T),
	modelIdx As OclMat(Of Integer),
	distance As OclMat(Of Single),
	k As Integer,
	mask As OclMat(Of Byte)
)
Visual C++
public:
void KnnMatchSingle(
	OclMat<T>^ queryDescriptors, 
	OclMat<T>^ modelDescriptors, 
	OclMat<int>^ modelIdx, 
	OclMat<float>^ distance, 
	int k, 
	OclMat<unsigned char>^ mask
)
F#
member KnnMatchSingle : 
        queryDescriptors : OclMat<'T> * 
        modelDescriptors : OclMat<'T> * 
        modelIdx : OclMat<int> * 
        distance : OclMat<float32> * 
        k : int * 
        mask : OclMat<byte> -> unit 

Parameters

queryDescriptors
Type: Emgu.CV.OpenCL..::..OclMat<(Of <(<'T>)>)>
The query descriptors
modelDescriptors
Type: Emgu.CV.OpenCL..::..OclMat<(Of <(<'T>)>)>
The model descriptors
modelIdx
Type: Emgu.CV.OpenCL..::..OclMat<(Of <(<'Int32>)>)>
The model index. A n x k matrix where n = queryDescriptors.Cols
distance
Type: Emgu.CV.OpenCL..::..OclMat<(Of <(<'Single>)>)>
The matrix where the distance valus is stored. A n x k matrix where n = queryDescriptors.Size.Height
k
Type: System..::..Int32
The number of nearest neighbours to be searched
mask
Type: Emgu.CV.OpenCL..::..OclMat<(Of <(<'Byte>)>)>
The mask

See Also