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

mmhdome - Remove peaks with contrast smaller than h.


Synopsis
y = mmhdome( f, h, Bc )
Input
f: Gray-scale (uint8 or uint16) image.
h: Contrast parameter. Default: 1.
Bc: Structuring element. Structuring element ( connectivity). Default: Elementary cross (mmsecross).
Output
y: Gray-scale (uint8 or uint16) or binary image (logical uint8).
Description
mmhdome inf-reconstructs the gray-scale image f from the marker created by the subtraction of the positive integer value h from f, using connectivity Bc. This operator removes connected peaks with contrast smaller than h.
Examples

Numerical example:

a = uint8([...
    4    3    6   1    3   5    2;...
    2    9    6   1    6   7   3;...
    8    9    3   2    4   9   4;...
    3    1    2   1    2   4   2]);
b = mmhdome(a,2,mmsebox)

b =
     4     3     6     1     3     5     2
     2     7     6     1     6     7     3
     7     7     3     2     4     7     4
     3     1     2     1     2     4     2

Signal example:

f = mmreadgray('r4x2_256.tif');
s=f(10,1:end/2);
t = mmhdome(s,10);
plot(s);
plot([s',t']);
image
(s)
image
(t)

Image example:

f = mmreadgray('r4x2_256.tif');
mmshow(f);
fb = mmhdome(f,50);
mmshow(fb);
mmshow(mmregmax(fb));
image
(f)
image
(fb)
image
(mmregmax(fb))
Equation

equation

Algorithm
function y=mmhdome_equ( f, h, bc)
 g = mmsubm(f,h);
 y = mminfrec(g,f,bc); 
See Also
mmareaopen - Area opening.
mmfreedom - Control automatic data type conversion.
mmhbasin - Remove basins with contrast smaller than h.
mmsebox - Create a box structuring element.
mmsecross - Cross structuring element.
mmvdome - Remove domes with volume smaller than v.

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