summaryrefslogtreecommitdiffhomepage
path: root/cv
diff options
context:
space:
mode:
Diffstat (limited to 'cv')
-rw-r--r--cv/numeric.hpp5
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);