Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions src/kcf.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,8 @@ void KCF_Tracker::init(cv::Mat &img, const cv::Rect & bbox)
}

//compute win size + fit to fhog cell size
p_windows_size[0] = round(p_pose.w * (1. + p_padding) / p_cell_size) * p_cell_size;
p_windows_size[1] = round(p_pose.h * (1. + p_padding) / p_cell_size) * p_cell_size;
p_windows_size[0] = ceil(p_pose.w * (1. + p_padding) / (float)(p_cell_size*2)) * p_cell_size * 2;
p_windows_size[1] = ceil(p_pose.h * (1. + p_padding) / (float)(p_cell_size*2)) * p_cell_size * 2;

p_scales.clear();
if (m_use_scale)
Expand Down Expand Up @@ -659,4 +659,4 @@ double KCF_Tracker::sub_grid_scale(std::vector<double> & responses, int index)
if (a > 0 || a < 0)
scale = -b / (2 * a);
return scale;
}
}