| Image Processing Toolbox | ![]() |
Step 7: Watershed Segmentation
Use the watershed function to accomplish Watershed segmentation of the imposed minima image.
The watershed function returns a label matrix containing nonnegative numbers that correspond to watershed regions. Pixels that do not fall into any watershed region are given a pixel value of 0.
A good way to visualize a label matrix is to convert it to a color image, using the label2rgb function. In the color version of the image, each labeled region displays in a different color and the pixels that separate the regions display white.
| Step 6: Detect Intensity Valleys | Step 8: Extract Features from Label Matrix | ![]() |