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

mmopen - Morphological opening.


Synopsis
y = mmopen( 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
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.
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(mmopen(f,b));
mmshow(mmopen(f,b),mmgradm(f));
image
(f)
image
(mmopen(f,b))
image
(mmopen(f,b),mmgradm(f))
a=mmbinary(mmreadgray('pcb1bin.tif'));
Warning: Converting image from binary uint8 to uint8.
b=mmopen(a,mmsebox(2));
c=mmopen(a,mmsebox(4));
mmshow(a);
mmshow(b);
mmshow(c);
image
(a)
image
(b)
image
(c)
a=mmreadgray('astablet.tif');
b=mmopen(a,mmsedisk(18));
mmshow(a);
mmshow(b);
image
(a)
image
(b)
Equation

equation

Algorithm
function y=mmopen_equ( f, b )
  y = mmdil(mmero(f,b),b); 
See Also
mmareaopen - Area opening.
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 - 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