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.);
}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);
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);