diff options
author | Wim Vriend <facetracknoir@gmail.com> | 2011-01-24 21:18:52 +0000 |
---|---|---|
committer | Wim Vriend <facetracknoir@gmail.com> | 2011-01-24 21:18:52 +0000 |
commit | 5a63e2a7735fa982885b1164e35aedbaabf95047 (patch) | |
tree | 786a2317a3d51f9116006b44f5eea0f5ab249c2a /FaceTrackNoIR/tracker.h | |
parent | a1126d63fe3068cc5651c8c3060647a33e4bb710 (diff) |
EWMA2-filter implemented.
git-svn-id: svn+ssh://svn.code.sf.net/p/facetracknoir/code@43 19e81ba0-9b1a-49c3-bd6c-561e1906d5fb
Diffstat (limited to 'FaceTrackNoIR/tracker.h')
-rw-r--r-- | FaceTrackNoIR/tracker.h | 14 |
1 files changed, 5 insertions, 9 deletions
diff --git a/FaceTrackNoIR/tracker.h b/FaceTrackNoIR/tracker.h index 49310a23..73d4161e 100644 --- a/FaceTrackNoIR/tracker.h +++ b/FaceTrackNoIR/tracker.h @@ -141,8 +141,8 @@ private: APIScope *faceapi_scope;
QSharedPointer<EngineBase> _engine;
smEngineHandle _engine_handle;
- ITrackerPtr pTracker; // Pointer to Tracker instance (in DLL)
- IFilterPtr pFilter; // Pointer to Filter instance (in DLL)
+ static ITrackerPtr pTracker; // Pointer to Tracker instance (in DLL)
+ static IFilterPtr pFilter; // Pointer to Filter instance (in DLL)
/** static callback method for the head pose tracking **/
static void STDCALL receiveHeadPose(void *,smEngineHeadPoseData head_pose, smCameraVideoFrame video_frame);
@@ -222,13 +222,9 @@ public: static void setInvertZ(bool invert) { Z.invert = invert?-1.0f:+1.0f; }
static void setUseFilter(bool set) { useFilter = set; }
-
- static void setRedYaw(int x) { Yaw.red = x/100.0f; }
- static void setRedPitch(int x) { Pitch.red = x/100.0f; }
- static void setRedRoll(int x) { Roll.red = x/100.0f; }
- static void setRedX(int x) { X.red = x/100.0f; }
- static void setRedY(int x) { Y.red = x/100.0f; }
- static void setRedZ(int x) { Z.red = x/100.0f; }
+ static void setMinSmooth(int x);
+ static void setMaxSmooth(int x);
+ static void setPowCurve(int x);
static float getSmoothFromList ( QList<float> *rawList );
static float getDegreesFromRads ( float rads ) { return (rads * 57.295781f); }
|