| [Top] [Up] [Prev] [Next] | [Up] [Basic Concepts] [Demonstrations] [Functions] | SDC Morphology Toolbox V1.1 15Jan02 |
y = mmwatershed( f, Bc, LINEREG ) f: Gray-scale (uint8 or uint16) or binary image (logical uint8). Bc: Structuring element. ( connectivity) Default: Elementary cross (mmsecross).LINEREG: String. 'LINES' or ' REGIONS'. Default: "LINES".y: Gray-scale (uint8 or uint16) or binary image (logical uint8). 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] .f=mmreadgray('astablet.tif'); grad=mmgradm(f); w1=mmwatershed(grad,mmsebox); w2=mmwatershed(grad,mmsebox,'REGIONS'); mmshow(grad); mmshow(w1); mmlblshow(w2);
|
| [Top] [Up] [Prev] [Next] | [Up] [Basic Concepts] [Demonstrations] [Functions] |
|
| Copyright (c) 1998-2002 by SDC Information Systems | ||