From 8c25f9f28ac3295fea151f7025611479e6b3a67a Mon Sep 17 00:00:00 2001 From: Bahram Dahi Date: Mon, 20 May 2013 13:20:57 -0400 Subject: [PATCH] [3rd attempt] fixed HOGDescriptor::detectMultiScale() to group weights as well as ROIs --- modules/objdetect/src/hog.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/modules/objdetect/src/hog.cpp b/modules/objdetect/src/hog.cpp index 1eab434f66..0ed9bbca48 100644 --- a/modules/objdetect/src/hog.cpp +++ b/modules/objdetect/src/hog.cpp @@ -1060,7 +1060,9 @@ void HOGDescriptor::detectMultiScale( } else { - groupRectangles(foundLocations, (int)finalThreshold, 0.2); + vector dummy; + dummy.resize(foundLocations.size(), INT_MAX); + groupRectangles(foundLocations, (int)finalThreshold, 0.2, &dummy, &foundWeights); } }