Table of Contents

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

image InputArray

Image, for which the descriptor is computed.

keypoints KeyPoint[]

Keypoints detected in the input image.

imgDescriptor OutputArray

Computed output image descriptor.

pointIdxsOfClusters int[][]

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 Mat

Descriptors 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

keypointDescriptors InputArray

Computed descriptors to match with vocabulary.

imgDescriptor OutputArray

Computed output image descriptor.

pointIdxsOfClusters int[][]

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.