[mminpos] [Up] [mmregmax] Connected Operators

mmopenrec
Opening by reconstruction.

Synopsis

function y = mmopenrec ( f , bero , bc )

Input

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

Default: 3x3 elementary cross

(erosion).

bc Structuring Element

Default: 3x3 elementary cross

(connectivity).

Output

y Image

(same type of f).

Description

mmopenrec creates the image y by an inf-reconstruction of the image f from its erosion by bero, using the connectivity defined by Bc.

Examples

Binary image:
f=mmreadgray('pieces_bw.tif');
f1=mmopen(f,mmseline(30));
y=mmopenrec(f,mmseline(30),mmsebox);
mmshow(f);
mmshow(f1);
mmshow(y);
f f1
y

Equation

Algorithm

function y=mmopenrec_equ( f, bero, bc )
 y = mminfrec(mmero(f,bero),f,bc); 

See also

mmfreedom Control automatic data type conversion.
mmcloserec Closing by reconstruction.
mmopen Morphological opening.
mminfrec Inf-reconstruction.
[mminpos] [Up] [mmregmax]