Show / Hide Table of Contents

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.

Inheritance
System.Object
DisposableObject
DisposableCvObject
BOWTrainer
BOWKMeansTrainer
Implements
ICvPtrHolder
Inherited Members
BOWTrainer.Add(Mat)
BOWTrainer.GetDescriptors()
BOWTrainer.DescriptorsCount()
BOWTrainer.Clear()
DisposableCvObject.ptr
DisposableCvObject.CvPtr
DisposableObject.DataHandle
DisposableObject.IsDisposed
DisposableObject.IsEnabledDispose
DisposableObject.AllocatedMemory
DisposableObject.AllocatedMemorySize
DisposableObject.Dispose()
DisposableObject.Dispose(Boolean)
DisposableObject.DisposeManaged()
DisposableObject.AllocGCHandle(Object)
DisposableObject.AllocMemory(Int32)
DisposableObject.NotifyMemoryPressure(Int64)
DisposableObject.ThrowIfDisposed()
Namespace: OpenCvSharp
Assembly: OpenCvSharp.dll
Syntax
public class BOWKMeansTrainer : BOWTrainer, ICvPtrHolder

Constructors

| Improve this Doc View Source

BOWKMeansTrainer(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 Source

Cluster()

Clusters train descriptors.

Declaration
public override Mat Cluster()
Returns
Type Description
Mat
Overrides
BOWTrainer.Cluster()
| Improve this Doc View Source

Cluster(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
BOWTrainer.Cluster(Mat)
| Improve this Doc View Source

DisposeUnmanaged()

Releases unmanaged resources

Declaration
protected override void DisposeUnmanaged()
Overrides
DisposableCvObject.DisposeUnmanaged()

Implements

ICvPtrHolder
  • Improve this Doc
  • View Source
In This Article
Back to top Generated by DocFX