Fig. 6

Representation of the watershed transformation. (a) An image containing three items that cannot be delineated by a basic threshold. (b) Segmentation of foreground and background. (c) Inverse of image. (d) Intensity line profile along the illustrated line, demonstrating the filling of the basins to the level where the yellow and blue regions converge, resulting in the formation of a first watershed. (e) Watershed transformation. (f) masked image by using (b).