projects
/
platform
/
upstream
/
opencv.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fc9e031
)
fixed createsamples info message
author
Shresth Verma
<vermashresth@gmail.com>
Sun, 3 Dec 2017 21:46:22 +0000
(
03:16
+0530)
committer
Shresth Verma
<vermashresth@gmail.com>
Tue, 5 Dec 2017 17:54:22 +0000
(23:24 +0530)
apps/createsamples/utility.cpp
patch
|
blob
|
history
diff --git
a/apps/createsamples/utility.cpp
b/apps/createsamples/utility.cpp
index
2226cd8
..
c1e5273
100644
(file)
--- a/
apps/createsamples/utility.cpp
+++ b/
apps/createsamples/utility.cpp
@@
-995,12
+995,12
@@
void icvGetNextFromBackgroundData( CvBackgroundData* data,
{
round = data->round;
+ data->last = rand() % data->count;
+
#ifdef CV_VERBOSE
printf( "Open background image: %s\n", data->filename[data->last] );
#endif /* CV_VERBOSE */
- data->last = rand() % data->count;
- data->last %= data->count;
img = cvLoadImage( data->filename[data->last], 0 );
if( !img )
continue;