summaryrefslogtreecommitdiffhomepage
path: root/FaceTrackNoIR/ExcelServer.cpp
diff options
context:
space:
mode:
authorWim Vriend <facetracknoir@gmail.com>2011-01-18 21:51:48 +0000
committerWim Vriend <facetracknoir@gmail.com>2011-01-18 21:51:48 +0000
commit2a3ec553d3737f2d94c32c3372ebac5333819ddd (patch)
tree27adabc715afe26600fcc2558b2a57dcab8d82e9 /FaceTrackNoIR/ExcelServer.cpp
parentd0132f5e3881a6cb09bfe41326831d36527b7321 (diff)
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
Diffstat (limited to 'FaceTrackNoIR/ExcelServer.cpp')
-rw-r--r--FaceTrackNoIR/ExcelServer.cpp22
1 files changed, 19 insertions, 3 deletions
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;