summaryrefslogtreecommitdiffhomepage
path: root/tracker-pt
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2017-07-07 11:13:20 +0200
committerStanislaw Halik <sthalik@misaki.pl>2017-07-07 11:13:20 +0200
commit963cad86f4ef9941bd272b41d449adc13d742488 (patch)
tree22fb3bf7a88571a1fa7680f8ee8bb0a99dc9de28 /tracker-pt
parentcba24a90995bcc6364040e2da568f6f5f5565e58 (diff)
tracker/pt: don't return zero pose on failure
Issue: #644
Diffstat (limited to 'tracker-pt')
-rw-r--r--tracker-pt/ftnoir_tracker_pt.cpp2
-rw-r--r--tracker-pt/point_tracker.h1
2 files changed, 0 insertions, 3 deletions
diff --git a/tracker-pt/ftnoir_tracker_pt.cpp b/tracker-pt/ftnoir_tracker_pt.cpp
index f4e60bba..938acc1c 100644
--- a/tracker-pt/ftnoir_tracker_pt.cpp
+++ b/tracker-pt/ftnoir_tracker_pt.cpp
@@ -92,8 +92,6 @@ void Tracker_PT::run()
s.dynamic_pose ? s.init_phase_timeout : 0);
ever_success = true;
}
- else
- point_tracker.invalidate_pose();
{
Affine X_CM;
diff --git a/tracker-pt/point_tracker.h b/tracker-pt/point_tracker.h
index b867cea4..a25c1458 100644
--- a/tracker-pt/point_tracker.h
+++ b/tracker-pt/point_tracker.h
@@ -62,7 +62,6 @@ 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 invalidate_pose() { X_CM = Affine(); }
private:
// the points in model order