[mmwatershed] [Up] [mmhistogram] Thinning And Thickening

mmiwatershed
Interactive watershed from markers.

Synopsis

function m,ws = mmiwatershed ( f , Bc )

Input

f Image Gray-scale (uint8 or uint16) or binary image
Bc Structuring Element

Default: mmsecross

Connectivity.

Output

m,ws Image Gray-scale (uint8 or uint16) or binary image

Description

The image is interactively segmented by placing markers with the mouse. The markers are placed by pointing the mouse and press any mouse button or key. Each key is associated to a different label, so the user can choose different keys to segment different regions. As the markers are placed, the image is segmented and the result presented immediately to the user. If DEL or BACK-SPACE is pressed on a marker, it is deleted. The key ESC is used to exit. Internally, the watershed is computed on the morphological gradient of the input image.

See also

mmfreedom Control automatic data type conversion.
mmcwatershed Detection of watershed from markers.
mmsebox Create a box structuring element.
mmsecross Diamond structuring element and elementary 3x3 cross.
[mmwatershed] [Up] [mmhistogram]