From e5d2902e11ae6ea2e26e0caa6588384225e018f6 Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Fri, 11 Nov 2016 18:10:42 +0100 Subject: tracker/pt: refactor - separate .{cpp,hpp} for few classes - don't include namespaces globally; harmless but looks bad anyway - class with all public members to struct --- tracker-pt/numeric.hpp | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 tracker-pt/numeric.hpp (limited to 'tracker-pt/numeric.hpp') diff --git a/tracker-pt/numeric.hpp b/tracker-pt/numeric.hpp new file mode 100644 index 00000000..9d37086d --- /dev/null +++ b/tracker-pt/numeric.hpp @@ -0,0 +1,22 @@ +#pragma once + +#include +#include + +namespace types { + using f = double; + + struct constants final + { + constants() = delete; + static constexpr f eps = std::numeric_limits::epsilon(); + }; + + template using vec = cv::Vec; + using vec2 = vec<2>; + using vec3 = vec<3>; + + template using mat = cv::Matx; + using mat33 = mat<3, 3>; + using mat22 = mat<2, 2>; +} -- cgit v1.2.3