]> rtime.felk.cvut.cz Git - hercules2020/kcf.git/commitdiff
Renamed search parameter in KCF_Tracker::geometric_transformations to allow_debug.
authorShanigen <vkaraf@gmail.com>
Wed, 18 Jul 2018 12:10:34 +0000 (14:10 +0200)
committerMichal Sojka <michal.sojka@cvut.cz>
Wed, 25 Jul 2018 07:36:13 +0000 (09:36 +0200)
src/kcf.cpp
src/kcf.h

index e501bc4450c4e74c2c889b774963a4d6180f3458..a0272cd32252fe1c7235fcfe7ece871f836c4b79 100644 (file)
@@ -791,7 +791,7 @@ cv::Mat KCF_Tracker::get_subwindow(const cv::Mat &input, int cx, int cy, int wid
     return patch;
 }
 
-void KCF_Tracker::geometric_transformations(cv::Mat& patch, int size_x, int size_y, double scale,int angle, bool search)
+void KCF_Tracker::geometric_transformations(cv::Mat& patch, int size_x, int size_y, double scale,int angle, bool allow_debug)
 {
      if (m_use_angle) {
          cv::Point2f center((patch.cols-1)/2., (patch.rows-1)/2.);
@@ -815,7 +815,7 @@ void KCF_Tracker::geometric_transformations(cv::Mat& patch, int size_x, int size
          }else {
              cv::resize(patch, patch, cv::Size(size_x/p_cell_size, size_y/p_cell_size), 0., 0., cv::INTER_LINEAR);
          }
-         if (m_visual_debug && search) {
+         if (m_visual_debug && allow_debug) {
              cv::Mat input_clone = patch.clone();
              cv::resize(input_clone, input_clone, cv::Size(p_debug_image_size, p_debug_image_size), 0., 0., cv::INTER_LINEAR);
 
index 348c6a61d62fd51c315ed233f8d9cbcb5d94e47a..f748ffd358cef147fe4e4bd4c08c168a863d4265 100644 (file)
--- a/src/kcf.h
+++ b/src/kcf.h
@@ -156,7 +156,7 @@ private:
     cv::Mat circshift(const cv::Mat & patch, int x_rot, int y_rot);
     cv::Mat cosine_window_function(int dim1, int dim2);
     std::vector<cv::Mat> get_features(cv::Mat & input_rgb, cv::Mat & input_gray);
-    void geometric_transformations(cv::Mat & patch, int size_x, int size_y, double scale = 1, int angle = 0, bool search = true);
+    void geometric_transformations(cv::Mat & patch, int size_x, int size_y, double scale = 1, int angle = 0, bool allow_debug = true);
     cv::Point2f sub_pixel_peak(cv::Point & max_loc, cv::Mat & response);
     double sub_grid_scale(std::vector<double> & responses, int index = -1);