This figure illustrates the use of gray-scale alternating sequential filter.
.
from morph import *
f=mmreadgray('csample.jpg')
a=f[:128,:128]
b=mmasf(a,'oc')
c=mmasf(a,'oc',mmsecross(),3)
mmshow(a)
mmshow(b)
mmshow(c)