From 70832cc3b198998fa506211bd2d90f1a9c3e3458 Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Sat, 24 Jun 2017 12:03:41 +0200 Subject: tracker/aruco: add experimental canny threshold ifdef --- tracker-aruco/ftnoir_tracker_aruco.h | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) (limited to 'tracker-aruco/ftnoir_tracker_aruco.h') 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; -- cgit v1.2.3