[mmgradm] [Up] [mmopenth] Residues

mmopenrecth
Open-by-Reconstruction Top-Hat.

Synopsis

y = mmopenrecth( f, bero = None, bc = None )

Implemented in Python.

Input

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

(erosion)

Default: None (3x3 elementary cross)

bc Structuring Element

( connectivity)

Default: None (3x3 elementary cross)

Output

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

(same type of f).

Description

mmopenrecth creates the image y by subtracting the open by reconstruction of f, defined by the structuring elements bero e bc, of f itself.

Equation

Source Code

def mmopenrecth(f, bero=None, bc=None):
    if bero is None: bero = mmsecross()
    if bc is None: bc = mmsecross()
    y = mmsubm(f, mmopenrec( f, bero, bc))
    return y
    

See also

mmfreedom Control automatic data type conversion.
mmopenth Opening Top Hat.
mmcloserecth Close-by-Reconstruction Top-Hat.
mminfrec Inf-reconstruction.
mmopen Morphological opening.
[mmgradm] [Up] [mmopenth] Python