[mminfrec] [Up] [mmopenrec] | Connected Operators |
Implemented in Python.
f | Image Binary image.
Marker image. |
g | Image Gray-scale (uint8 or uint16) image.
input image. |
bc | Structuring Element (connectivity). Default:
|
y | Image Gray-scale (uint8 or uint16) image. |
Minima imposition on
g
based on the marker
f
.
mminpos creates an image
y
by filing the valleys of
g
that does not cover the connect components of
f
. A remarkable property of
y
is that its regional minima are exactly the connect components of
g
.
def mminpos(f, g, bc=None): if bc is None: bc = mmsecross() assert mmisbinary(f),'First parameter must be binary image' fg = mmgray(mmneg(f),mmdatatype(g)) k1 = mmlimits(g)[1] - 1 y = mmsuprec(fg, mmintersec(mmunion(g, 1), k1, fg), bc) return y
mminfrec | Inf-reconstruction. |
mmwatershed | Watershed detection. |
mmcwatershed | Detection of watershed from markers. |
mmfreedom | Control automatic data type conversion. |
mmsebox | Create a box structuring element. |
mmsecross | Diamond structuring element and elementary 3x3 cross. |
[mminfrec] [Up] [mmopenrec] | ![]() |
Copyright (c) 2003, Roberto A. Lotufo, UNICAMP-University of Campinas; Rubens C. Machado, CenPRA-Renato Archer Research Center. |