]> rtime.felk.cvut.cz Git - hercules2020/kcf.git/commitdiff
Rename num_of_feats to num_channels
authorMichal Sojka <michal.sojka@cvut.cz>
Sun, 16 Sep 2018 13:19:10 +0000 (15:19 +0200)
committerMichal Sojka <michal.sojka@cvut.cz>
Thu, 20 Sep 2018 13:47:58 +0000 (15:47 +0200)
This is more accurate.

src/threadctx.hpp

index 8b9e619bd966d7a6ab80422c39b2b54829017561..6c460376f0cd171ec5797100c5e6b171a442e256 100644 (file)
@@ -15,7 +15,7 @@ class KCF_Tracker;
 
 struct ThreadCtx {
   public:
-    ThreadCtx(cv::Size roi, uint num_of_feats, double scale, uint num_of_scales)
+    ThreadCtx(cv::Size roi, uint num_channels, double scale, uint num_of_scales)
         : scale(scale)
         , gc(num_of_scales)
     {
@@ -23,30 +23,30 @@ struct ThreadCtx {
 
 #if defined(CUFFT) || defined(FFTW)
         this->gauss_corr_res = DynMem(cells_size * num_of_scales);
-        this->data_features = DynMem(cells_size * num_of_feats);
+        this->data_features = DynMem(cells_size * num_channels);
 
         uint width_freq = roi.width / 2 + 1;
 
         this->in_all = cv::Mat(roi.height * num_of_scales, roi.width, CV_32F, this->gauss_corr_res.hostMem());
-        this->fw_all = cv::Mat(roi.height * num_of_feats, roi.width, CV_32F, this->data_features.hostMem());
+        this->fw_all = cv::Mat(roi.height * num_channels, roi.width, CV_32F, this->data_features.hostMem());
 #else
         uint width_freq = roi.width;
 
         this->in_all = cv::Mat(roi, CV_32F);
 #endif
 
-        this->data_i_features = DynMem(cells_size * num_of_feats);
+        this->data_i_features = DynMem(cells_size * num_channels);
         this->data_i_1ch = DynMem(cells_size * num_of_scales);
 
-        this->ifft2_res = cv::Mat(roi, CV_32FC(num_of_feats), this->data_i_features.hostMem());
+        this->ifft2_res = cv::Mat(roi, CV_32FC(num_channels), this->data_i_features.hostMem());
         this->response = cv::Mat(roi, CV_32FC(num_of_scales), this->data_i_1ch.hostMem());
 
 #ifdef CUFFT
-        this->zf.create(roi.height, width_freq, num_of_feats, num_of_scales);
+        this->zf.create(roi.height, width_freq, num_channels, num_of_scales);
         this->kzf.create(roi.height, width_freq, num_of_scales);
         this->kf.create(roi.height, width_freq, num_of_scales);
 #else
-        this->zf.create(roi.height, width_freq, num_of_feats, num_of_scales);
+        this->zf.create(roi.height, width_freq, num_channels, num_of_scales);
         this->kzf.create(roi.height, width_freq, num_of_scales);
         this->kf.create(roi.height, width_freq, num_of_scales);
 #endif