summaryrefslogtreecommitdiffhomepage
path: root/tracker-aruco
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2017-07-16 16:57:59 +0200
committerStanislaw Halik <sthalik@misaki.pl>2017-07-16 16:57:59 +0200
commite016dca372bf69f3bb4967a8aba374bc04aea3b4 (patch)
tree73249375dc7a666acee8c7349e56c095cd6e4369 /tracker-aruco
parent1ac33e5d5aea97448c71ea58b12492ae219e88f1 (diff)
compat/math-imports: use it
Diffstat (limited to 'tracker-aruco')
-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;