HMMModule Class Reference
[Processing modules]

A ProcessModule. More...

#include <HMMModule.h>

Inheritance diagram for HMMModule:

Inheritance graph
[legend]
Collaboration diagram for HMMModule:

Collaboration graph
[legend]

List of all members.

Public Member Functions

 HMMModule (AbstractModule *successor)
virtual ~HMMModule ()
 Destructor.
virtual void processFrameData (IFrameData *data)
int addGesture (int nClusters, int nStates)
void delGesture (size_t gestureID)
void clearGestures ()
void trainGesture (size_t gestureID)
void stopTraining ()
 stops training mode
bool serializeGesture (ConfigManager &gestureFile, std::string gestureName, int gestureId)
bool deserializeGesture (ConfigSection &section, std::string gestureName)


Detailed Description

A ProcessModule.

Classifies motion data to match trainable gestures using a k-mean-filter and HMMs

Definition at line 19 of file HMMModule.h.


Constructor & Destructor Documentation

HMMModule::HMMModule ( AbstractModule successor  ) 

Parameters:
successor Next module in chain

Definition at line 10 of file HMMModule.cpp.

HMMModule::~HMMModule (  )  [virtual]

Destructor.

Definition at line 18 of file HMMModule.cpp.


Member Function Documentation

int HMMModule::addGesture ( int  nClusters,
int  nStates 
)

Add a gesture classificator to list

Parameters:
nClusters number of clusters for KMean
nStates number of states for the HMM
Returns:
id of newly generated gesture classificator

Definition at line 59 of file HMMModule.cpp.

void HMMModule::clearGestures (  ) 

Delete all gestures

Definition at line 82 of file HMMModule.cpp.

void HMMModule::delGesture ( size_t  gestureID  ) 

Delete Gesture

Parameters:
gestureID gesture id

Definition at line 68 of file HMMModule.cpp.

bool HMMModule::deserializeGesture ( ConfigSection section,
std::string  gestureName 
)

load gesture from a ConfigSection object

Parameters:
section the ConfigSection object
gestureName the name of the gesture
Returns:
false if something went wrong, true otherwise

Definition at line 179 of file HMMModule.cpp.

void HMMModule::processFrameData ( IFrameData data  )  [virtual]

Does the actual recoginition. Throws Warning if data is not of type Vector3D or Signal.

The output of frame-date is of type int

Parameters:
data Incoming vectors or signals

Reimplemented from ProcessModule.

Definition at line 27 of file HMMModule.cpp.

bool HMMModule::serializeGesture ( ConfigManager gestureFile,
std::string  gestureName,
int  gestureId 
)

saves gesture to a ConfigManager object

Parameters:
gestureFile the ConfigManager object to save to
gestureName name of the gesture
gestureId id of the gesture
Returns:
false if something went wrong, true otherwise

Definition at line 151 of file HMMModule.cpp.

void HMMModule::stopTraining (  ) 

stops training mode

Definition at line 97 of file HMMModule.cpp.

void HMMModule::trainGesture ( size_t  gestureID  ) 

enters training mode

Parameters:
gestureID ID of gesture to train

Definition at line 92 of file HMMModule.cpp.


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

Generated on Sun Nov 30 23:45:40 2008 for Modular Motion Processor by  doxygen 1.5.7.1