# mmsuprec
Sup-reconstruction.

## Synopsis

y = mmsuprec( f, g, Bc = None )

Implemented in Python.

### Input

f | Image Gray-scale (uint8 or uint16) or binary image. Marker image.
g | Image Gray-scale (uint8 or uint16) or binary image. Conditioning image.
Bc | Structuring Element ( connectivity). Default: `None` (3x3 elementary cross)

### Output

y | Image

## Description

mmsuprec creates the image `y` by an infinite number of recursive iterations (iterations until stability) of the erosion of `f` by `Bc` conditioned to `g`. We say that `y` is the sup-reconstruction of `g` from the marker `f`.

## Equation

## Source Code

    def mmsuprec(f, g, Bc=None):
        from Numeric import product
        if Bc is None: Bc = mmsecross()
        n = product(f.shape)
        y = mmcero(f,g,Bc,n);
        return y

## See also

mmfreedom | Control automatic data type conversion.
mminfrec | Inf-reconstruction.
mmsebox | Create a box structuring element.
mmsecross | Diamond structuring element and elementary 3x3 cross.
mmcero | Erode an image conditionally.

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