[mmclohole] [Up] [mmareaopen] Connected Operators

mmareaclose
Area closing

Synopsis

y = mmareaclose( f, a, Bc = None )

Implemented in Python.

Input

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

non negative integer.

Bc Structuring Element

( connectivity).

Default: None (Diamond structuring element with radius 1)

Output

y Image Gray-scale (uint8 or uint16) or binary image.

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.

Equation

Limitations

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

Source Code

def mmareaclose(f, a, Bc=None):
    if Bc is None: Bc = mmsecross()
    y = mmneg(mmareaopen(mmneg(f),a,Bc))
    return y
    

See also

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