OpenCV for Unity 2.6.3
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.
|
kmeans -based class to train visual vocabulary using the bag of visual words approach. : More...
Public Member Functions | |
BOWKMeansTrainer (int clusterCount, TermCriteria termcrit, int attempts, int flags) | |
The constructor. | |
BOWKMeansTrainer (int clusterCount, TermCriteria termcrit, int attempts) | |
The constructor. | |
BOWKMeansTrainer (int clusterCount, TermCriteria termcrit) | |
The constructor. | |
BOWKMeansTrainer (int clusterCount) | |
The constructor. | |
override Mat | cluster () |
override Mat | cluster (Mat descriptors) |
Clusters train descriptors. | |
BOWKMeansTrainer (int clusterCount, in Vec3d termcrit, int attempts, int flags) | |
The constructor. | |
BOWKMeansTrainer (int clusterCount, in Vec3d termcrit, int attempts) | |
The constructor. | |
BOWKMeansTrainer (int clusterCount, in Vec3d termcrit) | |
The constructor. | |
BOWKMeansTrainer (int clusterCount, in(double type, double maxCount, double epsilon) termcrit, int attempts, int flags) | |
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) | |
The constructor. | |
![]() | |
IntPtr | getNativeObjAddr () |
void | add (Mat descriptors) |
Adds descriptors to a training set. | |
List< Mat > | getDescriptors () |
Returns a training set of descriptors. | |
int | descriptorsCount () |
Returns the count of all descriptors stored in the training set. | |
void | clear () |
![]() | |
void | Dispose () |
void | ThrowIfDisposed () |
Static Public Member Functions | |
static new BOWKMeansTrainer | __fromPtr__ (IntPtr addr) |
![]() | |
static BOWTrainer | __fromPtr__ (IntPtr addr) |
![]() | |
static IntPtr | ThrowIfNullIntPtr (IntPtr ptr) |
Protected Member Functions | |
override void | Dispose (bool disposing) |
![]() | |
override void | Dispose (bool disposing) |
![]() | |
DisposableOpenCVObject () | |
DisposableOpenCVObject (IntPtr ptr) | |
DisposableOpenCVObject (bool isEnabledDispose) | |
DisposableOpenCVObject (IntPtr ptr, bool isEnabledDispose) | |
override void | Dispose (bool disposing) |
![]() | |
DisposableObject () | |
DisposableObject (bool isEnabledDispose) | |
Additional Inherited Members | |
![]() | |
![]() | |
![]() | |
bool | IsDisposed [get, protected set] |
bool | IsEnabledDispose [get, set] |
kmeans -based class to train visual vocabulary using the bag of visual words approach. :
OpenCVForUnity.Features2dModule.BOWKMeansTrainer.BOWKMeansTrainer | ( | int | clusterCount, |
TermCriteria | termcrit, | ||
int | attempts, | ||
int | flags ) |
The constructor.
OpenCVForUnity.Features2dModule.BOWKMeansTrainer.BOWKMeansTrainer | ( | int | clusterCount, |
TermCriteria | termcrit, | ||
int | attempts ) |
The constructor.
OpenCVForUnity.Features2dModule.BOWKMeansTrainer.BOWKMeansTrainer | ( | int | clusterCount, |
TermCriteria | termcrit ) |
The constructor.
OpenCVForUnity.Features2dModule.BOWKMeansTrainer.BOWKMeansTrainer | ( | int | clusterCount | ) |
The constructor.
OpenCVForUnity.Features2dModule.BOWKMeansTrainer.BOWKMeansTrainer | ( | int | clusterCount, |
in Vec3d | termcrit, | ||
int | attempts, | ||
int | flags ) |
The constructor.
OpenCVForUnity.Features2dModule.BOWKMeansTrainer.BOWKMeansTrainer | ( | int | clusterCount, |
in Vec3d | termcrit, | ||
int | attempts ) |
The constructor.
OpenCVForUnity.Features2dModule.BOWKMeansTrainer.BOWKMeansTrainer | ( | int | clusterCount, |
in Vec3d | termcrit ) |
The constructor.
OpenCVForUnity.Features2dModule.BOWKMeansTrainer.BOWKMeansTrainer | ( | int | clusterCount, |
in(double type, double maxCount, double epsilon) | termcrit, | ||
int | attempts, | ||
int | flags ) |
The constructor.
OpenCVForUnity.Features2dModule.BOWKMeansTrainer.BOWKMeansTrainer | ( | int | clusterCount, |
in(double type, double maxCount, double epsilon) | termcrit, | ||
int | attempts ) |
The constructor.
OpenCVForUnity.Features2dModule.BOWKMeansTrainer.BOWKMeansTrainer | ( | int | clusterCount, |
in(double type, double maxCount, double epsilon) | termcrit ) |
The constructor.
|
static |
|
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.
Clusters train descriptors.
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.
Reimplemented from OpenCVForUnity.Features2dModule.BOWTrainer.
|
protectedvirtual |
Reimplemented from OpenCVForUnity.DisposableObject.