Watershed
The Watershed command separates objects that are close together or touching by treating pixel intensities as altitude and finding the valleys between peaks. It is placed after Connected Components.
When to use
Use Watershed when high object density causes nearby objects to be detected as a single merged region after thresholding. Typical scenarios:
- Dense vesicle populations
- Touching cell nuclei
Parameters
| Parameter | Description |
|---|---|
| Maximum finder tolerance | Controls sensitivity to local intensity peaks. Range: 0.0–1.0. Lower values detect more (smaller) peaks and split more aggressively; higher values require more prominent peaks. |
How it works
- The distance-transform of the binary mask is computed.
- Local maxima in the distance map are found using the tolerance parameter.
- Each maximum is treated as a “seed” and the mask is flooded outward from each seed simultaneously.
- Where the flooding fronts from different seeds meet, a watershed line is drawn.
The implementation is ported from ImageJ.