http://www.emgu.com
Assembly: Emgu.CV.GPU (in Emgu.CV.GPU.dll) Version: 2.3.0.1416 (2.3.0.1416)
For L1 and L2 distance type, find the k nearest neighbour using the brute force matcher.
Namespace: Emgu.CV.GPUAssembly: Emgu.CV.GPU (in Emgu.CV.GPU.dll) Version: 2.3.0.1416 (2.3.0.1416)
Syntax
C# |
---|
public void KnnMatch( GpuMat<float> queryDescriptors, GpuMat<float> modelDescriptors, GpuMat<int> modelIdx, GpuMat<float> distance, int k, GpuMat<byte> mask ) |
Visual Basic |
---|
Public Sub KnnMatch ( _ queryDescriptors As GpuMat(Of Single), _ modelDescriptors As GpuMat(Of Single), _ modelIdx As GpuMat(Of Integer), _ distance As GpuMat(Of Single), _ k As Integer, _ mask As GpuMat(Of Byte) _ ) |
Visual C++ |
---|
public: void KnnMatch( GpuMat<float>^ queryDescriptors, GpuMat<float>^ modelDescriptors, GpuMat<int>^ modelIdx, GpuMat<float>^ distance, int k, GpuMat<unsigned char>^ mask ) |
Parameters
- queryDescriptors
- Type: Emgu.CV.GPU..::..GpuMat<(Of <(<'Single>)>)>
The query descriptors
- modelDescriptors
- Type: Emgu.CV.GPU..::..GpuMat<(Of <(<'Single>)>)>
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