Commit a6d634b5 authored by Vadim Pisarevsky's avatar Vadim Pisarevsky

Merge pull request #9683 from terfendail:grects_weights

parents af8fc3e2 9a70fd01
......@@ -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);
......
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