Implements the Sobel Image Filter Kernel.
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} \]
[Graph] Creates a Sobel3x3 node.
- Parameters
-
[in] | graph | The reference to the graph. |
[in] | input | The 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 . |
- See also
VX_KERNEL_SOBEL_3x3
- Returns
vx_node
.
- Return values
-
0 | Node could not be created. |
* | Node handle. |
[Immediate] Invokes an immediate Sobel 3x3.
- Parameters
-
[in] | context | The reference to the overall context. |
[in] | input | The 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
-