DescriptorMatcherKnnMatch Method |
http://www.emgu.com
Find the k-nearest match
Namespace: Emgu.CV.CudaAssembly: Emgu.CV.Cuda (in Emgu.CV.Cuda.dll) Version: 3.0.0.2161 (3.0.0.2161)
Syntaxpublic void KnnMatch(
IInputArray queryDescriptors,
IInputArray trainDescriptors,
VectorOfVectorOfDMatch matches,
int k,
IInputArray mask = null,
bool compactResult = false
)
Public Sub KnnMatch (
queryDescriptors As IInputArray,
trainDescriptors As IInputArray,
matches As VectorOfVectorOfDMatch,
k As Integer,
Optional mask As IInputArray = Nothing,
Optional compactResult As Boolean = false
)
public:
void KnnMatch(
IInputArray^ queryDescriptors,
IInputArray^ trainDescriptors,
VectorOfVectorOfDMatch^ matches,
int k,
IInputArray^ mask = nullptr,
bool compactResult = false
)
member KnnMatch :
queryDescriptors : IInputArray *
trainDescriptors : IInputArray *
matches : VectorOfVectorOfDMatch *
k : int *
?mask : IInputArray *
?compactResult : bool
(* Defaults:
let _mask = defaultArg mask 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 - 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