diff --git a/modules/highgui/CMakeLists.txt b/modules/highgui/CMakeLists.txt index 1b64ac5dee..720a116ec1 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 841f98faec..4cedbfa038 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);