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 /FTNoIR_Tracker_SM/FTNoIR_Tracker_SM.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 'FTNoIR_Tracker_SM/FTNoIR_Tracker_SM.h')
-rw-r--r-- | FTNoIR_Tracker_SM/FTNoIR_Tracker_SM.h | 44 |
1 files changed, 44 insertions, 0 deletions
diff --git a/FTNoIR_Tracker_SM/FTNoIR_Tracker_SM.h b/FTNoIR_Tracker_SM/FTNoIR_Tracker_SM.h new file mode 100644 index 00000000..0687730a --- /dev/null +++ b/FTNoIR_Tracker_SM/FTNoIR_Tracker_SM.h @@ -0,0 +1,44 @@ +#include "..\ftnoir_tracker_base\ftnoir_tracker_base.h"
+#include "ui_FTNoIR_SMClientcontrols.h"
+
+#include <sm_api_qt.h>
+#include <QMessageBox>
+#include <QSettings>
+#include "Windows.h"
+#include "math.h"
+
+using namespace sm::faceapi;
+using namespace sm::faceapi::qt;
+
+class FTNoIR_Tracker_SM : public ITracker
+{
+public:
+ FTNoIR_Tracker_SM();
+ ~FTNoIR_Tracker_SM();
+
+ void Release();
+ void Initialize();
+ void StartTracker();
+ void GiveHeadPoseData(THeadPoseData *data);
+ void loadSettings();
+
+ bool setParameterValue(const int index, const float newvalue);
+
+private:
+ /** face api variables **/
+ APIScope *faceapi_scope;
+ QSharedPointer<EngineBase> _engine;
+ smEngineHandle _engine_handle;
+
+ THeadPoseData newHeadPose; // Structure with new headpose
+
+ //parameter list for the filter-function(s)
+ enum
+ {
+ kPortAddress=0, // Index in QList
+ kNumFilterParameters // Indicate number of parameters used
+ };
+ QList<std::pair<float,float>> parameterRange;
+ QList<float> parameterValueAsFloat;
+
+};
|