The OpenVX Specification  dba1aa3

Detailed Description

Implements the Sobel Image Filter Kernel. The output images dimensions should be the same as the dimensions of the input image.

This kernel produces two output planes (one can be omitted) in the x and y plane. The Sobel Operators \( G_x, G_y \) are defined as:

\[ \mathbf{G}_x=\begin{vmatrix} -1 & 0 & +1\\ -2 & 0 & +2\\ -1 & 0 & +1 \end{vmatrix} , \mathbf{G}_y=\begin{vmatrix} -1 & -2 & -1 \\ 0 & 0 & 0 \\ +1 & +2 & +1 \end{vmatrix} \]

Functions

vx_node VX_API_CALL vxSobel3x3Node (vx_graph graph, vx_image input, vx_image output_x, vx_image output_y)
 [Graph] Creates a Sobel3x3 node. More...
 
vx_status VX_API_CALL vxuSobel3x3 (vx_context context, vx_image input, vx_image output_x, vx_image output_y)
 [Immediate] Invokes an immediate Sobel 3x3. More...
 

Function Documentation

vx_node VX_API_CALL vxSobel3x3Node ( vx_graph  graph,
vx_image  input,
vx_image  output_x,
vx_image  output_y 
)

[Graph] Creates a Sobel3x3 node.

Parameters
[in]graphThe reference to the graph.
[in]inputThe input image in VX_DF_IMAGE_U8 format.
[out]output_x[optional] The output gradient in the x direction in VX_DF_IMAGE_S16. Must have the same dimensions as the input image.
[out]output_y[optional] The output gradient in the y direction in VX_DF_IMAGE_S16. Must have the same dimensions as the input image.
See also
VX_KERNEL_SOBEL_3x3
Returns
vx_node.
Return values
vx_nodeA node reference. Any possible errors preventing a successful creation should be checked using vxGetStatus
vx_status VX_API_CALL vxuSobel3x3 ( vx_context  context,
vx_image  input,
vx_image  output_x,
vx_image  output_y 
)

[Immediate] Invokes an immediate Sobel 3x3.

Parameters
[in]contextThe reference to the overall context.
[in]inputThe input image in VX_DF_IMAGE_U8 format.
[out]output_x[optional] The output gradient in the x direction in VX_DF_IMAGE_S16.
[out]output_y[optional] The output gradient in the y direction in VX_DF_IMAGE_S16.
Returns
A vx_status_e enumeration.
Return values
VX_SUCCESSSuccess
*An error occurred. See vx_status_e.