summaryrefslogtreecommitdiffhomepage
path: root/tracker-easy/preview.h
diff options
context:
space:
mode:
authorStéphane Lenclud <github@lenclud.com>2019-04-13 12:59:22 +0200
committerStéphane Lenclud <github@lenclud.com>2019-04-24 18:46:12 +0200
commitabaf23d7043c42a07e0d71fc0a17a8264c828d48 (patch)
treeb5e8f14e4730bb45d26d2858a26ac2c6cbfc23a8 /tracker-easy/preview.h
parentac8f7a3e7b29a5ce60ae751ee3a97e3b344c8f3f (diff)
EasyTracker: Adding namespace. Reducing number of classes.
Diffstat (limited to 'tracker-easy/preview.h')
-rw-r--r--tracker-easy/preview.h30
1 files changed, 17 insertions, 13 deletions
diff --git a/tracker-easy/preview.h b/tracker-easy/preview.h
index fc7ec9c9..c3ed9f6b 100644
--- a/tracker-easy/preview.h
+++ b/tracker-easy/preview.h
@@ -14,23 +14,27 @@
#include <opencv2/core.hpp>
#include <QImage>
-struct Preview
+namespace EasyTracker
{
- Preview(int w, int h);
- Preview& operator=(const cv::Mat& frame);
- QImage get_bitmap();
- void draw_head_center(numeric_types::f x, numeric_types::f y);
+ struct Preview
+ {
+ Preview(int w, int h);
- operator cv::Mat&() { return iFrameResized; }
- operator cv::Mat const&() const { return iFrameResized; }
+ Preview& operator=(const cv::Mat& frame);
+ QImage get_bitmap();
+ void draw_head_center(numeric_types::f x, numeric_types::f y);
-private:
- static void ensure_size(cv::Mat& frame, int w, int h, int type);
+ operator cv::Mat&() { return iFrameResized; }
+ operator cv::Mat const&() const { return iFrameResized; }
-public:
- cv::Mat iFrameResized, frame_out;
- cv::Mat iFrameRgb;
-};
+ private:
+ static void ensure_size(cv::Mat& frame, int w, int h, int type);
+ public:
+ cv::Mat iFrameResized, frame_out;
+ cv::Mat iFrameRgb;
+ };
+
+}