#include <RecognizerThread.h>

Public Member Functions | |
| CRecognizerThread (const blortRecognizer::CameraParameter ¶ms, std::string config_root="") | |
| cv::Mat | getImage () |
| void | GetLastSifts (std::vector< blortRecognizer::Siftex > &sl) |
| void | GetSifts (std::vector< blortRecognizer::Siftex > &sl) |
| void | LearnSifts (IplImage *image, TomGine::tgModel &model, TomGine::tgPose &pose) |
| void | LoadSiftModel (const std::string &sift_file) |
| virtual BOOL | OnTask () |
| void | Recognize (IplImage *image, std::map< std::string, boost::shared_ptr< TomGine::tgPose > > &poses, std::map< std::string, double > &confs) |
| void | SaveSiftModel (const std::string &sift_file) |
| ~CRecognizerThread () | |
Private Types | |
| enum | Command { RECOGNIZE, LEARN, LOAD, SAVE, GETSIFT, GETLASTSIFT, IDLE } |
Private Attributes | |
| Command | cmd |
| std::string | config_root |
| std::map< std::string, double > | m_confs |
| CEventClass | m_evCmd |
| CEventClass | m_evData |
| IplImage * | m_image |
| std::vector < blortRecognizer::Siftex > | m_lastsiftexlist |
| std::vector< boost::shared_ptr < TomGine::tgModel > > | m_models |
| blortRecognizer::CameraParameter | m_params |
| std::map< std::string, boost::shared_ptr < TomGine::tgPose > > | m_poses |
| bool | m_quit |
| CMutexClass | m_running |
| std::string | m_sift_file |
| std::vector < blortRecognizer::Siftex > | m_siftexlist |
| cv::Mat | result |
Definition at line 11 of file RecognizerThread.h.
enum CRecognizerThread::Command [private] |
Definition at line 14 of file RecognizerThread.h.
| CRecognizerThread::CRecognizerThread | ( | const blortRecognizer::CameraParameter & | params, |
| std::string | config_root = "" |
||
| ) |
Definition at line 8 of file RecognizerThread.cpp.
Definition at line 20 of file RecognizerThread.cpp.
| cv::Mat CRecognizerThread::getImage | ( | ) | [inline] |
Definition at line 59 of file RecognizerThread.h.
| void CRecognizerThread::GetLastSifts | ( | std::vector< blortRecognizer::Siftex > & | sl | ) |
Definition at line 101 of file RecognizerThread.cpp.
| void CRecognizerThread::GetSifts | ( | std::vector< blortRecognizer::Siftex > & | sl | ) |
Definition at line 87 of file RecognizerThread.cpp.
| void CRecognizerThread::LearnSifts | ( | IplImage * | image, |
| TomGine::tgModel & | model, | ||
| TomGine::tgPose & | pose | ||
| ) |
Definition at line 50 of file RecognizerThread.cpp.
| void CRecognizerThread::LoadSiftModel | ( | const std::string & | sift_file | ) |
Definition at line 65 of file RecognizerThread.cpp.
| BOOL CRecognizerThread::OnTask | ( | ) | [virtual] |
OnTask overloaded implementation of OnTask that takes no arguments
Reimplemented from CThread.
Definition at line 115 of file RecognizerThread.cpp.
| void CRecognizerThread::Recognize | ( | IplImage * | image, |
| std::map< std::string, boost::shared_ptr< TomGine::tgPose > > & | poses, | ||
| std::map< std::string, double > & | confs | ||
| ) |
Definition at line 33 of file RecognizerThread.cpp.
| void CRecognizerThread::SaveSiftModel | ( | const std::string & | sift_file | ) |
Definition at line 76 of file RecognizerThread.cpp.
Command CRecognizerThread::cmd [private] |
Definition at line 23 of file RecognizerThread.h.
std::string CRecognizerThread::config_root [private] |
Definition at line 39 of file RecognizerThread.h.
std::map<std::string, double> CRecognizerThread::m_confs [private] |
Definition at line 29 of file RecognizerThread.h.
CEventClass CRecognizerThread::m_evCmd [private] |
Definition at line 25 of file RecognizerThread.h.
CEventClass CRecognizerThread::m_evData [private] |
Definition at line 25 of file RecognizerThread.h.
IplImage* CRecognizerThread::m_image [private] |
Definition at line 34 of file RecognizerThread.h.
std::vector<blortRecognizer::Siftex> CRecognizerThread::m_lastsiftexlist [private] |
Definition at line 35 of file RecognizerThread.h.
std::vector< boost::shared_ptr<TomGine::tgModel> > CRecognizerThread::m_models [private] |
Definition at line 33 of file RecognizerThread.h.
Definition at line 31 of file RecognizerThread.h.
std::map<std::string, boost::shared_ptr<TomGine::tgPose> > CRecognizerThread::m_poses [private] |
Definition at line 32 of file RecognizerThread.h.
bool CRecognizerThread::m_quit [private] |
Definition at line 28 of file RecognizerThread.h.
CMutexClass CRecognizerThread::m_running [private] |
Definition at line 26 of file RecognizerThread.h.
std::string CRecognizerThread::m_sift_file [private] |
Definition at line 30 of file RecognizerThread.h.
std::vector<blortRecognizer::Siftex> CRecognizerThread::m_siftexlist [private] |
Definition at line 36 of file RecognizerThread.h.
cv::Mat CRecognizerThread::result [private] |
Definition at line 38 of file RecognizerThread.h.