Path: blob/master/modules/gapi/test/gapi_fluid_test_kernels.hpp
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#ifndef GAPI_FLUID_TEST_KERNELS_HPP8#define GAPI_FLUID_TEST_KERNELS_HPP910#include "opencv2/gapi/fluid/gfluidkernel.hpp"1112namespace cv13{14namespace gapi_test_kernels15{1617G_TYPED_KERNEL(TAddSimple, <GMat(GMat, GMat)>, "test.fluid.add_simple") {18static cv::GMatDesc outMeta(cv::GMatDesc a, cv::GMatDesc) {19return a;20}21};2223G_TYPED_KERNEL(TAddCSimple, <GMat(GMat,int)>, "test.fluid.addc_simple")24{25static GMatDesc outMeta(const cv::GMatDesc &in, int) {26return in;27}28};2930G_TYPED_KERNEL(TAddScalar, <GMat(GMat,GScalar)>, "test.fluid.addc_scalar")31{32static GMatDesc outMeta(const cv::GMatDesc &in, const cv::GScalarDesc&) {33return in;34}35};3637G_TYPED_KERNEL(TAddScalarToMat, <GMat(GScalar,GMat)>, "test.fluid.add_scalar_to_mat")38{39static GMatDesc outMeta(const cv::GScalarDesc&, const cv::GMatDesc &in) {40return in;41}42};4344G_TYPED_KERNEL(TBlur1x1, <GMat(GMat,int,Scalar)>, "org.opencv.imgproc.filters.blur1x1"){45static GMatDesc outMeta(GMatDesc in, int, Scalar) {46return in;47}48};4950G_TYPED_KERNEL(TBlur3x3, <GMat(GMat,int,Scalar)>, "org.opencv.imgproc.filters.blur3x3"){51static GMatDesc outMeta(GMatDesc in, int, Scalar) {52return in;53}54};5556G_TYPED_KERNEL(TBlur5x5, <GMat(GMat,int,Scalar)>, "org.opencv.imgproc.filters.blur5x5"){57static GMatDesc outMeta(GMatDesc in, int, Scalar) {58return in;59}60};6162G_TYPED_KERNEL(TBlur3x3_2lpi, <GMat(GMat,int,Scalar)>, "org.opencv.imgproc.filters.blur3x3_2lpi"){63static GMatDesc outMeta(GMatDesc in, int, Scalar) {64return in;65}66};6768G_TYPED_KERNEL(TBlur5x5_2lpi, <GMat(GMat,int,Scalar)>, "org.opencv.imgproc.filters.blur5x5_2lpi"){69static GMatDesc outMeta(GMatDesc in, int, Scalar) {70return in;71}72};7374G_TYPED_KERNEL(TId, <GMat(GMat)>, "test.fluid.identity") {75static cv::GMatDesc outMeta(cv::GMatDesc a) {76return a;77}78};7980G_TYPED_KERNEL(TId7x7, <GMat(GMat)>, "test.fluid.identity7x7") {81static cv::GMatDesc outMeta(cv::GMatDesc a) {82return a;83}84};8586G_TYPED_KERNEL(TPlusRow0, <GMat(GMat)>, "test.fluid.plus_row0") {87static cv::GMatDesc outMeta(cv::GMatDesc a) {88return a;89}90};9192G_TYPED_KERNEL(TSum2MatsAndScalar, <GMat(GMat,GScalar,GMat)>, "test.fluid.sum_2_mats_and_scalar")93{94static GMatDesc outMeta(const cv::GMatDesc &in, const cv::GScalarDesc&, const cv::GMatDesc&) {95return in;96}97};9899extern cv::gapi::GKernelPackage fluidTestPackage;100101} // namespace gapi_test_kernels102} // namespace cv103104#endif // GAPI_FLUID_TEST_KERNELS_HPP105106107