[mmsebox] [Up] [mmsedisk] Structuring Elements

mmsecross
Diamond structuring element and elementary 3x3 cross.

Synopsis

function B = mmsecross ( r )

Input

r Double

Default: 1

(radius).

Description

mmsecross creates the structuring element B formed by r successive Minkowski additions of the elementary cross (i.e., the 3x3 cross centered at the origin) with itself. If r=0, B is the unitary set that contains the origin. If r=1, B is the elementary cross itself.

Examples

b1 = mmsecross;
mmseshow(b1)
ans =
     0     1     0
     1     1     1
     0     1     0
b2 = mmsecross(2);
mmseshow(b2)
ans =
     0     0     1     0     0
     0     1     1     1     0
     1     1     1     1     1
     0     1     1     1     0
     0     0     1     0     0

Equation

See also

mmfreedom Control automatic data type conversion.
mmsebox Create a box structuring element.
mmseshow Display a structuring element as an image.
mmdil Dilate an image by a structuring element.
mmsedisk Create a disk or a semi-sphere structuring element.
mmseline Create a line structuring element.
[mmsebox] [Up] [mmsedisk]