[mmregmin] [Up] [mmedgeoff] Connected Operators

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 (Diamond structuring element with radius 1)

Output

y Image Gray-scale (uint8 or uint16) or binary 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 Cross structuring element.
mmcero Erode an image conditionally.
[mmregmin] [Up] [mmedgeoff] Python