[3rd attempt] fixed HOGDescriptor::detectMultiScale() to group weights as well as ROIs

This commit is contained in:
Bahram Dahi 2013-05-20 13:20:57 -04:00
parent 7d9041460a
commit 8c25f9f28a

View File

@ -1060,7 +1060,9 @@ void HOGDescriptor::detectMultiScale(
}
else
{
groupRectangles(foundLocations, (int)finalThreshold, 0.2);
vector<int> dummy;
dummy.resize(foundLocations.size(), INT_MAX);
groupRectangles(foundLocations, (int)finalThreshold, 0.2, &dummy, &foundWeights);
}
}