Applied fix mentioned in bugreport 3370. Seems to solve the issue.

This commit is contained in:
StevenPuttemans 2013-11-21 14:07:53 +01:00
parent 70a4de20d7
commit e59912f803

View File

@ -67,7 +67,7 @@ bool CvCascadeImageReader::NegReader::nextImg()
_offset.x = min( (int)round % winSize.width, src.cols - winSize.width );
_offset.y = min( (int)round / winSize.width, src.rows - winSize.height );
if( !src.empty() && src.type() == CV_8UC1
&& offset.x >= 0 && offset.y >= 0 )
&& _offset.x >= 0 && _offset.y >= 0 )
break;
}