gml_TTracker Class Reference

#include <gml_Tracker.h>

Collaboration diagram for gml_TTracker:

Collaboration graph
[legend]
List of all members.

Detailed Description

Track a set of points evolving in a 2D space over time. Tracking is very basic here: no prediction, no filtering. It's well suited for high frequency or slow movement applications.


Public Member Functions

gml_TError Init (UInt32 maxTrackedPoints, Float32 maxSpeed)
 Setup data structure for tracking.
void Dispose ()
gml_TError Step (gml_TPointFloat *points, UInt32 npoints)
 Feed newly detected coordinates to the tracker, and generate events.
gml_TError Queue (gml_TTrackingEventQueue *&queue)
 Return the queue of events to be processed.
void Reset ()
 Forget about all known tracked objects. The queue of events is updated accordingly with Disappear events.

Protected Attributes

gml_TTimerfTimer
 gives high-resolution absolute system time
gml_TTrackingEventQueuefQueue
 queue used to store the events
UInt32 fMaxTrackedPoints
 maximum number of tracked objects
Float32 fMaxSpeed
 maximum speed of tracked objects, in pixels/second
gml_TTrackedObjectmTracked
 array of currently tracked objects
UInt32 fTrackedCount
 number of objects currently tracked
bool * mTrackedFlags
 array of flags indicating if each < of the corresponding elements in < mTracked os in use

Member Function Documentation

gml_TError Init ( UInt32  maxTrackedPoints,
Float32  maxSpeed 
)

Setup data structure for tracking.

Parameters:
maxTrackedPoints  maximum number of simultaneously tracked objects
maxSpeed  maximum speed of tracked objects, in pixels/second

gml_TError Step ( gml_TPointFloat points,
UInt32  npoints 
)

Feed newly detected coordinates to the tracker, and generate events.

Bug:
some points may be ignored

Todo:
take fMaxSpeed into account

Todo:
fix this hack hack: threshold the distance for just-born fingers. this helps eliminate TTFs spawned from false alarms.

Bug:
if the stack is full stack full, drop candidate
Parameters:
points  array of newly detected coordinates
npoints  length of the points array


The documentation for this class was generated from the following files:
Generated on Tue Jun 12 14:03:28 2007 for gml by Doxygen 1.5.2.