From 6b9a117ba3f11694f49923b2d904b31afdfd3bce Mon Sep 17 00:00:00 2001 From: Scott Klum Date: Tue, 17 Nov 2015 20:08:12 +0000 Subject: [PATCH] Minor slidingwindow polish --- openbr/plugins/imgproc/slidingwindow.cpp | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/openbr/plugins/imgproc/slidingwindow.cpp b/openbr/plugins/imgproc/slidingwindow.cpp index 3963ecd..feb5b68 100644 --- a/openbr/plugins/imgproc/slidingwindow.cpp +++ b/openbr/plugins/imgproc/slidingwindow.cpp @@ -156,11 +156,7 @@ class SlidingWindowTransform : public MetaTransform if (result == 1) { rects.append(Rect(cvRound(x/widthScale), cvRound(y/heightScale), detectionSize.width, detectionSize.height)); confidences.append(confidence); - } - - // TODO: Add non ROC mode - - if (result == 0) + } else x += step; } } -- libgit2 0.21.4