OpenCV  4.1.1-pre
Open Source Computer Vision
Looking for a C++ dev who knows OpenCV?
I'm looking for work. Hire me!
cv::gapi::wip::draw Namespace Reference

Classes

struct  Circle
 A structure to represent parameters for drawing a circle. More...
 
struct  Line
 A structure to represent parameters for drawing a line. More...
 
struct  Rect
 A structure to represent parameters for drawing a rectangle. More...
 
struct  Text
 A structure to represent parameters for drawing a text string. More...
 

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