diff options
Diffstat (limited to 'cv/numeric.hpp')
-rw-r--r-- | cv/numeric.hpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/cv/numeric.hpp b/cv/numeric.hpp index 7d850cbe..ee24331f 100644 --- a/cv/numeric.hpp +++ b/cv/numeric.hpp @@ -1,9 +1,12 @@ #pragma once +#include <type_traits> #include <opencv2/core.hpp> namespace types { - using f = double; + using f = float; + + static_assert(std::is_floating_point_v<f>); static constexpr inline f eps = f(1e-8); static constexpr inline f pi = f(M_PI); |