[mmsebox] [Up] [mmsedisk] Structuring Elements

mmsecross
Diamond structuring element and elementary 3x3 cross.

Synopsis

B = mmsecross ( r = 1 )

Input

r Double

(radius).

Default: 1 (1)

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()
print mmseshow(b1)
[[False  True False]
 [ True  True  True]
 [False  True False]]
b2 = mmsecross(2)
print mmseshow(b2)
[[False False  True False False]
 [False  True  True  True False]
 [ True  True  True  True  True]
 [False  True  True  True False]
 [False False  True False False]]

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]