#include <Vocabulary.h>
Public Member Functions | |
QMultiMap< int, int > | addWords (const cv::Mat &descriptors, int objectId, bool incremental) |
void | clear () |
const cv::Mat & | indexedDescriptors () const |
void | load (QDataStream &streamPtr) |
void | save (QDataStream &streamPtr) const |
void | search (const cv::Mat &descriptors, cv::Mat &results, cv::Mat &dists, int k) |
int | size () const |
void | update () |
Vocabulary () | |
const QMultiMap< int, int > & | wordToObjects () const |
virtual | ~Vocabulary () |
Private Attributes | |
cv::flann::Index | flannIndex_ |
cv::Mat | indexedDescriptors_ |
cv::Mat | notIndexedDescriptors_ |
QVector< int > | notIndexedWordIds_ |
QMultiMap< int, int > | wordToObjects_ |
Definition at line 37 of file Vocabulary.h.
Definition at line 38 of file Vocabulary.cpp.
find_object::Vocabulary::~Vocabulary | ( | ) | [virtual] |
Definition at line 42 of file Vocabulary.cpp.
QMultiMap< int, int > find_object::Vocabulary::addWords | ( | const cv::Mat & | descriptors, |
int | objectId, | ||
bool | incremental | ||
) |
Definition at line 89 of file Vocabulary.cpp.
void find_object::Vocabulary::clear | ( | ) |
Definition at line 46 of file Vocabulary.cpp.
const cv::Mat& find_object::Vocabulary::indexedDescriptors | ( | ) | const [inline] |
Definition at line 48 of file Vocabulary.h.
void find_object::Vocabulary::load | ( | QDataStream & | streamPtr | ) |
Definition at line 73 of file Vocabulary.cpp.
void find_object::Vocabulary::save | ( | QDataStream & | streamPtr | ) | const |
Definition at line 54 of file Vocabulary.cpp.
void find_object::Vocabulary::search | ( | const cv::Mat & | descriptors, |
cv::Mat & | results, | ||
cv::Mat & | dists, | ||
int | k | ||
) |
Definition at line 258 of file Vocabulary.cpp.
int find_object::Vocabulary::size | ( | ) | const [inline] |
Definition at line 46 of file Vocabulary.h.
void find_object::Vocabulary::update | ( | ) |
Definition at line 233 of file Vocabulary.cpp.
const QMultiMap<int, int>& find_object::Vocabulary::wordToObjects | ( | ) | const [inline] |
Definition at line 47 of file Vocabulary.h.
cv::flann::Index find_object::Vocabulary::flannIndex_ [private] |
Definition at line 54 of file Vocabulary.h.
cv::Mat find_object::Vocabulary::indexedDescriptors_ [private] |
Definition at line 55 of file Vocabulary.h.
cv::Mat find_object::Vocabulary::notIndexedDescriptors_ [private] |
Definition at line 56 of file Vocabulary.h.
QVector<int> find_object::Vocabulary::notIndexedWordIds_ [private] |
Definition at line 58 of file Vocabulary.h.
QMultiMap<int, int> find_object::Vocabulary::wordToObjects_ [private] |
Definition at line 57 of file Vocabulary.h.