summaryrefslogtreecommitdiffhomepage
path: root/tracker-aruco/ftnoir_tracker_aruco.h
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2016-12-31 07:28:00 +0100
committerStanislaw Halik <sthalik@misaki.pl>2016-12-31 07:53:02 +0100
commit1576bd06113ca6fc9a4ddb68621a636c0a21ee2e (patch)
tree6d14bc3bf4b251f3f8dda02cd16bdc2990e5f2aa /tracker-aruco/ftnoir_tracker_aruco.h
parente8d59272d85bcac4a89ff36a190aee09dd7dfac9 (diff)
tracker/aruco: add inactive experimental unsharp masking code
It's slow and untested beyond my replaying users' camera feed videos.
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;