Commit 9a70fd01 authored by Vitaly Tuzov's avatar Vitaly Tuzov

Disabling reset of 'weights' array for reject level mode of groupRectangles function.

parent cc547e82
......@@ -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