Watershed
Building the Cantata Workspace
To build and experiment a workspace that performs the watershed:
- Select the square1.viff and squares.viff images;
- Visualize both images using vexpand (a khoros tool that performs the interpolation of points). Use 16 as the horizontal and vertical expansion factor.
- Apply to the result of both expansions the morphological distance function (euclidean metric);
- Do the conversion of the two input images to byte;
- Do the union,
of both result images;
- Visualize the result of the union using the color map lable.xv.
- Do the negation,
of the union. This will transform hills into holes;
- Apply the watershed using connectivity 4;
- Visualize the result of the watershed.
Exercises
- Experiment to apply the Negation operation only to the small squares.
- Apply the watershed operator to the morphological gradient of the danaus.xv image.
- 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?
- Use the distance transform and the watershed operator in order to sepate the superposed objects in image blobs1.xv.