From: Alexander Reshetnikov Date: Mon, 13 Feb 2012 12:41:27 +0000 (+0000) Subject: fixed compiling error under Windows; updated test_video_io.cpp X-Git-Tag: accepted/2.0/20130307.220821~1333 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=edc9d4f95159b856fa7e8500547083f1479423b2;p=profile%2Fivi%2Fopencv.git fixed compiling error under Windows; updated test_video_io.cpp --- 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);