summaryrefslogtreecommitdiffhomepage
path: root/tracker-easy/preview.h
diff options
context:
space:
mode:
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;
+ };
+
+}