Class cv::GMat#

GMat class represents image or tensor data in the graph. View details

Collaboration diagram for cv::GMat:

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>
cv.GMat(m) -> <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).

GMat()#

GAPI_WRAP cv::GMat::GMat(cv::Mat m)

Python:

cv.GMat() -> <GMat object>
cv.GMat(m) -> <GMat object>

Constructs a value-initialized GMat.

GMat may be associated with a buffer at graph construction time. It is useful when some operation has a Mat input which doesn’t change during the program execution, and is set only once. In this case, there’s no need to declare such GMat as graph input.

Parameters

  • m — a cv::Mat buffer to associate with this GMat object.

GMat()#

cv::GMat::GMat(
const GNode & n,
std::size_t out )

Python:

cv.GMat() -> <GMat object>
cv.GMat(m) -> <GMat object>

Member Function Documentation#

priv()#

GOrigin & cv::GMat::priv()

priv()#

const GOrigin & cv::GMat::priv()

Member Data Documentation#

m_priv#

std::shared_ptr< GOrigin > cv::GMat::m_priv

Source file#

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