Merge pull request #1844 from StevenPuttemans:bugfix_3370

pull/1762/merge
Andrey Pavlenko 11 years ago committed by OpenCV Buildbot
commit 77d04a2622
  1. 2
      apps/traincascade/imagestorage.cpp

@ -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;
}

Loading…
Cancel
Save