[Top] [Up] [Prev] [Next] [Up] [Basic Concepts] [Demonstrations] [Functions] SDC Morphology Toolbox V1.1 15Jan02

mmseshow - Display a structuring element as an image.


Synopsis
y = mmseshow( B, EXPAND )
Input
B: Structuring element.
EXPAND: String. 'NORMAL' or ' EXPAND' Default: "NORMAL".
Output
y: Gray-scale (uint8 or uint16) or binary image (logical uint8).
Description
mmseshow generates the image y that is a suitable graphical representation of the structuring element B. If B is flat, y is binary, otherwise, y is gray-scale.
Examples

Flat structuring element

b=mmsecross(3);
mmseshow(b)

ans =
     0     0     0     1     0     0     0
     0     0     1     1     1     0     0
     0     1     1     1     1     1     0
     1     1     1     1     1     1     1
     0     1     1     1     1     1     0
     0     0     1     1     1     0     0
     0     0     0     1     0     0     0
a = mmseshow(b,'EXPAND');
mmshow(a); 
image
(a)

Non flat structuring element

b=mmsedisk(2,'2D','EUCLIDEAN','NON-FLAT');
mmseshow(b)

ans =
     0     2     2     2     0
     2     3     3     3     2
     2     3     3     3     2
     2     3     3     3     2
     0     2     2     2     0
See Also
mmfreedom - Control automatic data type conversion.
mmimg2se - Create a structuring element from a pair of images.
mmsebox - Create a box structuring element.
mmsecross - Cross structuring element.
mmsedisk - Create a disk or a semi-sphere structuring element.
mmseline - Create a line structuring element.

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