| [mmskiz] [Up] [mmthick] | Thinning And Thickening |
| User Feedback |
| 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
Default: (watershed connectivity) |
| LINEREG | String
Default: Output image: 'LINES' or 'REGIONS'. |
| y | Image Gray-scale (uint8 or uint16) or binary image |
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].
f = uint8([...
0, 0, 0, 0, 0, 0, 0;...
0, 1, 0, 0, 0, 1, 0;...
0, 1, 0, 0, 0, 1, 0;...
0, 1, 1, 1, 1, 1, 0;...
0, 1, 0, 0, 0, 0, 0;...
0, 0, 0, 0, 0, 0, 0]);
m = uint8([...
0, 0, 0, 0, 0, 0, 0;...
0, 1, 0, 0, 0, 0, 0;...
0, 0, 0, 0, 0, 0, 0;...
0, 0, 0, 0, 0, 0, 0;...
0, 0, 0, 0, 0, 0, 0;...
0, 0, 0, 2, 0, 0, 0]);
mmswatershed(f,m,mmsecross,'REGIONS')
ans =
2 2 2 2 2 2 2
2 1 2 2 2 1 2
2 1 2 2 2 1 2
2 1 1 1 1 1 2
2 1 2 2 2 2 2
2 2 2 2 2 2 2
| mmcwatershed | Detection of watershed from markers. |
| mmwatershed | Watershed detection. |
| mmfreedom | Control automatic data type conversion. |
| mmsebox | Create a box structuring element. |
| mmsecross | Diamond structuring element and elementary 3x3 cross. |
| [mmskiz] [Up] [mmthick] | |
| User Feedback | |
| Copyright (c) 1998-2008 by SDC Information Systems |