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

Figure 6.12 - Gray-scale morphological reconstruction, marker at predefined location

Description

This figure illustrates the gray-scale morphological reconstruction using the marker at a predefined location, where: (a) and (white circle), (b) , (c) top-view surface of and , and (d) top-view surface of

Demo Script

 1 import ia870 as MT
 2 
 3 f = adreadgray('MVBook/bunch-seeds.jpg')
 4 m = MT.iasubm(f,f)
 5 m[141,310]=255
 6 m = MT.iadil(m,MT.iasedisk(10))
 7 g = MT.iainfrec(m,f)
 8 
 9 adshow(MT.iaunion(f,m), '(a)')
10 adshow(g, '(b)')
11 adshow(MT.iagsurf(MT.iaunion(f,m)), '(c)')
12 adshow(MT.iagsurf(g), '(d)')

(a)

(b)

(c)

(d)