![]() |
VisionWorks Toolkit ReferenceSeptember 29, 2015 | 1.0 Release |
Adds various extensions to the vx_image
object.
This section describes different extensions and features to the standard Object: Image.
Image dimensions in VisionWorks implementations must not exceed INT32_MAX
.
In VisionWorks, the vxCreateImageFromHandle
function can import images from:
VX_IMPORT_TYPE_HOST
In both cases, the imported memory must satisfy the following memory layout conditions:
In VisionWorks, images can be accessed from the CUDA device memory in addition to the host CPU memory defined in the OpenVX specification. For this, the application must use CUDA-specific accessors nvx_accessor_e for the usage parameter of function vxAccessImagePatch
.
Example Code
Enumerations | |
enum | nvx_df_image_e { NVX_DF_IMAGE_F32 = VX_DF_IMAGE('F','0','3','2'), NVX_DF_IMAGE_2F32 = VX_DF_IMAGE('2','F','3','2'), NVX_DF_IMAGE_RGB16 = VX_DF_IMAGE('S','3','1','6') } |
Defines additional image formats. More... | |
Functions | |
vx_image | nvxCreateImageFromChannel (vx_image imgref, vx_channel_e channel) |
Creates an image from a single channel of another image. More... | |
enum nvx_df_image_e |
vx_image nvxCreateImageFromChannel | ( | vx_image | imgref, |
vx_channel_e | channel | ||
) |
Creates an image from a single channel of another image.
This second image refers to the data in the original image. Updates to this image updates the parent image.
The method supports only multi-planar images (YUV4, IYUV, NV12, NV21) and only channels that occupy an entire plane.
[in] | imgref | Specifies the parent image. |
[in] | channel | Specifies the channel to use. |