diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2022-05-09 19:14:32 +0200 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2022-05-10 05:01:33 +0200 |
commit | ef1b350512efc5218f5b127a30ee497be89df972 (patch) | |
tree | ee98cee1795ab94d2c696f69507edf74aa7482f1 /tracker-pt/point_tracker.cpp | |
parent | 448f39a4e144d7c01911aa84375dfa4f24ba44a1 (diff) |
tracker/{pt-base,trackhat}: add variable deadzone factortrackhat-opentrack-2.0
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 aca07d8e..39e96038 100644 --- a/tracker-pt/point_tracker.cpp +++ b/tracker-pt/point_tracker.cpp @@ -137,7 +137,8 @@ void PointTracker::track(const std::vector<vec2>& points, const PointModel& model, const pt_camera_info& info, int init_phase_timeout, - point_filter& filter) + point_filter& filter, + f deadzone_amount) { const f fx = pt_camera_info::get_focal_length(info.fov, info.res_x, info.res_y); PointOrder order; @@ -150,7 +151,7 @@ void PointTracker::track(const std::vector<vec2>& points, else order = find_correspondences_previous(points.data(), model, info); - if (POSIT(model, filter(order), fx) != -1) + if (POSIT(model, filter(order, deadzone_amount), fx) != -1) { init_phase = false; t.start(); |