From 28a5f315b368f8ac0bcb49e452fb44de821f22eb Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Tue, 21 Feb 2017 20:12:57 +0100 Subject: tracker/pt: resize the camera feed, not the preview This makes the point size text and point crosses not alias due to the resize. Due to nice pixel coordinate system, the cross-drawing lambda only needs minimal changes. --- tracker-pt/point_extractor.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tracker-pt/point_extractor.h') diff --git a/tracker-pt/point_extractor.h b/tracker-pt/point_extractor.h index 3ad8ed52..ad02d7f8 100644 --- a/tracker-pt/point_extractor.h +++ b/tracker-pt/point_extractor.h @@ -27,7 +27,7 @@ public: // extracts points from frame and draws some processing info into frame, if draw_output is set // dt: time since last call in seconds // WARNING: returned reference is valid as long as object - void extract_points(cv::Mat &frame, std::vector& points); + void extract_points(const cv::Mat& frame, cv::Mat& preview_frame, std::vector& points); PointExtractor(); settings_pt s; -- cgit v1.2.3