[Exercises]
[Workspace]
Purpose:
The purpose of this lab exercise is to demonstrate the
basic principles in Mathematical Morphology of Dilation and Erosion,
and the operations of Opening and Closing.
Activities:
-
Select the $DIP/data/angio.kdf image and display it.
-
Glyphs:Input/Output:Data Files:User defined
-
Glyphs:Visualization:Non-Interactive Display:Display Image
-
The input image is a grey-level image. Threshold the image at
128-level using the > (greater than) operator to produce a binary
image. Display the thresholded image.
-
Glyphs:Arithmetic:Comparison Operators:>
-
Glyphs:Visualization:Non-Interactive Display:Display Image
-
Create a structuring element which is a 5x5 circle image using
the Circle Image operator. Convert it to a structuring element
using the Viff-> Str.El. operator.
-
Glyphs:Khoros 1:Generate Data:Circle Image
-
Glyphs:MMACH:Structural Element:Viff-> Str.El.
-
There are two basic tools in Mathematical Morphology: Dilation
and Erosion. They can process both binary and grey-level
images. These operators require the "structuring element" as second
input.
-
Use the circular structuring element created above to perform
an Opening and a Closing operation on the binary image. Opening is
an erosion followed by a dilation operation. Closing is a dilation
followed by an erosion operation. Display the results.
-
Glyphs:MMACH:Dilation and Erosion:Dilation
-
Glyphs:MMACH:Dilation and Erosion:Erosion
-
Glyphs:Visualization:Non-Interactive Display:Display Image
-
Use the same circular structuring element to perform an Opening
and a Closing operation on the grey-level image. Display the results.
-
Glyphs:MMACH:Dilation and Erosion:Dilation
-
Glyphs:MMACH:Dilation and Erosion:Erosion
-
Glyphs:Visualization:Non-Interactive Display:Display Image
Exercises
-
Experiment with different sizes of structuring elements.
Khoros Workspace
Execute the visual program c9s4dil-ero-open-close.wk
Main DIP Menu
DIP Feedback Form
Copyright © 1997-1995 KRI, ISTEC, Ramiro Jordán, Roberto Lotufo. All Rights Reserved