Watershed segmentation.
| | Name | Type | Identifier | Description | Constraints |
| Input | Grid | grid, input | GRID | - | - |
| Output | Segments | grid, output | SEGMENTS | - | - |
| Seed Points | shapes, output | SEEDS | - | - |
| Borders (*) | data object Grid, output, optional | BORDERS | - | - |
| Options | Grid System | grid system | PARAMETERS_GRID_SYSTEM | - | - |
| Output | choice | OUTPUT | The values of the resultant grid can be either the seed value (e.g. the local maximum) or the enumerated segment id. | Available Choices: [0] Seed Value [1] Segment ID Default: 1 |
| Method | choice | DOWN | Choose if you want to segmentate either on minima or on maxima. | Available Choices: [0] Minima [1] Maxima Default: 1 |
| Join Segments based on Threshold Value | choice | JOIN | Join segments based on threshold value. | Available Choices: [0] do not join [1] seed to saddle difference [2] seeds difference Default: 0 |
| Threshold | floating point number | THRESHOLD | Specify a threshold value as minimum difference between neighboured segments. | Minimum: 0.000000 Default: 0.000000 |
| Allow Edge Pixels to be Seeds | boolean | EDGE | - | Default: 1 |
| Borders | boolean | BBORDERS | Create borders between segments as new grid. | Default: 0 |
| (*) optional |