[mmasf] [Up] [mmopen] Morphological Filters

mmclose
Morphological closing.

Synopsis

y = mmclose ( f , b = NullStrel )

Input

f Image Gray-scale (uint8 or uint16) or binary image

b Structuring Element

Default: NullStrel (3x3 elementary cross)

Output

y Image

Description

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.

Examples

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)
f = mmreadgray('form-1.tif')
mmshow(f)
y = mmclose(f,mmsedisk(4))
mmshow(y)
f y
f = mmreadgray('n2538.tif')
mmshow(f)
y = mmclose(f,mmsedisk(3))
mmshow(y)
f y

Equation

See also

mmopen Morphological opening.
mmfreedom Control automatic data type conversion.
mmsebox Create a box structuring element.
mmsecross Diamond structuring element and elementary 3x3 cross.
mmimg2se Create a structuring element from a pair of images.
mmsesum N-1 iterative Minkowski additions
[mmasf] [Up] [mmopen]