OpenCV for Unity  2.6.0
Enox Software / Please refer to OpenCV official document ( http://docs.opencv.org/4.9.0/index.html ) for the details of the argument of the method.
Public Member Functions | Static Public Member Functions | Protected Member Functions | List of all members
OpenCVForUnity.Features2dModule.BOWKMeansTrainer Class Reference

kmeans -based class to train visual vocabulary using the bag of visual words approach. : More...

Inheritance diagram for OpenCVForUnity.Features2dModule.BOWKMeansTrainer:
OpenCVForUnity.Features2dModule.BOWTrainer OpenCVForUnity.DisposableOpenCVObject OpenCVForUnity.DisposableObject

Public Member Functions

 BOWKMeansTrainer (int clusterCount, TermCriteria termcrit, int attempts, int flags)
 The constructor. More...
 
 BOWKMeansTrainer (int clusterCount, TermCriteria termcrit, int attempts)
 The constructor. More...
 
 BOWKMeansTrainer (int clusterCount, TermCriteria termcrit)
 The constructor. More...
 
 BOWKMeansTrainer (int clusterCount)
 The constructor. More...
 
override Mat cluster ()
 
override Mat cluster (Mat descriptors)
 Clusters train descriptors. More...
 
- Public Member Functions inherited from OpenCVForUnity.Features2dModule.BOWTrainer
IntPtr getNativeObjAddr ()
 
void add (Mat descriptors)
 Adds descriptors to a training set. More...
 
List< MatgetDescriptors ()
 Returns a training set of descriptors. More...
 
int descriptorsCount ()
 Returns the count of all descriptors stored in the training set. More...
 
void clear ()
 
- Public Member Functions inherited from OpenCVForUnity.DisposableObject
void Dispose ()
 
void ThrowIfDisposed ()
 

Static Public Member Functions

static new BOWKMeansTrainer __fromPtr__ (IntPtr addr)
 
- Static Public Member Functions inherited from OpenCVForUnity.Features2dModule.BOWTrainer
static BOWTrainer __fromPtr__ (IntPtr addr)
 
- Static Public Member Functions inherited from OpenCVForUnity.DisposableObject
static IntPtr ThrowIfNullIntPtr (IntPtr ptr)
 

Protected Member Functions

override void Dispose (bool disposing)
 
- Protected Member Functions inherited from OpenCVForUnity.Features2dModule.BOWTrainer
override void Dispose (bool disposing)
 
- Protected Member Functions inherited from OpenCVForUnity.DisposableOpenCVObject
 DisposableOpenCVObject ()
 
 DisposableOpenCVObject (IntPtr ptr)
 
 DisposableOpenCVObject (bool isEnabledDispose)
 
 DisposableOpenCVObject (IntPtr ptr, bool isEnabledDispose)
 
- Protected Member Functions inherited from OpenCVForUnity.DisposableObject
 DisposableObject ()
 
 DisposableObject (bool isEnabledDispose)
 

Additional Inherited Members

- Properties inherited from OpenCVForUnity.DisposableObject
bool IsDisposed [get, protected set]
 
bool IsEnabledDispose [get, set]
 

Detailed Description

kmeans -based class to train visual vocabulary using the bag of visual words approach. :

Constructor & Destructor Documentation

◆ BOWKMeansTrainer() [1/4]

OpenCVForUnity.Features2dModule.BOWKMeansTrainer.BOWKMeansTrainer ( int  clusterCount,
TermCriteria  termcrit,
int  attempts,
int  flags 
)

The constructor.

See also
cv::kmeans

◆ BOWKMeansTrainer() [2/4]

OpenCVForUnity.Features2dModule.BOWKMeansTrainer.BOWKMeansTrainer ( int  clusterCount,
TermCriteria  termcrit,
int  attempts 
)

The constructor.

See also
cv::kmeans

◆ BOWKMeansTrainer() [3/4]

OpenCVForUnity.Features2dModule.BOWKMeansTrainer.BOWKMeansTrainer ( int  clusterCount,
TermCriteria  termcrit 
)

The constructor.

See also
cv::kmeans

◆ BOWKMeansTrainer() [4/4]

OpenCVForUnity.Features2dModule.BOWKMeansTrainer.BOWKMeansTrainer ( int  clusterCount)

The constructor.

See also
cv::kmeans

Member Function Documentation

◆ __fromPtr__()

static new BOWKMeansTrainer OpenCVForUnity.Features2dModule.BOWKMeansTrainer.__fromPtr__ ( IntPtr  addr)
static

◆ cluster() [1/2]

override Mat OpenCVForUnity.Features2dModule.BOWKMeansTrainer.cluster ( )
virtual

This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.

Reimplemented from OpenCVForUnity.Features2dModule.BOWTrainer.

◆ cluster() [2/2]

override Mat OpenCVForUnity.Features2dModule.BOWKMeansTrainer.cluster ( Mat  descriptors)
virtual

Clusters train descriptors.

Parameters
descriptorsDescriptors 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.

Reimplemented from OpenCVForUnity.Features2dModule.BOWTrainer.

◆ Dispose()

override void OpenCVForUnity.Features2dModule.BOWKMeansTrainer.Dispose ( bool  disposing)
protectedvirtual

The documentation for this class was generated from the following file: