joaofaro / KCFcpp

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

Fix crash while input is 1280px wide #6

Open isgursoy opened 7 years ago

isgursoy commented 7 years ago

(city.avi) 1280x720: _size_patch[1] becomes zero and reshape in the createHanningMats blows out in release mode because of zero column size.

isgursoy commented 7 years ago

I tried city.avi in different resolutions and it was crashing only for 1280x720. I am still reproducing this issue after above change and it looks like input frame size is not related with that. Need same for _size_patch[1]/Y.

ysolovyov commented 5 years ago

https://github.com/joaofaro/KCFcpp/pull/22, it is crashing only if width >> height or height >> width