[mmopenrec] [Up] [mmregmin] | Connected Operators |
Implemented in Python.
f | Image Gray-scale (uint8 or uint16) image. |
Bc | Structuring Element (connectivity). Default:
|
y | Image Binary image. |
mmregmax creates a binary image
y
by computing the regional maxima of
f
, according to the connectivity defined by the structuring element
Bc
. A regional maximum is a flat zone not surrounded by flat zones of higher gray values.
def mmregmax(f, Bc=None): if Bc is None: Bc = mmsecross() y = mmregmin(mmneg(f),Bc) return y
[mmopenrec] [Up] [mmregmin] | ![]() |
Copyright (c) 2003, Roberto A. Lotufo, UNICAMP-University of Campinas; Rubens C. Machado, CenPRA-Renato Archer Research Center. |