and Erosion 3843 TABLE 92 The various syntax forms of function s t r e l The

# And erosion 3843 table 92 the various syntax forms of

This preview shows page 171 - 173 out of 302 pages.

and Erosion 3843 TABLE 9.2 The various syntax forms of function s t r e l . (The word flnt means that the structuring element has zero height. This is mt:aningful only for gray-scale dilation and erosion. See Section 9.6.1.)
YIorphological Image Processing 9.2 k ? # Dilation The output of whos shows that s e and decomp are both strel objec further, that decomp is a four-element vector of strel objects.The four st "shrinks" or "thins" objects in a binary image. As in dilation, the man- ing elements in the decomposition can be examined individually by ind extent of shrinking is controlled by a structuring element. Figure 9.7 il- into decomp: the erosion process. Figure 9.7(a) is the same as Fig. 9.4(a). 7(b) is the structuring element, a short vertical line. Figure 9.7(c) 22 decomp (1 ) ly depicts erosion as a process of translating the structuring element ans = ut the domain of the image and checking to see where it fits entirely F l a t STREL o b j e c t containing 5 neighbors. 0 [I 0 ( 1 (1 9 0 0 (I li 0 0 0 0 I! 1 1 0 Neighborhood: II !i ii 0 o (I I! 11 o o o ii o ! I !I o (I 0 1 0 11 I1 (1 0 0 0 (I 11 0 0 0 [I 0 11 fj 0 (1 1 1 1 !) 0 f! 0 0 0 0 0 !J 0 0 0 0 (1 0 i! i! 0 1 0 0 0 0 0 0 O 0 0 111 11 0 0 0 0 11 !.I 0 0 ii !: 0 0 1 1 1 1 1 1 1 0 ii 0 0 11 1 >> decomp(2) 11 ( ! !) (1 o 1 1 1 1 1 1 1 II ii (! 0 (I Ik'i -. . 0 ii (1 il 0 1 1 1 1 1 1 1 0 !j i~ t i i! 1 ans = 0 0 0 I1 1 1 0 0 0 (j li 0 0 0 ('1 0 i t 0 0 ti 0 0 0 0 ij 0 0 1) (1 I) 0 ii I! 0 0 F l a t STREL o b j e c t containing 4 neighbors. 11 11 o o 0 II 11 I) {I (1 o i t ti o 0 !I Neighborhood: i t 11 (1 (1 o [I i! !I o o i) 11 (I r] o (1 0 1 0 !j 0 0 11 I! 0 0 il il t i t i 0 (1 i,! 11 !I !) 1 0 1 Output is zero in these locations because 0 1 0 the structuring element overlaps the >> decomp(3) ans = F l a t STREL o b j e c t containing 4 neighbors. Neighborhood: 0 0 1 0 0 0 0 0 0 0 1 0 0 0 1 0 0 0 0 0 0 0 1 0 0 >> decomp(4) ans = (> 0 i! II o (1 (I o \! II !I 0 o 0 1 1 11 o [I 11 0 11 i! !J 11 !I 0 (1 0 fl !I 0 I1 !I 0 F l a t STREL o b j e c t containing 4 neighbors. II 1 1 I! (j (I [I 11 11 ;I i j 0 ( 1 II II o o 11 0 0 !I 0 0 i) il 0 0 i! i) 0 !! 0 0 11 !) Neighborhood: (1 i) ( 1 11 !I !I (1 (I I ) II 11 i) (1 o !I II 11 0 1 0 0 ii ii 11 0 0 t l 0 !j 0 li 0 11 !I i! 1: 0 1 0 1 ii \$ 1 ( 1 !J 0 1 1 1 1 1 1 1 0 O 0 11 0 1 0 ( 1 (1 I; () a ~ i !I (1 ( 1 0 ij 61 ii 11 0 11 0 !i 0 i) 11 1 1 11 0 0 0 !I il !I 0 0 0 I1 I1 i l 1; (j ii I 1 1) ;) 1) 0 [I ii il f) ij (I 11 I] ( 1 Function i m d i l a t e uses the decomposed form of a structuring element 1) ,I t i ij (J ij 11 ii t l 11 (I 11 1 1 il !I o (1 tomatically, performing dilation approximately three times faster ( s 611 I, 11 (; [ j i! (1 11 0 i! (1 (I [I !I II I) o t , ! than with the non-decomposed form. 0 (j 0 I 1 ( 1 (1 0 1.1 (1 i t li It (I 'I 11 I1 f ! and Erosion d, FIGURE 9.7 Illustration of erosion. (a) Original Image with rectangular object. (b) Structuring element with three pixels arranged In a vertlcal Ime. The origin of the structuring element 1s shown with a dark border. (c) Structuring element translated to several locations on the image.

#### You've reached the end of your free preview.

Want to read all 302 pages?