[hofig3s13] [Up] [hofig3s15] Chapter 3 - Morphological Processing of Binary Images

hofig3s14
Labeling letters and words

Description

This figure illustrates the labeling of letters and words.

Demo Script

.

from morph import *
from Numeric import ones
A=mmdil(mmconcat('H',mmtext('One word'),
                     mmtext('Labeling')),
        mmbinary(ones(2)))
L=uint8(mmlabel(A,mmsebox()))
mmshow(A)
mmlblshow(L)
Bw=mmsedisk(4)
mmshow(mmseshow(Bw,'expand'))
W=mmlabel(A,Bw)
mmlblshow(W)
A L mmseshow(Bw,'expand') W

[hofig3s13] [Up] [hofig3s15] http://www.python.org