Merge pull request #196 from Auron-X/bug_fixing

Bug fixing
pull/229/head
Vadim Pisarevsky 10 years ago
commit f822984a3f
  1. 1
      modules/tracking/src/precomp.hpp
  2. 4
      modules/tracking/src/tld_utils.cpp

@ -44,6 +44,5 @@
#include "opencv2/tracking.hpp"
#include "opencv2/core/utility.hpp"
#include "opencv2/core/private.hpp"
#endif

@ -302,8 +302,8 @@ void TLDEnsembleClassifier::prepareClassifier(int rowstep)
lastStep_ = rowstep;
for( int i = 0; i < (int)offset.size(); i++ )
{
offset[i].x = rowstep * measurements[i].val[0] + measurements[i].val[1];
offset[i].y = rowstep * measurements[i].val[2] + measurements[i].val[3];
offset[i].x = rowstep * measurements[i].val[2] + measurements[i].val[0];
offset[i].y = rowstep * measurements[i].val[3] + measurements[i].val[1];
}
}
}

Loading…
Cancel
Save