Watershed

Building the Cantata Workspace


To build and experiment a workspace that performs the watershed:
  1. Select the square1.viff and squares.viff images;

  2. Visualize both images using vexpand (a khoros tool that performs the interpolation of points). Use 16 as the horizontal and vertical expansion factor.

  3. Apply to the result of both expansions the morphological distance function (euclidean metric);

  4. Do the conversion of the two input images to byte;

  5. Do the union, of both result images;

  6. Visualize the result of the union using the color map lable.xv.

  7. Do the negation, of the union. This will transform hills into holes;

  8. Apply the watershed using connectivity 4;

  9. Visualize the result of the watershed.

Exercises

  1. Experiment to apply the Negation operation only to the small squares.

  2. Apply the watershed operator to the morphological gradient of the danaus.xv image.

  3. Apply the watershed operator to the morphological gradient of the opening of the danaus.xv image. Execute this for a family of opening by disks of increasing ray. Could you explain the observed phenomena?

  4. Use the distance transform and the watershed operator in order to sepate the superposed objects in image blobs1.xv.