Toolbox ia870 | List of Figures | Fig. 5.20 | Fig. 5.30

Figure 5.29 - Opening by a flat disk

Description

Figure 5.29 illustrates opening by a flat disk of a real gray-scale image.

The two left pictures of Fig. 5.29 are the shade representations of the input (a) and opened images (c). The two pictures on the right are their equivalent surface representations Note how the round seeds are highlighted while other bright narrow structures are suppressed. (c) and (d) Note how the thin black shadow of the twig has resulted in a wider black region following the twig.

Demo Script

 1 import ia870 as MT
 2 
 3 f = adreadgray('MVBook/bunch-seeds.jpg')
 4 D = MT.iasedisk(3)
 5 g = MT.iaopen(f,D)
 6 fs = MT.iagsurf(f)
 7 gs = MT.iagsurf(g)
 8 
 9 adshow(f,'(a)')
10 adshow(fs,'(b)')
11 adshow(g,'(c)')
12 adshow(gs,'(d)')

(a)

(b)

(c)

(d)