[mmhmax] [Up] [mminpos] Connected Operators

mminfrec
Inf-reconstruction.

Synopsis

y = mminfrec( 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

Structuring element ( connectivity).

Default: None (Diamond structuring element with radius 1)

Output

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

Description

mminfrec creates the image y by an infinite number of recursive iterations (iterations until stability) of the dilation of f by bc conditioned to g. We say the y is the inf-reconstruction of g from the marker f. For algorithms and applications, see Vinc:93b.

Equation

Source Code

def mminfrec(f, g, bc=None):
    from Numeric import product
    if bc is None: bc = mmsecross()
    n = product(f.shape)
    y = mmcdil(f,g,bc,n);
    return y
    

See also

mmfreedom Control automatic data type conversion.
mmsuprec Sup-reconstruction.
mmsebox Create a box structuring element.
mmsecross Cross structuring element.
mmcdil Dilate an image conditionally.
[mmhmax] [Up] [mminpos] Python