#523 Fix the problem where the MaxSize parameter in cvHaarDetectObjects does not work when the flag CV_HAAR_SCALE_IMAGE is not set.

This commit is contained in:
Takahiro Horikawa 2012-09-04 20:46:42 -07:00
parent 5eac0419b2
commit ec45453baa

View File

@ -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 );