mirror of
https://github.com/opencv/opencv.git
synced 2025-01-18 06:03:15 +08:00
Applied fix mentioned in bugreport 3370. Seems to solve the issue.
This commit is contained in:
parent
70a4de20d7
commit
e59912f803
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user