summaryrefslogtreecommitdiffhomepage
path: root/tracker-pt/point_tracker.cpp
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2018-01-09 19:15:44 +0100
committerStanislaw Halik <sthalik@misaki.pl>2018-01-10 03:18:58 +0100
commit42fcec5437f832c6cf0df2c6eaba89d6710d2610 (patch)
tree810ebda25d14ab13bfb0cfcfec26266666544dbc /tracker-pt/point_tracker.cpp
parent6388d767f4510a3771909a91ad72ad4963d029db (diff)
tracker/pt: reset dynamic pose on center
Diffstat (limited to 'tracker-pt/point_tracker.cpp')
-rw-r--r--tracker-pt/point_tracker.cpp8
1 files changed, 7 insertions, 1 deletions
diff --git a/tracker-pt/point_tracker.cpp b/tracker-pt/point_tracker.cpp
index ed57235d..139e282d 100644
--- a/tracker-pt/point_tracker.cpp
+++ b/tracker-pt/point_tracker.cpp
@@ -84,7 +84,7 @@ void PointModel::get_d_order(const vec2* points, unsigned* d_order, const vec2&
}
-PointTracker::PointTracker() : init_phase(true), prev_order_valid(false)
+PointTracker::PointTracker()
{
}
@@ -407,3 +407,9 @@ vec2 PointTracker::project(const vec3& v_M, f focal_length, const Affine& X_CM)
return vec2(focal_length*v_C[0]/v_C[2], focal_length*v_C[1]/v_C[2]);
}
+void PointTracker::reset_state()
+{
+ prev_order_valid = false;
+ init_phase = true;
+}
+