From e016dca372bf69f3bb4967a8aba374bc04aea3b4 Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Sun, 16 Jul 2017 16:57:59 +0200 Subject: compat/math-imports: use it --- tracker-aruco/ftnoir_tracker_aruco.cpp | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) (limited to 'tracker-aruco') diff --git a/tracker-aruco/ftnoir_tracker_aruco.cpp b/tracker-aruco/ftnoir_tracker_aruco.cpp index 388eebe6..aa12175d 100644 --- a/tracker-aruco/ftnoir_tracker_aruco.cpp +++ b/tracker-aruco/ftnoir_tracker_aruco.cpp @@ -10,6 +10,7 @@ #include "cv/video-property-page.hpp" #include "compat/camera-names.hpp" #include "compat/sleep.hpp" +#include "compat/math-imports.hpp" #include #include @@ -224,9 +225,6 @@ cv::Point3f aruco_tracker::rotate_model(float x, float y, settings::rot mode) if (mode) { - using std::cos; - using std::sin; - const double theta = int(mode) * 90/4. * M_PI/180; pt.x = x * cos(theta) - y * sin(theta); pt.y = y * cos(theta) + x * sin(theta); @@ -365,11 +363,6 @@ void aruco_tracker::run() { cv::setNumThreads(0); - using std::fabs; - using std::atan; - using std::tan; - using std::sqrt; - if (!open_camera()) return; -- cgit v1.2.3