OpenCV  4.5.0
Open Source Computer Vision
Functions
Drawing operations and functions

Functions

void cv::gapi::wip::draw::render (cv::Mat &bgr, const Prims &prims, cv::GCompileArgs &&args={})
 The function renders on the input image passed drawing primitivies. More...
 
void cv::gapi::wip::draw::render (cv::Mat &y_plane, cv::Mat &uv_plane, const Prims &prims, cv::GCompileArgs &&args={})
 The function renders on two NV12 planes passed drawing primitivies. More...
 
GMat cv::gapi::wip::draw::render3ch (const GMat &src, const GArray< Prim > &prims)
 Renders on 3 channels input. More...
 
GMat2 cv::gapi::wip::draw::renderNV12 (const GMat &y, const GMat &uv, const GArray< Prim > &prims)
 Renders on two planes. More...
 

Detailed Description

Function Documentation

◆ render() [1/2]

void cv::gapi::wip::draw::render ( cv::Mat bgr,
const Prims prims,
cv::GCompileArgs &&  args = {} 
)

#include <opencv2/gapi/render/render.hpp>

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
argsgraph compile time parameters

◆ render() [2/2]

void cv::gapi::wip::draw::render ( cv::Mat y_plane,
cv::Mat uv_plane,
const Prims prims,
cv::GCompileArgs &&  args = {} 
)

#include <opencv2/gapi/render/render.hpp>

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
argsgraph compile time parameters

◆ render3ch()

GMat cv::gapi::wip::draw::render3ch ( const GMat src,
const GArray< Prim > &  prims 
)

#include <opencv2/gapi/render/render.hpp>

Renders on 3 channels input.

Output image must be 8-bit unsigned planar 3-channel image

Parameters
srcinput image: 8-bit unsigned 3-channel image CV_8UC3
primsdraw primitives

◆ renderNV12()

GMat2 cv::gapi::wip::draw::renderNV12 ( const GMat y,
const GMat uv,
const GArray< Prim > &  prims 
)

#include <opencv2/gapi/render/render.hpp>

Renders on two planes.

Output y image must be 8-bit unsigned planar 1-channel image CV_8UC1 uv image must be 8-bit unsigned planar 2-channel image CV_8UC2

Parameters
yinput image: 8-bit unsigned 1-channel image CV_8UC1
uvinput image: 8-bit unsigned 2-channel image CV_8UC2
primsdraw primitives