]> rtime.felk.cvut.cz Git - hercules2020/kcf.git/commitdiff
Fix sub_grid_scale calculation
authorMichal Sojka <michal.sojka@cvut.cz>
Thu, 18 Oct 2018 14:37:05 +0000 (16:37 +0200)
committerMichal Sojka <michal.sojka@cvut.cz>
Thu, 18 Oct 2018 15:12:12 +0000 (17:12 +0200)
src/kcf.cpp

index 5fbcdf09c21bae89ee1d8aeed8065a2c286a0945..66689250c0af5e8779a26efd01731c7005eecb4e 100644 (file)
@@ -844,7 +844,7 @@ double KCF_Tracker::sub_grid_scale(uint max_index)
     cv::Mat A, fval;
     const auto &vec = d->IF_BIG_BATCH(threadctxs[0].max, threadctxs);
     uint index = vec.getScaleIdx(max_index);
-    uint angle_idx = vec.getAngleIdx(index);
+    uint angle_idx = vec.getAngleIdx(max_index);
 
     if (index >= vec.size()) {
         // interpolate from all values