OpenCV  4.2.0
Open Source Computer Vision
Classes | Namespaces | Macros | Typedefs | Functions
gkernel.hpp File Reference
#include <functional>
#include <iostream>
#include <string>
#include <type_traits>
#include <unordered_map>
#include <utility>
#include <opencv2/gapi/gcommon.hpp>
#include <opencv2/gapi/util/util.hpp>
#include <opencv2/gapi/gcall.hpp>
#include <opencv2/gapi/garg.hpp>
#include <opencv2/gapi/gmetaarg.hpp>
#include <opencv2/gapi/gtype_traits.hpp>
#include <opencv2/gapi/util/compiler_hints.hpp>
#include <opencv2/gapi/gtransform.hpp>

Classes

struct  cv::detail::CompileArgTag< cv::gapi::GKernelPackage >
 
struct  cv::detail::CompileArgTag< cv::gapi::use_only >
 
class  cv::gapi::GBackend
 
struct  cv::GKernel
 
struct  cv::GKernelImpl
 
class  cv::gapi::GKernelPackage
 A container class for heterogeneous kernel implementation collections and graph transformations. More...
 
class  cv::GKernelType< typename, typename >
 
class  cv::GKernelType< K, std::function< R(Args...)> >
 
class  cv::GKernelTypeM< typename, typename >
 
class  cv::GKernelTypeM< K, std::function< std::tuple< R... >(Args...)> >
 
struct  std::hash< cv::gapi::GBackend >
 
struct  cv::detail::MetaHelper< typename, typename, typename >
 
struct  cv::detail::MetaHelper< K, std::tuple< Ins... >, Out >
 
struct  cv::detail::MetaHelper< K, std::tuple< Ins... >, std::tuple< Outs... > >
 
struct  cv::detail::MetaType< T >
 
struct  cv::detail::MetaType< T >
 
struct  cv::detail::MetaType< cv::GArray< U > >
 
struct  cv::detail::MetaType< cv::GMat >
 
struct  cv::detail::MetaType< cv::GMatP >
 
struct  cv::detail::MetaType< cv::GScalar >
 
struct  cv::detail::NoTag
 
struct  cv::gapi::use_only
 cv::use_only() is a special combinator which hints G-API to use only kernels specified in cv::GComputation::compile() (and not to extend kernels available by default with that package). More...
 

Namespaces

 cv
 "black box" representation of the file storage associated with a file on disk.
 
 cv::detail
 
 cv::gapi
 

Macros

#define G_API_OP   G_TYPED_KERNEL
 
#define G_API_OP_M   G_TYPED_KERNEL_M
 
#define G_TYPED_KERNEL(Class, API, Id)
 
#define G_TYPED_KERNEL_M(Class, API, Id)
 

Typedefs

using cv::GShapes = std::vector< GShape >
 
template<typename T >
using cv::detail::is_nongapi_type = std::is_same< T, typename MetaType< T >::type >
 

Functions

GKernelPackage cv::gapi::combine (const GKernelPackage &lhs, const GKernelPackage &rhs)
 
template<typename... Ps>
GKernelPackage cv::gapi::combine (const GKernelPackage &a, const GKernelPackage &b, Ps &&... rest)
 Combines multiple G-API kernel packages into one. More...
 
template<typename T >
std::enable_if<!is_nongapi_type< T >::value, typename MetaType< T >::type >::type cv::detail::get_in_meta (const GMetaArgs &in_meta, const GArgs &, int idx)
 
template<typename T >
std::enable_if< is_nongapi_type< T >::value, T >::type cv::detail::get_in_meta (const GMetaArgs &, const GArgs &in_args, int idx)
 
template<typename... KK>
GKernelPackage cv::gapi::kernels ()
 Create a kernel package object containing kernels and transformations specified in variadic template argument. More...
 
bool cv::gapi::operator!= (const GBackend &lhs, const GBackend &rhs)
 

Macro Definition Documentation

◆ G_API_OP

#define G_API_OP   G_TYPED_KERNEL

◆ G_API_OP_M

#define G_API_OP_M   G_TYPED_KERNEL_M

◆ G_TYPED_KERNEL

#define G_TYPED_KERNEL (   Class,
  API,
  Id 
)
Value:
G_ID_HELPER_BODY(Class, Id) \
struct Class final: public cv::GKernelType<Class, std::function API >, \
public G_ID_HELPER_CLASS(Class)
Definition: gkernel.hpp:207

Declares a new G-API Operation. See Kernel API for more details.

Parameters
Classtype name for this operation.
APIan std::function<>-like signature for the operation; return type is a single value.
Idstring identifier for the operation. Must be unique.

◆ G_TYPED_KERNEL_M

#define G_TYPED_KERNEL_M (   Class,
  API,
  Id 
)
Value:
G_ID_HELPER_BODY(Class, Id) \
struct Class final: public cv::GKernelTypeM<Class, std::function API >, \
public G_ID_HELPER_CLASS(Class)
Definition: gkernel.hpp:50

Declares a new G-API Operation. See Kernel API for more details.

Parameters
Classtype name for this operation.
APIan std::function<>-like signature for the operation; return type is a tuple of multiple values.
Idstring identifier for the operation. Must be unique.