Morphological Gradient Operator
Building the Cantata Workspace
The closing is an elementary operator that accepts as parameters a function
and a structural element. This operator applies for signals, binary and gray scale images.
The structural elements can be criated by the following ways:
- using the tool
Struc. El. 3x3 to generate 3x3 planar elements;
- using the tool
Disk str. el.
to generate any disk, using three distance metrics: euclidean, city-block
and chess-board.
- Using the tool
Viff-> Str.El. to convert
any viff file to a structural element.
To build and experiment a workspace that performs the morphological gradient:
- select the $MMACH/viff/blobs2.xv image;
- visualize this image using display image;
- chouse the 3x3 square structural element;
- perform the morphological gradient;
- display the result of the transformation.
Exercises
- Apply the morphological gradient operator on the 1D signal
$MMACH/viff/signal1.viff. Use only flat structural elements.
- Apply the morphological gradient by the 3x3 square to the image
$MMACH/viff/block.xv.
- Implent the subtraction of the erosion of the image
$MMACH/viff/blobs2.xv by the 3x3 square from the input image.
- What is the interpretation of the transfomed image of the previous
exercise?
- Repeat the same experiment using as strucutral element the 3x3 cross.
- What is the difference between the two last results?
- Implent the subtraction of the image
$MMACH/viff/blobs2.xv from the dilation of this image by the 3x3
square.
- What is the interpretation of the transfomed image of the previous
exercise?
- Implent the subtraction of the image
$MMACH/viff/blobs2.xv from the dilation of this image by the 3x3
cross.
- What is the difference between the two last results?