Skip to content

Commit

Permalink
WriterIdentification: added evaluation file to settings
Browse files Browse the repository at this point in the history
  • Loading branch information
sfiel committed Jun 15, 2016
1 parent ec96ecb commit 7bba46b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -352,7 +352,7 @@ void WriterIdentificationPlugin::postLoadPlugin(const QVector<QSharedPointer<nmc
}
//wiDatabase.evaluateDatabase(classLabels, featurePaths/*, QString("c:\\tmp\\eval-2.txt")*/);
//wiDatabase.evaluateDatabase(hists, classLabels, featurePaths/*, QString("c:\\tmp\\eval-2.txt")*/);
wiDatabase.evaluateDatabase(hists, classLabels, featurePaths, QString("c:\\tmp\\onlyAreaEval.txt"));
wiDatabase.evaluateDatabase(hists, classLabels, featurePaths, mEvalFile);
}
}

Expand All @@ -376,6 +376,7 @@ void WriterIdentificationPlugin::loadSettings(QSettings & settings) {
mVocPowerNormalization = settings.value("powerNormalization", 1).toDouble();
mFeatureDir = settings.value("featureDir", QString()).toString();

mEvalFile = settings.value("evalFile", QString()).toString();

qDebug() << "settings read: path: " << mSettingsVocPath << " type:" << mVocType << " numberOfClusters:" << mVocNumberOfClusters << " numberOfPCA: " << mVocNumberOfPCA;
settings.endGroup();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,7 @@ class WriterIdentificationPlugin : public QObject, nmc::DkBatchPluginInterface {
double mVocPowerNormalization;
WIVocabulary mVocabulary = WIVocabulary();
QString mFeatureDir = QString();
QString mEvalFile = QString();
};

};

0 comments on commit 7bba46b

Please sign in to comment.