From de8ca77801f1f7de1e553967f80147ad89345912 Mon Sep 17 00:00:00 2001 From: Wim Vriend Date: Tue, 25 Jan 2011 20:52:17 +0000 Subject: Fixed beta filter-initialize git-svn-id: svn+ssh://svn.code.sf.net/p/facetracknoir/code@44 19e81ba0-9b1a-49c3-bd6c-561e1906d5fb --- FaceTrackNoIR/tracker.cpp | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'FaceTrackNoIR/tracker.cpp') 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 { -- cgit v1.2.3