http://www.emgu.com
Assembly: Emgu.CV (in Emgu.CV.dll) Version: 2.3.0.1416 (2.3.0.1416)
Match the Image feature from the observed image to the features from the model image using brute force matching
Namespace: Emgu.CV.Features2DAssembly: Emgu.CV (in Emgu.CV.dll) Version: 2.3.0.1416 (2.3.0.1416)
Syntax
C# |
---|
[ObsoleteAttribute("Please use either the BruteForceMatcher or Flann.Index to match descriptors. This function will be removed in the next release.")] public static void DescriptorMatchKnn( Matrix<float> modelDescriptors, Matrix<float> observedDescriptors, int k, out Matrix<int> indices, out Matrix<float> dist ) |
Visual Basic |
---|
<ObsoleteAttribute("Please use either the BruteForceMatcher or Flann.Index to match descriptors. This function will be removed in the next release.")> _ Public Shared Sub DescriptorMatchKnn ( _ modelDescriptors As Matrix(Of Single), _ observedDescriptors As Matrix(Of Single), _ k As Integer, _ <OutAttribute> ByRef indices As Matrix(Of Integer), _ <OutAttribute> ByRef dist As Matrix(Of Single) _ ) |
Visual C++ |
---|
[ObsoleteAttribute(L"Please use either the BruteForceMatcher or Flann.Index to match descriptors. This function will be removed in the next release.")] public: static void DescriptorMatchKnn( Matrix<float>^ modelDescriptors, Matrix<float>^ observedDescriptors, int k, [OutAttribute] Matrix<int>^% indices, [OutAttribute] Matrix<float>^% dist ) |
Parameters
- modelDescriptors
- Type: Emgu.CV..::..Matrix<(Of <(<'Single>)>)>
The descriptors from the model image
- observedDescriptors
- Type: Emgu.CV..::..Matrix<(Of <(<'Single>)>)>
The descriptors from the observed image
- k
- Type: System..::..Int32
The number of neighbors to find
- indices
- Type: Emgu.CV..::..Matrix<(Of <(<'Int32>)>)>%
The match indices matrix. indices[i, k] = j, indicates the j-th model descriptor is the k-th closest match to the i-th observed descriptor
- dist
- Type: Emgu.CV..::..Matrix<(Of <(<'Single>)>)>%
The distance matrix. dist[i,k] = d, indicates the distance bewtween the corresponding match is d