The OpenVX Specification  r28647
 All Data Structures Functions Variables Typedefs Enumerations Enumerator Groups Pages
Erode Image

Detailed Description

Implements Erosion, which shrinks the white space in a VX_DF_IMAGE_U8 Boolean 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') \]

Functions

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

Function Documentation

vx_node 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.
Returns
vx_node.
Return values
0Node could not be created.
*Node handle.
vx_status 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.