From 2c227c6c073c24e3b7fcad32b3ea9a0b1c23eebe Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Fri, 7 Oct 2016 10:08:13 +0200 Subject: tracker/pt: C++11-ize --- tracker-pt/point_tracker.h | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) (limited to 'tracker-pt/point_tracker.h') diff --git a/tracker-pt/point_tracker.h b/tracker-pt/point_tracker.h index c35c6128..5576b41b 100644 --- a/tracker-pt/point_tracker.h +++ b/tracker-pt/point_tracker.h @@ -16,6 +16,7 @@ using namespace pt_types; #include #include #include +#include #include class Affine final @@ -89,15 +90,7 @@ public: private: // the points in model order - struct PointOrder - { - vec2 points[PointModel::N_POINTS]; - PointOrder() - { - for (unsigned i = 0; i < PointModel::N_POINTS; i++) - points[i] = vec2(0, 0); - } - }; + using PointOrder = std::array; PointOrder find_correspondences(const std::vector& projected_points, const PointModel &model); PointOrder find_correspondences_previous(const std::vector& points, const PointModel &model, f focal_length, int w, int h); -- cgit v1.2.3