diff options
author | Stéphane Lenclud <github@lenclud.com> | 2019-04-14 11:40:52 +0200 |
---|---|---|
committer | Stéphane Lenclud <github@lenclud.com> | 2019-04-24 18:46:12 +0200 |
commit | a814bff460cff1263e236e465c7ef8c8f88baf55 (patch) | |
tree | fe2dfa5708c0e90d156319703441a5abd8b619ac /tracker-easy/point-extractor.h | |
parent | 51436cc320670e033c69bc01d2178bd245234670 (diff) |
Easy Tracker: Renaming settings.
Diffstat (limited to 'tracker-easy/point-extractor.h')
-rw-r--r-- | tracker-easy/point-extractor.h | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/tracker-easy/point-extractor.h b/tracker-easy/point-extractor.h new file mode 100644 index 00000000..d6bbd241 --- /dev/null +++ b/tracker-easy/point-extractor.h @@ -0,0 +1,41 @@ +/* + * Copyright (c) 2019 Stephane Lenclud + * + * Permission to use, copy, modify, and/or distribute this software for any + * purpose with or without fee is hereby granted, provided that the above + * copyright notice and this permission notice appear in all copies. + */ + +#pragma once + +#include "tracker-easy-api.h" + +#include <vector> + +#include <opencv2/core.hpp> +#include <opencv2/imgproc.hpp> + + +using namespace numeric_types; + +namespace EasyTracker +{ + + + class PointExtractor final : public IPointExtractor + { + public: + // 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(); + // Settings + Settings s; + // Our frame with a channel size of 8 bits + cv::Mat iFrameChannelSizeOne; + // Our frame with a single 8 bits channel + cv::Mat iFrameGray; + }; + +} + |