fixed compiling error under Windows; updated test_video_io.cpp
This commit is contained in:
parent
35c19442a7
commit
edc9d4f951
@ -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()
|
||||
|
@ -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);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user