]> rtime.felk.cvut.cz Git - hercules2020/kcf.git/commitdiff
Visualize result by default and do not wait for a key
authorMichal Sojka <michal.sojka@cvut.cz>
Thu, 22 Feb 2018 15:13:38 +0000 (16:13 +0100)
committerMichal Sojka <michal.sojka@cvut.cz>
Thu, 22 Feb 2018 15:13:38 +0000 (16:13 +0100)
Makefile
main_vot.cpp

index 9ace185cc271c1eff7e3a5c7493bdb50666ab9ee..ac49972312dcbdb8b330f42c3a6854b5b0e2db44 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -4,6 +4,8 @@ BUILDS = opencvfft-st opencvfft-async fftw fftw-parallel fftw_openmp opencv-cuff
 
 all: $(foreach build,$(BUILDS),build-$(build)/kcf_vot)
 
+CMAKE_OPTS = -DVISULIZE_RESULT=ON
+
 CMAKE_OTPS_opencvfft-st    =
 CMAKE_OTPS_opencvfft-async = -DASYNC=ON
 CMAKE_OTPS_opencv-cufft    = -DOPENCV_CUFFT=ON
@@ -14,7 +16,7 @@ CMAKE_OTPS_fftw_openmp     = -D=FFTW=ON -DFFTW_OPENMP=ON
 
 build-%/kcf_vot: $(shell git ls-files)
        mkdir -p $(@D)
-       cd $(@D) && cmake $(CMAKE_OTPS_$*) ..
+       cd $(@D) && cmake $(CMAKE_OPTS) $(CMAKE_OTPS_$*) ..
        cmake --build $(@D)
 
 clean:
index 0965d14bd87cae196a0dd251dd66582083bac3f4..2d223daac74935b2152f628bf4cc821f332fa801 100644 (file)
@@ -62,7 +62,7 @@ int main(int argc, char *argv[])
 #ifdef VISULIZE_RESULT
        cv::rectangle(image, cv::Rect(bb.cx - bb.w/2., bb.cy - bb.h/2., bb.w, bb.h), CV_RGB(0,255,0), 2);
        cv::imshow("output", image);
-       cv::waitKey();
+       cv::waitKey(10);
 #endif //VISULIZE
 
 //        std::stringstream s;