Table of Contents

Method Cluster

Namespace
OpenCvSharp.XFeatures2D
Assembly
OpenCvSharp.dll

Cluster()

Clusters train descriptors.

public override Mat Cluster()

Returns

Mat

Cluster(Mat)

Clusters train descriptors.

public override Mat Cluster(Mat descriptors)

Parameters

descriptors Mat

Descriptors to cluster. Each row of the descriptors matrix is a descriptor. Descriptors are not added to the inner train descriptor set. The vocabulary consists of cluster centers. So, this method returns the vocabulary. In the first variant of the method, train descriptors stored in the object are clustered.In the second variant, input descriptors are clustered.

Returns

Mat