summaryrefslogtreecommitdiffhomepage
path: root/tracker-aruco/ftnoir_tracker_aruco.h
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2017-06-24 12:03:41 +0200
committerStanislaw Halik <sthalik@misaki.pl>2017-06-24 12:03:41 +0200
commit70832cc3b198998fa506211bd2d90f1a9c3e3458 (patch)
tree5798e1b8ec82ebea4e1fff87f51638b673c5a064 /tracker-aruco/ftnoir_tracker_aruco.h
parent442fd797087834cb691cf18f4a808eee6d740353 (diff)
tracker/aruco: add experimental canny threshold ifdef
Diffstat (limited to 'tracker-aruco/ftnoir_tracker_aruco.h')
-rw-r--r--tracker-aruco/ftnoir_tracker_aruco.h11
1 files changed, 9 insertions, 2 deletions
diff --git a/tracker-aruco/ftnoir_tracker_aruco.h b/tracker-aruco/ftnoir_tracker_aruco.h
index 8531bef9..4b3bde73 100644
--- a/tracker-aruco/ftnoir_tracker_aruco.h
+++ b/tracker-aruco/ftnoir_tracker_aruco.h
@@ -31,6 +31,9 @@
// value 0->1
//#define DEBUG_UNSHARP_MASKING .75
+//canny thresholding
+//#define USE_EXPERIMENTAL_CANNY
+
using namespace options;
struct settings : opts {
@@ -127,11 +130,15 @@ private:
static constexpr const int adaptive_sizes[] =
{
+#if defined USE_EXPERIMENTAL_CANNY
+ 3,
+ 5,
+ 7,
+#else
7,
9,
- //11,
13,
- //5,
+#endif
};
static constexpr int adaptive_thres = 6;