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, TomGine::tgPose &pose, float &conf)
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
float m_conf
CEventClass m_evCmd
CEventClass m_evData
IplImage * m_image
std::vector
< blortRecognizer::Siftex
m_lastsiftexlist
TomGine::tgModel m_model
blortRecognizer::CameraParameter m_params
TomGine::tgPose m_pose
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 61 of file RecognizerThread.h.

Definition at line 99 of file RecognizerThread.cpp.

Definition at line 85 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 63 of file RecognizerThread.cpp.

OnTask overloaded implementation of OnTask that takes no arguments

Reimplemented from CThread.

Definition at line 113 of file RecognizerThread.cpp.

void CRecognizerThread::Recognize ( IplImage *  image,
TomGine::tgPose pose,
float &  conf 
)

Definition at line 33 of file RecognizerThread.cpp.

void CRecognizerThread::SaveSiftModel ( const std::string  sift_file)

Definition at line 74 of file RecognizerThread.cpp.


Member Data Documentation

Definition at line 23 of file RecognizerThread.h.

std::string CRecognizerThread::config_root [private]

Definition at line 40 of file RecognizerThread.h.

float CRecognizerThread::m_conf [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.

Definition at line 33 of file RecognizerThread.h.

Definition at line 31 of file RecognizerThread.h.

Definition at line 32 of file RecognizerThread.h.

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 39 of file RecognizerThread.h.


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


blort
Author(s): Michael Zillich, Thomas Mörwald, Johann Prankl, Andreas Richtsfeld, Bence Magyar (ROS version)
autogenerated on Thu Jan 2 2014 11:38:26