[mmIMAGE] [Up] [mmINTERVAL] Data Types

mmSE
Toolbox structuring element type

Description

The structuring element is normally represented by a binary or int32 matrix that by convention the position of the origin [0,0] is at the center of the matrix. The structuring elements can be flat, represented by a binary matrix or non-flat, represented by an uint32 matrix. Sometimes, the structuring element can be represented by an internal data structure so that the best way to visualize a structuring element is by calling the function mmseshow which converts the structuring element to a matrix with the above conventions.

Examples

print mmseshow(mmsecross())
[[False  True False]
 [ True  True  True]
 [False  True False]]
print mmseshow(mmsecross(),'non-flat')
[[-2147483647           0 -2147483647]
 [          0           0           0]
 [-2147483647           0 -2147483647]]
print mmseshow(mmbinary([0,1,1]))
[False  True  True]
A graphical representation of a flat structuring element can be created using the option 'expand' in the mmseshow function:
B = mmsecross(3)
F = mmseshow(B,'expand')
mmshow(F)
F

See also

mmseshow Display a structuring element as an image.
mmsedil Dilate one structuring element by another
mmseunion Union of structuring elements
mmsetrans Translate a structuring element
mmsesum N-1 iterative Minkowski additions
[mmIMAGE] [Up] [mmINTERVAL]