# mmopenrec
Opening by reconstruction.

## Synopsis

y = mmopenrec( 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 (same type of `f`).

## Description

mmopenrec creates the image `y` by an inf-reconstruction of the image `f` from its erosion by `bero`, using the connectivity defined by `Bc`.

## Equation

## Limitations

Binary image:

## Source Code

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

## See also

mmfreedom | Control automatic data type conversion.
mmcloserec | Closing by reconstruction.
mmopen | Morphological opening.
mminfrec | Inf-reconstruction.

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