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:

  1. using the tool Struc. El. 3x3 to generate 3x3 planar elements;

  2. using the tool Disk str. el. to generate any disk, using three distance metrics: euclidean, city-block and chess-board.

  3. 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:

  1. select the $MMACH/viff/blobs2.xv image;

  2. visualize this image using display image;

  3. chouse the 3x3 square structural element;

  4. perform the morphological gradient;

  5. display the result of the transformation.


Exercises

  1. Apply the morphological gradient operator on the 1D signal $MMACH/viff/signal1.viff. Use only flat structural elements.

  2. Apply the morphological gradient by the 3x3 square to the image $MMACH/viff/block.xv.

  3. Implent the subtraction of the erosion of the image $MMACH/viff/blobs2.xv by the 3x3 square from the input image.

  4. What is the interpretation of the transfomed image of the previous exercise?

  5. Repeat the same experiment using as strucutral element the 3x3 cross.

  6. What is the difference between the two last results?

  7. Implent the subtraction of the image $MMACH/viff/blobs2.xv from the dilation of this image by the 3x3 square.

  8. What is the interpretation of the transfomed image of the previous exercise?

  9. Implent the subtraction of the image $MMACH/viff/blobs2.xv from the dilation of this image by the 3x3 cross.

  10. What is the difference between the two last results?