diff options
Diffstat (limited to 'FaceTrackNoIR/tracker.h')
-rw-r--r-- | FaceTrackNoIR/tracker.h | 2 |
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 **/
|