[mmcloserecth] [Up] [mmgradm] Residues

mmcloseth
Closing Top Hat.

Synopsis

y = mmcloseth( f, b = None )

Implemented in Python.

Input

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

Default: None (3x3 elementary cross)

Output

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

(Same type of f).

Description

mmcloseth creates the image y by subtracting the image f of its morphological closing by the structuring element b.

Examples

>>> a = mmreadgray('danaus.tif')

              
>>> mmshow(a)

              
>>> b = mmcloseth(a,mmsebox(5))

              
>>> mmshow(b)

            
a b

Equation

Source Code

def mmcloseth(f, b=None):
    if b is None: b = mmsecross()
    y = mmsubm( mmclose(f,b), f)
    return y
    

See also

mmfreedom Control automatic data type conversion.
mmopenth Opening Top Hat.
mmcloserecth Close-by-Reconstruction Top-Hat.
mmgradm Morphological gradient.
mmclose Morphological closing.
[mmcloserecth] [Up] [mmgradm] Python