OpenCV  4.1.2
Open Source Computer Vision
Classes | Typedefs | Functions
cv::gapi::wip::draw Namespace Reference

Classes

struct  Circle
 
struct  Image
 
struct  Line
 
struct  Mosaic
 
struct  Poly
 
struct  Rect
 
struct  Text
 

Typedefs

using GMat2 = std::tuple< cv::GMat, cv::GMat >
 
using GMatDesc2 = std::tuple< cv::GMatDesc, cv::GMatDesc >
 
using Prim = util::variant< Text, Rect, Circle, Line, Mosaic, Image, Poly >
 
using Prims = std::vector< Prim >
 

Functions

void render (cv::Mat &bgr, const Prims &prims, const cv::gapi::GKernelPackage &pkg=ocv::kernels())
 The function renders on the input image passed drawing primitivies. More...
 
void render (cv::Mat &y_plane, cv::Mat &uv_plane, const Prims &prims, const cv::gapi::GKernelPackage &pkg=ocv::kernels())
 The function renders on two NV12 planes passed drawing primitivies. More...
 

Typedef Documentation

§ GMat2

using cv::gapi::wip::draw::GMat2 = typedef std::tuple<cv::GMat,cv::GMat>

§ GMatDesc2

§ Prim

§ Prims

using cv::gapi::wip::draw::Prims = typedef std::vector<Prim>

Function Documentation

§ render() [1/2]

void cv::gapi::wip::draw::render ( cv::Mat bgr,
const Prims prims,
const cv::gapi::GKernelPackage pkg = ocv::kernels() 
)

The function renders on the input image passed drawing primitivies.

Parameters
bgrinput image: 8-bit unsigned 3-channel image CV_8UC3.
primsvector of drawing primitivies
pkgcontains render kernel implementation

§ render() [2/2]

void cv::gapi::wip::draw::render ( cv::Mat y_plane,
cv::Mat uv_plane,
const Prims prims,
const cv::gapi::GKernelPackage pkg = ocv::kernels() 
)

The function renders on two NV12 planes passed drawing primitivies.

Parameters
y_planeinput image: 8-bit unsigned 1-channel image CV_8UC1.
uv_planeinput image: 8-bit unsigned 2-channel image CV_8UC2.
primsvector of drawing primitivies
pkgcontains render kernel implementation