[hofig3s18] [Up] [hofig3s20] Chapter 3 - Morphological Processing of Binary Images

hofig3s19
Conjunctive and disjunctive opening

Description

This figure illustrates the conjunctive and disjunctive opening by detecting letters with both vertical and horizontal features.

Demo Script

.

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)
A C
D E
F

[hofig3s18] [Up] [hofig3s20] http://www.python.org