summaryrefslogtreecommitdiffhomepage
path: root/compat
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2021-10-19 08:33:37 +0200
committerStanislaw Halik <sthalik@misaki.pl>2021-10-19 14:07:16 +0200
commitedd8680615e842375d8c9af25427784ed01f4fab (patch)
treeed3483692c46cad415e2ea54f6b088f124b5d777 /compat
parent848fc5b13a7d76e89010781239d0dd701e51337d (diff)
cv, tracker/pt: cleanup opencv includes
Diffstat (limited to 'compat')
-rw-r--r--compat/correlation-calibrator.cpp1
-rw-r--r--compat/math.hpp5
2 files changed, 2 insertions, 4 deletions
diff --git a/compat/correlation-calibrator.cpp b/compat/correlation-calibrator.cpp
index 08fbcaa7..4f08ecd5 100644
--- a/compat/correlation-calibrator.cpp
+++ b/compat/correlation-calibrator.cpp
@@ -2,6 +2,7 @@
#include "variance.hpp"
#include "compat/math.hpp"
#include "compat/meta.hpp"
+#include "compat/macros1.h"
#include <cmath>
#include <iterator>
diff --git a/compat/math.hpp b/compat/math.hpp
index f05ebdc8..c5981cc2 100644
--- a/compat/math.hpp
+++ b/compat/math.hpp
@@ -1,18 +1,15 @@
#pragma once
-#include "macros.hpp"
-
#include <cmath>
#include <type_traits>
template<typename t>
-inline auto iround(t val) -> std::enable_if_t<std::is_floating_point_v<remove_cvref_t<t>>, int>
+inline auto iround(t val) -> std::enable_if_t<std::is_floating_point_v<std::decay_t<t>>, int>
{
return (int)std::round(val);
}
template <typename t>
-force_inline
constexpr int signum(const t& x)
{
return x < t{0} ? -1 : 1;