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.cpp | |
parent | dce50f45d7dcb4fda3c4f30bbb89a2dab9500afd (diff) |
tracker/pt: add point filter
Diffstat (limited to 'tracker-pt/point_tracker.cpp')
-rw-r--r-- | tracker-pt/point_tracker.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/tracker-pt/point_tracker.cpp b/tracker-pt/point_tracker.cpp index 850a5b46..b0ed7a6c 100644 --- a/tracker-pt/point_tracker.cpp +++ b/tracker-pt/point_tracker.cpp @@ -135,7 +135,8 @@ PointTracker::PointOrder PointTracker::find_correspondences_previous(const vec2* void PointTracker::track(const std::vector<vec2>& points, const PointModel& model, const pt_camera_info& info, - int init_phase_timeout) + int init_phase_timeout, + point_filter& filter) { const f fx = pt_camera_info::get_focal_length(info.fov, info.res_x, info.res_y); PointOrder order; @@ -148,7 +149,7 @@ void PointTracker::track(const std::vector<vec2>& points, else order = find_correspondences_previous(points.data(), model, info); - if (POSIT(model, order, fx) != -1) + if (POSIT(model, filter(order), fx) != -1) { init_phase = false; t.start(); |