Copies data from one image to another.
The primitive uses the following identifiers:
- NVX_KERNEL_COPY_IMAGE for
vxGetKernelByEnum
function;
"com.nvidia.nvx.copy_image"
for vxGetKernelByName
function.
Example Code
[Graph] Copies data from one image to another.
- Parameters
-
[in] | graph | Specifies the graph. |
[in] | src | Specifies the input image. The primitive supports all image formats. |
[out] | dst | Specifies 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
).
[Immediate] Copies data from one image to another.
- Parameters
-
[in] | context | Specifies the context. |
[in] | src | Specifies the input image. The primitive supports all image formats. |
[out] | dst | Specifies the output image. It should have the same size and format as the input image. |
- Returns
- A
vx_status
enumerator.
- Return values
-
VX_SUCCESS | No errors. |
VX_ERROR_INVALID_REFERENCE | Supplied parameters are not a valid references. |
VX_ERROR_INVALID_PARAMETERS | Supplied parameters are not valid. |
VX_ERROR_INVALID_SCOPE | Supplied parameters are virtual objects, which can't be used in immediate mode. |
VX_FAILURE | Internal error in primitive implementation, check log for detailed information (Framework: Log). |