summaryrefslogtreecommitdiffhomepage
path: root/tracker-pt/ftnoir_tracker_pt_settings.h
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2018-01-03 14:28:27 +0100
committerStanislaw Halik <sthalik@misaki.pl>2018-01-03 14:35:57 +0100
commitc012e1ed0751cd549033aac6cf5507ecf2b5d754 (patch)
tree9a1783003770a1dc564a1d75c52ddb5eff63c3fc /tracker-pt/ftnoir_tracker_pt_settings.h
parent69575c27d57c84100bcf5e41ea5f4d9e6b2626c6 (diff)
compat, tracker-pt: add unfinished calibrator
Diffstat (limited to 'tracker-pt/ftnoir_tracker_pt_settings.h')
-rw-r--r--tracker-pt/ftnoir_tracker_pt_settings.h21
1 files changed, 21 insertions, 0 deletions
diff --git a/tracker-pt/ftnoir_tracker_pt_settings.h b/tracker-pt/ftnoir_tracker_pt_settings.h
index 71b98fc2..7fa560d2 100644
--- a/tracker-pt/ftnoir_tracker_pt_settings.h
+++ b/tracker-pt/ftnoir_tracker_pt_settings.h
@@ -46,6 +46,27 @@ struct settings_pt : opts
value<slider_value> threshold_slider;
+#define XSTR(x) #x
+
+#define M(name, val) \
+ { b, "interconnect-m" XSTR(name), (val) }
+#define A(name) M(name, 0),
+#define B(name) M(name, 1),
+
+ value<double> interconnect[6][6] {
+ { B(00) A(01) A(02) A(03) A(04) A(05) },
+ { A(10) B(11) A(12) A(13) A(14) A(15) },
+ { A(20) A(21) B(22) A(23) A(24) A(25) },
+ { A(30) A(31) A(32) B(33) A(34) A(35) },
+ { A(40) A(41) A(42) A(43) B(44) A(45) },
+ { A(50) A(51) A(52) A(53) A(54) B(55) },
+ };
+
+#undef M
+#undef A
+#undef B
+#undef XSTR
+
settings_pt() :
opts("tracker-pt"),
camera_name(b, "camera-name", ""),