Click or drag to resize

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

http://www.emgu.com
Find the k-nearest match

Namespace:  Emgu.CV.Cuda
Assembly:  Emgu.CV.World (in Emgu.CV.World.dll) Version: 4.1.1.3497 (4.1.1.3497)
Syntax
public void KnnMatch(
	IInputArray queryDescriptors,
	VectorOfVectorOfDMatch matches,
	int k,
	VectorOfGpuMat masks = 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
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
masks (Optional)
Type: Emgu.CV.CudaVectorOfGpuMat
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
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