diff options
author | Stéphane Lenclud <github@lenclud.com> | 2019-04-12 23:19:54 +0200 |
---|---|---|
committer | Stéphane Lenclud <github@lenclud.com> | 2019-04-24 18:46:12 +0200 |
commit | 7e357fcb6c143a61c4f87ffda502f8be021674f0 (patch) | |
tree | 147bcd90d7ac414ef9ff1e024abba37f085c950d /tracker-easy/point_extractor.cpp | |
parent | f20687d2d5f9b0542fedf0f45291024846d30d28 (diff) |
Easy Tracker: removing legacy point tracker camera architecture.
Diffstat (limited to 'tracker-easy/point_extractor.cpp')
-rw-r--r-- | tracker-easy/point_extractor.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/tracker-easy/point_extractor.cpp b/tracker-easy/point_extractor.cpp index 0d54a66b..54803d52 100644 --- a/tracker-easy/point_extractor.cpp +++ b/tracker-easy/point_extractor.cpp @@ -238,9 +238,8 @@ static void draw_blobs(cv::Mat& preview_frame, const blob* blobs, unsigned nblob } } -void PointExtractor::extract_points(const pt_frame& frame_, pt_preview& preview_frame_, std::vector<vec2>& points, std::vector<vec2>& imagePoints) +void PointExtractor::extract_points(const cv::Mat& frame, cv::Mat& preview_frame_, std::vector<vec2>& points, std::vector<vec2>& imagePoints) { - const cv::Mat& frame = frame_.as_const<Frame>()->mat; ensure_buffers(frame); color_to_grayscale(frame, frame_gray_unmasked); @@ -359,7 +358,7 @@ end: } // TODO: Do not do that if no preview. Delay blob drawing until we know where are the points? - draw_blobs(preview_frame_.as<Frame>()->mat, + draw_blobs(preview_frame_, blobs.data(), blobs.size(), frame_gray.size()); |