| [mmunion] [Up] [mmsebox] | Structuring Elements |
| User Feedback |
mmimg2se creates a flat structuring element B from the binary image fd or creates a non-flat structuring element b from the binary image fd and the gray-scale image f. fd represents the domain of b and f represents the image of the points in fd.
Let us apply mmimg2se to create structuring elements. In the example below, the flat 3x3 diamond is created.
a = mmimg2se(mmbinary([ [0,1,0], [1,1,1], [0,1,0]]))
print mmseshow(a)
[[False True False] [ True True True] [False True False]]
In this next example, the image sizes are even. Note the origin of the structuring element.
b = mmbinary([ [0,1,1,1], [1,1,1,0]])
b1 = mmimg2se(b)
print mmseshow(b1)
[[False False False False False] [False False True True True] [False True True True False]]
In the example below, a non-flat diamond is created.
c = mmbinary([ [0,1,0], [1,1,1], [0,1,0]])
d = int32([ [0,0,0], [0,1,0], [0,0,0]])
e = mmimg2se(c,'NON-FLAT',d)
print mmseshow(e)
[[-2147483647 0 -2147483647] [ 0 1 0] [-2147483647 0 -2147483647]]


| mmfreedom | Control automatic data type conversion. |
| mmsebox | Create a box structuring element. |
| mmsecross | Diamond structuring element and elementary 3x3 cross. |
| mmsedisk | Create a disk or a semi-sphere structuring element. |
| mmseline | Create a line structuring element. |
| mmseshow | Display a structuring element as an image. |
| mmdil | Dilate an image by a structuring element. |
| [mmunion] [Up] [mmsebox] | |
| User Feedback | |
| Copyright (c) 1998-2008 by SDC Information Systems |