Commit ffe49bde authored by Shresth Verma's avatar Shresth Verma

fixed createsamples info message

parent fc9e0314
...@@ -995,12 +995,12 @@ void icvGetNextFromBackgroundData( CvBackgroundData* data, ...@@ -995,12 +995,12 @@ void icvGetNextFromBackgroundData( CvBackgroundData* data,
{ {
round = data->round; round = data->round;
data->last = rand() % data->count;
#ifdef CV_VERBOSE #ifdef CV_VERBOSE
printf( "Open background image: %s\n", data->filename[data->last] ); printf( "Open background image: %s\n", data->filename[data->last] );
#endif /* CV_VERBOSE */ #endif /* CV_VERBOSE */
data->last = rand() % data->count;
data->last %= data->count;
img = cvLoadImage( data->filename[data->last], 0 ); img = cvLoadImage( data->filename[data->last], 0 );
if( !img ) if( !img )
continue; continue;
......
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