Main Content

Dilation

Dilate binary or intensity image by finding local maxima

  • 库:
  • 电脑Vision Toolbox / Morphological Operations

  • Dilation Block

Description

TheDilationblock performs morphological dilation on an intensity or binary image and outputs the dilated image.

To define the structuring element that the block applies to the image, use theNeighborhood or structuring elementparameter.

This block uses two-dimensional flat structuring elements only.

Ports

Input

expand all

Specify an input image as a matrix of intensity values. This port is unnamed unless you set theNeighborhood or structuring element sourceparameter toInput port.

Data Types:single|double|int8|int16|int32|uint8|uint16|uint32|Boolean|fixed point

Specify neighborhood values representing a structuring element as a vector or matrix of1s and0s or by using thestrelfunction.

Dependencies

To enable this port, set theNeighborhood or structuring element sourceparameter toInput port.

Data Types:Boolean

Output

expand all

The block returns the dilated image as a matrix of intensity values. The size and data type of the output image are the same as those of the input image.

Data Types:single|double|int8|int16|int32|uint8|uint16|uint32|Boolean|fixed point

Parameters

expand all

Specify the source of the neighborhood or structuring element as one of these options:

  • Specify via dialog— Use theNeighborhood or structuring elementparameter to specify a neighborhood or structuring element.

  • Input port— Use theNhoodinput port to specify neighborhood values representing a structuring element.

Specify a neighborhood or structuring element as a vector or matrix of1s and0s, astrelobject, or an array ofstrelobjects. When you specify an array ofstrelobjects, the block applies each object to the entire image sequentially.

If the structuring element is decomposable into smaller elements, the block uses a more efficient algorithm that can execute more quickly.

Dependencies

To enable this parameter, set theNeighborhood or structuring element sourceparameter, toSpecify via dialog.

Block Characteristics

Data Types

Boolean|double|fixed point|integer|single

Multidimensional Signals

no

Variable-Size Signals

yes

More About

expand all

References

[1] Soille, Pierre.Morphological Image Analysis. Berlin, Heidelberg: Springer Berlin Heidelberg, 2004. https://doi.org/10.1007/978-3-662-05088-0.

[2] Gonzalez, Rafael C., Richard E. Woods, and Steven L. Eddins.Digital Image Processing Using MATLAB. Third edition. Knoxville: Gatesmark Publishing, 2020.

Extended Capabilities

C/C++ Code Generation
Generate C and C++ code using Simulink® Coder™.

版本历史

Introduced before R2006a