read sec. 2 up to p.155

46
002 R. C. Gonzalez & R. E. Woods Chapter 4 Image Enhancement in the Frequency Domain Slide 3-1 2002 Gonzalez & Woods 2003 Spring, Digital Image Processing Softcomp.ee.ntou.edu.tw

Upload: tristram-davies

Post on 01-Jan-2016

13 views

Category:

Documents


0 download

DESCRIPTION

Read Sec. 2 up to p.155. EXAMPLE 4.9: High-frequency emphasis filtering. Transfer function given by H hfe (u,v)= a + b H hp (u,v) (4.4-20) - PowerPoint PPT Presentation

TRANSCRIPT

Page 1: Read Sec. 2 up to p.155

© 2002 R. C. Gonzalez & R. E. Woods

Chapter 4Image Enhancement in the

Frequency Domain

Chapter 4Image Enhancement in the

Frequency Domain

Slide 3-1

2002 Gonzalez & Woods

2003 Spring, Digital Image Processing Softcomp.ee.ntou.edu.tw

Page 2: Read Sec. 2 up to p.155

© 2002 R. C. Gonzalez & R. E. Woods

Chapter 4Image Enhancement in the

Frequency Domain

Chapter 4Image Enhancement in the

Frequency Domain

Slide 3-2

2002 Gonzalez & Woods

2003 Spring, Digital Image Processing Softcomp.ee.ntou.edu.tw

Read Sec. 2 up to p.155

Page 3: Read Sec. 2 up to p.155

© 2002 R. C. Gonzalez & R. E. Woods

Chapter 4Image Enhancement in the

Frequency Domain

Chapter 4Image Enhancement in the

Frequency Domain

Slide 3-3

2002 Gonzalez & Woods

2003 Spring, Digital Image Processing Softcomp.ee.ntou.edu.tw

Page 4: Read Sec. 2 up to p.155

© 2002 R. C. Gonzalez & R. E. Woods

Chapter 4Image Enhancement in the

Frequency Domain

Chapter 4Image Enhancement in the

Frequency Domain

Slide 3-4

2002 Gonzalez & Woods

2003 Spring, Digital Image Processing Softcomp.ee.ntou.edu.tw

Page 5: Read Sec. 2 up to p.155

© 2002 R. C. Gonzalez & R. E. Woods

Chapter 4Image Enhancement in the

Frequency Domain

Chapter 4Image Enhancement in the

Frequency Domain

Slide 3-5

2002 Gonzalez & Woods

2003 Spring, Digital Image Processing Softcomp.ee.ntou.edu.tw

Page 6: Read Sec. 2 up to p.155

© 2002 R. C. Gonzalez & R. E. Woods

Chapter 4Image Enhancement in the

Frequency Domain

Chapter 4Image Enhancement in the

Frequency Domain

Slide 3-6

2002 Gonzalez & Woods

2003 Spring, Digital Image Processing Softcomp.ee.ntou.edu.tw

Page 7: Read Sec. 2 up to p.155

© 2002 R. C. Gonzalez & R. E. Woods

Chapter 4Image Enhancement in the

Frequency Domain

Chapter 4Image Enhancement in the

Frequency Domain

Slide 3-7

2002 Gonzalez & Woods

2003 Spring, Digital Image Processing Softcomp.ee.ntou.edu.tw

Page 8: Read Sec. 2 up to p.155

© 2002 R. C. Gonzalez & R. E. Woods

Chapter 4Image Enhancement in the

Frequency Domain

Chapter 4Image Enhancement in the

Frequency Domain

Slide 3-8

2002 Gonzalez & Woods

2003 Spring, Digital Image Processing Softcomp.ee.ntou.edu.tw

Page 9: Read Sec. 2 up to p.155

© 2002 R. C. Gonzalez & R. E. Woods

Chapter 4Image Enhancement in the

Frequency Domain

Chapter 4Image Enhancement in the

Frequency Domain

Slide 3-9

2002 Gonzalez & Woods

2003 Spring, Digital Image Processing Softcomp.ee.ntou.edu.tw

Page 10: Read Sec. 2 up to p.155

© 2002 R. C. Gonzalez & R. E. Woods

Chapter 4Image Enhancement in the

Frequency Domain

Chapter 4Image Enhancement in the

Frequency Domain

Slide 3-10

2002 Gonzalez & Woods

2003 Spring, Digital Image Processing Softcomp.ee.ntou.edu.tw

Page 11: Read Sec. 2 up to p.155

© 2002 R. C. Gonzalez & R. E. Woods

Chapter 4Image Enhancement in the

Frequency Domain

Chapter 4Image Enhancement in the

Frequency Domain

Slide 3-11

2002 Gonzalez & Woods

2003 Spring, Digital Image Processing Softcomp.ee.ntou.edu.tw

Page 12: Read Sec. 2 up to p.155

© 2002 R. C. Gonzalez & R. E. Woods

Chapter 4Image Enhancement in the

Frequency Domain

Chapter 4Image Enhancement in the

Frequency Domain

Slide 3-12

2002 Gonzalez & Woods

2003 Spring, Digital Image Processing Softcomp.ee.ntou.edu.tw

Page 13: Read Sec. 2 up to p.155

© 2002 R. C. Gonzalez & R. E. Woods

Chapter 4Image Enhancement in the

Frequency Domain

Chapter 4Image Enhancement in the

Frequency Domain

Slide 3-13

2002 Gonzalez & Woods

2003 Spring, Digital Image Processing Softcomp.ee.ntou.edu.tw

Page 14: Read Sec. 2 up to p.155

© 2002 R. C. Gonzalez & R. E. Woods

Chapter 4Image Enhancement in the

Frequency Domain

Chapter 4Image Enhancement in the

Frequency Domain

Slide 3-14

2002 Gonzalez & Woods

2003 Spring, Digital Image Processing Softcomp.ee.ntou.edu.tw

Page 15: Read Sec. 2 up to p.155

© 2002 R. C. Gonzalez & R. E. Woods

Chapter 4Image Enhancement in the

Frequency Domain

Chapter 4Image Enhancement in the

Frequency Domain

Slide 3-15

2002 Gonzalez & Woods

2003 Spring, Digital Image Processing Softcomp.ee.ntou.edu.tw

Page 16: Read Sec. 2 up to p.155

© 2002 R. C. Gonzalez & R. E. Woods

Chapter 4Image Enhancement in the

Frequency Domain

Chapter 4Image Enhancement in the

Frequency Domain

Slide 3-16

2002 Gonzalez & Woods

2003 Spring, Digital Image Processing Softcomp.ee.ntou.edu.tw

Page 17: Read Sec. 2 up to p.155

© 2002 R. C. Gonzalez & R. E. Woods

Chapter 4Image Enhancement in the

Frequency Domain

Chapter 4Image Enhancement in the

Frequency Domain

Slide 3-17

2002 Gonzalez & Woods

2003 Spring, Digital Image Processing Softcomp.ee.ntou.edu.tw

Page 18: Read Sec. 2 up to p.155

© 2002 R. C. Gonzalez & R. E. Woods

Chapter 4Image Enhancement in the

Frequency Domain

Chapter 4Image Enhancement in the

Frequency Domain

Slide 3-18

2002 Gonzalez & Woods

2003 Spring, Digital Image Processing Softcomp.ee.ntou.edu.tw

Page 19: Read Sec. 2 up to p.155

© 2002 R. C. Gonzalez & R. E. Woods

Chapter 4Image Enhancement in the

Frequency Domain

Chapter 4Image Enhancement in the

Frequency Domain

Slide 3-19

2002 Gonzalez & Woods

2003 Spring, Digital Image Processing Softcomp.ee.ntou.edu.tw

Page 20: Read Sec. 2 up to p.155

© 2002 R. C. Gonzalez & R. E. Woods

Chapter 4Image Enhancement in the

Frequency Domain

Chapter 4Image Enhancement in the

Frequency Domain

Slide 3-20

2002 Gonzalez & Woods

2003 Spring, Digital Image Processing Softcomp.ee.ntou.edu.tw

Page 21: Read Sec. 2 up to p.155

© 2002 R. C. Gonzalez & R. E. Woods

Chapter 4Image Enhancement in the

Frequency Domain

Chapter 4Image Enhancement in the

Frequency Domain

Slide 3-21

2002 Gonzalez & Woods

2003 Spring, Digital Image Processing Softcomp.ee.ntou.edu.tw

Page 22: Read Sec. 2 up to p.155

© 2002 R. C. Gonzalez & R. E. Woods

Chapter 4Image Enhancement in the

Frequency Domain

Chapter 4Image Enhancement in the

Frequency Domain

Slide 3-22

2002 Gonzalez & Woods

2003 Spring, Digital Image Processing Softcomp.ee.ntou.edu.tw

Page 23: Read Sec. 2 up to p.155

© 2002 R. C. Gonzalez & R. E. Woods

Chapter 4Image Enhancement in the

Frequency Domain

Chapter 4Image Enhancement in the

Frequency Domain

Slide 3-23

2002 Gonzalez & Woods

2003 Spring, Digital Image Processing Softcomp.ee.ntou.edu.tw

Page 24: Read Sec. 2 up to p.155

© 2002 R. C. Gonzalez & R. E. Woods

Chapter 4Image Enhancement in the

Frequency Domain

Chapter 4Image Enhancement in the

Frequency Domain

Slide 3-24

2002 Gonzalez & Woods

2003 Spring, Digital Image Processing Softcomp.ee.ntou.edu.tw

Page 25: Read Sec. 2 up to p.155

© 2002 R. C. Gonzalez & R. E. Woods

Chapter 4Image Enhancement in the

Frequency Domain

Chapter 4Image Enhancement in the

Frequency Domain

Slide 3-25

2002 Gonzalez & Woods

2003 Spring, Digital Image Processing Softcomp.ee.ntou.edu.tw

Page 26: Read Sec. 2 up to p.155

© 2002 R. C. Gonzalez & R. E. Woods

Chapter 4Image Enhancement in the

Frequency Domain

Chapter 4Image Enhancement in the

Frequency Domain

Slide 3-26

2002 Gonzalez & Woods

2003 Spring, Digital Image Processing Softcomp.ee.ntou.edu.tw

Page 27: Read Sec. 2 up to p.155

© 2002 R. C. Gonzalez & R. E. Woods

Chapter 4Image Enhancement in the

Frequency Domain

Chapter 4Image Enhancement in the

Frequency Domain

Slide 3-27

2002 Gonzalez & Woods

2003 Spring, Digital Image Processing Softcomp.ee.ntou.edu.tw

Page 28: Read Sec. 2 up to p.155

© 2002 R. C. Gonzalez & R. E. Woods

Chapter 4Image Enhancement in the

Frequency Domain

Chapter 4Image Enhancement in the

Frequency Domain

Slide 3-28

2002 Gonzalez & Woods

2003 Spring, Digital Image Processing Softcomp.ee.ntou.edu.tw

Page 29: Read Sec. 2 up to p.155

© 2002 R. C. Gonzalez & R. E. Woods

Chapter 4Image Enhancement in the

Frequency Domain

Chapter 4Image Enhancement in the

Frequency Domain

Slide 3-29

2002 Gonzalez & Woods

2003 Spring, Digital Image Processing Softcomp.ee.ntou.edu.tw

Page 30: Read Sec. 2 up to p.155

© 2002 R. C. Gonzalez & R. E. Woods

Chapter 4Image Enhancement in the

Frequency Domain

Chapter 4Image Enhancement in the

Frequency Domain

Slide 3-30

2002 Gonzalez & Woods

2003 Spring, Digital Image Processing Softcomp.ee.ntou.edu.tw

EXAMPLE 4.9: High-frequency emphasis filtering. Transfer function given by

Hhfe(u,v)=a + bHhp(u,v) (4.4-20)

where a 0 and b > a. Typical values of a are in the range 0.25 to 0.5 and typical values of b are in the range 1.5 to 2.0. With reference to Eq. (4.4-17), we see that high-frequency emphasis reduces to high-boost filtering when a = (A-1) and b = 1. When b > I, the high frequencies are emphasized, thus giving this procedure its name.

Figure 4.30(a) shows a chest X-ray with a narrow range of gray levels. Our main objective is to sharpen the image. X-rays cannot be focused in the same manner that lenses are focused, and the resulting images generally tend to be slightly blurred. Since the gray levels in this particular image are biased toward the dark end of the gray scale, we also take the opportunity here to give an example of how spatial domain processing can be used to complement frequency domain filtering.

Figure 4.30(b) shows the result of highpass filtering using a Butterworth filter (see p.183, Eq.4.4-3) of order 2 and a value of D0 equal to 5 of the image vertical dimension,

Page 31: Read Sec. 2 up to p.155

© 2002 R. C. Gonzalez & R. E. Woods

Chapter 4Image Enhancement in the

Frequency Domain

Chapter 4Image Enhancement in the

Frequency Domain

Slide 3-31

2002 Gonzalez & Woods

2003 Spring, Digital Image Processing Softcomp.ee.ntou.edu.tw

Highpass filtering is not overly sensitive to this parameter, as long as the radius of the filter is not so small that frequencies near the origin of the transform are passed. As expected, the filtered result is rather featureless, but it shows faintly the principal edges in the image. The advantage of high-emphasis filtering (with a = 0.5 and b = 2.0 in this case) is shown in the image of Fig. 4.30(c). Although the image is still dark, the gray-level tonality due to the low frequency components was not lost.

As indicated in Section 3.3, an image characterized by gray levels in a narrow range of the gray scale is an ideal candidate for histogram equalization. As shown in Fig. 4.30(d), this indeed was an appropriate method to further enhance the image. Note the clarity of the bone structure and other details that simply are not visible in any of the other three images.

The final enhanced image is a little noisy, but this is typical of X-ray images when their gray scale is expanded. The result obtained using a combination of high-frequency emphasis and histogram equalization is superior to the result that would be obtained by using either method alone.

Page 32: Read Sec. 2 up to p.155

© 2002 R. C. Gonzalez & R. E. Woods

Chapter 4Image Enhancement in the

Frequency Domain

Chapter 4Image Enhancement in the

Frequency Domain

Slide 3-32

2002 Gonzalez & Woods

2003 Spring, Digital Image Processing Softcomp.ee.ntou.edu.tw

Page 33: Read Sec. 2 up to p.155

© 2002 R. C. Gonzalez & R. E. Woods

Chapter 4Image Enhancement in the

Frequency Domain

Chapter 4Image Enhancement in the

Frequency Domain

Slide 3-33

2002 Gonzalez & Woods

2003 Spring, Digital Image Processing Softcomp.ee.ntou.edu.tw

Homomorphic filtering (同形濾波 ) Read p.191 through 193

Page 34: Read Sec. 2 up to p.155

© 2002 R. C. Gonzalez & R. E. Woods

Chapter 4Image Enhancement in the

Frequency Domain

Chapter 4Image Enhancement in the

Frequency Domain

Slide 3-34

2002 Gonzalez & Woods

2003 Spring, Digital Image Processing Softcomp.ee.ntou.edu.tw

Page 35: Read Sec. 2 up to p.155

© 2002 R. C. Gonzalez & R. E. Woods

Chapter 4Image Enhancement in the

Frequency Domain

Chapter 4Image Enhancement in the

Frequency Domain

Slide 3-35

2002 Gonzalez & Woods

2003 Spring, Digital Image Processing Softcomp.ee.ntou.edu.tw

Page 36: Read Sec. 2 up to p.155

© 2002 R. C. Gonzalez & R. E. Woods

Chapter 4Image Enhancement in the

Frequency Domain

Chapter 4Image Enhancement in the

Frequency Domain

Slide 3-36

2002 Gonzalez & Woods

2003 Spring, Digital Image Processing Softcomp.ee.ntou.edu.tw

Page 37: Read Sec. 2 up to p.155

© 2002 R. C. Gonzalez & R. E. Woods

Chapter 4Image Enhancement in the

Frequency Domain

Chapter 4Image Enhancement in the

Frequency Domain

Slide 3-37

2002 Gonzalez & Woods

2003 Spring, Digital Image Processing Softcomp.ee.ntou.edu.tw

Page 38: Read Sec. 2 up to p.155

© 2002 R. C. Gonzalez & R. E. Woods

Chapter 4Image Enhancement in the

Frequency Domain

Chapter 4Image Enhancement in the

Frequency Domain

Slide 3-38

2002 Gonzalez & Woods

2003 Spring, Digital Image Processing Softcomp.ee.ntou.edu.tw

Page 39: Read Sec. 2 up to p.155

© 2002 R. C. Gonzalez & R. E. Woods

Chapter 4Image Enhancement in the

Frequency Domain

Chapter 4Image Enhancement in the

Frequency Domain

Slide 3-39

2002 Gonzalez & Woods

2003 Spring, Digital Image Processing Softcomp.ee.ntou.edu.tw

Page 40: Read Sec. 2 up to p.155

© 2002 R. C. Gonzalez & R. E. Woods

Chapter 4Image Enhancement in the

Frequency Domain

Chapter 4Image Enhancement in the

Frequency Domain

Slide 3-40

2002 Gonzalez & Woods

2003 Spring, Digital Image Processing Softcomp.ee.ntou.edu.tw

Page 41: Read Sec. 2 up to p.155

© 2002 R. C. Gonzalez & R. E. Woods

Chapter 4Image Enhancement in the

Frequency Domain

Chapter 4Image Enhancement in the

Frequency Domain

Slide 3-41

2002 Gonzalez & Woods

2003 Spring, Digital Image Processing Softcomp.ee.ntou.edu.tw

Page 42: Read Sec. 2 up to p.155

© 2002 R. C. Gonzalez & R. E. Woods

Chapter 4Image Enhancement in the

Frequency Domain

Chapter 4Image Enhancement in the

Frequency Domain

Slide 3-42

2002 Gonzalez & Woods

2003 Spring, Digital Image Processing Softcomp.ee.ntou.edu.tw

Page 43: Read Sec. 2 up to p.155

© 2002 R. C. Gonzalez & R. E. Woods

Chapter 4Image Enhancement in the

Frequency Domain

Chapter 4Image Enhancement in the

Frequency Domain

Slide 3-43

2002 Gonzalez & Woods

2003 Spring, Digital Image Processing Softcomp.ee.ntou.edu.tw

Page 44: Read Sec. 2 up to p.155

© 2002 R. C. Gonzalez & R. E. Woods

Chapter 4Image Enhancement in the

Frequency Domain

Chapter 4Image Enhancement in the

Frequency Domain

Slide 3-44

2002 Gonzalez & Woods

2003 Spring, Digital Image Processing Softcomp.ee.ntou.edu.tw

Page 45: Read Sec. 2 up to p.155

© 2002 R. C. Gonzalez & R. E. Woods

Chapter 4Image Enhancement in the

Frequency Domain

Chapter 4Image Enhancement in the

Frequency Domain

Slide 3-45

2002 Gonzalez & Woods

2003 Spring, Digital Image Processing Softcomp.ee.ntou.edu.tw

Page 46: Read Sec. 2 up to p.155

© 2002 R. C. Gonzalez & R. E. Woods

Chapter 4Image Enhancement in the

Frequency Domain

Chapter 4Image Enhancement in the

Frequency Domain

Slide 3-46

2002 Gonzalez & Woods

2003 Spring, Digital Image Processing Softcomp.ee.ntou.edu.tw