GestureFinder Class Reference
[Processing modules]

A ProcessModule. More...

#include <GestureFinder.h>

Inheritance diagram for GestureFinder:

Inheritance graph
[legend]
Collaboration diagram for GestureFinder:

Collaboration graph
[legend]

List of all members.

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)


Detailed Description

A ProcessModule.

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.


Constructor & Destructor Documentation

GestureFinder::GestureFinder ( size_t  maxFramesDropped,
double  threshold,
AbstractModule successor 
)

Parameters:
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 
)

Parameters:
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]

Destructor.

Definition at line 35 of file GestureFinder.h.


Member Function Documentation

const size_t GestureFinder::getMaxFramesDropped (  )  const [inline]

Returns:
max frames to drop before gesture ends

Definition at line 46 of file GestureFinder.h.

const double GestureFinder::getThreshold (  )  const [inline]

Returns:
the threshold

Definition at line 49 of file GestureFinder.h.

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

Parameters:
data Incoming vectors or signals

Reimplemented from ProcessModule.

Definition at line 40 of file GestureFinder.cpp.

void GestureFinder::setMaxFramesDropped ( const size_t  mfd  )  [inline]

Parameters:
mfd max frames to drop before gesture ends

Definition at line 52 of file GestureFinder.h.

void GestureFinder::setThreshold ( const double  threshold  )  [inline]

Parameters:
threshold the threshold

Definition at line 55 of file GestureFinder.h.


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