summaryrefslogtreecommitdiffhomepage
path: root/tracker-easy/point_extractor.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tracker-easy/point_extractor.cpp')
-rw-r--r--tracker-easy/point_extractor.cpp5
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());