This figure illustrates the conjunctive and disjunctive opening by detecting letters with both vertical and horizontal features.
.
from morph import *
A=mmreadgray('text2.tif')
B1=mmsedil(mmsebox(),mmserot(mmsedisk(13,'1D'),90))
C=mmopenrec(A,B1,mmsebox())
B2=mmsedil(mmsebox(),mmsedisk(8,'1D'))
D=mmopenrec(A,B2,mmsebox())
E=mmunion(C,D)
F=mmintersec(C,D)
mmshow(A)
mmshow(C)
mmshow(D)
mmshow(E)
mmshow(F)