summaryrefslogtreecommitdiffhomepage
path: root/tracker-pt/point_tracker.h
diff options
context:
space:
mode:
Diffstat (limited to 'tracker-pt/point_tracker.h')
-rw-r--r--tracker-pt/point_tracker.h11
1 files changed, 2 insertions, 9 deletions
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 <opencv2/core/core.hpp>
#include <memory>
#include <vector>
+#include <array>
#include <QObject>
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<vec2, 3>;
PointOrder find_correspondences(const std::vector<vec2>& projected_points, const PointModel &model);
PointOrder find_correspondences_previous(const std::vector<vec2>& points, const PointModel &model, f focal_length, int w, int h);