C# Class OpenCvSharp.BOWTrainer

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: OpenCvSharp.DisposableCvObject
显示文件 Open project: shimat/opencvsharp

Public Methods

Method Description
Add ( OpenCvSharp.Mat descriptors ) : void

Adds descriptors to a training set.

Clear ( ) : void

Cluster ( ) : OpenCvSharp.Mat

Clusters train descriptors.

Cluster ( OpenCvSharp.Mat descriptors ) : OpenCvSharp.Mat

Clusters train descriptors.

DescriptorsCount ( ) : int

Returns the count of all descriptors stored in the training set.

GetDescriptors ( ) : OpenCvSharp.Mat[]

Returns a training set of descriptors.

Method Details

Add() public method

Adds descriptors to a training set.
public Add ( OpenCvSharp.Mat descriptors ) : void
descriptors OpenCvSharp.Mat descriptors Descriptors to add to a training set. Each row of the descriptors matrix is a descriptor. /// The training set is clustered using clustermethod to construct the vocabulary.
return void

Clear() public method

public Clear ( ) : void
return void

Cluster() public abstract method

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

Cluster() public abstract method

Clusters train descriptors.
public abstract 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

DescriptorsCount() public method

Returns the count of all descriptors stored in the training set.
public DescriptorsCount ( ) : int
return int

GetDescriptors() public method

Returns a training set of descriptors.
public GetDescriptors ( ) : OpenCvSharp.Mat[]
return OpenCvSharp.Mat[]