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

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

Syntax

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

Parameters

queryDescriptors
Type: Emgu.CV.GPU..::..GpuMat<(Of <(<'T>)>)>
The query descriptors
modelDescriptors
Type: Emgu.CV.GPU..::..GpuMat<(Of <(<'T>)>)>
The model descriptors
modelIdx
Type: Emgu.CV.GPU..::..GpuMat<(Of <(<'Int32>)>)>
The model index. A n x k matrix where n = queryDescriptors.Cols
distance
Type: Emgu.CV.GPU..::..GpuMat<(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.GPU..::..GpuMat<(Of <(<'Byte>)>)>
The mask
stream
Type: Emgu.CV.GPU..::..Stream
Use a Stream to call the function asynchronously (non-blocking) or null to call the function synchronously (blocking).

See Also