http://www.emgu.com
Assembly: Emgu.CV (in Emgu.CV.dll) Version: 2.3.0.1416 (2.3.0.1416)
Find the k-nearest match for DistanceType of L1F32 or L2F32
Namespace: Emgu.CV.Features2DAssembly: Emgu.CV (in Emgu.CV.dll) Version: 2.3.0.1416 (2.3.0.1416)
Syntax
C# |
---|
public void KnnMatch( Matrix<float> queryDescriptor, Matrix<int> trainIdx, Matrix<float> distance, int k, Matrix<byte> mask ) |
Visual Basic |
---|
Public Sub KnnMatch ( _ queryDescriptor As Matrix(Of Single), _ trainIdx As Matrix(Of Integer), _ distance As Matrix(Of Single), _ k As Integer, _ mask As Matrix(Of Byte) _ ) |
Visual C++ |
---|
public: void KnnMatch( Matrix<float>^ queryDescriptor, Matrix<int>^ trainIdx, Matrix<float>^ distance, int k, Matrix<unsigned char>^ mask ) |
Parameters
- queryDescriptor
- Type: Emgu.CV..::..Matrix<(Of <(<'Single>)>)>
An n x m matrix of descriptors to be query for nearest neighbours. n is the number of descriptor and m is the size of the descriptor
- trainIdx
- Type: Emgu.CV..::..Matrix<(Of <(<'Int32>)>)>
The resulting n x k matrix of descriptor index from the training descriptors
- distance
- Type: Emgu.CV..::..Matrix<(Of <(<'Single>)>)>
The resulting n x k matrix of distance value from the training descriptors
- k
- Type: System..::..Int32
Number of nearest neighbors to search for
- mask
- Type: Emgu.CV..::..Matrix<(Of <(<'Byte>)>)>
Can be null if not needed. An n x 1 matrix. If 0, the query descriptor in the corresponding row will be ignored.