summaryrefslogtreecommitdiffhomepage
path: root/tracker-pt/point_tracker.h
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.h
parent6388d767f4510a3771909a91ad72ad4963d029db (diff)
tracker/pt: reset dynamic pose on center
Diffstat (limited to 'tracker-pt/point_tracker.h')
-rw-r--r--tracker-pt/point_tracker.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/tracker-pt/point_tracker.h b/tracker-pt/point_tracker.h
index 2b142632..3c94535f 100644
--- a/tracker-pt/point_tracker.h
+++ b/tracker-pt/point_tracker.h
@@ -62,6 +62,7 @@ public:
Affine pose() { return X_CM; }
vec2 project(const vec3& v_M, f focal_length);
vec2 project(const vec3& v_M, f focal_length, const Affine& X_CM);
+ void reset_state();
private:
// the points in model order
@@ -77,7 +78,7 @@ private:
Affine X_CM; // transform from model to camera
Timer t;
- bool init_phase, prev_order_valid;
+ bool init_phase = true, prev_order_valid = false;
};
} // ns types