summaryrefslogtreecommitdiffhomepage
path: root/ftnoir_tracker_pt/ftnoir_tracker_pt_settings.h
blob: a1523898cf1f59ea0de9745d407c0a16cb6ea5f0 (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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
/* Copyright (c) 2012 Patrick Ruoff
 *
 * Permission to use, copy, modify, and/or distribute this software for any
 * purpose with or without fee is hereby granted, provided that the above
 * copyright notice and this permission notice appear in all copies.
 */

#ifndef FTNOIR_TRACKER_PT_SETTINGS_H
#define FTNOIR_TRACKER_PT_SETTINGS_H

#include <opencv2/opencv.hpp>
#include "point_tracker.h"


//-----------------------------------------------------------------------------
struct TrackerSettings
{	
	// camera
	int cam_index;
	float cam_f;
	int cam_res_x;
	int cam_res_y;
	int cam_fps;
	int cam_pitch;

	// point extraction
	int threshold;
	int min_point_size;
	int max_point_size;

	// point tracking
	cv::Vec3f M01;
	cv::Vec3f M02;
	bool dyn_pose_res;

	// head to model translation
	cv::Vec3f t_MH;

	int sleep_time; // in ms
	int reset_time; // in ms
	bool video_widget;

	bool bEnableRoll;
	bool bEnablePitch;
	bool bEnableYaw;
	bool bEnableX;
	bool bEnableY;
	bool bEnableZ;

	void load_ini();
	void save_ini() const;
};


//-----------------------------------------------------------------------------
struct TrackerDialogSettings
{
	enum
	{
		MODEL_CLIP,
		MODEL_CAP,
		MODEL_CUSTOM
	};
	int active_model_panel;

	int M01x;
	int M01y;
	int M01z;
	int M02x;
	int M02y;
	int M02z;
	int clip_ty;
	int clip_tz;
	int clip_by;
	int clip_bz;
	int cap_x;
	int cap_y;
	int cap_z;

	void load_ini();
	void save_ini() const;
};

#endif //FTNOIR_TRACKER_PT_SETTINGS_H