summaryrefslogtreecommitdiffhomepage
path: root/tracker-easy/point-extractor.h
diff options
context:
space:
mode:
authorStéphane Lenclud <github@lenclud.com>2019-04-15 12:22:05 +0200
committerStéphane Lenclud <github@lenclud.com>2019-04-24 18:46:12 +0200
commit6ca96478ea4d8e6ba71ebf41a1f7d904f2c3df5d (patch)
tree85810bc2463bb5786817830cab89cd19c9241325 /tracker-easy/point-extractor.h
parent9830011866f0817d08c3e3f0bd26e98e54c523e7 (diff)
Easy Tracker: Removing point extractor interface. Using cv::Point instead of vec2.
Diffstat (limited to 'tracker-easy/point-extractor.h')
-rw-r--r--tracker-easy/point-extractor.h13
1 files changed, 6 insertions, 7 deletions
diff --git a/tracker-easy/point-extractor.h b/tracker-easy/point-extractor.h
index d6bbd241..7827bb30 100644
--- a/tracker-easy/point-extractor.h
+++ b/tracker-easy/point-extractor.h
@@ -8,27 +8,26 @@
#pragma once
-#include "tracker-easy-api.h"
-
+#include "settings.h"
#include <vector>
#include <opencv2/core.hpp>
#include <opencv2/imgproc.hpp>
-using namespace numeric_types;
-
namespace EasyTracker
{
+ const int KPointCount = 3;
- class PointExtractor final : public IPointExtractor
+ class PointExtractor
{
public:
+ PointExtractor();
// extracts points from frame and draws some processing info into frame, if draw_output is set
// dt: time since last call in seconds
- void extract_points(const cv::Mat& aFrame, cv::Mat* aPreview, std::vector<vec2>& aPoints) override;
- PointExtractor();
+ void ExtractPoints(const cv::Mat& aFrame, cv::Mat* aPreview, std::vector<cv::Point>& aPoints);
+
// Settings
Settings s;
// Our frame with a channel size of 8 bits