diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2015-12-19 20:44:41 +0100 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2015-12-19 20:46:28 +0100 |
commit | fba00166c94f066bf0d8d2174b508d2f849abe53 (patch) | |
tree | 71eac5737e99bcc435ce2658cd459193f6d1f5d7 /tracker-pt/point_extractor.h | |
parent | 90138a999b4c95afeb9a49d355b0234b6145e221 (diff) |
tracker/pt: don't copy points array needlessly
Diffstat (limited to 'tracker-pt/point_extractor.h')
-rw-r--r-- | tracker-pt/point_extractor.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tracker-pt/point_extractor.h b/tracker-pt/point_extractor.h index 80c1897d..979cc8b6 100644 --- a/tracker-pt/point_extractor.h +++ b/tracker-pt/point_extractor.h @@ -21,7 +21,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 - std::vector<cv::Vec2f> extract_points(cv::Mat &frame); + const std::vector<cv::Vec2f> &extract_points(cv::Mat &frame); const std::vector<cv::Vec2f>& get_points() { QMutexLocker l(&mtx); return points; } PointExtractor(); |