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 loadVocabularyOnly=false)
 
bool load (const QString &filename)
 
void save (QDataStream &streamSessionPtr, bool saveVocabularyOnly=false) 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

◆ Vocabulary()

find_object::Vocabulary::Vocabulary ( )

Definition at line 50 of file Vocabulary.cpp.

◆ ~Vocabulary()

find_object::Vocabulary::~Vocabulary ( )
virtual

Definition at line 54 of file Vocabulary.cpp.

Member Function Documentation

◆ addWords()

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

Definition at line 211 of file Vocabulary.cpp.

◆ clear()

void find_object::Vocabulary::clear ( )

Definition at line 58 of file Vocabulary.cpp.

◆ dim()

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

Definition at line 47 of file Vocabulary.h.

◆ indexedDescriptors()

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

Definition at line 50 of file Vocabulary.h.

◆ load() [1/2]

void find_object::Vocabulary::load ( QDataStream &  streamSessionPtr,
bool  loadVocabularyOnly = false 
)

Definition at line 112 of file Vocabulary.cpp.

◆ load() [2/2]

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

Definition at line 182 of file Vocabulary.cpp.

◆ save() [1/2]

void find_object::Vocabulary::save ( QDataStream &  streamSessionPtr,
bool  saveVocabularyOnly = false 
) const

Definition at line 75 of file Vocabulary.cpp.

◆ save() [2/2]

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

Definition at line 166 of file Vocabulary.cpp.

◆ search()

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

Definition at line 434 of file Vocabulary.cpp.

◆ size()

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

Definition at line 46 of file Vocabulary.h.

◆ type()

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

Definition at line 48 of file Vocabulary.h.

◆ update()

void find_object::Vocabulary::update ( )

Definition at line 405 of file Vocabulary.cpp.

◆ wordToObjects()

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

Definition at line 49 of file Vocabulary.h.

Member Data Documentation

◆ flannIndex_

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

Definition at line 58 of file Vocabulary.h.

◆ indexedDescriptors_

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

Definition at line 59 of file Vocabulary.h.

◆ notIndexedDescriptors_

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

Definition at line 60 of file Vocabulary.h.

◆ notIndexedWordIds_

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

Definition at line 62 of file Vocabulary.h.

◆ wordToObjects_

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 Mon Dec 12 2022 03:20:10