summaryrefslogtreecommitdiffhomepage
path: root/ftnoir_tracker_aruco
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2013-07-31 19:55:27 +0200
committerStanislaw Halik <sthalik@misaki.pl>2013-07-31 19:55:27 +0200
commitcee77941f5b708c05212ad9e520f7d7114895bcc (patch)
tree3fac0dfa1a611793f0fd87c18263c5e0bc5726c6 /ftnoir_tracker_aruco
parent8a5e1af19308601502ca56d303e8c59a745fb270 (diff)
Gaussian blur instead of downsampling
Diffstat (limited to 'ftnoir_tracker_aruco')
-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);