summaryrefslogtreecommitdiffhomepage
path: root/FaceTrackNoIR/tracker.cpp
diff options
context:
space:
mode:
authorWim Vriend <facetracknoir@gmail.com>2012-01-15 16:56:28 +0000
committerWim Vriend <facetracknoir@gmail.com>2012-01-15 16:56:28 +0000
commit671a0a2fb81830b364d708a3f6123e44f88042cf (patch)
tree36331bc575835e513bbc772fa112534a5c28c72d /FaceTrackNoIR/tracker.cpp
parentd6086d8203ae4f4b45f3d97960788d603fc78e16 (diff)
Finished making the Filter a plug-in and implemented the DZ1 filter.
First attempt though... git-svn-id: svn+ssh://svn.code.sf.net/p/facetracknoir/code@100 19e81ba0-9b1a-49c3-bd6c-561e1906d5fb
Diffstat (limited to 'FaceTrackNoIR/tracker.cpp')
-rw-r--r--FaceTrackNoIR/tracker.cpp15
1 files changed, 13 insertions, 2 deletions
diff --git a/FaceTrackNoIR/tracker.cpp b/FaceTrackNoIR/tracker.cpp
index 70754a1c..cb3a5b79 100644
--- a/FaceTrackNoIR/tracker.cpp
+++ b/FaceTrackNoIR/tracker.cpp
@@ -255,8 +255,19 @@ QFrame *video_frame;
//
// Load the DLL with the filter-logic and retrieve a pointer to the Filter-class.
- //
- filterLib = new QLibrary("FTNoIR_Filter_EWMA2.dll");
+ // The name of the filter can be found in the INI-file...
+ libName.clear();
+ 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 ( "Filter" );
+ libName = iniFile.value ( "Selection", "FTNoIR_Filter_EWMA2.dll" ).toString();
+ qDebug() << "Tracker::Tracker() says: selectedFilterName = " << libName;
+ iniFile.endGroup ();
+
+ filterLib = new QLibrary(libName);
getFilter = (importGetFilter) filterLib->resolve("GetFilter");
if (getFilter) {