[mmsuprec] [Up] [mmareaopen] Connected Operators

mmareaclose
Area closing

Synopsis

function y = mmareaclose ( f , a , Bc )

Input

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

non negative integer.

Bc Structuring Element

Default: 3x3 elementary cross

( connectivity).

Output

y Image

Same type of f

Description

mmareaclose removes any pore (i.e., background connected component) with area less than a of a binary image f. The connectivity is given by the structuring element Bc. This operator is generalized to gray-scale images by applying the binary operator successively on slices of f taken from higher threshold levels to lower threshold levels.

Examples

Binary image:
a=mmreadgray('form-1.tif');
b=mmareaclose(a,400);
mmshow(a);
mmshow(b);
a b
Gray-scale image:
a=mmreadgray('n2538.tif');
b=mmareaclose(a,400);
mmshow(a);
mmshow(b);
a b

Equation

Limitations

The structuring elements allowed are the elementary cross (4-connected) and the elementary box (8-connected).

See also

mmareaopen Area opening
mmlabel Label a binary image.
mmsebox Create a box structuring element.
mmsecross Diamond structuring element and elementary 3x3 cross.
mmfreedom Control automatic data type conversion.
mmclohole Close holes of binary and gray-scale images.
mmregmin Regional Minimum (with generalized dynamics).
[mmsuprec] [Up] [mmareaopen]