Read in the Color Image and Convert it to Grayscale
Use the Gradient Magnitude as the Segmentation Function
Mark the Foreground Objects
Compute Background Markers
Compute the Watershed Transform of the Segmentation Function
Visualize the Result
Markers and object boundaries superimposed on original image (I4)
Colored watershed label matrix (Lrgb)