summaryrefslogtreecommitdiffhomepage
path: root/tracker-pt/point_extractor.h
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2017-02-21 20:12:57 +0100
committerStanislaw Halik <sthalik@misaki.pl>2017-02-21 20:12:57 +0100
commit28a5f315b368f8ac0bcb49e452fb44de821f22eb (patch)
tree75569efb281d94cb7c95a42610ee2498d3471f98 /tracker-pt/point_extractor.h
parentb2cbf1b156f20ebb72bd0ff93d041f0bcb8a4ccf (diff)
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.
Diffstat (limited to 'tracker-pt/point_extractor.h')
-rw-r--r--tracker-pt/point_extractor.h2
1 files changed, 1 insertions, 1 deletions
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<vec2>& points);
+ void extract_points(const cv::Mat& frame, cv::Mat& preview_frame, std::vector<vec2>& points);
PointExtractor();
settings_pt s;