[mmThin] [Up] [mmHistogram] Thinning And Thickening

mmWatershed
Watershed detection.

Synopsis

Image mmWatershed ( const Image& f , const Strel& Bc = NullStrel, const String& LINEREG = "LINES" );

Input

f Image [ Gray-scale (uint8 or uint16) or binary image ]

Bc Structuring Element

( connectivity)

Default: NullStrel (3x3 elementary cross)

LINEREG String

Output image: 'LINES' or 'REGIONS'.

Default: "LINES"

Output

y Image [ Gray-scale (uint8 or uint16) or binary image ]

Description

mmWatershed creates the image y by detecting the domain of the catchment basins of f, according to the connectivity defined by Bc. According to the flag LINEREG y will be a labeled image of the catchment basins domain or just a binary image that presents the watershed lines. The implementation of this function is based on [Vin91].

Limitations

The structuring elements allowed are the elementary cross (4-connected) and the elementary square (8-connected).

See also

mmCwatershed Detection of watershed from markers.
mmSebox Create a box structuring element.
mmSecross Diamond structuring element and elementary 3x3 cross.
mmSwatershed Detection of similarity-based watershed from markers.
[mmThin] [Up] [mmHistogram]