This figure illustrates the filling holes operator.
.
from morph import *
A=mmreadgray('blob3.tif')
A=mmedgeoff(A)
A=mmgradm(A)
F=mmneg(mmframe(A))
S=mmsuprec(F,A,mmsebox())
Fs=mmero(F)
mmshow(A)
mmshow(F)
mmshow(S)