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.h | |
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.h')
-rw-r--r-- | tracker-points/module/point_extractor.h | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/tracker-points/module/point_extractor.h b/tracker-points/module/point_extractor.h index a6103667..2af5c131 100644 --- a/tracker-points/module/point_extractor.h +++ b/tracker-points/module/point_extractor.h @@ -33,16 +33,19 @@ class PointExtractor final : public pt_point_extractor public: // extracts points from frame and draws some processing info into frame, if draw_output is set // dt: time since last call in seconds - void extract_points(const pt_frame& frame, pt_preview& preview_frame, std::vector<vec2>& points) override; + void extract_points(const pt_frame& frame, pt_preview& preview_frame, std::vector<vec2>& points, std::vector<vec2>& imagePoints) override; PointExtractor(const QString& module_name); + +public: + std::vector<blob> blobs; + private: static constexpr int max_blobs = 16; pt_settings s; cv::Mat1b frame_gray_unmasked, frame_bin, frame_gray; - cv::Mat1f hist; - std::vector<blob> blobs; + cv::Mat1f hist; cv::Mat1b ch[3]; void ensure_channel_buffers(const cv::Mat& orig_frame); |