diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2016-07-31 11:46:16 +0200 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2016-07-31 11:46:16 +0200 |
commit | cfb2495a4ba7b7dda8b73d9897c9cf5c75abbd83 (patch) | |
tree | 738fc550780bdb405fa9048b0f09995e20418f02 /tracker-pt/point_tracker.h | |
parent | 3e12d7ff6cea9e90ace691bc2470f2182299f1e2 (diff) |
tracker/pt: use max distance for dynamic pose
Diffstat (limited to 'tracker-pt/point_tracker.h')
-rw-r--r-- | tracker-pt/point_tracker.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tracker-pt/point_tracker.h b/tracker-pt/point_tracker.h index fab0e9ac..00e371f5 100644 --- a/tracker-pt/point_tracker.h +++ b/tracker-pt/point_tracker.h @@ -80,7 +80,7 @@ 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, f focal_length, bool dynamic_pose, int init_phase_timeout); + void track(const std::vector<vec2>& projected_points, const PointModel& model, f focal_length, bool dynamic_pose, int init_phase_timeout, int w, int h); Affine pose() { return X_CM; } vec2 project(const vec3& v_M, PointTracker::f focal_length); @@ -97,7 +97,7 @@ private: }; PointOrder find_correspondences(const std::vector<vec2>& projected_points, const PointModel &model); - PointOrder find_correspondences_previous(const std::vector<vec2>& points, const PointModel &model, f focal_length); + PointOrder find_correspondences_previous(const std::vector<vec2>& points, const PointModel &model, f focal_length, int w, int h); int POSIT(const PointModel& point_model, const PointOrder& order, f focal_length); // The POSIT algorithm, returns the number of iterations Affine X_CM; // trafo from model to camera |