joaofaro / KCFcpp

C++ Implementation of KCF Tracker
BSD 3-Clause "New" or "Revised" License
895 stars 446 forks source link

Multiscale will not change the size when bigger_scale_peak > smaller_scale_peak > normal_scale_peak #17

Open aseuteurideu opened 6 years ago

aseuteurideu commented 6 years ago

Looking at this part (update method), it seems the _roi.width, _roi.height, and _scale will not change to bigger scale when bigger_scale_peak > smaller_scale_peak > normal_scale_peak. (I removed the scale_weight multiplication in this explanation to keep it simple)

Because the variables are first divided by scale_step here then multiplied with the same scale_step here. In the end, the variables return to normal scale in this case, while it should be bigger scale.

CMIIW. Thank you~

aimhabo commented 6 years ago

similar problem, The box is always the initial size, and it will be lost after tracking for a while