| [mmedgeoff] [Up] [mmcloserecth] | Residues |
Implemented in Python.
| f | Image Binary image. |
| B | Structuring Element |
| n | Double positive integer ( filtering rate) |
| y | Image Binary image. |
mmcbisector creates the binary image
y by performing a filtering of the morphological skeleton of the binary image
f, relative to the structuring element
B. The strength of this filtering is controlled by the parameter n. Particularly, if
n=0,
y is the morphological skeleton of
f itself.
def mmcbisector(f, B, n):
y = mmintersec(f,0)
for i in range(n):
nb = mmsesum(B,i)
nbp = mmsesum(B,i+1)
f1 = mmero(f,nbp)
f2 = mmcdil(f1,f,B,n)
f3 = mmsubm(mmero(f,nb),f2)
y = mmunion(y,f3)
return y
| [mmedgeoff] [Up] [mmcloserecth] | |
| Copyright (c) 2003, Roberto A. Lotufo, UNICAMP-University of Campinas; Rubens C. Machado, CenPRA-Renato Archer Research Center. |