diff options
author | Stéphane Lenclud <github@lenclud.com> | 2019-04-13 10:36:47 +0200 |
---|---|---|
committer | Stéphane Lenclud <github@lenclud.com> | 2019-04-24 18:46:12 +0200 |
commit | 547f3314f2a4e75a5d2c540a5f1221e9c59277ae (patch) | |
tree | cc3f11d40bb4a73d219eff03559cd4cc0335a9af /tracker-easy/frame.hpp | |
parent | 12e7ec5bdac206a3072f24577e897c79d6b0189f (diff) |
Easy Tracker: OpenCV point extractor.
Diffstat (limited to 'tracker-easy/frame.hpp')
-rw-r--r-- | tracker-easy/frame.hpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/tracker-easy/frame.hpp b/tracker-easy/frame.hpp index 2a221de3..ba5e45e3 100644 --- a/tracker-easy/frame.hpp +++ b/tracker-easy/frame.hpp @@ -15,13 +15,14 @@ struct Preview QImage get_bitmap(); void draw_head_center(Coordinates::f x, Coordinates::f y); - operator cv::Mat&() { return frame_copy; } - operator cv::Mat const&() const { return frame_copy; } + operator cv::Mat&() { return iFrameResized; } + operator cv::Mat const&() const { return iFrameResized; } private: static void ensure_size(cv::Mat& frame, int w, int h, int type); - cv::Mat frame_copy, frame_out; +public: + cv::Mat iFrameResized, frame_out; cv::Mat iFrameRgb; }; |