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

pull/1844/head
StevenPuttemans 11 years ago
parent 70a4de20d7
commit e59912f803
  1. 2
      apps/traincascade/imagestorage.cpp

@ -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…
Cancel
Save