Click or drag to resize

DescriptorMatcherKnnMatch Method (IInputArray, IInputArray, VectorOfVectorOfDMatch, Int32, IInputArray, Boolean)

http://www.emgu.com
Finds the k best matches for each descriptor from a query set.

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

Parameters

queryDescriptors
Type: Emgu.CVIInputArray
Query set of descriptors.
trainDescriptors
Type: Emgu.CVIInputArray
Train set of descriptors. This set is not added to the train descriptors collection stored in the class object.
matches
Type: Emgu.CV.UtilVectorOfVectorOfDMatch
Matches. Each matches[i] is k or less matches for the same query descriptor.
k
Type: SystemInt32
Count of best matches found per each query descriptor or less if a query descriptor has less than k possible matches in total.
mask (Optional)
Type: Emgu.CVIInputArray
Mask specifying permissible matches between an input query and train matrices of descriptors.
compactResult (Optional)
Type: SystemBoolean
Parameter used when the mask (or masks) is not empty. If compactResult is false, the matches vector has the same size as queryDescriptors rows. If compactResult is true, the matches vector does not contain matches for fully masked-out query descriptors.
See Also