Watershed Segmentation

Block Category: Matching

Input Image Format

Input Image Requirements: RGB

Description: The Watershed Segmentation block uses a marker-based watershed algorithm (make-controlled flooding technique) for image segmentation. The image is treated like a topographic map where the brightness of each pixel corresponds to its height. The watershed algorithm floods the topographic image using a defined set of markers in order to segment the image.

Example

In this example, the watershed algorithm is used in conjunction with Distance Transform to segment the image.