31 #include <QtCore/QMultiMap> 32 #include <QtCore/QVector> 33 #include <opencv2/opencv.hpp> 43 QMultiMap<int, int>
addWords(
const cv::Mat & descriptors,
int objectId);
45 void search(
const cv::Mat & descriptors, cv::Mat & results, cv::Mat & dists,
int k);
52 void save(QDataStream & streamSessionPtr)
const;
53 void load(QDataStream & streamSessionPtr);
55 bool load(
const QString & filename);
cv::Mat indexedDescriptors_
cv::Mat notIndexedDescriptors_
void save(QDataStream &streamSessionPtr) const
void load(QDataStream &streamSessionPtr)
const cv::Mat & indexedDescriptors() const
QVector< int > notIndexedWordIds_
cv::flann::Index flannIndex_
QMultiMap< int, int > addWords(const cv::Mat &descriptors, int objectId)
void search(const cv::Mat &descriptors, cv::Mat &results, cv::Mat &dists, int k)
QMultiMap< int, int > wordToObjects_
const QMultiMap< int, int > & wordToObjects() const