VisionWorks Toolkit Reference

December 18, 2015 | 1.2 Release

 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages

Detailed Description

Copies data from one image to another.

The primitive uses the following identifiers:

Example Code

vx_image src = vxCreateImage(context, 640, 480, VX_DF_IMAGE_U8);
vx_image dst = vxCreateImage(context, 640, 480, VX_DF_IMAGE_U8);
nvxuCopyImage(context, src, dst);
vxReleaseContext(&context);

Functions

vx_node nvxCopyImageNode (vx_graph graph, vx_image src, vx_image dst)
 [Graph] Copies data from one image to another. More...
 
vx_status nvxuCopyImage (vx_context context, vx_image src, vx_image dst)
 [Immediate] Copies data from one image to another. More...
 

Function Documentation

vx_node nvxCopyImageNode ( vx_graph  graph,
vx_image  src,
vx_image  dst 
)

[Graph] Copies data from one image to another.

Parameters
[in]graphSpecifies the graph.
[in]srcSpecifies the input image. The primitive supports all image formats.
[out]dstSpecifies the output image. It should have the same size and format as the input image. Output size and format can be automatically determined for virtual images.
Returns
A valid node reference or an error object (use vxGetStatus).
vx_status nvxuCopyImage ( vx_context  context,
vx_image  src,
vx_image  dst 
)

[Immediate] Copies data from one image to another.

Parameters
[in]contextSpecifies the context.
[in]srcSpecifies the input image. The primitive supports all image formats.
[out]dstSpecifies the output image. It should have the same size and format as the input image.
Returns
A vx_status enumerator.
Return values
VX_SUCCESSNo errors.
VX_ERROR_INVALID_REFERENCESupplied parameters are not a valid references.
VX_ERROR_INVALID_PARAMETERSSupplied parameters are not valid.
VX_ERROR_INVALID_SCOPESupplied parameters are virtual objects, which can't be used in immediate mode.
VX_FAILUREInternal error in primitive implementation, check log for detailed information (Framework: Log).