OpenCV for Unity 2.6.4
Enox Software / Please refer to OpenCV official document ( http://docs.opencv.org/4.10.0/index.html ) for the details of the argument of the method.
Loading...
Searching...
No Matches
OpenCVForUnity.Features2dModule.BOWKMeansTrainer Class Reference

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

Public Member Functions

 BOWKMeansTrainer (int clusterCount)
 The constructor.
 
 BOWKMeansTrainer (int clusterCount, in Vec3d termcrit)
 The constructor.
 
 BOWKMeansTrainer (int clusterCount, in Vec3d termcrit, int attempts)
 The constructor.
 
 BOWKMeansTrainer (int clusterCount, in Vec3d termcrit, int attempts, int flags)
 The constructor.
 
 BOWKMeansTrainer (int clusterCount, in(double type, double maxCount, double epsilon) termcrit)
 The constructor.
 
 BOWKMeansTrainer (int clusterCount, in(double type, double maxCount, double epsilon) termcrit, int attempts)
 The constructor.
 
 BOWKMeansTrainer (int clusterCount, in(double type, double maxCount, double epsilon) termcrit, int attempts, int flags)
 The constructor.
 
 BOWKMeansTrainer (int clusterCount, TermCriteria termcrit)
 The constructor.
 
 BOWKMeansTrainer (int clusterCount, TermCriteria termcrit, int attempts)
 The constructor.
 
 BOWKMeansTrainer (int clusterCount, TermCriteria termcrit, int attempts, int flags)
 The constructor.
 
override Mat cluster ()
 
override Mat cluster (Mat descriptors)
 Clusters train descriptors.
 
- Public Member Functions inherited from OpenCVForUnity.Features2dModule.BOWTrainer
void add (Mat descriptors)
 Adds descriptors to a training set.
 
void clear ()
 
int descriptorsCount ()
 Returns the count of all descriptors stored in the training set.
 
List< MatgetDescriptors ()
 Returns a training set of descriptors.
 
IntPtr getNativeObjAddr ()
 
- 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 (bool isEnabledDispose)
 
 DisposableOpenCVObject (IntPtr ptr)
 
 DisposableOpenCVObject (IntPtr ptr, bool isEnabledDispose)
 
override void Dispose (bool disposing)
 
- Protected Member Functions inherited from OpenCVForUnity.DisposableObject
 DisposableObject ()
 
 DisposableObject (bool isEnabledDispose)
 

Additional Inherited Members

- Package Functions inherited from OpenCVForUnity.Features2dModule.BOWTrainer
- Package Attributes inherited from OpenCVForUnity.DisposableOpenCVObject
- 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/10]

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

The constructor.

See also
cv::kmeans

◆ BOWKMeansTrainer() [2/10]

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

The constructor.

See also
cv::kmeans

◆ BOWKMeansTrainer() [3/10]

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

The constructor.

See also
cv::kmeans

◆ BOWKMeansTrainer() [4/10]

OpenCVForUnity.Features2dModule.BOWKMeansTrainer.BOWKMeansTrainer ( int clusterCount)

The constructor.

See also
cv::kmeans

◆ BOWKMeansTrainer() [5/10]

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

The constructor.

See also
cv::kmeans

◆ BOWKMeansTrainer() [6/10]

OpenCVForUnity.Features2dModule.BOWKMeansTrainer.BOWKMeansTrainer ( int clusterCount,
in Vec3d termcrit,
int attempts )

The constructor.

See also
cv::kmeans

◆ BOWKMeansTrainer() [7/10]

OpenCVForUnity.Features2dModule.BOWKMeansTrainer.BOWKMeansTrainer ( int clusterCount,
in Vec3d termcrit )

The constructor.

See also
cv::kmeans

◆ BOWKMeansTrainer() [8/10]

OpenCVForUnity.Features2dModule.BOWKMeansTrainer.BOWKMeansTrainer ( int clusterCount,
in(double type, double maxCount, double epsilon) termcrit,
int attempts,
int flags )

The constructor.

See also
cv::kmeans

◆ BOWKMeansTrainer() [9/10]

OpenCVForUnity.Features2dModule.BOWKMeansTrainer.BOWKMeansTrainer ( int clusterCount,
in(double type, double maxCount, double epsilon) termcrit,
int attempts )

The constructor.

See also
cv::kmeans

◆ BOWKMeansTrainer() [10/10]

OpenCVForUnity.Features2dModule.BOWKMeansTrainer.BOWKMeansTrainer ( int clusterCount,
in(double type, double maxCount, double epsilon) termcrit )

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

Reimplemented from OpenCVForUnity.DisposableObject.


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