DescriptorMatcherKnnMatch Method (IInputArray, VectorOfVectorOfDMatch, Int32, IInputArray, Boolean) |
http://www.emgu.com
Find the k-nearest match
Namespace:
Emgu.CV.Features2D
Assembly:
Emgu.CV.World (in Emgu.CV.World.dll) Version: 4.1.0.3408 (4.1.0.3408)
Syntaxpublic void KnnMatch(
IInputArray queryDescriptor,
VectorOfVectorOfDMatch matches,
int k,
IInputArray mask = null,
bool compactResult = false
)
Public Sub KnnMatch (
queryDescriptor As IInputArray,
matches As VectorOfVectorOfDMatch,
k As Integer,
Optional mask As IInputArray = Nothing,
Optional compactResult As Boolean = false
)
public:
void KnnMatch(
IInputArray^ queryDescriptor,
VectorOfVectorOfDMatch^ matches,
int k,
IInputArray^ mask = nullptr,
bool compactResult = false
)
member KnnMatch :
queryDescriptor : IInputArray *
matches : VectorOfVectorOfDMatch *
k : int *
?mask : IInputArray *
?compactResult : bool
(* Defaults:
let _mask = defaultArg mask null
let _compactResult = defaultArg compactResult false
*)
-> unit
Parameters
- queryDescriptor
- Type: Emgu.CVIInputArray
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 - 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
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