Operator DILATE

Operator Library: Filter

The operator DILATE performs a binary dilation of the image, which can be used to close gaps in images. The input of the operator is a kernel image data stream. At the output, the dilation result of the central pixel is provided. A structuring element for the dilate operation is given by the parameterizable binary matrix StructElement. The matrix has the size of the input kernel. Dilation is a fundamental operation in morphological image processing. The operator output is set to '1', if any matrix element of value '1' matches with its corresponding kernel element.

I/O Properties

Property Value
Operator Type O
Input Link I, kernel input
Output Link O, result output

Supported Link Format

Link Parameter Input Link I Output Link O
Bit Width 1 as I
Arithmetic unsigned as I
Parallelism any as I
Kernel Columns any as I
Kernel Rows any as I
Img Protocol {VALT_IMAGE2D, VALT_LINE1D, VALT_PIXEL0D} as I
Color Format VAF_GRAY as I
Color Flavor FL_NONE as I
Max. Img Width any as I
Max. Img Height any as I

Parameters

StructElement
Type static parameter
Default 1
Range {0, 1}

Structuring element is a shape, used to probe or interact with a given image, with the purpose of drawing conclusions on how this shape fits or misses the shapes in the image.

  • A '0' in the struct element has to match with a '0' in the respective kernel input.

  • A '1' in the struct element has to match with a '1' in the respective kernel input.

If the input kernel size of the operator is changed, the coefficients will also change. Check the coefficients after changing the input kernel size.

Examples of Use

The use of operator DILATE is shown in the following examples:

  • 'Close'

    Examples - Shows the implementation of a morphological close applied to binary images.

  • 'Open'

    Examples - Shows the implementation of a morphological open applied to binary images.