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.
5 // Copyright (C) 2018-2019 Intel Corporation
8 #ifndef GAPI_FLUID_TEST_KERNELS_HPP
9 #define GAPI_FLUID_TEST_KERNELS_HPP
11 #include "opencv2/gapi/fluid/gfluidkernel.hpp"
15 namespace gapi_test_kernels
18 G_TYPED_KERNEL(TAddSimple, <GMat(GMat, GMat)>, "test.fluid.add_simple") {
19 static cv::GMatDesc outMeta(cv::GMatDesc a, cv::GMatDesc) {
24 G_TYPED_KERNEL(TAddCSimple, <GMat(GMat,int)>, "test.fluid.addc_simple")
26 static GMatDesc outMeta(const cv::GMatDesc &in, int) {
31 G_TYPED_KERNEL(TAddScalar, <GMat(GMat,GScalar)>, "test.fluid.addc_scalar")
33 static GMatDesc outMeta(const cv::GMatDesc &in, const cv::GScalarDesc&) {
38 G_TYPED_KERNEL(TAddScalarToMat, <GMat(GScalar,GMat)>, "test.fluid.add_scalar_to_mat")
40 static GMatDesc outMeta(const cv::GScalarDesc&, const cv::GMatDesc &in) {
45 G_TYPED_KERNEL(TBlur1x1, <GMat(GMat,int,Scalar)>, "org.opencv.imgproc.filters.blur1x1"){
46 static GMatDesc outMeta(GMatDesc in, int, Scalar) {
51 G_TYPED_KERNEL(TBlur3x3, <GMat(GMat,int,Scalar)>, "org.opencv.imgproc.filters.blur3x3"){
52 static GMatDesc outMeta(GMatDesc in, int, Scalar) {
57 G_TYPED_KERNEL(TBlur5x5, <GMat(GMat,int,Scalar)>, "org.opencv.imgproc.filters.blur5x5"){
58 static GMatDesc outMeta(GMatDesc in, int, Scalar) {
63 G_TYPED_KERNEL(TBlur3x3_2lpi, <GMat(GMat,int,Scalar)>, "org.opencv.imgproc.filters.blur3x3_2lpi"){
64 static GMatDesc outMeta(GMatDesc in, int, Scalar) {
69 G_TYPED_KERNEL(TBlur5x5_2lpi, <GMat(GMat,int,Scalar)>, "org.opencv.imgproc.filters.blur5x5_2lpi"){
70 static GMatDesc outMeta(GMatDesc in, int, Scalar) {
75 G_TYPED_KERNEL(TId, <GMat(GMat)>, "test.fluid.identity") {
76 static cv::GMatDesc outMeta(cv::GMatDesc a) {
81 G_TYPED_KERNEL(TId7x7, <GMat(GMat)>, "test.fluid.identity7x7") {
82 static cv::GMatDesc outMeta(cv::GMatDesc a) {
87 G_TYPED_KERNEL(TPlusRow0, <GMat(GMat)>, "test.fluid.plus_row0") {
88 static cv::GMatDesc outMeta(cv::GMatDesc a) {
93 G_TYPED_KERNEL(TSum2MatsAndScalar, <GMat(GMat,GScalar,GMat)>, "test.fluid.sum_2_mats_and_scalar")
95 static GMatDesc outMeta(const cv::GMatDesc &in, const cv::GScalarDesc&, const cv::GMatDesc&) {
100 extern cv::gapi::GKernelPackage fluidTestPackage;
102 } // namespace gapi_test_kernels
105 #endif // GAPI_FLUID_TEST_KERNELS_HPP