diff options
| author | Stéphane Lenclud <github@lenclud.com> | 2019-03-31 09:40:37 +0200 |
|---|---|---|
| committer | Stéphane Lenclud <github@lenclud.com> | 2019-04-24 18:46:12 +0200 |
| commit | feb7026316a4f2ad551b4ea87226c264c5277ca4 (patch) | |
| tree | a1f76ac4b525a29b016269c94f9f5758c7ddf940 /tracker-points/module/point_extractor.cpp | |
| parent | 8141c4f07b1ddc4555d10a78ea5c3f482c8be04f (diff) | |
First solveP3P results that are looking consistent.
Translation vector in meters seems to be spot on.
Rotation angles still need to be computed.
Radial distortion still need to be taken into account.
Diffstat (limited to 'tracker-points/module/point_extractor.cpp')
| -rw-r--r-- | tracker-points/module/point_extractor.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tracker-points/module/point_extractor.cpp b/tracker-points/module/point_extractor.cpp index 1a75a3e3b..d1975317e 100644 --- a/tracker-points/module/point_extractor.cpp +++ b/tracker-points/module/point_extractor.cpp @@ -239,7 +239,7 @@ 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) +void PointExtractor::extract_points(const pt_frame& frame_, pt_preview& preview_frame_, std::vector<vec2>& points, std::vector<vec2>& imagePoints) { const cv::Mat& frame = frame_.as_const<Frame>()->mat; @@ -375,6 +375,7 @@ end: vec2 p; std::tie(p[0], p[1]) = to_screen_pos(b.pos[0], b.pos[1], W, H); points.push_back(p); + imagePoints.push_back(vec2(b.pos[0], b.pos[1])); } } |
