]> rtime.felk.cvut.cz Git - hercules2020/kcf.git/commitdiff
Reduce the number of evaluated scales
authorMichal Sojka <michal.sojka@cvut.cz>
Fri, 19 Oct 2018 07:52:18 +0000 (09:52 +0200)
committerMichal Sojka <michal.sojka@cvut.cz>
Fri, 19 Oct 2018 07:52:18 +0000 (09:52 +0200)
This improves the performance a bit, while keeping almost the same
accuracy.

src/kcf.h

index 4a7f9f0e499894d77ed1b0d70e4acc3034bc78cb..3d108c6e09daee07c90c9973ff58f122206759a9 100644 (file)
--- a/src/kcf.h
+++ b/src/kcf.h
@@ -105,8 +105,8 @@ 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<double> p_scales;