diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2016-02-17 04:36:31 +0100 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2016-02-17 04:41:10 +0100 |
commit | 925c0811d6b24069eb9f527c2c02301cc1ba5ca4 (patch) | |
tree | c71e2f17ffa318740992ad2e5c53098d8b5686e4 | |
parent | 61a58641089b07b23910c94c677e262388039fb9 (diff) |
tracker/pt: cover all "points" usages by a mutex
-rw-r--r-- | tracker-pt/point_extractor.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/tracker-pt/point_extractor.cpp b/tracker-pt/point_extractor.cpp index 0be600f5..da05feb3 100644 --- a/tracker-pt/point_extractor.cpp +++ b/tracker-pt/point_extractor.cpp @@ -148,10 +148,8 @@ const std::vector<cv::Vec2f>& PointExtractor::extract_points(cv::Mat& frame) using b = const blob; std::sort(blobs.begin(), blobs.end(), [](b& b1, b& b2) {return b1.confid > b2.confid;}); - points.reserve(blobs.size()); - QMutexLocker l(&mtx); - + points.reserve(blobs.size()); points.clear(); for (auto& b : blobs) |