Public Member Functions | Private Attributes | List of all members
find_object::Vocabulary Class Reference

#include <Vocabulary.h>

Public Member Functions

QMultiMap< int, int > addWords (const cv::Mat &descriptors, int objectId)
 
void clear ()
 
int dim () const
 
const cv::Mat & indexedDescriptors () const
 
void load (QDataStream &streamSessionPtr)
 
bool load (const QString &filename)
 
void save (QDataStream &streamSessionPtr) const
 
bool save (const QString &filename) const
 
void search (const cv::Mat &descriptors, cv::Mat &results, cv::Mat &dists, int k)
 
int size () const
 
int type () 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_
 

Detailed Description

Definition at line 37 of file Vocabulary.h.

Constructor & Destructor Documentation

find_object::Vocabulary::Vocabulary ( )

Definition at line 48 of file Vocabulary.cpp.

find_object::Vocabulary::~Vocabulary ( )
virtual

Definition at line 52 of file Vocabulary.cpp.

Member Function Documentation

QMultiMap< int, int > find_object::Vocabulary::addWords ( const cv::Mat &  descriptors,
int  objectId 
)

Definition at line 148 of file Vocabulary.cpp.

void find_object::Vocabulary::clear ( )

Definition at line 56 of file Vocabulary.cpp.

int find_object::Vocabulary::dim ( ) const
inline

Definition at line 47 of file Vocabulary.h.

const cv::Mat& find_object::Vocabulary::indexedDescriptors ( ) const
inline

Definition at line 50 of file Vocabulary.h.

void find_object::Vocabulary::load ( QDataStream &  streamSessionPtr)

Definition at line 87 of file Vocabulary.cpp.

bool find_object::Vocabulary::load ( const QString &  filename)

Definition at line 119 of file Vocabulary.cpp.

void find_object::Vocabulary::save ( QDataStream &  streamSessionPtr) const

Definition at line 73 of file Vocabulary.cpp.

bool find_object::Vocabulary::save ( const QString &  filename) const

Definition at line 103 of file Vocabulary.cpp.

void find_object::Vocabulary::search ( const cv::Mat &  descriptors,
cv::Mat &  results,
cv::Mat &  dists,
int  k 
)

Definition at line 371 of file Vocabulary.cpp.

int find_object::Vocabulary::size ( ) const
inline

Definition at line 46 of file Vocabulary.h.

int find_object::Vocabulary::type ( ) const
inline

Definition at line 48 of file Vocabulary.h.

void find_object::Vocabulary::update ( )

Definition at line 342 of file Vocabulary.cpp.

const QMultiMap<int, int>& find_object::Vocabulary::wordToObjects ( ) const
inline

Definition at line 49 of file Vocabulary.h.

Member Data Documentation

cv::flann::Index find_object::Vocabulary::flannIndex_
private

Definition at line 58 of file Vocabulary.h.

cv::Mat find_object::Vocabulary::indexedDescriptors_
private

Definition at line 59 of file Vocabulary.h.

cv::Mat find_object::Vocabulary::notIndexedDescriptors_
private

Definition at line 60 of file Vocabulary.h.

QVector<int> find_object::Vocabulary::notIndexedWordIds_
private

Definition at line 62 of file Vocabulary.h.

QMultiMap<int, int> find_object::Vocabulary::wordToObjects_
private

Definition at line 61 of file Vocabulary.h.


The documentation for this class was generated from the following files:


find_object_2d
Author(s): Mathieu Labbe
autogenerated on Thu Jun 6 2019 19:22:27