Watershed  
Top  Previous  Next

 
Menu:   Processing > Morphology… > Geodesy->Watershed  
Script:   watershed  
 
Use this command to find the ridges of intensity in an image. The function works by treating the image as a topographic surface, finding the local minima in it and then "flooding" the surface. The lines at which the neighboring pools join as the water rise are extracted as watershed ridges. You can pre-flood the surface with a selected "rain" level to disregard lower ridges. The procedure can be inverted to locate "valleys" on the intensity surface.

If you choose the this command, the following options will become available:

Input
 
Displays the input image frame number. If you want to process another image, type or select the corresponding value.  

Output
 
Displays the number of the frame in which the output image will be created. Depending on the Preferences. ImageWarp will set it either to the first available value or to the Input frame number. Type or select another value if you want the output image to be created in a different frame.  
 
Preview
 
Select this check box to watch the Preview of the output image.  

Invert
 
Select this option to inverts the input image before submitting it to the watershed operator. The valleys in the image intensity will be extracted instead of the ridges.  
 
Preflood
 
Lets you specify the initial depth of "water basins" on the intensity surface. Increasing this parameter will submerge the smaller ridges and they will not appear in the output image.  
 
Invert
 
Select this option to inverts the input image before submitting it to the watershed operator. The valleys in the image intensity will be extracted instead of the ridges.