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

Figure 6.14 - Gray-scale filling holes

Description

The hole-filling example presented in Fig. 3.16 is shown in Fig. 6.14 with a gray-scale image: (a) input image, and (b) sup-reconstruction of the input image from a dual marker, which is an image of maximum pixel values inside and a zero in a one-pixel-width frame. Note that three holes in the bottom of the picture are retained, owing to their touching the image frame.

Demo Script

1 import ia870 as MT
2 
3 f = MT.ianeg(adread('MVBook/pcb-gray.png'));
4 g = MT.iaclohole(f);
5 
6 adshow(f, '(a) input image')
7 adshow(g, '(b) sup-reconstruction of the input image from the dual marker')

(a) input image

(b) sup-reconstruction of the input image from the dual marker