summaryrefslogtreecommitdiffhomepage
path: root/tracker-pt/ftnoir_tracker_pt_settings.h
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2016-09-16 16:10:52 +0200
committerStanislaw Halik <sthalik@misaki.pl>2016-09-16 18:04:36 +0200
commitb3476cc5f25c6039ebec6174c9e719f0ca37d24f (patch)
tree37bc982a87495cad0f466d93c966032e8b8ee0be /tracker-pt/ftnoir_tracker_pt_settings.h
parent707edf55646b62d74a3ff3de9acc274687c13e05 (diff)
tracker/pt: get rid of pt_types class
Diffstat (limited to 'tracker-pt/ftnoir_tracker_pt_settings.h')
-rw-r--r--tracker-pt/ftnoir_tracker_pt_settings.h13
1 files changed, 8 insertions, 5 deletions
diff --git a/tracker-pt/ftnoir_tracker_pt_settings.h b/tracker-pt/ftnoir_tracker_pt_settings.h
index 8c86fc14..b3f9e402 100644
--- a/tracker-pt/ftnoir_tracker_pt_settings.h
+++ b/tracker-pt/ftnoir_tracker_pt_settings.h
@@ -12,12 +12,15 @@
#include <limits>
#include <opencv2/core.hpp>
-struct pt_types
-{
+namespace pt_types {
using f = double;
- static constexpr f eps = std::numeric_limits<f>::epsilon();
- static constexpr f pi = f(OPENTRACK_PI);
+ struct constants final
+ {
+ constants() = delete;
+ static constexpr f eps = std::numeric_limits<f>::epsilon();
+ static constexpr f pi = OPENTRACK_PI;
+ };
template<int n> using vec = cv::Vec<f, n>;
using vec2 = vec<2>;
@@ -26,7 +29,7 @@ struct pt_types
template<int y, int x> using mat = cv::Matx<f, y, x>;
using mat33 = mat<3, 3>;
using mat22 = mat<2, 2>;
-};
+}
#include "options/options.hpp"
using namespace options;