The OpenVX Specification  dba1aa3
Erode Image

Detailed Description

Implements Erosion, which shrinks the white space in a VX_DF_IMAGE_U8 Boolean image. The output image dimensions should be the same as the dimensions of the input image.

This kernel uses a 3x3 box around the output pixel used to determine value.

\[ dst(x,y) = \min_{ \begin{array}{c} x-1 \le x' \le x+1 \\ y-1 \le y' \le y+1 \end{array} } src(x',y') \]

Note
For kernels that use other structuring patterns than 3x3 see vxNonLinearFilterNode or vxuNonLinearFilter.

Functions

vx_node VX_API_CALL vxErode3x3Node (vx_graph graph, vx_image input, vx_image output)
 [Graph] Creates an Erosion Image Node. More...
 
vx_status VX_API_CALL vxuErode3x3 (vx_context context, vx_image input, vx_image output)
 [Immediate] Erodes an image by a 3x3 window. More...
 

Function Documentation

vx_node VX_API_CALL vxErode3x3Node ( vx_graph  graph,
vx_image  input,
vx_image  output 
)

[Graph] Creates an Erosion Image Node.

Parameters
[in]graphThe reference to the graph.
[in]inputThe input image in VX_DF_IMAGE_U8 format.
[out]outputThe output image in VX_DF_IMAGE_U8 format, which must have the same dimensions as the input image.
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 vxuErode3x3 ( vx_context  context,
vx_image  input,
vx_image  output 
)

[Immediate] Erodes an image by a 3x3 window.

Parameters
[in]contextThe reference to the overall context.
[in]inputThe input image in VX_DF_IMAGE_U8 format.
[out]outputThe output image in VX_DF_IMAGE_U8 format.
Returns
A vx_status_e enumeration.
Return values
VX_SUCCESSSuccess
*An error occurred. See vx_status_e.