[mmSuprec] [Up] [mmAreaopen] Connected Operators

mmAreaclose
Area closing

Synopsis

Image mmAreaclose ( const Image& f , const Double& a , const Strel& Bc = NullStrel );

Input

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

a Double

non negative integer.

Bc Structuring Element

( connectivity).

Default: NullStrel (3x3 elementary cross)

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:

Image a = mmReadgray("form-1.tif");
Image b = mmAreaclose(a, 400);
mmShow(a);
mmShow(b);

a b
Gray-scale image:

Image c = mmReadgray("n2538.tif");
Image d = mmAreaclose(c, 400);
mmShow(c);
mmShow(d);

c d

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.
mmClohole Close holes of binary and gray-scale images.
mmRegmin Regional Minimum (with generalized dynamics).
[mmSuprec] [Up] [mmAreaopen]