|
OpenCV for Unity 3.0.0
Enox Software / Please refer to OpenCV official document ( http://docs.opencv.org/4.12.0/index.html ) for the details of the argument of the method.
|
Class to compute an image descriptor using the bag of visual words. More...
Public Member Functions | |
| BOWImgDescriptorExtractor (Feature2D dextractor, DescriptorMatcher dmatcher) | |
| The constructor. | |
| void | compute (Mat image, MatOfKeyPoint keypoints, Mat imgDescriptor) |
| int | descriptorSize () |
| Returns an image descriptor size if the vocabulary is set. Otherwise, it returns 0. | |
| int | descriptorType () |
| Returns an image descriptor type. | |
| IntPtr | getNativeObjAddr () |
| Mat | getVocabulary () |
| Returns the set vocabulary. | |
| void | setVocabulary (Mat vocabulary) |
| Sets a visual vocabulary. | |
Public Member Functions inherited from OpenCVForUnity.DisposableObject | |
| void | Dispose () |
| void | ThrowIfDisposed () |
Static Public Member Functions | |
| static BOWImgDescriptorExtractor | __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] |
Class to compute an image descriptor using the bag of visual words.
Such a computation consists of the following steps:
| OpenCVForUnity.Features2dModule.BOWImgDescriptorExtractor.BOWImgDescriptorExtractor | ( | Feature2D | dextractor, |
| DescriptorMatcher | dmatcher ) |
The constructor.
| dextractor | Descriptor extractor that is used to compute descriptors for an input image and its keypoints. |
| dmatcher | Descriptor matcher that is used to find the nearest word of the trained vocabulary for each keypoint descriptor of the image. |
|
static |
| void OpenCVForUnity.Features2dModule.BOWImgDescriptorExtractor.compute | ( | Mat | image, |
| MatOfKeyPoint | keypoints, | ||
| Mat | imgDescriptor ) |
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
| keypointDescriptors | Computed descriptors to match with vocabulary. |
| imgDescriptor | Computed output image descriptor. |
| pointIdxsOfClusters | Indices of keypoints that belong to the cluster. This means that pointIdxsOfClusters[i] are keypoint indices that belong to the i -th cluster (word of vocabulary) returned if it is non-zero. |
| int OpenCVForUnity.Features2dModule.BOWImgDescriptorExtractor.descriptorSize | ( | ) |
Returns an image descriptor size if the vocabulary is set. Otherwise, it returns 0.
| int OpenCVForUnity.Features2dModule.BOWImgDescriptorExtractor.descriptorType | ( | ) |
Returns an image descriptor type.
|
protectedvirtual |
Reimplemented from OpenCVForUnity.DisposableObject.
| IntPtr OpenCVForUnity.Features2dModule.BOWImgDescriptorExtractor.getNativeObjAddr | ( | ) |
| Mat OpenCVForUnity.Features2dModule.BOWImgDescriptorExtractor.getVocabulary | ( | ) |
Returns the set vocabulary.
| void OpenCVForUnity.Features2dModule.BOWImgDescriptorExtractor.setVocabulary | ( | Mat | vocabulary | ) |
Sets a visual vocabulary.
| vocabulary | Vocabulary (can be trained using the inheritor of BOWTrainer ). Each row of the vocabulary is a visual word (cluster center). |