# mmopenth
Opening Top Hat.

## Synopsis

y = mmopenth( f, b = None )

Implemented in Python.

### Input

f | Image Gray-scale (uint8 or uint16) or binary image.
b | Structuring Element structuring element Default: `None` (3x3 elementary cross)

### Output

y | Image Gray-scale (uint8 or uint16) or binary image. (same type of `f`).

## Description

mmopenth creates the image `y` by subtracting the morphological opening of `f` by the structuring element `b` of `f` itself.

## Examples

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

    >>> mmshow(a)

    >>> b = mmopenth(a,mmsebox(3))

    >>> mmshow(b)

a | b |

## Equation

## Source Code

    def mmopenth(f, b=None):
        if b is None: b = mmsecross()
        y = mmsubm(f, mmopen(f,b))
        return y

## See also

mmfreedom | Control automatic data type conversion.
mmcloseth | Closing Top Hat.
mmopenrecth | Open-by-Reconstruction Top-Hat.
mmgradm | Morphological gradient.
mmopen | Morphological opening.

[`mmopenrecth`] [Up] [`mmskelm`] |
Copyright (c) 2003, Roberto A. Lotufo, UNICAMP-University of Campinas; Rubens C. Machado, CenPRA-Renato Archer Research Center.