#include <HMMModule.h>
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 §ion, std::string gestureName) |
Classifies motion data to match trainable gestures using a k-mean-filter and HMMs
Definition at line 19 of file HMMModule.h.
HMMModule::HMMModule | ( | AbstractModule * | successor | ) |
HMMModule::~HMMModule | ( | ) | [virtual] |
int HMMModule::addGesture | ( | int | nClusters, | |
int | nStates | |||
) |
Add a gesture classificator to list
nClusters | number of clusters for KMean | |
nStates | number of states for the HMM |
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 | ) |
bool HMMModule::deserializeGesture | ( | ConfigSection & | section, | |
std::string | gestureName | |||
) |
load gesture from a ConfigSection object
section | the ConfigSection object | |
gestureName | the name of the gesture |
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
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
gestureFile | the ConfigManager object to save to | |
gestureName | name of the gesture | |
gestureId | id of the gesture |
Definition at line 151 of file HMMModule.cpp.
void HMMModule::stopTraining | ( | ) |
void HMMModule::trainGesture | ( | size_t | gestureID | ) |
enters training mode
gestureID | ID of gesture to train |
Definition at line 92 of file HMMModule.cpp.