[mmasfrec] [Up] [mminfrec] Connected Operators

mmcloserec
Closing by reconstruction.

Synopsis

function y = mmcloserec ( f , bdil , bc )

Input

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

Default: 3x3 elementary cross

(dilation).

bc Structuring Element

Default: 3x3 elementary cross

( connectivity).

Output

y Image

Same type of f.

Description

mmcloserec creates the image y by a sup-reconstruction ( with the connectivity defined by the structuring element bc) of the image f from its dilation by bdil.

Examples

a = mmreadgray('danaus.tif');
mmshow(a);
b = mmcloserec(a,mmsebox(4)) ;
mmshow(b) ; 
a b

Equation

Algorithm

function y=mmcloserec_equ( f, bdil, bc )
  y = mmsuprec(mmdil(f,bdil),f,bc); 

See also

mmfreedom Control automatic data type conversion.
mmopenrec Opening by reconstruction.
mmsuprec Sup-reconstruction.
mmclose Morphological closing.
[mmasfrec] [Up] [mminfrec]