[mmImage] [Up] [mmInterval] Data Types

mmSe
Toolbox structuring element datatype

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())
[[0 1 0]
 [1 1 1]
 [0 1 0]]
>>> print mmseshow(mmsecross(),'non-flat')
[[-2147483647           0 -2147483647]
 [          0           0           0]
 [-2147483647           0 -2147483647]]
>>> print mmseshow(mmbinary([0,1,1]))
[0 1 1]
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

[mmImage] [Up] [mmInterval] Python