Public Member Functions | Private Types | Private Attributes
CRecognizerThread Class Reference

#include <RecognizerThread.h>

Inheritance diagram for CRecognizerThread:
Inheritance graph
[legend]

List of all members.

Public Member Functions

 CRecognizerThread (const blortRecognizer::CameraParameter &params, 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

Detailed Description

Definition at line 11 of file RecognizerThread.h.


Member Enumeration Documentation

Enumerator:
RECOGNIZE 
LEARN 
LOAD 
SAVE 
GETSIFT 
GETLASTSIFT 
IDLE 

Definition at line 14 of file RecognizerThread.h.


Constructor & Destructor Documentation

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.


Member Function Documentation

cv::Mat CRecognizerThread::getImage ( ) [inline]

Definition at line 59 of file RecognizerThread.h.

Definition at line 101 of file RecognizerThread.cpp.

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.

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.


Member Data Documentation

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.

Definition at line 25 of file RecognizerThread.h.

Definition at line 25 of file RecognizerThread.h.

IplImage* CRecognizerThread::m_image [private]

Definition at line 34 of file RecognizerThread.h.

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.

Definition at line 26 of file RecognizerThread.h.

std::string CRecognizerThread::m_sift_file [private]

Definition at line 30 of file RecognizerThread.h.

Definition at line 36 of file RecognizerThread.h.

cv::Mat CRecognizerThread::result [private]

Definition at line 38 of file RecognizerThread.h.


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


blort
Author(s): Thomas Mörwald , Michael Zillich , Andreas Richtsfeld , Johann Prankl , Markus Vincze , Bence Magyar
autogenerated on Wed Aug 26 2015 15:24:12