Watershed

The WatershedSegmentation block uses a marker-based watershed algorithm (make-controlled flooding technique) for image segmentation.

    Watershed

Library

ComputerVision/Images/Segmentation

Description

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.

Parameters

Watershed_0

NameLabelDescriptionData TypeValid Values

externalActivation

External activation

This parameter defines if the block receives or inherits an external activation. When External Activation is used, an additional activation port is added to the block. Default is OFF.

Number

0
1

Ports

NameTypeDescriptionIO TypeNumber

src

explicit

input

1

markers(grayscale)

explicit

input

2

image

explicit

output

1

Port 4

activation

input

externalActivation