Morphological closing of binary pixel data
Vision HDL Toolbox / Morphological Operations
The Closing block performs morphological dilation followed by morphological erosion by using the same neighborhood for both calculations. The block operates on a stream of binary intensity values. You can specify a neighborhood, or structuring element, of up to 32-by-32 pixels.
Note
This block matches the behavior of the Closing (Computer Vision Toolbox) block in Computer Vision Toolbox™ and of the combination of imerode(imdilate())
in
Image Processing Toolbox™. However, it does not match the edge behavior of the
imclose
function in Image Processing Toolbox. imclose
assumes that white is the foreground color of a
binary image, which can result in differences in edge behavior.
This block uses a streaming pixel interface with a bus for
frame control signals. This interface enables the block to operate independently of image size
and format. The pixel ports on this block support single pixel streaming or
multipixel streaming. Single pixel streaming accepts and returns a single pixel value each clock
cycle. Multipixel streaming accepts and returns 4 or 8 pixels per clock cycle to support
high-frame-rate or high-resolution formats. Along with the pixel, the block accepts and returns
a pixelcontrol
bus that contains five control signals. The control signals
indicate the validity of each pixel and their location in the frame. For multipixel streaming,
one set of control signals applies to all four or eight pixels in the vector. To convert a frame
(pixel matrix) into a serial pixel stream and control signals, use the Frame
To Pixels block. For a full description of the interface, see Streaming Pixel Interface.
Dilation | Erosion | Frame To Pixels | Opening | visionhdl.Closing