#include <GestureFinder.h>
Public Member Functions | |
GestureFinder (size_t maxFramesDropped, double threshold, AbstractModule *successor) | |
GestureFinder (ConfigSection *config, AbstractModule *successor) | |
virtual | ~GestureFinder () |
Destructor. | |
virtual void | processFrameData (IFrameData *data) |
const size_t | getMaxFramesDropped () const |
const double | getThreshold () const |
void | setMaxFramesDropped (const size_t mfd) |
void | setThreshold (const double threshold) |
Computing the variance of the last n incoming vectors. If the variance goes above (below) a threshold, signals are emitted. Vector-framedata is not altered by this module.
Definition at line 18 of file GestureFinder.h.
GestureFinder::GestureFinder | ( | size_t | maxFramesDropped, | |
double | threshold, | |||
AbstractModule * | successor | |||
) |
maxFramesDropped | maximum frames allowed to drop before gesture ends | |
threshold | Variance threshold | |
successor | Next module in chain |
Definition at line 8 of file GestureFinder.cpp.
GestureFinder::GestureFinder | ( | ConfigSection * | config, | |
AbstractModule * | successor | |||
) |
config | pointer to a config section object holding window size and threshold | |
successor | Next module in chain |
Definition at line 17 of file GestureFinder.cpp.
virtual GestureFinder::~GestureFinder | ( | ) | [inline, virtual] |
const size_t GestureFinder::getMaxFramesDropped | ( | ) | const [inline] |
const double GestureFinder::getThreshold | ( | ) | const [inline] |
void GestureFinder::processFrameData | ( | IFrameData * | data | ) | [virtual] |
Smoothes incoming vectors. Throws Warning if data is not of type Vector3D or Signal.
The output of frame-date is of type Vector3D or Signal
data | Incoming vectors or signals |
Reimplemented from ProcessModule.
Definition at line 40 of file GestureFinder.cpp.
void GestureFinder::setMaxFramesDropped | ( | const size_t | mfd | ) | [inline] |
mfd | max frames to drop before gesture ends |
Definition at line 52 of file GestureFinder.h.
void GestureFinder::setThreshold | ( | const double | threshold | ) | [inline] |