[hofig6s20] [Up] [hofig6s24] Chapter 6 - Morphological Processing of Gray-Scale Images

hofig6s21
Connected flat alternating sequential filtering

Description

This figure illustrates the use of connected flat alternating sequential filter.

Demo Script

.

from morph import *
f=mmreadgray('csample.jpg')
a=f[:128,:128]
b=mmasf(a,'oc',mmsecross(),2)
c=mmasfrec(a,'oc',mmsecross(),mmsecross(),2)
d=mmareaclose(mmareaopen(a,30),30)
mmshow(a)
mmshow(b)
mmshow(c)
mmshow(d)
a b c d

[hofig6s20] [Up] [hofig6s24] http://www.python.org