From ef1b350512efc5218f5b127a30ee497be89df972 Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Mon, 9 May 2022 19:14:32 +0200 Subject: tracker/{pt-base,trackhat}: add variable deadzone factor --- tracker-pt/point_tracker.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'tracker-pt/point_tracker.cpp') 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& 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& 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(); -- cgit v1.2.3