diff options
author | Stéphane Lenclud <github@lenclud.com> | 2019-04-15 12:22:05 +0200 |
---|---|---|
committer | Stéphane Lenclud <github@lenclud.com> | 2019-04-15 12:22:05 +0200 |
commit | 94f04e82a10992ff76e2aa8f7f02bb8983643b52 (patch) | |
tree | 2232e4bce90a4301875fda25a0ed9b2035493daf /tracker-easy/point-extractor.h | |
parent | 70051136d8b805a7460a3e82885139a540a4b439 (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.h | 13 |
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 |