Morphological dilation of binary pixel data
visionhdl.Dilation
replaces each pixel with the
local maximum of the neighborhood around the pixel. The object operates on a stream of
binary intensity values.
This object uses a streaming pixel interface with a structure
for frame control signals. This interface enables the object to operate independently of image
size and format, and to connect with other Vision HDL Toolbox™ objects. The object accepts and returns a scalar pixel value and control signals
as a structure containing five signals. The control signals indicate the validity of each pixel
and its location in the frame. To convert a pixel matrix into a pixel stream and control
signals, use the visionhdl.FrameToPixels
object. For a full
description of the interface, see Streaming Pixel Interface.
Note
Starting in R2016b, instead of using the step
method to perform the operation defined by the System object™, you can call the object with arguments, as if it were a function. For
example, y = step(obj,x)
and y = obj(x)
perform equivalent operations.
returns a System object, D
= visionhdl.DilationD
, that performs morphological dilation on a binary
video stream.
returns a System object, D
= visionhdl.Dilation(Name
,Value
)D
, with additional options specified by one or more
Name
,Value
pair arguments.
Name
is a property name and
Value
is the corresponding value. Name
must
appear inside single quotes (''
). You can specify several name-value
pair arguments in any order as Name1,Value1,...,NameN,ValueN
.
Properties not specified retain their default values.
|
Pixel neighborhood, specified as a vector or matrix of
The object supports neighborhoods of up to 32×32 pixels.
To use a structuring element, specify When you use multipixel vector input, the neighbourhood must be at least two pixels in each dimension. Default: |
|
Specify a power of two that accommodates the number of active pixels in a single horizontal line. Choose a power of two that accommodates the number of active
pixels in a horizontal line. If you specify a value that is not a
power of two, the object uses the next largest power of two. The object
allocates (neighborhood lines – 1)-by- Default: |
|
Select one of these methods for padding the boundary of the input image. For more information about these methods, see Edge Padding.
Default: |
step | Report dilated pixel value based on neighborhood |
Common to All System Objects | |
---|---|
release | Allow System object property value changes |
This object implements the algorithms described on the Dilation block reference page.
Dilation | visionhdl.Erosion
| visionhdl.FrameToPixels
| imdilate
(Image Processing Toolbox)