summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--ftnoir_tracker_aruco/ftnoir_tracker_aruco.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/ftnoir_tracker_aruco/ftnoir_tracker_aruco.cpp b/ftnoir_tracker_aruco/ftnoir_tracker_aruco.cpp
index c9b390df..d0944d39 100644
--- a/ftnoir_tracker_aruco/ftnoir_tracker_aruco.cpp
+++ b/ftnoir_tracker_aruco/ftnoir_tracker_aruco.cpp
@@ -191,7 +191,7 @@ void Tracker::run()
if (!camera.read(color))
break;
cv::cvtColor(color, tmp, cv::COLOR_BGR2GRAY);
- cv::resize(tmp, grayscale, cv::Size(color.cols*0.75, color.rows*0.75), cv::INTER_AREA);
+ cv::GaussianBlur(tmp, grayscale, cv::Size(5, 5), 0);
const float focal_length_w = 0.5 * grayscale.cols / tan(0.5 * fov * HT_PI / 180);
const float focal_length_h = 0.5 * grayscale.rows / tan(0.5 * fov * grayscale.rows / grayscale.cols * HT_PI / 180.0);
cv::Mat intrinsics = cv::Mat::eye(3, 3, CV_32FC1);