Path: blob/master/modules/gapi/test/cpu/gapi_operators_tests_cpu.cpp
16337 views
// This file is part of OpenCV project.1// It is subject to the license terms in the LICENSE file found in the top-level directory2// of this distribution and at http://opencv.org/license.html.3//4// Copyright (C) 2018 Intel Corporation567#include "../test_precomp.hpp"8#include "../common/gapi_operators_tests.hpp"9#include "opencv2/gapi/cpu/core.hpp"1011#define CORE_CPU cv::gapi::core::cpu::kernels()1213namespace opencv_test14{15// FIXME: CPU test runs are disabled since Fluid is an exclusive plugin now!16INSTANTIATE_TEST_CASE_P(MathOperatorTestCPU, MathOperatorMatMatTest,17Combine(Values( opPlusM, opMinusM, opDivM,18opGreater, opLess, opGreaterEq, opLessEq, opEq, opNotEq),19Values(CV_8UC1, CV_16SC1, CV_32FC1),20Values(cv::Size(1280, 720),21cv::Size(640, 480),22cv::Size(128, 128)),23Values(-1, CV_8U, CV_32F),24/*init output matrices or not*/ testing::Bool(),25Values(cv::compile_args(CORE_CPU))));2627INSTANTIATE_TEST_CASE_P(MathOperatorTestCPU, MathOperatorMatScalarTest,28Combine(Values( opPlus, opPlusR, opMinus, opMinusR, opMul, opMulR, opDiv, opDivR,29opGT, opLT, opGE, opLE, opEQ, opNE,30opGTR, opLTR, opGER, opLER, opEQR, opNER),31Values(CV_8UC1, CV_16SC1, CV_32FC1),32Values(cv::Size(1280, 720),33cv::Size(640, 480),34cv::Size(128, 128)),35Values(-1, CV_8U, CV_32F),36/*init output matrices or not*/ testing::Bool(),37Values(cv::compile_args(CORE_CPU))));3839INSTANTIATE_TEST_CASE_P(BitwiseOperatorTestCPU, MathOperatorMatMatTest,40Combine(Values( opAnd, opOr, opXor ),41Values(CV_8UC1, CV_16UC1, CV_16SC1),42Values(cv::Size(1280, 720),43cv::Size(640, 480),44cv::Size(128, 128)),45Values(-1),46/*init output matrices or not*/ testing::Bool(),47Values(cv::compile_args(CORE_CPU))));4849INSTANTIATE_TEST_CASE_P(BitwiseOperatorTestCPU, MathOperatorMatScalarTest,50Combine(Values( opAND, opOR, opXOR, opANDR, opORR, opXORR ),51Values(CV_8UC1, CV_16UC1, CV_16SC1),52Values(cv::Size(1280, 720),53cv::Size(640, 480),54cv::Size(128, 128)),55Values(-1),56/*init output matrices or not*/ testing::Bool(),57Values(cv::compile_args(CORE_CPU))));5859INSTANTIATE_TEST_CASE_P(BitwiseNotOperatorTestCPU, NotOperatorTest,60Combine(Values(CV_8UC1, CV_16UC1, CV_16SC1),61Values(cv::Size(1280, 720),62cv::Size(640, 480),63cv::Size(128, 128)),64/*init output matrices or not*/ testing::Bool(),65Values(cv::compile_args(CORE_CPU))));66}676869