summaryrefslogtreecommitdiffhomepage
path: root/tracker-aruco/ftnoir_tracker_aruco.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tracker-aruco/ftnoir_tracker_aruco.cpp')
-rw-r--r--tracker-aruco/ftnoir_tracker_aruco.cpp26
1 files changed, 26 insertions, 0 deletions
diff --git a/tracker-aruco/ftnoir_tracker_aruco.cpp b/tracker-aruco/ftnoir_tracker_aruco.cpp
index c322d323..faa8bb44 100644
--- a/tracker-aruco/ftnoir_tracker_aruco.cpp
+++ b/tracker-aruco/ftnoir_tracker_aruco.cpp
@@ -33,6 +33,32 @@
#include <algorithm>
#include <iterator>
+static const int adaptive_sizes[] =
+{
+#if defined USE_EXPERIMENTAL_CANNY
+ 10,
+ 30,
+ 80,
+#else
+ 7,
+ 9,
+ 13,
+#endif
+};
+
+struct resolution_tuple
+{
+ int width;
+ int height;
+};
+
+static const resolution_tuple resolution_choices[] =
+{
+ { 640, 480 },
+ { 320, 240 },
+ { 0, 0 }
+};
+
aruco_tracker::aruco_tracker()
{
cv::setBreakOnError(true);