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') \]
[Graph] Creates an Erosion Image Node.
- Parameters
-
[in] | graph | The reference to the graph. |
[in] | input | The input image in VX_DF_IMAGE_U8 format. |
[out] | output | The output image in VX_DF_IMAGE_U8 format. |
- Returns
vx_node
.
- Return values
-
0 | Node could not be created. |
* | Node handle. |
[Immediate] Erodes an image by a 3x3 window.
- Parameters
-
[in] | context | The reference to the overall context. |
[in] | input | The input image in VX_DF_IMAGE_U8 format. |
[out] | output | The output image in VX_DF_IMAGE_U8 format. |
- Returns
- A
vx_status_e
enumeration.
- Return values
-