This module computes the watershed lines of a grayscale image. It directly uses the image for black objects and the inverted image for white objects. You can adjust the contrast level which is used to reduce the number of markers for the watershed process.
This module is a high-level combination of watershed, distance transform and numerical reconstruction algorithms. There is a limitation to the separating ability: if some particles overlap too much, they will not be separated. This module can be used on the gradient modulus to compute best-fit contours.
See also: Separate Objects.
Input Grayscale Image [required]
The image to be processed. Supported types are: 8-bit and 16-bit signed grayscale image (Uniform Scalar Field).
Interpretation
This port specifies whether the input will be interpreted as a 3D volume or a stack of 2D images for processing.
- "3D": the module configuration is set to 3D. The image will be processed as a whole in 3D.
- "XY planes": the module configuration is set to 2D. The image will be processed slice per slice.
Neighborhood
In 3D configuration, this port refers to the type of connectivity considered for processing adjacent voxels:
- 6: voxels with a common face are considered connected
- 18: voxels with at least one common edge are considered connected
- 26: voxels with at least one common vertex are considered connected
Object type
Object type option to determine whether the separate command applies to black or white particles.Marker extent
This port specifies a number used as a contrast factor to reduce the number of seeds for the watershed. Higher values increase the number of merged seeds, therefore reduce the final number of remaining seeds. It has the same meaning as the contrast factor of H-Maxima.Output Type
This port selects the content of the output image. It is one of the following:
split: Original data minus separation lines (split particles)
line: Separation lines
basins: Watersheds
basins2: Watersheds without separation lines
Algorithm Mode
This port selects the type of algorithm used to separate the objects. It is one of the following:
repeatable: repeatable but slower
fast: faster but not repeatable because of asynchronous parallel computation.