OpenCV  4.0.0-beta
Open Source Computer Vision
Namespaces | Typedefs | Functions
core.hpp File Reference
#include <utility>
#include <opencv2/imgproc.hpp>
#include "opencv2/gapi/gmat.hpp"
#include "opencv2/gapi/gscalar.hpp"
#include "opencv2/gapi/gkernel.hpp"

Namespaces

 cv
 
 cv::gapi
 
 cv::gapi::core
 

Typedefs

using cv::gapi::core::GMat2 = std::tuple< GMat, GMat >
 
using cv::gapi::core::GMat3 = std::tuple< GMat, GMat, GMat >
 
using cv::gapi::core::GMat4 = std::tuple< GMat, GMat, GMat, GMat >
 
using cv::gapi::core::GMatScalar = std::tuple< GMat, GScalar >
 

Functions

GAPI_EXPORTS GMat cv::gapi::absDiff (const GMat &src1, const GMat &src2)
 Calculates the per-element absolute difference between two matrices. More...
 
GAPI_EXPORTS GMat cv::gapi::absDiffC (const GMat &src, const GScalar &c)
 Calculates absolute value of matrix elements. More...
 
GAPI_EXPORTS GMat cv::gapi::add (const GMat &src1, const GMat &src2, int ddepth=-1)
 Calculates the per-element sum of two matrices. More...
 
GAPI_EXPORTS GMat cv::gapi::addC (const GMat &src1, const GScalar &c, int ddepth=-1)
 Calculates the per-element sum of matrix and given scalar. More...
 
GAPI_EXPORTS GMat cv::gapi::addC (const GScalar &c, const GMat &src1, int ddepth=-1)
 
GAPI_EXPORTS GMat cv::gapi::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 cv::gapi::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 cv::gapi::bitwise_and (const GMat &src1, const GScalar &src2)
 
GAPI_EXPORTS GMat cv::gapi::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 cv::gapi::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 cv::gapi::bitwise_or (const GMat &src1, const GScalar &src2)
 
GAPI_EXPORTS GMat cv::gapi::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 cv::gapi::bitwise_xor (const GMat &src1, const GScalar &src2)
 
GAPI_EXPORTS std::tuple< GMat, GMat > cv::gapi::cartToPolar (const GMat &x, const GMat &y, bool angleInDegrees=false)
 Calculates the magnitude and angle of 2D vectors. More...
 
GAPI_EXPORTS GMat cv::gapi::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 cv::gapi::cmpEQ (const GMat &src1, const GScalar &src2)
 
GAPI_EXPORTS GMat cv::gapi::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 cv::gapi::cmpGE (const GMat &src1, const GScalar &src2)
 
GAPI_EXPORTS GMat cv::gapi::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 cv::gapi::cmpGT (const GMat &src1, const GScalar &src2)
 
GAPI_EXPORTS GMat cv::gapi::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 cv::gapi::cmpLE (const GMat &src1, const GScalar &src2)
 
GAPI_EXPORTS GMat cv::gapi::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 cv::gapi::cmpLT (const GMat &src1, const GScalar &src2)
 
GAPI_EXPORTS GMat cv::gapi::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 cv::gapi::cmpNE (const GMat &src1, const GScalar &src2)
 
GAPI_EXPORTS GMat cv::gapi::concatHor (const GMat &src1, const GMat &src2)
 Applies horizontal concatenation to given matrices. More...
 
GAPI_EXPORTS GMat cv::gapi::concatHor (const std::vector< GMat > &v)
 
GAPI_EXPORTS GMat cv::gapi::concatVert (const GMat &src1, const GMat &src2)
 Applies vertical concatenation to given matrices. More...
 
GAPI_EXPORTS GMat cv::gapi::concatVert (const std::vector< GMat > &v)
 
GAPI_EXPORTS GMat cv::gapi::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 cv::gapi::crop (const GMat &src, const Rect &rect)
 Crops a 2D matrix. More...
 
GAPI_EXPORTS GMat cv::gapi::div (const GMat &src1, const GMat &src2, double scale, int ddepth=-1)
 Performs per-element division of two matrices. More...
 
GAPI_EXPORTS GMat cv::gapi::divC (const GMat &src, const GScalar &divisor, double scale, int ddepth=-1)
 Divides matrix by scalar. More...
 
GAPI_EXPORTS GMat cv::gapi::divRC (const GScalar &divident, const GMat &src, double scale, int ddepth=-1)
 Divides scalar by matrix. More...
 
GAPI_EXPORTS GMat cv::gapi::flip (const GMat &src, int flipCode)
 Flips a 2D matrix around vertical, horizontal, or both axes. More...
 
 cv::gapi::core::G_TYPED_KERNEL (GAdd,< GMat(GMat, GMat, int)>, "org.opencv.core.math.add")
 
 cv::gapi::core::G_TYPED_KERNEL (GAddC,< GMat(GMat, GScalar, int)>, "org.opencv.core.math.addC")
 
 cv::gapi::core::G_TYPED_KERNEL (GSub,< GMat(GMat, GMat, int)>, "org.opencv.core.math.sub")
 
 cv::gapi::core::G_TYPED_KERNEL (GSubC,< GMat(GMat, GScalar, int)>, "org.opencv.core.math.subC")
 
 cv::gapi::core::G_TYPED_KERNEL (GSubRC,< GMat(GScalar, GMat, int)>, "org.opencv.core.math.subRC")
 
 cv::gapi::core::G_TYPED_KERNEL (GMul,< GMat(GMat, GMat, double, int)>, "org.opencv.core.math.mul")
 
 cv::gapi::core::G_TYPED_KERNEL (GMulCOld,< GMat(GMat, double, int)>, "org.opencv.core.math.mulCOld")
 
 cv::gapi::core::G_TYPED_KERNEL (GMulC,< GMat(GMat, GScalar, int)>, "org.opencv.core.math.mulC")
 
 cv::gapi::core::G_TYPED_KERNEL (GMulS,< GMat(GMat, GScalar)>, "org.opencv.core.math.muls")
 
 cv::gapi::core::G_TYPED_KERNEL (GDiv,< GMat(GMat, GMat, double, int)>, "org.opencv.core.math.div")
 
 cv::gapi::core::G_TYPED_KERNEL (GDivC,< GMat(GMat, GScalar, double, int)>, "org.opencv.core.math.divC")
 
 cv::gapi::core::G_TYPED_KERNEL (GDivRC,< GMat(GScalar, GMat, double, int)>, "org.opencv.core.math.divRC")
 
 cv::gapi::core::G_TYPED_KERNEL (GMean,< GScalar(GMat)>, "org.opencv.core.math.mean")
 
 cv::gapi::core::G_TYPED_KERNEL (GMask,< GMat(GMat, GMat)>, "org.opencv.core.pixelwise.mask")
 
 cv::gapi::core::G_TYPED_KERNEL (GCmpGT,< GMat(GMat, GMat)>, "org.opencv.core.pixelwise.compare.cmpGT")
 
 cv::gapi::core::G_TYPED_KERNEL (GCmpGE,< GMat(GMat, GMat)>, "org.opencv.core.pixelwise.compare.cmpGE")
 
 cv::gapi::core::G_TYPED_KERNEL (GCmpLE,< GMat(GMat, GMat)>, "org.opencv.core.pixelwise.compare.cmpLE")
 
 cv::gapi::core::G_TYPED_KERNEL (GCmpLT,< GMat(GMat, GMat)>, "org.opencv.core.pixelwise.compare.cmpLT")
 
 cv::gapi::core::G_TYPED_KERNEL (GCmpEQ,< GMat(GMat, GMat)>, "org.opencv.core.pixelwise.compare.cmpEQ")
 
 cv::gapi::core::G_TYPED_KERNEL (GCmpNE,< GMat(GMat, GMat)>, "org.opencv.core.pixelwise.compare.cmpNE")
 
 cv::gapi::core::G_TYPED_KERNEL (GCmpGTScalar,< GMat(GMat, GScalar)>, "org.opencv.core.pixelwise.compare.cmpGTScalar")
 
 cv::gapi::core::G_TYPED_KERNEL (GCmpGEScalar,< GMat(GMat, GScalar)>, "org.opencv.core.pixelwise.compare.cmpGEScalar")
 
 cv::gapi::core::G_TYPED_KERNEL (GCmpLEScalar,< GMat(GMat, GScalar)>, "org.opencv.core.pixelwise.compare.cmpLEScalar")
 
 cv::gapi::core::G_TYPED_KERNEL (GCmpLTScalar,< GMat(GMat, GScalar)>, "org.opencv.core.pixelwise.compare.cmpLTScalar")
 
 cv::gapi::core::G_TYPED_KERNEL (GCmpEQScalar,< GMat(GMat, GScalar)>, "org.opencv.core.pixelwise.compare.cmpEQScalar")
 
 cv::gapi::core::G_TYPED_KERNEL (GCmpNEScalar,< GMat(GMat, GScalar)>, "org.opencv.core.pixelwise.compare.cmpNEScalar")
 
 cv::gapi::core::G_TYPED_KERNEL (GAnd,< GMat(GMat, GMat)>, "org.opencv.core.pixelwise.bitwise_and")
 
 cv::gapi::core::G_TYPED_KERNEL (GAndS,< GMat(GMat, GScalar)>, "org.opencv.core.pixelwise.bitwise_andS")
 
 cv::gapi::core::G_TYPED_KERNEL (GOr,< GMat(GMat, GMat)>, "org.opencv.core.pixelwise.bitwise_or")
 
 cv::gapi::core::G_TYPED_KERNEL (GOrS,< GMat(GMat, GScalar)>, "org.opencv.core.pixelwise.bitwise_orS")
 
 cv::gapi::core::G_TYPED_KERNEL (GXor,< GMat(GMat, GMat)>, "org.opencv.core.pixelwise.bitwise_xor")
 
 cv::gapi::core::G_TYPED_KERNEL (GXorS,< GMat(GMat, GScalar)>, "org.opencv.core.pixelwise.bitwise_xorS")
 
 cv::gapi::core::G_TYPED_KERNEL (GNot,< GMat(GMat)>, "org.opencv.core.pixelwise.bitwise_not")
 
 cv::gapi::core::G_TYPED_KERNEL (GSelect,< GMat(GMat, GMat, GMat)>, "org.opencv.core.pixelwise.select")
 
 cv::gapi::core::G_TYPED_KERNEL (GMin,< GMat(GMat, GMat)>, "org.opencv.core.matrixop.min")
 
 cv::gapi::core::G_TYPED_KERNEL (GMax,< GMat(GMat, GMat)>, "org.opencv.core.matrixop.max")
 
 cv::gapi::core::G_TYPED_KERNEL (GAbsDiff,< GMat(GMat, GMat)>, "org.opencv.core.matrixop.absdiff")
 
 cv::gapi::core::G_TYPED_KERNEL (GAbsDiffC,< GMat(GMat, GScalar)>, "org.opencv.core.matrixop.absdiffC")
 
 cv::gapi::core::G_TYPED_KERNEL (GSum,< GScalar(GMat)>, "org.opencv.core.matrixop.sum")
 
 cv::gapi::core::G_TYPED_KERNEL (GAddW,< GMat(GMat, double, GMat, double, double, int)>, "org.opencv.core.matrixop.addweighted")
 
 cv::gapi::core::G_TYPED_KERNEL (GNormL1,< GScalar(GMat)>, "org.opencv.core.matrixop.norml1")
 
 cv::gapi::core::G_TYPED_KERNEL (GNormL2,< GScalar(GMat)>, "org.opencv.core.matrixop.norml2")
 
 cv::gapi::core::G_TYPED_KERNEL (GNormInf,< GScalar(GMat)>, "org.opencv.core.matrixop.norminf")
 
 cv::gapi::core::G_TYPED_KERNEL (GThreshold,< GMat(GMat, GScalar, GScalar, int)>, "org.opencv.core.matrixop.threshold")
 
 cv::gapi::core::G_TYPED_KERNEL (GInRange,< GMat(GMat, GScalar, GScalar)>, "org.opencv.core.matrixop.inrange")
 
 cv::gapi::core::G_TYPED_KERNEL (GResize,< GMat(GMat, Size, double, double, int)>, "org.opencv.core.transform.resize")
 
 cv::gapi::core::G_TYPED_KERNEL (GMerge3,< GMat(GMat, GMat, GMat)>, "org.opencv.core.transform.merge3")
 
 cv::gapi::core::G_TYPED_KERNEL (GMerge4,< GMat(GMat, GMat, GMat, GMat)>, "org.opencv.core.transform.merge4")
 
 cv::gapi::core::G_TYPED_KERNEL (GRemap,< GMat(GMat, Mat, Mat, int, int, Scalar)>, "org.opencv.core.transform.remap")
 
 cv::gapi::core::G_TYPED_KERNEL (GFlip,< GMat(GMat, int)>, "org.opencv.core.transform.flip")
 
 cv::gapi::core::G_TYPED_KERNEL (GCrop,< GMat(GMat, Rect)>, "org.opencv.core.transform.crop")
 
 cv::gapi::core::G_TYPED_KERNEL (GConcatHor,< GMat(GMat, GMat)>, "org.opencv.imgproc.transform.concatHor")
 
 cv::gapi::core::G_TYPED_KERNEL (GConcatVert,< GMat(GMat, GMat)>, "org.opencv.imgproc.transform.concatVert")
 
 cv::gapi::core::G_TYPED_KERNEL (GLUT,< GMat(GMat, Mat)>, "org.opencv.core.transform.LUT")
 
 cv::gapi::core::G_TYPED_KERNEL (GConvertTo,< GMat(GMat, int, double, double)>, "org.opencv.core.transform.convertTo")
 
 cv::gapi::core::G_TYPED_KERNEL_M (GPolarToCart,< GMat2(GMat, GMat, bool)>, "org.opencv.core.math.polarToCart")
 
 cv::gapi::core::G_TYPED_KERNEL_M (GCartToPolar,< GMat2(GMat, GMat, bool)>, "org.opencv.core.math.cartToPolar")
 
 cv::gapi::core::G_TYPED_KERNEL_M (GIntegral,< GMat2(GMat, int, int)>, "org.opencv.core.matrixop.integral")
 
 cv::gapi::core::G_TYPED_KERNEL_M (GThresholdOT,< GMatScalar(GMat, GScalar, int)>, "org.opencv.core.matrixop.thresholdOT")
 
 cv::gapi::core::G_TYPED_KERNEL_M (GSplit3,< GMat3(GMat)>, "org.opencv.core.transform.split3")
 
 cv::gapi::core::G_TYPED_KERNEL_M (GSplit4,< GMat4(GMat)>,"org.opencv.core.transform.split4")
 
GAPI_EXPORTS GMat cv::gapi::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, GMat > cv::gapi::integral (const GMat &src, int sdepth=-1, int sqdepth=-1)
 Calculates the integral of an image. More...
 
GAPI_EXPORTS GMat cv::gapi::LUT (const GMat &src, const Mat &lut)
 Performs a look-up table transform of a matrix. More...
 
GAPI_EXPORTS GMat cv::gapi::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 cv::gapi::mask (const GMat &src, const GMat &mask)
 Applies a mask to a matrix. More...
 
GAPI_EXPORTS GMat cv::gapi::max (const GMat &src1, const GMat &src2)
 Calculates per-element maximum of two matrices. More...
 
GAPI_EXPORTS GScalar cv::gapi::mean (const GMat &src)
 Calculates an average (mean) of matrix elements. More...
 
GAPI_EXPORTS GMat cv::gapi::merge3 (const GMat &src1, const GMat &src2, const GMat &src3)
 
GAPI_EXPORTS GMat cv::gapi::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 cv::gapi::min (const GMat &src1, const GMat &src2)
 Calculates per-element minimum of two matrices. More...
 
GAPI_EXPORTS GMat cv::gapi::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 cv::gapi::mulC (const GMat &src, double multiplier, int ddepth=-1)
 Multiplies matrix by scalar. More...
 
GAPI_EXPORTS GMat cv::gapi::mulC (const GMat &src, const GScalar &multiplier, int ddepth=-1)
 
GAPI_EXPORTS GMat cv::gapi::mulC (const GScalar &multiplier, const GMat &src, int ddepth=-1)
 
GAPI_EXPORTS GScalar cv::gapi::normInf (const GMat &src)
 Calculates the absolute infinite norm of a matrix. More...
 
GAPI_EXPORTS GScalar cv::gapi::normL1 (const GMat &src)
 Calculates the absolute L1 norm of a matrix. More...
 
GAPI_EXPORTS GScalar cv::gapi::normL2 (const GMat &src)
 Calculates the absolute L2 norm of a matrix. More...
 
GAPI_EXPORTS std::tuple< GMat, GMat > cv::gapi::polarToCart (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 cv::gapi::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 cv::gapi::resize (const GMat &src, const Size &dsize, double fx=0, double fy=0, int interpolation=INTER_LINEAR)
 Resizes an image. More...
 
GAPI_EXPORTS GMat cv::gapi::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 std::tuple< GMat, GMat, GMat > cv::gapi::split3 (const GMat &src)
 
GAPI_EXPORTS std::tuple< GMat, GMat, GMat, GMat > cv::gapi::split4 (const GMat &src)
 Divides a 3-channel (4-channel) matrix into 3(4) single-channel matrices. More...
 
GAPI_EXPORTS GMat cv::gapi::sub (const GMat &src1, const GMat &src2, int ddepth=-1)
 Calculates the per-element difference between two matrices. More...
 
GAPI_EXPORTS GMat cv::gapi::subC (const GMat &src, const GScalar &c, int ddepth=-1)
 Calculates the per-element difference between matrix and given scalar. More...
 
GAPI_EXPORTS GMat cv::gapi::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 cv::gapi::sum (const GMat &src)
 Calculates sum of all matrix elements. More...
 
GAPI_EXPORTS GMat cv::gapi::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, GScalar > cv::gapi::threshold (const GMat &src, const GScalar &maxval, int depth)