X-Git-Url: http://rtime.felk.cvut.cz/gitweb/hercules2020/kcf.git/blobdiff_plain/571f4d8d757c1c80ca19da30f7bd2937b60a7f56..18dbfb65dec1bfe40de84e7dafd06426f4b6f3ce:/src/kcf.h diff --git a/src/kcf.h b/src/kcf.h index 76abc5e..18f132d 100644 --- a/src/kcf.h +++ b/src/kcf.h @@ -46,11 +46,12 @@ class KCF_Tracker friend Kcf_Tracker_Private; public: bool m_debug {false}; - bool m_visual_debug {false}; + enum class vd {NONE, PATCH, RESPONSE} m_visual_debug {vd::NONE}; const bool m_use_scale {true}; const bool m_use_color {true}; const bool m_use_subpixel_localization {true}; const bool m_use_subgrid_scale {true}; + const bool m_use_subgrid_angle {true}; const bool m_use_cnfeat {true}; const bool m_use_linearkernel {false}; const int p_cell_size = 4; //4 for hog (= bin_size) @@ -105,12 +106,12 @@ private: cv::Size p_windows_size; // size of the patch to find the tracked object in cv::Size fit_size; // size to which rescale the patch for better FFT performance - const uint p_num_scales = m_use_scale ? 7 : 1; - const double p_scale_step = 1.02; + const uint p_num_scales = m_use_scale ? 5 : 1; + const double p_scale_step = 1.03; double p_min_max_scale[2]; std::vector p_scales; - const uint p_num_angles = 1; + const uint p_num_angles = 3; const int p_angle_step = 10; std::vector p_angles; @@ -176,6 +177,7 @@ private: void resizeImgs(cv::Mat &input_rgb, cv::Mat &input_gray); void train(cv::Mat input_rgb, cv::Mat input_gray, double interp_factor); double findMaxReponse(uint &max_idx, cv::Point2d &new_location) const; + double sub_grid_angle(uint max_index); }; #endif //KCF_HEADER_6565467831231