DescriptorMatcherKnnMatch Method (Mat, Int32, Mat, Boolean)
|
Find k best matches for each query descriptor (in increasing order of distances).
compactResult is used when mask is not empty. If compactResult is false matches
vector will have the same size as queryDescriptors rows. If compactResult is true
matches vector will not contain matches for fully masked out query descriptors.
Namespace:
OpenCvSharp
Assembly:
OpenCvSharp (in OpenCvSharp.dll) Version: 3.4.1.20180605-33-CaRLSharp
Syntaxpublic DMatch[][] KnnMatch(
Mat queryDescriptors,
int k,
Mat[] masks = null,
bool compactResult = false
)
Public Function KnnMatch (
queryDescriptors As Mat,
k As Integer,
Optional masks As Mat() = Nothing,
Optional compactResult As Boolean = false
) As DMatch()()
public:
array<array<DMatch>^>^ KnnMatch(
Mat^ queryDescriptors,
int k,
array<Mat^>^ masks = nullptr,
bool compactResult = false
)
member KnnMatch :
queryDescriptors : Mat *
k : int *
?masks : Mat[] *
?compactResult : bool
(* Defaults:
let _masks = defaultArg masks null
let _compactResult = defaultArg compactResult false
*)
-> DMatch[][]
function KnnMatch(queryDescriptors, k, masks, compactResult);
Parameters
- queryDescriptors
- Type: OpenCvSharpMat
- k
- Type: SystemInt32
- masks (Optional)
- Type: OpenCvSharpMat
- compactResult (Optional)
- Type: SystemBoolean
Return Value
Type:
DMatch
See Also