Commit f6ae8cdf434ddb9365c1209cf962e0edaa049798

Authored by Ben Klein
1 parent fb4c843f

Update eval.cpp

Showing 1 changed file with 1 additions and 3 deletions
openbr/core/eval.cpp
@@ -313,9 +313,7 @@ float Evaluate(const Mat &simmat, const Mat &mask, const QString &csv, const QSt @@ -313,9 +313,7 @@ float Evaluate(const Mat &simmat, const Mat &mask, const QString &csv, const QSt
313 // Attempt to read template size from enrolled gallery and write to output CSV 313 // Attempt to read template size from enrolled gallery and write to output CSV
314 size_t maxSize(0); 314 size_t maxSize(0);
315 if (target.endsWith(".gal")) { 315 if (target.endsWith(".gal")) {
316 - foreach (const Template &t, TemplateList::fromGallery(target)) {  
317 - maxSize = max(maxSize, t.bytes());  
318 - } 316 + foreach (const Template &t, TemplateList::fromGallery(target)) maxSize = max(maxSize, t.bytes());
319 } 317 }
320 318
321 lines.append(QString("TS,,%1").arg(QString::number(maxSize))); 319 lines.append(QString("TS,,%1").arg(QString::number(maxSize)));