From 2a3ec553d3737f2d94c32c3372ebac5333819ddd Mon Sep 17 00:00:00 2001 From: Wim Vriend Date: Tue, 18 Jan 2011 21:51:48 +0000 Subject: Profile selection items added in the Main form. git-svn-id: svn+ssh://svn.code.sf.net/p/facetracknoir/code@39 19e81ba0-9b1a-49c3-bd6c-561e1906d5fb --- FaceTrackNoIR/ExcelServer.cpp | 22 +++++++++++++++++++--- 1 file changed, 19 insertions(+), 3 deletions(-) (limited to 'FaceTrackNoIR/ExcelServer.cpp') diff --git a/FaceTrackNoIR/ExcelServer.cpp b/FaceTrackNoIR/ExcelServer.cpp index 097be513..0f046e98 100644 --- a/FaceTrackNoIR/ExcelServer.cpp +++ b/FaceTrackNoIR/ExcelServer.cpp @@ -62,7 +62,7 @@ SYSTEMTIME now; QFile data(QCoreApplication::applicationDirPath() + "\\output.txt"); if (data.open(QFile::WriteOnly | QFile::Append)) { QTextStream out(&data); - out << newHeadPoseTime << "\t" << headRotX << "\t" << virtRotX << "\t" << headRotY << "\t" << virtRotY << "\t" << headRotZ << "\t" << virtRotZ << '\n'; + out << newHeadPoseTime << "\t" << newSample << "\t" << confidence << "\t" << dT << "\t" << smoothvalue << "\t" << headRotX << "\t" << virtRotX << "\t" << prev_value << '\n'; } } @@ -75,9 +75,25 @@ bool ExcelServer::checkServerInstallationOK( HANDLE handle ) // Use this for some debug-output to file... QFile data(QCoreApplication::applicationDirPath() + "\\output.txt"); if (data.open(QFile::WriteOnly)) { + + + // + // Get the settings for the header + // + QSettings settings("Abbequerque Inc.", "FaceTrackNoIR"); // Registry settings (in HK_USER) + + QString currentFile = settings.value ( "SettingsFile", QCoreApplication::applicationDirPath() + "/Settings/default.ini" ).toString(); + QSettings iniFile( currentFile, QSettings::IniFormat ); // Application settings (in INI-file) + + iniFile.beginGroup ( "Tracking" ); + int smoothing = iniFile.value ( "Smooth", 10 ).toInt(); + bool useEWMA = iniFile.value ( "useEWMA", 1 ).toBool(); + iniFile.endGroup (); + QTextStream out(&data); - out << "Time" << "\t" << "RotX (Pitch)" << "\t" << "RotX (Pitch)" << "\t" << "RotY (Yaw)" << "\t" << "RotY (Yaw)" << "\t" << "RotY (Roll)" << "\t" << "RotY (Roll)" << '\n'; - out << "(long)" << "\t" << "Raw" << "\t" << "Filtered" << "\t" << "Raw" << "\t" << "Filtered" << "\t" << "Raw" << "\t" << "Filtered" << '\n'; + out << "Smoothing = \t" << smoothing << "\n" << "EWMA used = \t" << useEWMA << "\n" << "\n"; + out << "Time" << "\t" << "New Sample" << "\t" << "Confidence" << "\t" << "dT" << "\t" << "Smoothed" << "\t" << "RotX (Pitch)" << "\t" << "RotX (Pitch)" << "\t" << "Previous" << '\n'; + out << "(long)" << "\t" << "(bool)" << "\t" << "(float)" << "\t" << "(float)" << "\t" << "(float)" << "\t" << "Raw" << "\t" << "Filtered" << "\t" << "-" << '\n'; } return true; -- cgit v1.2.3