[mmcloseth] [Up] [mmopenrecth] | Residues |
Implemented in Python.
f | Image Gray-scale (uint8 or uint16) or binary image. |
Bdil | Structuring Element for the dilation. Default:
|
Bero | Structuring Element for the erosion. Default:
|
y | Image Gray-scale (uint8 or uint16) or binary image.
(same type of
|
mmgradm creates the image
y
by the subtraction of the erosion of the image
f
by
Bero
of the dilation of
f
by
Bdil
.
def mmgradm(f, Bdil=None, Bero=None): if Bdil is None: Bdil = mmsecross() if Bero is None: Bero = mmsecross() y = mmsubm(mmdil(f,Bdil),mmero(f,Bero)) return y
[mmcloseth] [Up] [mmopenrecth] | ![]() |
Copyright (c) 2003, Roberto A. Lotufo, UNICAMP-University of Campinas; Rubens C. Machado, CenPRA-Renato Archer Research Center. |