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
Input value inImage Image Input image
Input value inRoi Region | None None Range of pixels to be processed
Input value inMarkers list[Region] Local minima markers
Input value inBasinsPolarity Polarity Whether to look for bright or dark basins
Output value outBasins list[Region]