summaryrefslogtreecommitdiffhomepage
path: root/tracker-aruco/ftnoir_tracker_aruco.h
diff options
context:
space:
mode:
Diffstat (limited to 'tracker-aruco/ftnoir_tracker_aruco.h')
-rw-r--r--tracker-aruco/ftnoir_tracker_aruco.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/tracker-aruco/ftnoir_tracker_aruco.h b/tracker-aruco/ftnoir_tracker_aruco.h
index 6e7db3f6..53eaa247 100644
--- a/tracker-aruco/ftnoir_tracker_aruco.h
+++ b/tracker-aruco/ftnoir_tracker_aruco.h
@@ -28,6 +28,8 @@
#include <opencv2/core.hpp>
#include <opencv2/videoio.hpp>
+// value 0->1
+//#define DEBUG_UNSHARP_MASKING .75
using namespace options;
@@ -98,6 +100,9 @@ private:
double pose[6], fps, no_detection_timeout;
cv::Mat frame, grayscale, color;
cv::Matx33d r;
+#ifdef DEBUG_UNSHARP_MASKING
+ cv::Mat blurred;
+#endif
std::vector<cv::Point3f> obj_points;
cv::Matx33d intrinsics;
aruco::MarkerDetector detector;
@@ -139,6 +144,10 @@ private:
{ 0, 0 }
};
+#ifdef DEBUG_UNSHARP_MASKING
+ static constexpr double gauss_kernel_size = 3;
+#endif
+
static constexpr double timeout = 1;
static constexpr double timeout_backoff_c = 4./11;