| [Top] [Up] [Prev] [Next] | [Up] [Basic Concepts] [Demonstrations] [Functions] | SDC Morphology Toolbox V1.1 15Jan02 |
B = mmsedisk( r, DIM, METRIC, FLAT, h ) r: Non-negative integer. Disk radius. Default: 3.DIM: String. '1D', '2D, or '3D'. Default: "2D".METRIC: String. 'EUCLIDEAN', ' CITY-BLOCK', 'OCTAGON', or ' CHESSBOARD'. Default: "EUCLIDEAN".FLAT: String. 'FLAT' or 'NON-FLAT'. Default: "FLAT".h: Elevation of the center of the semi-sphere. Default: 0.B: Structuring element. mmsedisk creates a flat structuring element B that is disk under the metric METRIC , centered at the origin and with radius r or a non-flat structuring element that is a semi-sphere under the metric METRIC, centered at (0, h) and with radius r. This structuring element can be created on the 1D, 2D or 3D space.
a=mmseshow(mmsedisk(10,'2D','CITY-BLOCK')); b=mmseshow(mmsedisk(10,'2D','EUCLIDEAN')); c=mmseshow(mmsedisk(10,'2D','OCTAGON')); mmshow(a); mmshow(b); mmshow(c);
|
d=mmseshow(mmsedisk(10,'2D','CITY-BLOCK','NON-FLAT')); e=mmseshow(mmsedisk(10,'2D','EUCLIDEAN','NON-FLAT')); f=mmseshow(mmsedisk(10,'2D','OCTAGON')); mmshow(d); mmshow(e); mmshow(f);
|
g=mmsedisk(3,'2D','EUCLIDEAN','NON-FLAT'); mmseshow(g) ans = 0 0 2 2 2 0 0 0 3 3 3 3 3 0 2 3 4 4 4 3 2 2 3 4 4 4 3 2 2 3 4 4 4 3 2 0 3 3 3 3 3 0 0 0 2 2 2 0 0 h=mmsedisk(3,'2D','EUCLIDEAN','NON-FLAT',5); mmseshow(h) ans = 0 0 7 7 7 0 0 0 8 8 8 8 8 0 7 8 9 9 9 8 7 7 8 9 9 9 8 7 7 8 9 9 9 8 7 0 8 8 8 8 8 0 0 0 7 7 7 0 0 |







| [Top] [Up] [Prev] [Next] | [Up] [Basic Concepts] [Demonstrations] [Functions] |
|
| Copyright (c) 1998-2002 by SDC Information Systems | ||