1
0
mirror of https://github.com/opencv/opencv.git synced 2026-07-30 15:53:03 +04:00

Merge pull request #9683 from terfendail:grects_weights

This commit is contained in:
Vadim Pisarevsky
2017-09-28 14:02:12 +00:00
+1 -1
View File
@@ -64,7 +64,7 @@ void groupRectangles(std::vector<Rect>& rectList, int groupThreshold, double eps
if( groupThreshold <= 0 || rectList.empty() )
{
if( weights )
if( weights && !levelWeights )
{
size_t i, sz = rectList.size();
weights->resize(sz);