diff --git a/openbr/core/eval.cpp b/openbr/core/eval.cpp index 1937888..391aef1 100755 --- a/openbr/core/eval.cpp +++ b/openbr/core/eval.cpp @@ -1251,7 +1251,7 @@ void EvalEER(const QString &predictedXML, QString gt_property, QString distribut const TemplateList templateList(TemplateList::fromGallery(predictedXML)); QHash gtLabels; - QHash > scores; + QHash scores; for (int i=0; i(gt_property); if (gtLabel == 1) classOneTemplateCount++; - const QList templateScores = templateList[i].file.getList(distribution_property); + const float templateScores = templateList[i].file.get(distribution_property); gtLabels[templateKey] = gtLabel; scores[templateKey] = templateScores; } @@ -1278,13 +1278,13 @@ void EvalEER(const QString &predictedXML, QString gt_property, QString distribut foreach(const QString &key, scores.keys()) { int gtLabel = gtLabels[key]; //> thresNorm = class 0 (spoof) : < thresNorm = class 1 (genuine) - if (scores[key][0] >= thresNorm && gtLabel == 0) + if (scores[key] >= thresNorm && gtLabel == 0) continue; - else if (scores[key][0] < thresNorm && gtLabel == 1) + else if (scores[key] < thresNorm && gtLabel == 1) continue; - else if (scores[key][0] >= thresNorm && gtLabel == 1) + else if (scores[key] >= thresNorm && gtLabel == 1) FR +=1; - else if (scores[key][0] < thresNorm && gtLabel == 0) + else if (scores[key] < thresNorm && gtLabel == 0) FA +=1; } const float FAR = FA / float(numTemplates - classOneTemplateCount);