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.x = min( (int)round % winSize.width, src.cols - winSize.width );
|
||||||
_offset.y = min( (int)round / winSize.width, src.rows - winSize.height );
|
_offset.y = min( (int)round / winSize.width, src.rows - winSize.height );
|
||||||
if( !src.empty() && src.type() == CV_8UC1
|
if( !src.empty() && src.type() == CV_8UC1
|
||||||
&& offset.x >= 0 && offset.y >= 0 )
|
&& _offset.x >= 0 && _offset.y >= 0 )
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user