This is a common interface for rendering 2D images and some primitive 2D graphic objects on the screen, like line, circles, text boxes, etc., to video file or single image.
- Note
Render
interface implementations are not thread-safe and are bound to the thread where they are created.
|
std::unique_ptr< Render > | nvxio::createDefaultRender (vx_context context, const std::string &title, vx_uint32 width, vx_uint32 height, vx_uint32 format=VX_DF_IMAGE_RGBX) |
| Render factory that creates UI render with a window by default. More...
|
|
std::unique_ptr< Render > | nvxio::createImageRender (vx_context context, const std::string &path, vx_uint32 width, vx_uint32 height, vx_uint32 format=VX_DF_IMAGE_RGBX) |
| Creates a render for image sequence. More...
|
|
std::unique_ptr< Render > | nvxio::createVideoRender (vx_context context, const std::string &path, vx_uint32 width, vx_uint32 height, vx_uint32 format=VX_DF_IMAGE_RGBX) |
| Creates a render for writing video. More...
|
|
std::unique_ptr< Render > | nvxio::createWindowRender (vx_context context, const std::string &title, vx_uint32 width, vx_uint32 height, vx_uint32 format=VX_DF_IMAGE_RGBX) |
| Creates a Window render. More...
|
|
struct nvxio::Render::CircleStyle |
Data Fields |
vx_uint8 |
color[4] |
Holds the line color in RGBA format. |
int |
thickness |
Holds the line thickness. |
struct nvxio::Render::DetectedObjectStyle |
Data Fields |
string |
label |
Holds the text label. |
vx_uint8 |
color[4] |
Holds the line color in RGBA format. |
vx_uint8 |
thickness |
Holds the line thickness. |
bool |
isHalfTransparent |
Holds a flag indicating whether the detected object should be filled with half-transparent color. |
struct nvxio::Render::FeatureStyle |
Data Fields |
vx_uint8 |
color[4] |
Holds the feature color in RGBA format. |
float |
radius |
Holds the radius of the feature. |
struct nvxio::Render::LineStyle |
Data Fields |
vx_uint8 |
color[4] |
Holds the line color in RGBA format. |
int |
thickness |
Holds the thickness of the line. |
struct nvxio::Render::MotionFieldStyle |
Data Fields |
vx_uint8 |
color[4] |
Holds the color of the motion field in RGBA format. |
struct nvxio::Render::TextBoxStyle |
Data Fields |
vx_uint8 |
color[4] |
Holds the text color in RGBA format. |
vx_uint8 |
bgcolor[4] |
Holds the background color of the box. |
vx_coordinates2d_t |
origin |
Holds the coordinates of the top-left corner of the box. |
Render factory that creates UI render with a window by default.
- Parameters
-
[in] | context | Specifies the VisionWorks context. |
[in] | title | A reference to the title of the render. |
[in] | width | Specifies the width of the render. |
[in] | height | Specifies the height of the render. |
[in] | format | Specifies the format of the render. |
- Returns
Render
implementation or nullptr
if this one cannot be created.
- See also
- NVXIO APIs
Creates a render for writing video.
- Parameters
-
[in] | context | Specifies the VisionWorks context. |
[in] | path | A references to the path to output video file. |
[in] | width | Specifies the width of the render. |
[in] | height | Specifies the height of the render. |
[in] | format | Specifies the format of the render. |
- Returns
Render
implementation or nullptr
if this one cannot be created.
- See also
- NVXIO APIs
Creates a Window render.
- Parameters
-
[in] | context | Specifies the VisionWorks context. |
[in] | title | A reference to the title of the window. |
[in] | width | Specifies the width of the render. |
[in] | height | Specifies the height of the render. |
[in] | format | Specifies the format of the render. |
- Returns
Render
implementation or nullptr
if this one cannot be created.
- See also
- NVXIO APIs
Creates a render for image sequence.
- Parameters
-
[in] | context | Specifies the VisionWorks context. |
[in] | path | A reference to the output image sequence path. |
[in] | width | Specifies the width of the render. |
[in] | height | Specifies the height of the render. |
[in] | format | Specifies the format of the render. |
- Returns
Render
implementation or nullptr
if this one cannot be created.
- See also
- NVXIO APIs