C# Class OpenCvSharp.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.
Inheritance: BOWTrainer
Mostra file Open project: shimat/opencvsharp

Public Methods

Method Description
BOWKMeansTrainer ( int clusterCount, OpenCvSharp.TermCriteria termcrit = null, int attempts = 3, KMeansFlags flags = KMeansFlags.PpCenters ) : System

Cluster ( ) : OpenCvSharp.Mat

Clusters train descriptors.

Cluster ( OpenCvSharp.Mat descriptors ) : OpenCvSharp.Mat

Clusters train descriptors.

Protected Methods

Method Description
Dispose ( bool disposing ) : void

Releases the resources

Method Details

BOWKMeansTrainer() public method

public BOWKMeansTrainer ( int clusterCount, OpenCvSharp.TermCriteria termcrit = null, int attempts = 3, KMeansFlags flags = KMeansFlags.PpCenters ) : System
clusterCount int
termcrit OpenCvSharp.TermCriteria
attempts int
flags KMeansFlags
return System

Cluster() public method

Clusters train descriptors.
public Cluster ( ) : OpenCvSharp.Mat
return OpenCvSharp.Mat

Cluster() public method

Clusters train descriptors.
public Cluster ( OpenCvSharp.Mat descriptors ) : OpenCvSharp.Mat
descriptors OpenCvSharp.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.
return OpenCvSharp.Mat

Dispose() protected method

Releases the resources
protected Dispose ( bool disposing ) : void
disposing bool /// If disposing equals true, the method has been called directly or indirectly by a user's code. Managed and unmanaged resources can be disposed. /// If false, the method has been called by the runtime from inside the finalizer and you should not reference other objects. Only unmanaged resources can be disposed. ///
return void