Class BOWKMeansTrainer
Brute-force descriptor matcher. For each descriptor in the first set, this matcher finds the closest descriptor in the second set by trying each one.
Implements
Inherited Members
Namespace: OpenCvSharp
Assembly: OpenCvSharp.dll
Syntax
public class BOWKMeansTrainer : BOWTrainer, ICvPtrHolder
Constructors
| Improve this Doc View SourceBOWKMeansTrainer(Int32, Nullable<TermCriteria>, Int32, KMeansFlags)
The constructor.
Declaration
public BOWKMeansTrainer(int clusterCount, TermCriteria? termcrit = null, int attempts = 3, KMeansFlags flags = KMeansFlags.PpCenters)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | clusterCount | |
System.Nullable<OpenCvSharp.TermCriteria> | termcrit | |
System.Int32 | attempts | |
KMeansFlags | flags |
Methods
| Improve this Doc View SourceCluster()
Clusters train descriptors.
Declaration
public override Mat Cluster()
Returns
Type | Description |
---|---|
Mat |
Overrides
| Improve this Doc View SourceCluster(Mat)
Clusters train descriptors.
Declaration
public override Mat Cluster(Mat descriptors)
Parameters
Type | Name | Description |
---|---|---|
Mat | descriptors | 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
Type | Description |
---|---|
Mat |
Overrides
| Improve this Doc View SourceDisposeUnmanaged()
Releases unmanaged resources
Declaration
protected override void DisposeUnmanaged()