Commit c994b489 authored by Vlad Shakhuro's avatar Vlad Shakhuro

Fix gcc warning

parent d8b0e8d5
...@@ -92,7 +92,7 @@ void ICFDetector::train(const vector<string>& image_filenames, ...@@ -92,7 +92,7 @@ void ICFDetector::train(const vector<string>& image_filenames,
for( size_t i = 0; i < image_filenames.size(); ++i ) for( size_t i = 0; i < image_filenames.size(); ++i )
{ {
Mat img = imread(String(image_filenames[i].c_str())); Mat img = imread(String(image_filenames[i].c_str()));
for( int j = 0; j < pos_count / image_filenames.size() + 1; ) for( int j = 0; j < (int)(pos_count / image_filenames.size() + 1); )
{ {
Rect r; Rect r;
r.x = rng.uniform(0, img.cols); r.x = rng.uniform(0, img.cols);
......
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