From cee77941f5b708c05212ad9e520f7d7114895bcc Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Wed, 31 Jul 2013 19:55:27 +0200 Subject: Gaussian blur instead of downsampling --- ftnoir_tracker_aruco/ftnoir_tracker_aruco.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ftnoir_tracker_aruco') 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); -- cgit v1.2.3