// This file is part of OpenCV project. // It is subject to the license terms in the LICENSE file found in the top-level directory // of this distribution and at http://opencv.org/license.html. // // Copyright (C) 2018-2019 Intel Corporation #ifndef OPENCV_GAPI_RENDER_TESTS_INL_HPP #define OPENCV_GAPI_RENDER_TESTS_INL_HPP #include #include "gapi_render_tests.hpp" namespace opencv_test { TEST_P(RenderNV12, AccuracyTest) { std::tie(sz, prims, pkg) = GetParam(); Init(); cv::gapi::wip::draw::BGR2NV12(mat_gapi, y_mat_gapi, uv_mat_gapi); cv::gapi::wip::draw::render(y_mat_gapi, uv_mat_gapi, prims, pkg); ComputeRef(); EXPECT_EQ(0, cv::norm(y_mat_gapi, y_mat_ocv)); EXPECT_EQ(0, cv::norm(uv_mat_gapi, uv_mat_ocv)); } TEST_P(RenderBGR, AccuracyTest) { std::tie(sz, prims, pkg) = GetParam(); Init(); cv::gapi::wip::draw::render(mat_gapi, prims, pkg); ComputeRef(); EXPECT_EQ(0, cv::norm(mat_gapi, mat_ocv)); } } // opencv_test #endif //OPENCV_GAPI_RENDER_TESTS_INL_HPP