diff options
| author | Stéphane Lenclud <github@lenclud.com> | 2019-03-18 16:52:19 +0100 | 
|---|---|---|
| committer | Stéphane Lenclud <github@lenclud.com> | 2019-03-18 16:52:19 +0100 | 
| commit | f5a5777e2711ac342b9cab517ac3bfba0313bdaf (patch) | |
| tree | e5db648eb4d79b332dcf02b4ed4f93c67572cc48 /tracker-pt/point_tracker.cpp | |
| parent | 6d98d70ea4be87f8bf9a5304bd6defe795df21f9 (diff) | |
Auto-reset when detecting absurd angles.kinect-point-tracker
Better buffer scaling to focus on the relevant part of our spectrum.
Diffstat (limited to 'tracker-pt/point_tracker.cpp')
| -rw-r--r-- | tracker-pt/point_tracker.cpp | 7 | 
1 files changed, 5 insertions, 2 deletions
| diff --git a/tracker-pt/point_tracker.cpp b/tracker-pt/point_tracker.cpp index ef70789a..35a3b65b 100644 --- a/tracker-pt/point_tracker.cpp +++ b/tracker-pt/point_tracker.cpp @@ -143,7 +143,7 @@ void PointTracker::track(const std::vector<vec2>& points,      const f fx = pt_camera_info::get_focal_length(info.fov, info.res_x, info.res_y);      PointOrder order; -    if (init_phase_timeout <= 0 || t.elapsed_ms() > init_phase_timeout || init_phase) +    if (init_phase_timeout <= 0 || timer.elapsed_ms() > init_phase_timeout || init_phase)      {          init_phase = true;          order = find_correspondences(points.data(), model); @@ -154,7 +154,7 @@ void PointTracker::track(const std::vector<vec2>& points,      if (POSIT(model, order, fx) != -1)      {          init_phase = false; -        t.start(); +        timer.start();      }      else          reset_state(); @@ -360,7 +360,10 @@ vec2 PointTracker::project(const vec3& v_M, f focal_length, const Affine& X_CM)  void PointTracker::reset_state()  {      init_phase = true; +    //X_CM = {};      X_CM_expected = {}; +    //prev_positions = {}; +    //timer.start();  }  } // ns pt_impl | 
