Method Compute
- Namespace
- OpenCvSharp.XFeatures2D
- Assembly
- OpenCvSharp.dll
Compute(InputArray, ref KeyPoint[], OutputArray, out int[][], Mat?)
Computes an image descriptor using the set visual vocabulary.
public void Compute(InputArray image, ref KeyPoint[] keypoints, OutputArray imgDescriptor, out int[][] pointIdxsOfClusters, Mat? descriptors = null)
Parameters
imageInputArrayImage, for which the descriptor is computed.
keypointsKeyPoint[]Keypoints detected in the input image.
imgDescriptorOutputArrayComputed output image descriptor.
pointIdxsOfClustersint[][]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.
descriptorsMatDescriptors of the image keypoints that are returned if they are non-zero.
Compute(InputArray, OutputArray, out int[][])
Computes an image descriptor using the set visual vocabulary.
public void Compute(InputArray keypointDescriptors, OutputArray imgDescriptor, out int[][] pointIdxsOfClusters)
Parameters
keypointDescriptorsInputArrayComputed descriptors to match with vocabulary.
imgDescriptorOutputArrayComputed output image descriptor.
pointIdxsOfClustersint[][]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.