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.2.1777 (2.4.2.1777)

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
)

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