]> rtime.felk.cvut.cz Git - hercules2020/kcf.git/commit
Refactor p_pose and related variables
authorMichal Sojka <michal.sojka@cvut.cz>
Wed, 26 Sep 2018 14:29:34 +0000 (16:29 +0200)
committerMichal Sojka <michal.sojka@cvut.cz>
Wed, 26 Sep 2018 17:56:13 +0000 (19:56 +0200)
commit5eaa329549e19704e72c6ba56e1279029b494561
tree3f572692c964d4202d73b74ca1122f1d76aa3654
parent5427202eed02446872c7d5c523c6cff8dd16e6ef
Refactor p_pose and related variables

p_pose was used to store position of the tracked object. Its use was
confusing, because only the center point was updates and width/height
not. Width/height was updated only in getBBox() according to
p_current_scale.

This commit renames p_pose to p_init_pose and does not touch it after
init(). We store the position of the tracked object in
p_current_scale. getBBox is updated to calculate the bounding box from
p_current_center, p_current_scale and p_init_pose.
src/kcf.cpp
src/kcf.h