| [mmregmin] [Up] [mmedgeoff] | Connected Operators |
Implemented in Python.
| 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:
|
| y | Image |
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.
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
| [mmregmin] [Up] [mmedgeoff] | |
| Copyright (c) 2003, Roberto A. Lotufo, UNICAMP-University of Campinas; Rubens C. Machado, CenPRA-Renato Archer Research Center. |