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