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.0.3408 (4.1.0.3408)
Syntaxpublic void KnnMatch(
IInputArray queryDescriptors,
VectorOfVectorOfDMatch matches,
int k,
VectorOfGpuMat masks = null,
bool compactResult = false
)
Public Sub KnnMatch (
queryDescriptors As IInputArray,
matches As VectorOfVectorOfDMatch,
k As Integer,
Optional masks As VectorOfGpuMat = Nothing,
Optional compactResult As Boolean = false
)
public:
void KnnMatch(
IInputArray^ queryDescriptors,
VectorOfVectorOfDMatch^ matches,
int k,
VectorOfGpuMat^ masks = nullptr,
bool compactResult = false
)
member KnnMatch :
queryDescriptors : IInputArray *
matches : VectorOfVectorOfDMatch *
k : int *
?masks : VectorOfGpuMat *
?compactResult : bool
(* Defaults:
let _masks = defaultArg masks null
let _compactResult = defaultArg compactResult false
*)
-> unit
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