diff options
author | Wim Vriend <facetracknoir@gmail.com> | 2011-03-08 22:10:06 +0000 |
---|---|---|
committer | Wim Vriend <facetracknoir@gmail.com> | 2011-03-08 22:10:06 +0000 |
commit | 7dc20f380c80b1b0597e619e66d23921f0309aa0 (patch) | |
tree | c5fb83c3b97b825112433a81ee3dfafe96dba84e /FaceTrackNoIR/tracker.h | |
parent | 63ce1b5dc62e5c1a079f8a675c0a4371adb27d29 (diff) |
Start after update 1.5
Begin placing faceAPI in DLL
git-svn-id: svn+ssh://svn.code.sf.net/p/facetracknoir/code@52 19e81ba0-9b1a-49c3-bd6c-561e1906d5fb
Diffstat (limited to 'FaceTrackNoIR/tracker.h')
-rw-r--r-- | FaceTrackNoIR/tracker.h | 33 |
1 files changed, 25 insertions, 8 deletions
diff --git a/FaceTrackNoIR/tracker.h b/FaceTrackNoIR/tracker.h index 3eeae2f2..bfed3cd4 100644 --- a/FaceTrackNoIR/tracker.h +++ b/FaceTrackNoIR/tracker.h @@ -23,7 +23,7 @@ #ifndef __TRACKER_H__
#define __TRACKER_H__
-#include <sm_api_qt.h>
+//#include <sm_api_qt.h>
#include <QThread>
#include <QMessageBox>
#include <QLineEdit>
@@ -46,7 +46,7 @@ #include "FTNServer.h" // FaceTrackNoIR-server (for client-server)
#include "FTNoIR_cxx_protocolserver.h"
-#include "FTNoIR_Tracker_base.h"
+#include "..\ftnoir_tracker_base\FTNoIR_Tracker_base.h"
#include "FTNoIR_Filter_base.h"
#include "AutoClosePtr.h"
@@ -94,14 +94,31 @@ class FaceTrackNoIR; // pre-define parent-class to avoid circular includes //
// Structure to hold all variables concerning one of 6 DOF's
//
-struct THeadPoseDOF {
+class THeadPoseDOF {
+public:
+ void initHeadPoseData(){
+ headPos = 0.0f;
+ initial_headPos = 0.0f;
+ offset_headPos = 0.0f;
+ invert = 0.0f;
+ red = 0.0f;
+ rawList.clear();
+ maxItems = 10.0f;
+ prevPos = 0.0f;
+ prevRawPos = 0.0f;
+// curve.???
+ NeutralZone = 0;
+ MaxInput = 0;
+ confidence = 0.0f;
+ newSample = FALSE;
+ }
float headPos; // Current position (from faceTracker, radials or meters)
float initial_headPos; // Position on startup (first valid value)
float offset_headPos; // Offset for centering
float invert; // Invert measured value (= 1.0f or -1.0f)
float red; // Reduction factor (used for EWMA-filtering, between 0.0f and 1.0f)
QList<float> rawList; // List of 'n' headPos values (used for moving average)
- int maxItems; // Maximum number of elements is rawList
+ int maxItems; // Maximum number of elements in rawList
float prevPos; // Previous Position
float prevRawPos; // Previous Raw Position
QPainterPath curve; // Bezier curve to translate input -> output
@@ -138,10 +155,10 @@ private: FTNoIR_Client selectedClient;
FTNoIR_Face_Tracker selectedTracker;
- /** face api variables **/
- APIScope *faceapi_scope;
- QSharedPointer<EngineBase> _engine;
- smEngineHandle _engine_handle;
+ ///** face api variables **/
+// APIScope *faceapi_scope;
+ // QSharedPointer<EngineBase> _engine;
+ //smEngineHandle _engine_handle;
static ITrackerPtr pTracker; // Pointer to Tracker instance (in DLL)
static IFilterPtr pFilter; // Pointer to Filter instance (in DLL)
|