From 3de65631c5743cdf87fadfcb109a9907e5936184 Mon Sep 17 00:00:00 2001 From: Josh Klontz Date: Mon, 8 May 2017 13:12:46 -0600 Subject: [PATCH] treat 0,0 like -1,-1 and NaN,NaN --- openbr/core/eval.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/openbr/core/eval.cpp b/openbr/core/eval.cpp index 19ae6e4..f2f84ee 100755 --- a/openbr/core/eval.cpp +++ b/openbr/core/eval.cpp @@ -866,10 +866,11 @@ float EvalLandmarking(const QString &predictedGallery, const QString &truthGalle QList truthPoints = truth[truthIndex].file.points(); // Standardize how we represent unlabeled points here - const QPointF find(-1,-1); + const QPointF findNegOne(-1,-1); + const QPointF findZero(0,0); const QPointF replace(std::numeric_limits::quiet_NaN(), std::numeric_limits::quiet_NaN()); for (int j=0; j= truthPoints.size()) qFatal("Normalization index A is out of range."); -- libgit2 0.21.4