| BOWImgDescriptorExtractorCompute Method (InputArray, KeyPoint, OutputArray, Int32, Mat) |
Computes an image descriptor using the set visual vocabulary.
Namespace:
OpenCvSharp
Assembly:
OpenCvSharp (in OpenCvSharp.dll) Version: 1.0.0
Syntax public void Compute(
InputArray image,
ref KeyPoint[] keypoints,
OutputArray imgDescriptor,
out int[][] pointIdxsOfClusters,
Mat descriptors = null
)
Public Sub Compute (
image As InputArray,
ByRef keypoints As KeyPoint(),
imgDescriptor As OutputArray,
<OutAttribute> ByRef pointIdxsOfClusters As Integer()(),
Optional descriptors As Mat = Nothing
)
public:
void Compute(
InputArray^ image,
array<KeyPoint>^% keypoints,
OutputArray^ imgDescriptor,
[OutAttribute] array<array<int>^>^% pointIdxsOfClusters,
Mat^ descriptors = nullptr
)
member Compute :
image : InputArray *
keypoints : KeyPoint[] byref *
imgDescriptor : OutputArray *
pointIdxsOfClusters : int[][] byref *
?descriptors : Mat
(* Defaults:
let _descriptors = defaultArg descriptors null
*)
-> unit
Parameters
- image
- Type: OpenCvSharpInputArray
Image, for which the descriptor is computed. - keypoints
- Type: OpenCvSharpKeyPoint
Keypoints detected in the input image. - imgDescriptor
- Type: OpenCvSharpOutputArray
Computed output image descriptor. - pointIdxsOfClusters
- Type: SystemInt32
pointIdxsOfClusters Indices of keypoints that belong to the cluster.
This means that pointIdxsOfClusters[i] are keypoint indices that belong to the i -th cluster(word of vocabulary) returned if it is non-zero. - descriptors (Optional)
- Type: OpenCvSharpMat
Descriptors of the image keypoints that are returned if they are non-zero.
See Also