1 // Copyright (C) 2018-2019 Intel Corporation
2 // SPDX-License-Identifier: Apache-2.0
5 #ifndef OPENCV_GAPI_CORE_TESTS_HPP
6 #define OPENCV_GAPI_CORE_TESTS_HPP
8 #include "gapi_tests_common.hpp"
9 #include "ie_preprocess.hpp"
11 #include <gtest/gtest.h>
16 struct ResizeTestGAPI: public testing::TestWithParam<std::tuple<int, int, std::pair<cv::Size, cv::Size>, double>> {};
17 struct SplitTestGAPI: public TestParams<std::tuple<int, int, cv::Size>> {};
18 struct MergeTestGAPI: public TestParams<std::tuple<int, int, cv::Size>> {};
20 //------------------------------------------------------------------------------
22 struct ResizeTestIE: public testing::TestWithParam<std::tuple<int, int, std::pair<cv::Size, cv::Size>, double>> {};
24 struct SplitTestIE: public TestParams<std::tuple<int, cv::Size>> {};
25 struct MergeTestIE: public TestParams<std::tuple<int, cv::Size>> {};
27 //------------------------------------------------------------------------------
29 using PreprocParams = std::tuple< InferenceEngine::Precision // input-output data type
30 , InferenceEngine::ResizeAlgorithm // resize algorithm, if needed
31 , InferenceEngine::Layout // input tensor layout
32 , InferenceEngine::Layout // output tensor layout
33 , int // number of channels
34 , std::pair<cv::Size, cv::Size>
37 struct PreprocTest: public TestParams<PreprocParams> {};
41 #endif //OPENCV_GAPI_CORE_TESTS_HPP