Image Processing Toolbox    

Step 5: Convert Objects of Interest

Because the watershed transform detects intensity "valleys" in an image, the example uses the imcomplement function on the enhanced image to highlight the intensity valleys.


  Step 4: Exaggerate the Gaps Between Objects Step 6: Detect Intensity Valleys