[Top] [Up] [Prev] [Next] [Up] [Basic Concepts] [Demonstrations] [Functions] SDC Morphology Toolbox V1.1 15Jan02

mmclose - Morphological closing.


Synopsis
y = mmclose( f, b )
Input
f: Gray-scale (uint8 or uint16) or binary image (logical uint8).
b: Structuring element. Default: Elementary cross (mmsecross).
Output
y: Gray-scale (uint8 or uint16) or binary image (logical uint8).
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=mmbinary(mmreadgray('blob.tif'));
Warning: Converting image from binary uint8 to uint8.
bimg=mmbinary(mmreadgray('blob1.tif'));
Warning: Converting image from binary uint8 to uint8.
b=mmimg2se(bimg);
mmshow(f);
mmshow(mmclose(f,b));
mmshow(mmclose(f,b),mmgradm(f));
image
(f)
image
(mmclose(f,b))
image
(mmclose(f,b),mmgradm(f))
f = mmreadgray('form-1.tif');
mmshow(f);
y = mmclose(f,mmsedisk(4));
mmshow(y);
image
(f)
image
(y)
f = mmreadgray('n2538.tif');
mmshow(f);
y = mmclose(f,mmsedisk(3));
mmshow(y);
image
(f)
image
(y)
Equation

equation

Algorithm
function y=mmclose_equ( f, b )
  y = mmero(mmdil(f,b),b); 
See Also
mmfreedom - Control automatic data type conversion.
mmimg2se - Create a structuring element from a pair of images.
mmopen - Morphological opening.
mmsebox - Create a box structuring element.
mmsecross - Cross structuring element.
mmsesum - N-1 iterative Minkowski additions

[Top] [Up] [Prev] [Next] [Up] [Basic Concepts] [Demonstrations] [Functions] Valid XHTML 1.0!
Copyright (c) 1998-2002 by SDC Information Systems