]> rtime.felk.cvut.cz Git - hercules2020/kcf.git/blobdiff - vot.hpp
ComplexMat: Add CUDA stream synchronization before accessing host memory
[hercules2020/kcf.git] / vot.hpp
diff --git a/vot.hpp b/vot.hpp
index 6940386d648a434dc6e8ac461aa5ab1d701f969e..14edbacf48ddeb5044c44dfbce3e68b6535eaf8f 100644 (file)
--- a/vot.hpp
+++ b/vot.hpp
@@ -100,11 +100,11 @@ public:
         p_output_stream.open(ouput.c_str());
         if (!p_output_stream.is_open())
             std::cerr << "Error opening output file " << ouput << "!" << std::endl;
+        p_region_stream.close();
     }
 
     ~VOT()
     {
-        p_region_stream.close();
         p_images_stream.close();
         p_output_stream.close();
     }
@@ -157,7 +157,7 @@ public:
         std::getline (p_images_stream, line);
        if (line.empty() && p_images_stream.eof()) return -1;
         img = cv::imread(line, CV_LOAD_IMAGE_COLOR);
-     
+
         return 1;
     }