From 769d2f4c447b851ac9079a8760ff6df9f59a8a31 Mon Sep 17 00:00:00 2001 From: smirnov-alexey Date: Thu, 28 Mar 2019 12:59:51 +0300 Subject: [PATCH] Fix valgrind issue in NV12 test --- modules/gapi/test/common/gapi_imgproc_tests_inl.hpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/modules/gapi/test/common/gapi_imgproc_tests_inl.hpp b/modules/gapi/test/common/gapi_imgproc_tests_inl.hpp index de62aa8..08a317a 100644 --- a/modules/gapi/test/common/gapi_imgproc_tests_inl.hpp +++ b/modules/gapi/test/common/gapi_imgproc_tests_inl.hpp @@ -564,6 +564,7 @@ TEST_P(NV12toRGBTest, AccuracyTest) // Additional mat for uv cv::Mat in_mat_uv(cv::Size(sz.width / 2, sz.height / 2), CV_8UC2); + cv::randn(in_mat_uv, cv::Scalar::all(127), cv::Scalar::all(40.f)); cv::GComputation c(cv::GIn(in_y, in_uv), cv::GOut(out)); c.apply(cv::gin(in_mat1, in_mat_uv), cv::gout(out_mat_gapi), std::move(compile_args)); @@ -594,6 +595,7 @@ TEST_P(NV12toBGRTest, AccuracyTest) // Additional mat for uv cv::Mat in_mat_uv(cv::Size(sz.width / 2, sz.height / 2), CV_8UC2); + cv::randn(in_mat_uv, cv::Scalar::all(127), cv::Scalar::all(40.f)); cv::GComputation c(cv::GIn(in_y, in_uv), cv::GOut(out)); c.apply(cv::gin(in_mat1, in_mat_uv), cv::gout(out_mat_gapi), std::move(compile_args)); -- 2.7.4