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. 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< Mat > | getDescriptors () |
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] |
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.
|
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.DisposableOpenCVObject.