Commit ec45453b authored by Takahiro Horikawa's avatar Takahiro Horikawa

#523 Fix the problem where the MaxSize parameter in cvHaarDetectObjects does not…

#523 Fix the problem where the MaxSize parameter in cvHaarDetectObjects does not work when the flag CV_HAAR_SCALE_IMAGE is not set.
parent 5eac0419
......@@ -1531,6 +1531,13 @@ cvHaarDetectObjectsForROC( const CvArr* _img,
continue;
}
if ( winSize.width > maxSize.width || winSize.height > maxSize.height )
{
if( !findBiggestObject )
break;
continue;
}
cvSetImagesForHaarClassifierCascade( cascade, sum, sqsum, tilted, factor );
cvZero( temp );
......
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