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.
|
Abstract base class for training the bag of visual words vocabulary from a set of descriptors. More...
Public Member Functions | |
void | add (Mat descriptors) |
Adds descriptors to a training set. | |
void | clear () |
virtual Mat | cluster () |
virtual Mat | cluster (Mat descriptors) |
Clusters train descriptors. | |
int | descriptorsCount () |
Returns the count of all descriptors stored in the training set. | |
List< Mat > | getDescriptors () |
Returns a training set of descriptors. | |
IntPtr | getNativeObjAddr () |
Public Member Functions inherited from OpenCVForUnity.DisposableObject | |
void | Dispose () |
void | ThrowIfDisposed () |
Static Public Member Functions | |
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.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 Attributes inherited from OpenCVForUnity.DisposableOpenCVObject | |
Properties inherited from OpenCVForUnity.DisposableObject | |
bool | IsDisposed [get, protected set] |
bool | IsEnabledDispose [get, set] |
Abstract base class for training the bag of visual words vocabulary from a set of descriptors.
For details, see, for example, Visual Categorization with Bags of Keypoints by Gabriella Csurka, Christopher R. Dance, Lixin Fan, Jutta Willamowski, Cedric Bray, 2004. :
|
static |
void OpenCVForUnity.Features2dModule.BOWTrainer.add | ( | Mat | descriptors | ) |
Adds descriptors to a training set.
descriptors | Descriptors to add to a training set. Each row of the descriptors matrix is a descriptor. |
The training set is clustered using clustermethod to construct the vocabulary.
void OpenCVForUnity.Features2dModule.BOWTrainer.clear | ( | ) |
|
virtual |
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
Reimplemented in OpenCVForUnity.Features2dModule.BOWKMeansTrainer.
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 in OpenCVForUnity.Features2dModule.BOWKMeansTrainer.
int OpenCVForUnity.Features2dModule.BOWTrainer.descriptorsCount | ( | ) |
Returns the count of all descriptors stored in the training set.
|
protectedvirtual |
Reimplemented from OpenCVForUnity.DisposableObject.
List< Mat > OpenCVForUnity.Features2dModule.BOWTrainer.getDescriptors | ( | ) |
Returns a training set of descriptors.
IntPtr OpenCVForUnity.Features2dModule.BOWTrainer.getNativeObjAddr | ( | ) |