| [mmclose] [Up] [mmdist] | Morphological Filters |
Implemented in Python.
| f | Image Gray-scale (uint8 or uint16) or binary image. |
| b | Structuring Element Default:
|
| y | Image |
mmopen creates the image
y by the morphological opening of the image
f by the structuring element
b. In the binary case, the opening by the structuring element
B may be interpreted as the union of translations of
B included in
f. In the gray-scale case, there is a similar interpretation taking the functions umbra.
>>> f=mmbinary(mmreadgray('blob.tif'))
>>> bimg=mmbinary(mmreadgray('blob1.tif'))
>>> b=mmimg2se(bimg)
>>> mmshow(f)
>>> mmshow(mmopen(f,b))
>>> mmshow(mmopen(f,b),mmgradm(f))
![]() |
![]() |
|
| f | mmopen(f,b) |
![]() |
|
| mmopen(f,b),mmgradm(f) |
def mmopen(f, b=None):
if b is None: b = mmsecross()
y = mmdil(mmero(f,b),b)
return y
| mmclose | Morphological closing. |
| mmfreedom | Control automatic data type conversion. |
| mmimg2se | Create a structuring element from a pair of images. |
| mmsebox | Create a box structuring element. |
| mmsecross | Diamond structuring element and elementary 3x3 cross. |
| mmareaopen | Area opening |
| mmsesum | N-1 iterative Minkowski additions |
| [mmclose] [Up] [mmdist] | |
| Copyright (c) 2003, Roberto A. Lotufo, UNICAMP-University of Campinas; Rubens C. Machado, CenPRA-Renato Archer Research Center. |