fixed compiling error under Windows; updated test_video_io.cpp
authorAlexander Reshetnikov <no@email>
Mon, 13 Feb 2012 12:41:27 +0000 (12:41 +0000)
committerAlexander Reshetnikov <no@email>
Mon, 13 Feb 2012 12:41:27 +0000 (12:41 +0000)
modules/highgui/CMakeLists.txt
modules/highgui/test/test_video_io.cpp

index 1b64ac5..720a116 100644 (file)
@@ -270,5 +270,5 @@ set_target_properties(${the_module} PROPERTIES LINK_INTERFACE_LIBRARIES "")
 
 ocv_add_precompiled_headers(${the_module})
 
-ocv_add_accuracy_tests()
+ocv_add_accuracy_tests(highgui opencv_imgproc)
 ocv_add_perf_tests()
index 841f98f..4cedbfa 100644 (file)
@@ -412,11 +412,11 @@ void CV_HighGuiTest::SpecificVideoFileTest(const string& dir, const char codecch
 
             cv::resize(img, img, Size(968, 757), 0.0, 0.0, cv::INTER_CUBIC);
 
-            for (int i = 0; i < img.rows; ++i)
-                for (int j = 0; j < img.cols; ++j)
-                    if (img.at<Vec3b>(i, j) == Vec3b::all(0))
-                        img.at<Vec3b>(i, j) = Vec3b(0, 255, 0);
-            else img.at<Vec3b>(i, j) = Vec3b(0, 0, 255);
+            for (int k = 0; k < img.rows; ++k)
+                for (int l = 0; l < img.cols; ++l)
+                    if (img.at<Vec3b>(k, l) == Vec3b::all(0))
+                        img.at<Vec3b>(k, l) = Vec3b(0, 255, 0);
+            else img.at<Vec3b>(k, l) = Vec3b(0, 0, 255);
 
             imwrite(dir+"QCIF_"+s_digit.str()+".bmp", img);