[mmcloserec] [Up] [mminpos] Connected Operators

mminfrec
Inf-reconstruction.

Synopsis

function y = mminfrec ( f , g , bc )

Input

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

Marker image.

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

Conditioning image.

bc Structuring Element

Default: 3x3 elementary cross

Structuring element ( connectivity).

Output

y Image

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');
f=mmero(g,mmseline(9,90));
y=mminfrec(f,g,mmsebox);
mmshow(g);
mmshow(f);
mmshow(y);
g f 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);
g f y30 y

Equation

Algorithm

function y=mminfrec_equ( f, g, bc )
  n = length(f);
  y = mmcdil(f,g,bc,n); 

See also

mmfreedom Control automatic data type conversion.
mmsuprec Sup-reconstruction.
mmsebox Create a box structuring element.
mmsecross Diamond structuring element and elementary 3x3 cross.
mmcdil Dilate an image conditionally.
[mmcloserec] [Up] [mminpos]