From ee331b5a62a4def4bc78a5ed8a4cd791e25beb66 Mon Sep 17 00:00:00 2001 From: 103yiran <1039105206@qq.com> Date: Sat, 1 Jun 2019 17:54:58 +0800 Subject: [PATCH] replace to a more suitable variable --- eco/eco.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/eco/eco.cc b/eco/eco.cc index 8348b41..be07861 100644 --- a/eco/eco.cc +++ b/eco/eco.cc @@ -123,7 +123,7 @@ void ECO::init(cv::Mat &im, const cv::Rect2f &rect, const eco::EcoParameters &pa for (size_t i = 0; i < filter_size_.size(); ++i) // for each filter { cv::Mat_ tempy(filter_size_[i].height, 1, CV_32FC1); - cv::Mat_ tempx(1, filter_size_[i].height / 2 + 1, CV_32FC1); + cv::Mat_ tempx(1, filter_size_[i].width / 2 + 1, CV_32FC1); // ky in [-(N-1)/2, (N-1)/2], because N = filter_size_[i].height is odd (check above), N x 1; for (int j = 0; j < tempy.rows; j++)