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

mminfrec - Inf-reconstruction.


Synopsis
y = mminfrec( f, g, bc )
Input
f: Gray-scale (uint8 or uint16) or binary image (logical uint8). Marker image.
g: Gray-scale (uint8 or uint16) or binary image (logical uint8). Conditioning image.
bc: Structuring element. Structuring element ( connectivity). Default: Elementary cross (mmsecross).
 
Obs: f, g must have the same data type.
Output
y: Gray-scale (uint8 or uint16) or binary image (logical uint8).
Description
mminfrec creates the image y by an infinite number of recursive iterations (iterations until stability) of the dilation of f by bc conditioned to g. We say the y is the inf-reconstruction of g from the marker f. For algorithms and applications, see [Vin93] .
Examples

Binary image:

g=mmreadgray('text_128.tif');
binary image
f=mmero(g,mmseline(9,90));
y=mminfrec(f,g,mmsebox);
mmshow(g);
mmshow(f);
mmshow(y);
image
(g)
image
(f)
image
(y)

Gray-scale image:

g=mmneg(mmreadgray('n2538.tif'));
f=mmintersec(g,0);
Warning: Converting image from scalar to uint8.
f=mmdraw(f,'LINE:40,30,60,30:END');
y30=mmcdil(f,g,mmsebox,30);
y=mminfrec(f,g,mmsebox);
mmshow(g);
mmshow(f);
mmshow(y30);
mmshow(y);
image
(g)
image
(f)
image
(y30)
image
(y)
Equation

equation

Algorithm
function y=mminfrec_equ( f, g, bc )
  n = length(f);
  y = mmcdil(f,g,bc,n); 
See Also
mmcdil - Dilate an image conditionally.
mmfreedom - Control automatic data type conversion.
mmsebox - Create a box structuring element.
mmsecross - Cross structuring element.
mmsuprec - Sup-reconstruction.

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