Implements Dilation, which grows 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) = \max_{ \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
.
[Graph] Creates a Dilation 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, which must have the same dimensions as the input image. |
- Returns
vx_node
.
- Return values
-
vx_node | A node reference. Any possible errors preventing a successful creation should be checked using vxGetStatus |
[Immediate] Dilates 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
-