]> rtime.felk.cvut.cz Git - hercules2020/kcf.git/commitdiff
Made an error message easier to read.
authorShanigen <vkaraf@gmail.com>
Tue, 24 Jul 2018 07:48:20 +0000 (09:48 +0200)
committerShanigen <vkaraf@gmail.com>
Tue, 24 Jul 2018 07:48:20 +0000 (09:48 +0200)
src/kcf.cpp

index e63285c4bb1a3bd5238aff8833a943f2b6e1691c..94ee6bf34533ed2db931c3d284cd6d4762ffc03b 100644 (file)
@@ -134,8 +134,9 @@ void KCF_Tracker::init(cv::Mat &img, const cv::Rect & bbox, int fit_size_x, int
 
 #ifdef CUFFT
     if (p_windows_size[1]/p_cell_size*(p_windows_size[0]/p_cell_size/2+1) > 1024) {
-        std::cerr << "Window after forward FFT is too big for CUDA kernels. Plese use -f to set the window dimensions so its size is less or equal to " <<
-        1024*p_cell_size*p_cell_size*2+1 << " pixels . Currently the size of the window is: " <<  p_windows_size[0] << "x" <<  p_windows_size[1] << 
+        std::cerr << "Window after forward FFT is too big for CUDA kernels. Plese use -f to set ""
+        "the window dimensions so its size is less or equal to " << 1024*p_cell_size*p_cell_size*2+1 <<
+        " pixels . Currently the size of the window is: " <<  p_windows_size[0] << "x" <<  p_windows_size[1] <<
         " which is  " <<  p_windows_size[0]*p_windows_size[1] << " pixels. " << std::endl;
         std::exit(EXIT_FAILURE);
     }