OpenCV  4.0.0-beta
Open Source Computer Vision
Namespaces | Classes | Typedefs | Functions
cv::gapi Namespace Reference

Namespaces

 compound
 
 core
 
 cpu
 
 fluid
 
 imgproc
 
 own
 

Classes

class  GBackend
 
class  GKernelPackage
 

Typedefs

using GLookupOrder = std::vector< GBackend >
 

Functions

GAPI_EXPORTS GMat absDiff (const GMat &src1, const GMat &src2)
 Calculates the per-element absolute difference between two matrices. More...
 
GAPI_EXPORTS GMat absDiffC (const GMat &src, const GScalar &c)
 Calculates absolute value of matrix elements. More...
 
GAPI_EXPORTS GMat add (const GMat &src1, const GMat &src2, int ddepth=-1)
 Calculates the per-element sum of two matrices. More...
 
GAPI_EXPORTS GMat addC (const GMat &src1, const GScalar &c, int ddepth=-1)
 Calculates the per-element sum of matrix and given scalar. More...
 
GAPI_EXPORTS GMat addC (const GScalar &c, const GMat &src1, int ddepth=-1)
 
GAPI_EXPORTS GMat addWeighted (const GMat &src1, double alpha, const GMat &src2, double beta, double gamma, int ddepth=-1)
 Calculates the weighted sum of two matrices. More...
 
GAPI_EXPORTS GMat BGR2Gray (const GMat &src)
 Converts an image from BGR color space to gray-scaled. The conventional ranges for B, G, and R channel values are 0 to 255. Resulting gray color value computed as

\[\texttt{dst} (I)= \texttt{0.114} * \texttt{src}(I).B + \texttt{0.587} * \texttt{src}(I).G + \texttt{0.299} * \texttt{src}(I).R \]

. More...

 
GAPI_EXPORTS GMat BGR2LUV (const GMat &src)
 Converts an image from BGR color space to LUV color space. More...
 
GAPI_EXPORTS GMat BGR2YUV (const GMat &src)
 Converts an image from BGR color space to YUV color space. More...
 
GAPI_EXPORTS GMat bitwise_and (const GMat &src1, const GMat &src2)
 computes bitwise conjunction of the two matrixes (src1 & src2) Calculates the per-element bit-wise logical conjunction of two matrices of the same size. More...
 
GAPI_EXPORTS GMat bitwise_and (const GMat &src1, const GScalar &src2)
 
GAPI_EXPORTS GMat bitwise_not (const GMat &src)
 Inverts every bit of an array. The function bitwise_not calculates per-element bit-wise inversion of the input matrix:

\[\texttt{dst} (I) = \neg \texttt{src} (I)\]

. More...

 
GAPI_EXPORTS GMat bitwise_or (const GMat &src1, const GMat &src2)
 computes bitwise disjunction of the two matrixes (src1 | src2) Calculates the per-element bit-wise logical disjunction of two matrices of the same size. More...
 
GAPI_EXPORTS GMat bitwise_or (const GMat &src1, const GScalar &src2)
 
GAPI_EXPORTS GMat bitwise_xor (const GMat &src1, const GMat &src2)
 computes bitwise logical "exclusive or" of the two matrixes (src1 ^ src2) Calculates the per-element bit-wise logical "exclusive or" of two matrices of the same size. More...
 
GAPI_EXPORTS GMat bitwise_xor (const GMat &src1, const GScalar &src2)
 
GAPI_EXPORTS GMat blur (const GMat &src, const Size &ksize, const Point &anchor=Point(-1,-1), int borderType=BORDER_DEFAULT, const Scalar &borderValue=Scalar(0))
 Blurs an image using the normalized box filter. More...
 
GAPI_EXPORTS GMat boxFilter (const GMat &src, int dtype, const Size &ksize, const Point &anchor=Point(-1,-1), bool normalize=true, int borderType=BORDER_DEFAULT, const Scalar &borderValue=Scalar(0))
 Blurs an image using the box filter. More...
 
GAPI_EXPORTS GMat Canny (const GMat &image, double threshold1, double threshold2, int apertureSize=3, bool L2gradient=false)
 Finds edges in an image using the Canny algorithm. More...
 
GAPI_EXPORTS std::tuple< GMat, GMatcartToPolar (const GMat &x, const GMat &y, bool angleInDegrees=false)
 Calculates the magnitude and angle of 2D vectors. More...
 
GAPI_EXPORTS GMat cmpEQ (const GMat &src1, const GMat &src2)
 Performs the per-element comparison of two matrices checking if elements from first matrix are equal to elements in second. More...
 
GAPI_EXPORTS GMat cmpEQ (const GMat &src1, const GScalar &src2)
 
GAPI_EXPORTS GMat cmpGE (const GMat &src1, const GMat &src2)
 Performs the per-element comparison of two matrices checking if elements from first matrix are greater or equal compare to elements in second. More...
 
GAPI_EXPORTS GMat cmpGE (const GMat &src1, const GScalar &src2)
 
GAPI_EXPORTS GMat cmpGT (const GMat &src1, const GMat &src2)
 Performs the per-element comparison of two matrices checking if elements from first matrix are greater compare to elements in second. More...
 
GAPI_EXPORTS GMat cmpGT (const GMat &src1, const GScalar &src2)
 
GAPI_EXPORTS GMat cmpLE (const GMat &src1, const GMat &src2)
 Performs the per-element comparison of two matrices checking if elements from first matrix are less or equal compare to elements in second. More...
 
GAPI_EXPORTS GMat cmpLE (const GMat &src1, const GScalar &src2)
 
GAPI_EXPORTS GMat cmpLT (const GMat &src1, const GMat &src2)
 Performs the per-element comparison of two matrices checking if elements from first matrix are less than elements in second. More...
 
GAPI_EXPORTS GMat cmpLT (const GMat &src1, const GScalar &src2)
 
GAPI_EXPORTS GMat cmpNE (const GMat &src1, const GMat &src2)
 Performs the per-element comparison of two matrices checking if elements from first matrix are not equal to elements in second. More...
 
GAPI_EXPORTS GMat cmpNE (const GMat &src1, const GScalar &src2)
 
GAPI_EXPORTS GKernelPackage combine (const GKernelPackage &lhs, const GKernelPackage &rhs, const cv::unite_policy policy)
 
GAPI_EXPORTS GMat concatHor (const GMat &src1, const GMat &src2)
 Applies horizontal concatenation to given matrices. More...
 
GAPI_EXPORTS GMat concatHor (const std::vector< GMat > &v)
 
GAPI_EXPORTS GMat concatVert (const GMat &src1, const GMat &src2)
 Applies vertical concatenation to given matrices. More...
 
GAPI_EXPORTS GMat concatVert (const std::vector< GMat > &v)
 
GAPI_EXPORTS GMat convertTo (const GMat &src, int rdepth, double alpha=1, double beta=0)
 Converts a matrix to another data depth with optional scaling. More...
 
GAPI_EXPORTS GMat crop (const GMat &src, const Rect &rect)
 Crops a 2D matrix. More...
 
GAPI_EXPORTS GMat dilate (const GMat &src, const Mat &kernel, const Point &anchor=Point(-1,-1), int iterations=1, int borderType=BORDER_CONSTANT, const Scalar &borderValue=morphologyDefaultBorderValue())
 Dilates an image by using a specific structuring element. More...
 
GAPI_EXPORTS GMat dilate3x3 (const GMat &src, int iterations=1, int borderType=BORDER_CONSTANT, const Scalar &borderValue=morphologyDefaultBorderValue())
 Dilates an image by using 3 by 3 rectangular structuring element. More...
 
GAPI_EXPORTS GMat div (const GMat &src1, const GMat &src2, double scale, int ddepth=-1)
 Performs per-element division of two matrices. More...
 
GAPI_EXPORTS GMat divC (const GMat &src, const GScalar &divisor, double scale, int ddepth=-1)
 Divides matrix by scalar. More...
 
GAPI_EXPORTS GMat divRC (const GScalar &divident, const GMat &src, double scale, int ddepth=-1)
 Divides scalar by matrix. More...
 
GAPI_EXPORTS GMat equalizeHist (const GMat &src)
 Equalizes the histogram of a grayscale image. More...
 
GAPI_EXPORTS GMat erode (const GMat &src, const Mat &kernel, const Point &anchor=Point(-1,-1), int iterations=1, int borderType=BORDER_CONSTANT, const Scalar &borderValue=morphologyDefaultBorderValue())
 Erodes an image by using a specific structuring element. More...
 
GAPI_EXPORTS GMat erode3x3 (const GMat &src, int iterations=1, int borderType=BORDER_CONSTANT, const Scalar &borderValue=morphologyDefaultBorderValue())
 Erodes an image by using 3 by 3 rectangular structuring element. More...
 
GAPI_EXPORTS GMat filter2D (const GMat &src, int ddepth, const Mat &kernel, const Point &anchor=Point(-1,-1), const Scalar &delta=Scalar(0), int borderType=BORDER_DEFAULT, const Scalar &borderValue=Scalar(0))
 Convolves an image with the kernel. More...
 
GAPI_EXPORTS GMat flip (const GMat &src, int flipCode)
 Flips a 2D matrix around vertical, horizontal, or both axes. More...
 
GAPI_EXPORTS GMat gaussianBlur (const GMat &src, const Size &ksize, double sigmaX, double sigmaY=0, int borderType=BORDER_DEFAULT, const Scalar &borderValue=Scalar(0))
 Blurs an image using a Gaussian filter. More...
 
GAPI_EXPORTS GMat inRange (const GMat &src, const GScalar &threshLow, const GScalar &threshUp)
 Applies a range-level threshold to each matrix element. More...
 
GAPI_EXPORTS std::tuple< GMat, GMatintegral (const GMat &src, int sdepth=-1, int sqdepth=-1)
 Calculates the integral of an image. More...
 
void GAPI_EXPORTS island (const std::string &name, GProtoInputArgs &&ins, GProtoOutputArgs &&outs)
 
template<typename... KK>
GKernelPackage kernels ()
 
GLookupOrder lookup_order (std::initializer_list< GBackend > &&list)
 
GAPI_EXPORTS GMat LUT (const GMat &src, const Mat &lut)
 Performs a look-up table transform of a matrix. More...
 
GAPI_EXPORTS GMat LUT3D (const GMat &src, const GMat &lut3D, int interpolation=INTER_NEAREST)
 Performs a 3D look-up table transform of a multi-channel matrix. More...
 
GAPI_EXPORTS GMat LUV2BGR (const GMat &src)
 Converts an image from LUV color space to BGR color space. More...
 
GAPI_EXPORTS GMat mask (const GMat &src, const GMat &mask)
 Applies a mask to a matrix. More...
 
GAPI_EXPORTS GMat max (const GMat &src1, const GMat &src2)
 Calculates per-element maximum of two matrices. More...
 
GAPI_EXPORTS GScalar mean (const GMat &src)
 Calculates an average (mean) of matrix elements. More...
 
GAPI_EXPORTS GMat medianBlur (const GMat &src, int ksize)
 Blurs an image using the median filter. More...
 
GAPI_EXPORTS GMat merge3 (const GMat &src1, const GMat &src2, const GMat &src3)
 
GAPI_EXPORTS GMat merge4 (const GMat &src1, const GMat &src2, const GMat &src3, const GMat &src4)
 Creates one 3-channel (4-channel) matrix out of 3(4) single-channel ones. More...
 
GAPI_EXPORTS GMat min (const GMat &src1, const GMat &src2)
 Calculates per-element minimum of two matrices. More...
 
GAPI_EXPORTS GMat mul (const GMat &src1, const GMat &src2, double scale, int ddepth=-1)
 Calculates the per-element scaled product of two matrices. More...
 
GAPI_EXPORTS GMat mulC (const GMat &src, double multiplier, int ddepth=-1)
 Multiplies matrix by scalar. More...
 
GAPI_EXPORTS GMat mulC (const GMat &src, const GScalar &multiplier, int ddepth=-1)
 
GAPI_EXPORTS GMat mulC (const GScalar &multiplier, const GMat &src, int ddepth=-1)
 
GAPI_EXPORTS GScalar normInf (const GMat &src)
 Calculates the absolute infinite norm of a matrix. More...
 
GAPI_EXPORTS GScalar normL1 (const GMat &src)
 Calculates the absolute L1 norm of a matrix. More...
 
GAPI_EXPORTS GScalar normL2 (const GMat &src)
 Calculates the absolute L2 norm of a matrix. More...
 
bool operator!= (const GBackend &lhs, const GBackend &rhs)
 
GAPI_EXPORTS std::tuple< GMat, GMatpolarToCart (const GMat &magnitude, const GMat &angle, bool angleInDegrees=false)
 Calculates x and y coordinates of 2D vectors from their magnitude and angle. More...
 
GAPI_EXPORTS GMat remap (const GMat &src, const Mat &map1, const Mat &map2, int interpolation, int borderMode=BORDER_CONSTANT, const Scalar &borderValue=Scalar())
 Applies a generic geometrical transformation to an image. More...
 
GAPI_EXPORTS GMat resize (const GMat &src, const Size &dsize, double fx=0, double fy=0, int interpolation=INTER_LINEAR)
 Resizes an image. More...
 
GAPI_EXPORTS GMat RGB2Gray (const GMat &src)
 Converts an image from RGB color space to gray-scaled. The conventional ranges for R, G, and B channel values are 0 to 255. Resulting gray color value computed as

\[\texttt{dst} (I)= \texttt{0.299} * \texttt{src}(I).R + \texttt{0.587} * \texttt{src}(I).G + \texttt{0.114} * \texttt{src}(I).B \]

. More...

 
GAPI_EXPORTS GMat RGB2Gray (const GMat &src, float rY, float gY, float bY)
 
GAPI_EXPORTS GMat RGB2Lab (const GMat &src)
 Converts an image from RGB color space to Lab color space. More...
 
GAPI_EXPORTS GMat RGB2YUV (const GMat &src)
 Converts an image from RGB color space to YUV color space. More...
 
GAPI_EXPORTS GMat select (const GMat &src1, const GMat &src2, const GMat &mask)
 Select values from either first or second of input matrices by given mask. The function set to the output matrix either the value from the first input matrix if corresponding value of mask matrix is 255, or value from the second input matrix (if value of mask matrix set to 0). More...
 
GAPI_EXPORTS GMat sepFilter (const GMat &src, int ddepth, const Mat &kernelX, const Mat &kernelY, const Point &anchor, const Scalar &delta, int borderType=BORDER_DEFAULT, const Scalar &borderValue=Scalar(0))
 Applies a separable linear filter to a matrix(image). More...
 
GAPI_EXPORTS GMat sobel (const GMat &src, int ddepth, int dx, int dy, int ksize=3, double scale=1, double delta=0, int borderType=BORDER_DEFAULT, const Scalar &borderValue=Scalar(0))
 Calculates the first, second, third, or mixed image derivatives using an extended Sobel operator. More...
 
GAPI_EXPORTS std::tuple< GMat, GMat, GMatsplit3 (const GMat &src)
 
GAPI_EXPORTS std::tuple< GMat, GMat, GMat, GMatsplit4 (const GMat &src)
 Divides a 3-channel (4-channel) matrix into 3(4) single-channel matrices. More...
 
GAPI_EXPORTS GMat sub (const GMat &src1, const GMat &src2, int ddepth=-1)
 Calculates the per-element difference between two matrices. More...
 
GAPI_EXPORTS GMat subC (const GMat &src, const GScalar &c, int ddepth=-1)
 Calculates the per-element difference between matrix and given scalar. More...
 
GAPI_EXPORTS GMat subRC (const GScalar &c, const GMat &src, int ddepth=-1)
 Calculates the per-element difference between given scalar and the matrix. More...
 
GAPI_EXPORTS GScalar sum (const GMat &src)
 Calculates sum of all matrix elements. More...
 
GAPI_EXPORTS GMat threshold (const GMat &src, const GScalar &thresh, const GScalar &maxval, int depth)
 Applies a fixed-level threshold to each matrix element. More...
 
GAPI_EXPORTS std::tuple< GMat, GScalarthreshold (const GMat &src, const GScalar &maxval, int depth)
 
GAPI_EXPORTS GMat YUV2BGR (const GMat &src)
 Converts an image from YUV color space to BGR color space. More...
 
GAPI_EXPORTS GMat YUV2RGB (const GMat &src)
 Converts an image from YUV color space to RGB. The function converts an input image from YUV color space to RGB. The conventional ranges for Y, U, and V channel values are 0 to 255. More...
 

Typedef Documentation

§ GLookupOrder

using cv::gapi::GLookupOrder = typedef std::vector<GBackend>

Function Documentation

§ combine()

GAPI_EXPORTS GKernelPackage cv::gapi::combine ( const GKernelPackage lhs,
const GKernelPackage rhs,
const cv::unite_policy  policy 
)

§ island()

void GAPI_EXPORTS cv::gapi::island ( const std::string &  name,
GProtoInputArgs &&  ins,
GProtoOutputArgs &&  outs 
)

§ kernels()

template<typename... KK>
GKernelPackage cv::gapi::kernels ( )

§ lookup_order()

GLookupOrder cv::gapi::lookup_order ( std::initializer_list< GBackend > &&  list)
inline

§ operator!=()

bool cv::gapi::operator!= ( const GBackend lhs,
const GBackend rhs 
)
inline