Toolbox ia870 | List of Figures | Fig. 6.6 | Fig. 6.10

Figure 6.8 - Gray-scale alternating sequential filtering

Description

This figure illustrates the use of gray-scale alternating sequential filter, where (a) Input image, (b) close-open by a 3 x 3 diamond structuring element, (c) ASF close-open with three stages

Demo Script

 1 import ia870 as MT
 2 
 3 f = adreadgray('morph_data/csample.jpg')
 4 a = f[:128,:128]
 5 b = MT.iaasf(a,'oc',MT.iasecross())
 6 c = MT.iaasf(a,'oc',MT.iasecross(),3)
 7 
 8 adshow(a,'(a)')
 9 adshow(b,'(b)')
10 adshow(c,'(c)')

(a)

(b)

(c)