summaryrefslogtreecommitdiffhomepage
path: root/FaceTrackNoIR/tracker.h
diff options
context:
space:
mode:
authorWim Vriend <facetracknoir@gmail.com>2010-06-11 12:01:15 +0000
committerWim Vriend <facetracknoir@gmail.com>2010-06-11 12:01:15 +0000
commit6c6e6c6aa063796b503f699e710e91b91f93c4d8 (patch)
tree4afb24fe36a13b92b05f5906adf880fe14b76b9f /FaceTrackNoIR/tracker.h
parent825b01cad1cbba6bfc9a54ea2a18bd8a021e8c93 (diff)
Tryout with lowPassFilter after smoothing...
git-svn-id: svn+ssh://svn.code.sf.net/p/facetracknoir/code@8 19e81ba0-9b1a-49c3-bd6c-561e1906d5fb
Diffstat (limited to 'FaceTrackNoIR/tracker.h')
-rw-r--r--FaceTrackNoIR/tracker.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/FaceTrackNoIR/tracker.h b/FaceTrackNoIR/tracker.h
index dcb075f6..23768f95 100644
--- a/FaceTrackNoIR/tracker.h
+++ b/FaceTrackNoIR/tracker.h
@@ -61,6 +61,7 @@ struct THeadPoseDOF {
int maxItems; // Maximum number of elements is rawList
float newPos; // New Position (used locally)
float prevPos; // Previous Position
+ float prevRawPos; // Previous Raw Position
};
class Tracker : public QThread {
@@ -81,6 +82,7 @@ private:
static void STDCALL receiveHeadPose(void *,smEngineHeadPoseData head_pose, smCameraVideoFrame video_frame);
static void addRaw2List ( QList<float> *rawList, float maxIndex, float raw );
static float lowPassFilter ( float newvalue, float *oldvalue, float dt, float coeff);
+ static float rateLimiter ( float newvalue, float *oldvalue, float dt, float max_rate);
static float getCorrectedNewRaw ( float NewRaw, float rotNeutral );
/** static member variables for saving the head pose **/