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

Classes

struct  Circle
 
struct  Line
 
struct  Rect
 
struct  Text
 

Typedefs

using Prim = util::variant< Text, Rect, Circle, Line >
 
using Prims = std::vector< Prim >
 

Functions

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

Typedef Documentation

§ 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 
)

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

§ render() [2/2]

void cv::gapi::wip::draw::render ( cv::Mat y_plane,
cv::Mat uv_plane,
const Prims prims 
)

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