Commit 8c25f9f2 authored by Bahram Dahi's avatar Bahram Dahi

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

parent 7d904146
......@@ -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);
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment