summaryrefslogtreecommitdiffhomepage
path: root/FTNoIR_Tracker_SM/FTNoIR_Tracker_SM.h
blob: 0687730a0f3c30448b3905cf2218c3ec240407ba (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
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;

};