From d1afd9c5ec5fa0549f0d8c53e98e2833eb39ce29 Mon Sep 17 00:00:00 2001 From: Shanigen Date: Wed, 18 Jul 2018 14:10:34 +0200 Subject: [PATCH] Renamed search parameter in KCF_Tracker::geometric_transformations to allow_debug. --- src/kcf.cpp | 4 ++-- src/kcf.h | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/kcf.cpp b/src/kcf.cpp index e501bc4..a0272cd 100644 --- a/src/kcf.cpp +++ b/src/kcf.cpp @@ -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); diff --git a/src/kcf.h b/src/kcf.h index 348c6a6..f748ffd 100644 --- 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 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 & responses, int index = -1); -- 2.39.2