Path: blob/master/modules/gapi/test/cpu/gapi_operators_tests_fluid.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_FLUID cv::gapi::core::cpu::kernels()1213namespace opencv_test14{15INSTANTIATE_TEST_CASE_P(MathOperatorTestFluid, MathOperatorMatMatTest,16Combine(Values( opPlusM, opMinusM, opDivM,17opGreater, opLess, opGreaterEq, opLessEq, opEq, opNotEq),18Values(CV_8UC1, CV_16SC1, CV_32FC1),19Values(cv::Size(1280, 720),20cv::Size(640, 480),21cv::Size(128, 128)),22Values(-1, CV_8U, CV_32F),23/*init output matrices or not*/ testing::Bool(),24Values(cv::compile_args(CORE_FLUID))));2526//FIXME: Some Mat/Scalar Fluid kernels are not there yet!27INSTANTIATE_TEST_CASE_P(DISABLED_MathOperatorTestFluid, 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_FLUID))));3839INSTANTIATE_TEST_CASE_P(BitwiseOperatorTestFluid, 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_FLUID))));4849//FIXME: Some Mat/Scalar Fluid kernels are not there yet!50INSTANTIATE_TEST_CASE_P(DISABLED_BitwiseOperatorTestFluid, MathOperatorMatScalarTest,51Combine(Values( opAND, opOR, opXOR, opANDR, opORR, opXORR ),52Values(CV_8UC1, CV_16UC1, CV_16SC1),53Values(cv::Size(1280, 720),54cv::Size(640, 480),55cv::Size(128, 128)),56Values(-1),57/*init output matrices or not*/ testing::Bool(),58Values(cv::compile_args(CORE_FLUID))));5960INSTANTIATE_TEST_CASE_P(BitwiseNotOperatorTestFluid, NotOperatorTest,61Combine(Values(CV_8UC1, CV_16UC1, CV_16SC1),62Values(cv::Size(1280, 720),63cv::Size(640, 480),64cv::Size(128, 128)),65/*init output matrices or not*/ testing::Bool(),66Values(cv::compile_args(CORE_FLUID))));67}686970