![]() |
VisionWorks Toolkit ReferenceDecember 18, 2015 | 1.2 Release |
The Scharr 3x3 Image Filter Kernel.
This kernel produces two output planes (one can be omitted) in the x and y plane. The Scharr Operators \( G_x, G_y \) are defined as:
\[ \mathbf{G}_x=\begin{vmatrix} -3 & 0 & +3 \\ -10 & 0 & +10 \\ -3 & 0 & +3 \end{vmatrix} , \mathbf{G}_y=\begin{vmatrix} -3 & -10 & -3 \\ 0 & 0 & 0 \\ +3 & +10 & +3 \end{vmatrix} \]
The primitive uses the following identifiers:
vxGetKernelByEnum
function;"com.nvidia.nvx.scharr_3x3"
for vxGetKernelByName
function. Functions | |
vx_node | nvxScharr3x3Node (vx_graph graph, vx_image input, vx_image grad_x, vx_image grad_y) |
[Graph] Applies Scharr 3 x 3 operator. More... | |
vx_status | nvxuScharr3x3 (vx_context context, vx_image input, vx_image grad_x, vx_image grad_y) |
[Immediate] Applies Scharr 3 x 3 operator. More... | |
[Graph] Applies Scharr 3 x 3 operator.
[in] | graph | Specifies the graph. |
[in] | input | Specifies the input image. Only VX_DF_IMAGE_U8 format is supported. |
[out] | grad_x | [optional] Specifies the output gradient in the x direction. Only VX_DF_IMAGE_S16 format is supported. |
[out] | grad_y | [optional] Specifies the output gradient in the y direction. Only VX_DF_IMAGE_S16 format is supported. |
vxGetStatus
).vx_status nvxuScharr3x3 | ( | vx_context | context, |
vx_image | input, | ||
vx_image | grad_x, | ||
vx_image | grad_y | ||
) |
[Immediate] Applies Scharr 3 x 3 operator.
[in] | context | Specifies the context. |
[in] | input | Specifies the input image. Only VX_DF_IMAGE_U8 format is supported. |
[out] | grad_x | [optional] Specifies the output gradient in the x direction. Only VX_DF_IMAGE_S16 format is supported. |
[out] | grad_y | [optional] Specifies the output gradient in the y direction. Only VX_DF_IMAGE_S16 format is supported. |
vx_status
enumerator. 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, that cannot be used in immediate mode. |
VX_FAILURE | Internal error in primitive implementation, check log for detailed information (Framework: Log). |