| 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: 1.0.0
Syntax public 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[][]
Parameters
- queryDescriptors
- Type: OpenCvSharpMat
[Missing <param name="queryDescriptors"/> documentation for "M:OpenCvSharp.DescriptorMatcher.KnnMatch(OpenCvSharp.Mat,System.Int32,OpenCvSharp.Mat[],System.Boolean)"]
- k
- Type: SystemInt32
[Missing <param name="k"/> documentation for "M:OpenCvSharp.DescriptorMatcher.KnnMatch(OpenCvSharp.Mat,System.Int32,OpenCvSharp.Mat[],System.Boolean)"]
- masks (Optional)
- Type: OpenCvSharpMat
[Missing <param name="masks"/> documentation for "M:OpenCvSharp.DescriptorMatcher.KnnMatch(OpenCvSharp.Mat,System.Int32,OpenCvSharp.Mat[],System.Boolean)"]
- compactResult (Optional)
- Type: SystemBoolean
[Missing <param name="compactResult"/> documentation for "M:OpenCvSharp.DescriptorMatcher.KnnMatch(OpenCvSharp.Mat,System.Int32,OpenCvSharp.Mat[],System.Boolean)"]
Return Value
Type:
DMatch[Missing <returns> documentation for "M:OpenCvSharp.DescriptorMatcher.KnnMatch(OpenCvSharp.Mat,System.Int32,OpenCvSharp.Mat[],System.Boolean)"]
See Also