Merge pull request #1844 from StevenPuttemans:bugfix_3370

This commit is contained in:
Andrey Pavlenko 2013-12-06 15:51:59 +04:00 committed by OpenCV Buildbot
commit 77d04a2622

View File

@ -70,7 +70,7 @@ bool CvCascadeImageReader::NegReader::nextImg()
_offset.x = std::min( (int)round % winSize.width, src.cols - winSize.width );
_offset.y = std::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;
}