diff --git a/openbr/core/eval.cpp b/openbr/core/eval.cpp index a09e6aa..3345e15 100755 --- a/openbr/core/eval.cpp +++ b/openbr/core/eval.cpp @@ -160,7 +160,7 @@ float Evaluate(const QString &simmat, const QString &mask, const File &csv, unsi QScopedPointer format(Factory::make(simmat)); scores = format->read(); } - + // Read mask matrix Mat truth; if (mask.isEmpty()) { @@ -225,7 +225,7 @@ float Evaluate(const Mat &simmat, const Mat &mask, const File &csv, const QStrin genuineSearches[comparison.query] = -1; } impostorCount++; - } + } } } @@ -438,7 +438,7 @@ float Evaluate(const Mat &simmat, const Mat &mask, const File &csv, const QStrin QtUtils::writeFile(csv, lines); if (maxSize > 0) qDebug("Template Size: %i bytes", (int)maxSize); - foreach (float FAR, QList() << 0.01 << 0.001 << 0.0001 << 0.00001) { + foreach (float FAR, QList() << 1e-2 << 1e-3 << 1e-4 << 1e-5 << 1e-6) { const OperatingPoint op = getOperatingPointGivenFAR(operatingPoints, FAR); printf("TAR & Similarity @ FAR = %.0e: %.3f %.3f\n", FAR, op.TAR, op.score); } @@ -633,9 +633,9 @@ float InplaceEval(const QString &simmat, const QString &target, const QString &q qint64 impAccum = highImpostors; QMapIterator i(genScoresToCounts); - + i.toBack(); - + // iterating in reverse order of thresholds while (i.hasPrevious()) { i.previous();