The OpenVX Specification  r28647
 All Data Structures Functions Variables Typedefs Enumerations Enumerator Groups Pages
Channel Extract

Detailed Description

Implements the Channel Extraction Kernel.

This kernel removes a single VX_DF_IMAGE_U8 channel (plane) from a multi-planar or interleaved image format from vx_df_image_e.

Functions

vx_node vxChannelExtractNode (vx_graph graph, vx_image input, vx_enum channel, vx_image output)
 [Graph] Creates a channel extract node. More...
 
vx_status vxuChannelExtract (vx_context context, vx_image input, vx_enum channel, vx_image output)
 [Immediate] Invokes an immediate Channel Extract. More...
 

Function Documentation

vx_node vxChannelExtractNode ( vx_graph  graph,
vx_image  input,
vx_enum  channel,
vx_image  output 
)

[Graph] Creates a channel extract node.

Parameters
[in]graphThe reference to the graph.
[in]inputThe input image. Must be one of the defined vx_df_image_e multi-planar formats.
[in]channelThe vx_channel_e channel to extract.
[out]outputThe output image. Must be VX_DF_IMAGE_U8.
See also
VX_KERNEL_CHANNEL_EXTRACT
Returns
vx_node.
Return values
0Node could not be created.
*Node handle.
vx_status vxuChannelExtract ( vx_context  context,
vx_image  input,
vx_enum  channel,
vx_image  output 
)

[Immediate] Invokes an immediate Channel Extract.

Parameters
[in]contextThe reference to the overall context.
[in]inputThe input image. Must be one of the defined vx_df_image_e multiplanar formats.
[in]channelThe vx_channel_e enumeration to extract.
[out]outputThe output image. Must be VX_DF_IMAGE_U8.
Returns
A vx_status_e enumeration.
Return values
VX_SUCCESSSuccess
*An error occurred. See vx_status_e.