summaryrefslogtreecommitdiffhomepage
path: root/tracker-aruco/ftnoir_tracker_aruco.h
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2016-12-31 06:16:07 +0100
committerStanislaw Halik <sthalik@misaki.pl>2016-12-31 07:52:52 +0100
commitb0d9aef7b6e9c3c06450cc11ee107abbf6af1d32 (patch)
tree23987a184ff32f61e588de74682c5619ce2f2bf9 /tracker-aruco/ftnoir_tracker_aruco.h
parentf33fc78dc4bdb977bb358bf7e905ef2d4e093b3d (diff)
tracker/aruco: implement asymmetric marker skew support
It may allow for full pitch range support. We're testing it in #517.
Diffstat (limited to 'tracker-aruco/ftnoir_tracker_aruco.h')
-rw-r--r--tracker-aruco/ftnoir_tracker_aruco.h11
1 files changed, 10 insertions, 1 deletions
diff --git a/tracker-aruco/ftnoir_tracker_aruco.h b/tracker-aruco/ftnoir_tracker_aruco.h
index cdea1e42..aa3c59f7 100644
--- a/tracker-aruco/ftnoir_tracker_aruco.h
+++ b/tracker-aruco/ftnoir_tracker_aruco.h
@@ -31,10 +31,18 @@
using namespace options;
struct settings : opts {
+ enum rot
+ {
+ rot_zero = 0,
+ rot_neg = -1,
+ rot_plus = +1,
+ };
+
value<int> fov;
value<double> headpos_x, headpos_y, headpos_z;
value<QString> camera_name;
value<int> force_fps, resolution;
+ value<rot> model_rotation;
settings() :
opts("aruco-tracker"),
fov(b, "field-of-view", 56),
@@ -43,7 +51,8 @@ struct settings : opts {
headpos_z(b, "headpos-z", 0),
camera_name(b, "camera-name", ""),
force_fps(b, "force-fps", 0),
- resolution(b, "force-resolution", 0)
+ resolution(b, "force-resolution", 0),
+ model_rotation(b, "model-rotation", rot_zero)
{}
};