SegmentImage_Watersheds
Computes dark or bright watershed basins of an image.
Applications:A classic algorithm, useful for segmentation of ball-shaped objects like plant seeds, cells or fruits.
Syntax
C++
C#
Python
def SegmentImage_Watersheds( inImage: Image, inMarkers: list[Region], inBasinsPolarity: Polarity, /, *, inRoi: Region | None = None ) -> outBasins: list[Region]
Parameters
| Name | Type | Default | Description | |
|---|---|---|---|---|
![]() |
inImage | Image | Input image | |
![]() |
inRoi | Region | None | None | Range of pixels to be processed |
![]() |
inMarkers | list[Region] | Local minima markers | |
![]() |
inBasinsPolarity | Polarity | Whether to look for bright or dark basins | |
![]() |
outBasins | list[Region] |


