Skip to content

Commit

Permalink
Applied fix mentioned in bugreport 3370. Seems to solve the issue.
Browse files Browse the repository at this point in the history
  • Loading branch information
StevenPuttemans committed Nov 22, 2013
1 parent 70a4de2 commit e59912f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apps/traincascade/imagestorage.cpp
Expand Up @@ -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;
}

Expand Down

0 comments on commit e59912f

Please sign in to comment.