Click or drag to resize
DescriptorMatcherKnnMatch Method
http://www.emgu.com
Find the k-nearest match

Namespace: Emgu.CV.Cuda
Assembly: Emgu.CV.Cuda (in Emgu.CV.Cuda.dll) Version: 3.0.0.2161 (3.0.0.2161)
Syntax
public void KnnMatch(
	IInputArray queryDescriptors,
	IInputArray trainDescriptors,
	VectorOfVectorOfDMatch matches,
	int k,
	IInputArray mask = null,
	bool compactResult = false
)

Parameters

queryDescriptors
Type: Emgu.CVIInputArray
An n x m matrix of descriptors to be query for nearest neighbors. n is the number of descriptor and m is the size of the descriptor
trainDescriptors
Type: Emgu.CVIInputArray

[Missing <param name="trainDescriptors"/> documentation for "M:Emgu.CV.Cuda.DescriptorMatcher.KnnMatch(Emgu.CV.IInputArray,Emgu.CV.IInputArray,Emgu.CV.Util.VectorOfVectorOfDMatch,System.Int32,Emgu.CV.IInputArray,System.Boolean)"]

matches
Type: Emgu.CV.UtilVectorOfVectorOfDMatch
Matches. Each matches[i] is k or less matches for the same query descriptor.
k
Type: SystemInt32
Number of nearest neighbors to search for
mask (Optional)
Type: Emgu.CVIInputArray
Can be null if not needed. An n x 1 matrix. If 0, the query descriptor in the corresponding row will be ignored.
compactResult (Optional)
Type: SystemBoolean

[Missing <param name="compactResult"/> documentation for "M:Emgu.CV.Cuda.DescriptorMatcher.KnnMatch(Emgu.CV.IInputArray,Emgu.CV.IInputArray,Emgu.CV.Util.VectorOfVectorOfDMatch,System.Int32,Emgu.CV.IInputArray,System.Boolean)"]

See Also