| [mmasf] [Up] [mmopen] | Morphological Filters |
Implemented in Python.
| f | Image Gray-scale (uint8 or uint16) or binary image. |
| b | Structuring Element Default:
|
| y | Image |
mmclose creates the image
y by the morphological closing of the image
f by the structuring element
b. In the binary case, the closing by a structuring element
B may be interpreted as the intersection of all the binary images that contain the image
f and have a hole equal to a translation of
B. In the gray-scale case, there is a similar interpretation taking the functions umbra.
>>> f=mmreadgray('blob.tif')
>>> bimg=mmreadgray('blob1.tif')
>>> b=mmimg2se(bimg)
>>> mmshow(f)
>>> mmshow(mmclose(f,b))
>>> mmshow(mmclose(f,b),mmgradm(f))
![]() |
![]() |
|
| f | mmclose(f,b) |
![]() |
|
| mmclose(f,b),mmgradm(f) |
def mmclose(f, b=None):
if b is None: b = mmsecross()
y = mmero(mmdil(f,b),b)
return y
| [mmasf] [Up] [mmopen] | |
| Copyright (c) 2003, Roberto A. Lotufo, UNICAMP-University of Campinas; Rubens C. Machado, CenPRA-Renato Archer Research Center. |