[mmSkiz] [Up] [mmThick] Thinning And Thickening

mmSwatershed
Detection of similarity-based watershed from markers.

Synopsis

Image mmSwatershed ( const Image& f , const Image& g , const Strel& B = NullStrel, const String& LINEREG = "LINES" );

Input

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

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

Marker image. If binary, each connected component is an object marker. If gray, it is assumed it is a labeled image.

B Structuring Element

(watershed 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

mmSwatershed creates the image y by detecting the domain of the catchment basins of f indicated by g, according with the connectivity defined by B. This watershed is a modified version where each basin is defined by a similarity criterion between pixels. The original watershed is normally applied to the gradient of the image. In this case, the gradient is taken internally. 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 [LF00].

See also

mmCwatershed Detection of watershed from markers.
mmWatershed Watershed detection.
mmSebox Create a box structuring element.
mmSecross Diamond structuring element and elementary 3x3 cross.
[mmSkiz] [Up] [mmThick]