summaryrefslogtreecommitdiffhomepage
path: root/tracker-aruco/ftnoir_tracker_aruco.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tracker-aruco/ftnoir_tracker_aruco.cpp')
-rw-r--r--tracker-aruco/ftnoir_tracker_aruco.cpp9
1 files changed, 1 insertions, 8 deletions
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 <opencv2/core.hpp>
#include <opencv2/imgproc.hpp>
@@ -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;