| [mmareaclose] [Up] [mmvmin] | Connected Operators |
| User Feedback |
| f | Image Gray-scale (uint8 or uint16) or binary image |
| a | Double
non negative integer. |
| Bc | Structuring Element
( connectivity). Default: |
| y | Image
Same type of |
mmareaopen removes any grain (i.e., connected component) with area less than a of a binary image f. The connectivity is given by the structuring element Bc. This operator is generalized to gray-scale images by applying the binary operator successively on slices of f taken from higher threshold levels to lower threshold levels.
f=mmbinary(uint8([ [1, 1, 0, 0, 0, 0, 1], [1, 0, 1, 1, 1, 0, 1], [0, 0, 0, 0, 1, 0, 0]]))
y=mmareaopen(f,4,mmsecross())
print y
[[False False False False False False False] [False False True True True False False] [False False False False True False False]]
f=uint8([ [10, 11, 0, 0, 0, 0, 20], [10, 0, 5, 8, 9, 0, 15], [10, 0, 0, 0, 10, 0, 0]])
y=mmareaopen(f,4,mmsecross())
print y
[[10 10 0 0 0 0 0] [10 0 5 5 5 0 0] [10 0 0 0 5 0 0]]

The structuring elements allowed are the elementary cross (4-connected) and the elementary box (8-connected).
| mmfreedom | Control automatic data type conversion. |
| mmlabel | Label a binary image. |
| mmsebox | Create a box structuring element. |
| mmsecross | Diamond structuring element and elementary 3x3 cross. |
| mmareaclose | Area closing |
| [mmareaclose] [Up] [mmvmin] | |
| User Feedback | |
| Copyright (c) 1998-2008 by SDC Information Systems |