OpenCV  4.5.4-dev
Open Source Computer Vision
Public Member Functions | List of all members
cv::GMat Class Reference

GMat class represents image or tensor data in the graph. More...

#include <opencv2/gapi/gmat.hpp>

Inheritance diagram for cv::GMat:
cv::GMatP

Public Member Functions

GAPI_WRAP GMat ()
 Constructs an empty GMat. More...
 

Detailed Description

GMat class represents image or tensor data in the graph.

GMat doesn't store any data itself, instead it describes a functional relationship between operations consuming and producing GMat objects.

GMat is a virtual counterpart of Mat and UMat, but it doesn't mean G-API use Mat or UMat objects internally to represent GMat objects – the internal data representation may be backend-specific or optimized out at all.

See also
Mat, GMatDesc

Constructor & Destructor Documentation

◆ GMat()

GAPI_WRAP cv::GMat::GMat ( )
Python:
cv.GMat() -> <GMat object>

Constructs an empty GMat.

Normally, empty G-API data objects denote a starting point of the graph. When an empty GMat is assigned to a result of some operation, it obtains a functional link to this operation (and is not empty anymore).


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