From 02ead89d62b8c84d2908f0865ede07a8e2f6bc1b Mon Sep 17 00:00:00 2001 From: Brendan Klare Date: Sat, 10 Aug 2013 10:27:56 -0400 Subject: [PATCH] Handle non-thresholdable output for detection plotting --- openbr/core/eval.cpp | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/openbr/core/eval.cpp b/openbr/core/eval.cpp index 05ce85d..74d79ca 100644 --- a/openbr/core/eval.cpp +++ b/openbr/core/eval.cpp @@ -383,13 +383,19 @@ static QStringList computeDetectionResults(const QList &detec } const int keep = qMin(points.size(), Max_Points); - if (keep < 2) qFatal("Insufficient points."); + if (keep < 1) qFatal("Insufficient points."); QStringList lines; lines.reserve(keep); - for (int i=0; i