From edc9d4f95159b856fa7e8500547083f1479423b2 Mon Sep 17 00:00:00 2001 From: Alexander Reshetnikov Date: Mon, 13 Feb 2012 12:41:27 +0000 Subject: [PATCH] fixed compiling error under Windows; updated test_video_io.cpp --- modules/highgui/CMakeLists.txt | 2 +- modules/highgui/test/test_video_io.cpp | 10 +++++----- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/modules/highgui/CMakeLists.txt b/modules/highgui/CMakeLists.txt index 1b64ac5..720a116 100644 --- a/modules/highgui/CMakeLists.txt +++ b/modules/highgui/CMakeLists.txt @@ -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() diff --git a/modules/highgui/test/test_video_io.cpp b/modules/highgui/test/test_video_io.cpp index 841f98f..4cedbfa 100644 --- a/modules/highgui/test/test_video_io.cpp +++ b/modules/highgui/test/test_video_io.cpp @@ -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(i, j) == Vec3b::all(0)) - img.at(i, j) = Vec3b(0, 255, 0); - else img.at(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(k, l) == Vec3b::all(0)) + img.at(k, l) = Vec3b(0, 255, 0); + else img.at(k, l) = Vec3b(0, 0, 255); imwrite(dir+"QCIF_"+s_digit.str()+".bmp", img); -- 2.7.4