From 092deb0416e1042b4dc60a3c074ad5ca3d9c70db Mon Sep 17 00:00:00 2001 From: Ben Klein Date: Thu, 18 Sep 2014 14:35:17 -0400 Subject: [PATCH] Update eval.cpp --- openbr/core/eval.cpp | 1 + 1 file changed, 1 insertion(+), 0 deletions(-) diff --git a/openbr/core/eval.cpp b/openbr/core/eval.cpp index dd3f548..0f7313b 100755 --- a/openbr/core/eval.cpp +++ b/openbr/core/eval.cpp @@ -142,6 +142,7 @@ float Evaluate(const QString &simmat, const QString &mask, const QString &csv, i float Evaluate(const Mat &simmat, const Mat &mask, const QString &target, const QString &query, const QString &csv, int matches) { + if ((target.isEmpty() || query.isEmpty()) && matches != 0) matches = 0; if (simmat.size() != mask.size()) qFatal("Similarity matrix (%ix%i) differs in size from mask matrix (%ix%i).", simmat.rows, simmat.cols, mask.rows, mask.cols); -- libgit2 0.21.4