diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2021-09-28 19:31:15 +0200 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2021-09-28 19:33:26 +0200 |
commit | 51449ce32dcac7692d5b29fc49f8102b3478466c (patch) | |
tree | 9a176d4a3872dc74f324f5de5d1aee3ac32f487a /tracker-pt/point_tracker.h | |
parent | dce50f45d7dcb4fda3c4f30bbb89a2dab9500afd (diff) |
tracker/pt: add point filter
Diffstat (limited to 'tracker-pt/point_tracker.h')
-rw-r--r-- | tracker-pt/point_tracker.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/tracker-pt/point_tracker.h b/tracker-pt/point_tracker.h index 326fb7df..54c33a5e 100644 --- a/tracker-pt/point_tracker.h +++ b/tracker-pt/point_tracker.h @@ -11,6 +11,7 @@ #include "cv/affine.hpp" #include "cv/numeric.hpp" #include "pt-api.hpp" +#include "point-filter.hpp" #include <cstddef> #include <memory> @@ -60,7 +61,11 @@ public: // track the pose using the set of normalized point coordinates (x pos in range -0.5:0.5) // f : (focal length)/(sensor width) // dt : time since last call - void track(const std::vector<vec2>& projected_points, const PointModel& model, const pt_camera_info& info, int init_phase_timeout); + void track(const std::vector<vec2>& projected_points, + const PointModel& model, + const pt_camera_info& info, + int init_phase_timeout, + point_filter& filter); Affine pose() const { return X_CM; } vec2 project(const vec3& v_M, f focal_length); vec2 project(const vec3& v_M, f focal_length, const Affine& X_CM); |