Skip to content

Commit

Permalink
Merge pull request opencv#11265 from severus-tux:patch-1
Browse files Browse the repository at this point in the history
  • Loading branch information
alalek committed Apr 8, 2018
2 parents ade29fc + 6b4fcd5 commit 02eab9e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion samples/cpp/train_HOG.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ void sample_neg( const vector< Mat > & full_neg_lst, vector< Mat > & neg_lst, co
srand( (unsigned int)time( NULL ) );

for ( size_t i = 0; i < full_neg_lst.size(); i++ )
if ( full_neg_lst[i].cols >= box.width && full_neg_lst[i].rows >= box.height )
if ( full_neg_lst[i].cols > box.width && full_neg_lst[i].rows > box.height )
{
box.x = rand() % ( full_neg_lst[i].cols - size_x );
box.y = rand() % ( full_neg_lst[i].rows - size_y );
Expand Down

0 comments on commit 02eab9e

Please sign in to comment.