class cv::DescriptorMatcher::DescriptorCollection
Class to work with descriptors from several images as with one merged matrix. It is used e.g. in FlannBasedMatcher.
#include <features2d.hpp> class DescriptorCollection { public: // construction DescriptorCollection(); DescriptorCollection(const DescriptorCollection& collection); // methods virtual void clear(); const Mat getDescriptor( int imgIdx, int localDescIdx ) const; const Mat getDescriptor(int globalDescIdx) const; const Mat& getDescriptors() const; void getLocalIdx( int globalDescIdx, int& imgIdx, int& localDescIdx ) const; void set(const std::vector<Mat>& descriptors); int size() const; protected: // fields Mat mergedDescriptors; std::vector<int> startIdxs; };