[hofig6s15] [Up] [hofig6s17] Chapter 6 - Morphological Processing of Gray-Scale Images

hofig6s16
Connected filter versus nonconnected filter

Description

This figure illustrates the difference between the connected and the nonconnected filters.

Demo Script

.

from morph import *
from Numeric import shape
A=mmreadgray('tools.tif');
B=mmsebox(5);
A1=mmopen(A,B);
A2=mmopenrec(A,B);
mmshow(A)
mmshow(A1)
mmshow(A2)
f=mmreadgray('astablet.tif');
f=f[:,:shape(f)[1]/2 +10];
B=mmsebox(5);
f1=mmopen(f,B);
f2=mmopenrec(f,B);
mmshow(f)
mmshow(f1)
mmshow(f2)
A A1 A2 f
f1 f2

[hofig6s15] [Up] [hofig6s17] http://www.python.org