#include <features2d.hpp>
Public Member Functions | |
DescriptorCollection () | |
DescriptorCollection (const DescriptorCollection &collection) | |
virtual | ~DescriptorCollection () |
void | set (const std::vector< Mat > &descriptors) |
virtual void | clear () |
const Mat & | getDescriptors () const |
Mat | getDescriptor (int imgIdx, int localDescIdx) const |
Mat | getDescriptor (int globalDescIdx) const |
void | getLocalIdx (int globalDescIdx, int &imgIdx, int &localDescIdx) const |
int | size () const |
Protected Attributes | |
Mat | mergedDescriptors |
std::vector< int > | startIdxs |
Class to work with descriptors from several images as with one merged matrix. It is used e.g. in FlannBasedMatcher.
cv::DescriptorMatcher::DescriptorCollection::DescriptorCollection | ( | ) |
cv::DescriptorMatcher::DescriptorCollection::DescriptorCollection | ( | const DescriptorCollection & | collection | ) |
|
virtual |
|
virtual |
Mat cv::DescriptorMatcher::DescriptorCollection::getDescriptor | ( | int | globalDescIdx | ) | const |
Mat cv::DescriptorMatcher::DescriptorCollection::getDescriptor | ( | int | imgIdx, |
int | localDescIdx | ||
) | const |
const Mat& cv::DescriptorMatcher::DescriptorCollection::getDescriptors | ( | ) | const |
void cv::DescriptorMatcher::DescriptorCollection::getLocalIdx | ( | int | globalDescIdx, |
int & | imgIdx, | ||
int & | localDescIdx | ||
) | const |
void cv::DescriptorMatcher::DescriptorCollection::set | ( | const std::vector< Mat > & | descriptors | ) |
int cv::DescriptorMatcher::DescriptorCollection::size | ( | ) | const |
|
protected |
|
protected |