OpenCV  4.10.0-dev
Open Source Computer Vision
Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | Friends | List of all members
cv::GIOProtoArgs< Tag > Struct Template Reference

#include <opencv2/gapi/gproto.hpp>

Collaboration diagram for cv::GIOProtoArgs< Tag >:

Public Member Functions

 GIOProtoArgs ()=default
 
 GIOProtoArgs (const GProtoArgs &args)
 
 GIOProtoArgs (GProtoArgs &&args)
 

Public Attributes

GProtoArgs m_args
 

Friends

template<typename Tg >
GIOProtoArgs< Tg > & operator+= (GIOProtoArgs< Tg > &lhs, const GIOProtoArgs< Tg > &rhs)
 This operator allows to complement the proto vectors at runtime.
 

Constructor & Destructor Documentation

◆ GIOProtoArgs() [1/3]

template<class Tag >
cv::GIOProtoArgs< Tag >::GIOProtoArgs ( )
default

◆ GIOProtoArgs() [2/3]

template<class Tag >
cv::GIOProtoArgs< Tag >::GIOProtoArgs ( const GProtoArgs args)
inlineexplicit

◆ GIOProtoArgs() [3/3]

template<class Tag >
cv::GIOProtoArgs< Tag >::GIOProtoArgs ( GProtoArgs &&  args)
inlineexplicit

Friends And Related Symbol Documentation

◆ operator+=

template<class Tag >
template<typename Tg >
GIOProtoArgs< Tg > & operator+= ( cv::GIOProtoArgs< Tg > &  lhs,
const GIOProtoArgs< Tg > &  rhs 
)
friend

This operator allows to complement the proto vectors at runtime.

It's an ordinary overload of addition assignment operator.

Example of usage:

auto ins = cv::GIn();
cv::GMat in1;
if (need_first_conversion)
ins += cv::GIn(in1);
cv::GMat in2;
if (need_second_conversion)
ins += cv::GIn(in2);
auto outs = cv::GOut();
cv::GMat out1 = cv::gapi::resize(in1, szOut);
if (need_first_conversion)
outs += cv::GOut(out1);
cv::GMat out2 = cv::gapi::resize(in2, szOut);
if (need_second_conversion)
outs += cv::GOut(out2);
GMat class represents image or tensor data in the graph.
Definition gmat.hpp:68
GMat resize(const GMat &src, const Size &dsize, double fx=0, double fy=0, int interpolation=INTER_LINEAR)
Resizes an image.
GProtoInputArgs GIn(Ts &&... ts)
Definition gproto.hpp:96
GProtoOutputArgs GOut(Ts &&... ts)
Definition gproto.hpp:101

Member Data Documentation

◆ m_args

template<class Tag >
GProtoArgs cv::GIOProtoArgs< Tag >::m_args

The documentation for this struct was generated from the following file: