summaryrefslogtreecommitdiffhomepage
path: root/FaceTrackNoIR/tracker.cpp
diff options
context:
space:
mode:
authorWim Vriend <facetracknoir@gmail.com>2011-01-25 20:52:17 +0000
committerWim Vriend <facetracknoir@gmail.com>2011-01-25 20:52:17 +0000
commitde8ca77801f1f7de1e553967f80147ad89345912 (patch)
tree211b8ab371938fd3917324bde2bba0d206d9631e /FaceTrackNoIR/tracker.cpp
parent5a63e2a7735fa982885b1164e35aedbaabf95047 (diff)
Fixed beta filter-initialize
git-svn-id: svn+ssh://svn.code.sf.net/p/facetracknoir/code@44 19e81ba0-9b1a-49c3-bd6c-561e1906d5fb
Diffstat (limited to 'FaceTrackNoIR/tracker.cpp')
-rw-r--r--FaceTrackNoIR/tracker.cpp14
1 files changed, 7 insertions, 7 deletions
diff --git a/FaceTrackNoIR/tracker.cpp b/FaceTrackNoIR/tracker.cpp
index c054873d..bc7b45f8 100644
--- a/FaceTrackNoIR/tracker.cpp
+++ b/FaceTrackNoIR/tracker.cpp
@@ -335,13 +335,6 @@ void Tracker::run() {
smEngineHeadPoseData temp_head_pose; // headpose from faceAPI
# endif
- new_camera_position.x = 0.0f;
- new_camera_position.y = 0.0f;
- new_camera_position.z = 0.0f;
- new_camera_position.yaw = 0.0f;
- new_camera_position.pitch = 0.0f;
- new_camera_position.roll = 0.0f;
-
//
// Test some Filter-stuff
//
@@ -432,6 +425,13 @@ void Tracker::run() {
Z.rawList.clear();
Z.prevPos = 0.0f;
+ current_camera_position.x = 0.0f;
+ current_camera_position.y = 0.0f;
+ current_camera_position.z = 0.0f;
+ current_camera_position.yaw = 0.0f;
+ current_camera_position.pitch = 0.0f;
+ current_camera_position.roll = 0.0f;
+
_engine->start();
}
else {