Commit 6b04c2b9 authored by Vadim Pisarevsky's avatar Vadim Pisarevsky

Merge pull request #4027 from zenev:master

parents 7061bf00 6ac4a4ce
...@@ -54,8 +54,10 @@ bool CvCascadeImageReader::NegReader::nextImg() ...@@ -54,8 +54,10 @@ bool CvCascadeImageReader::NegReader::nextImg()
for( size_t i = 0; i < count; i++ ) for( size_t i = 0; i < count; i++ )
{ {
src = imread( imgFilenames[last++], 0 ); src = imread( imgFilenames[last++], 0 );
if( src.empty() ) if( src.empty() ){
last %= count;
continue; continue;
}
round += last / count; round += last / count;
round = round % (winSize.width * winSize.height); round = round % (winSize.width * winSize.height);
last %= count; last %= count;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment