From 547f3314f2a4e75a5d2c540a5f1221e9c59277ae Mon Sep 17 00:00:00 2001 From: Stéphane Lenclud Date: Sat, 13 Apr 2019 10:36:47 +0200 Subject: Easy Tracker: OpenCV point extractor. --- tracker-easy/frame.hpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'tracker-easy/frame.hpp') 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; }; -- cgit v1.2.3