Image Enhancement in the - PowerPoint PPT Presentation

About This Presentation
Title:

Image Enhancement in the

Description:

2002 R. C. Gonzalez & R. E. Woods. Chapter 4. Image Enhancement in the. Frequency Domain ... S2=log(1 abs(Fc)); imshow(S2,[]) Digital Image Processing, 2nd ed. ... – PowerPoint PPT presentation

Number of Views:70
Avg rating:3.0/5.0
Slides: 62
Provided by: Gon107
Category:

less

Transcript and Presenter's Notes

Title: Image Enhancement in the


1
Chapter 4 Image Enhancement in the Frequency
Domain
2
Chapter 4 Image Enhancement in the Frequency
Domain
3
Chapter 4 Image Enhancement in the Frequency
Domain
4
Chapter 4 Image Enhancement in the Frequency
Domain
5
Chapter 4 Image Enhancement in the Frequency
Domain
6
Chapter 4 Image Enhancement in the Frequency
Domain
7
Chapter 4 Image Enhancement in the Frequency
Domain
8
Chapter 4 Image Enhancement in the Frequency
Domain
9
Chapter 4 Image Enhancement in the Frequency
Domain
10
Chapter 4 Image Enhancement in the Frequency
Domain
11
Chapter 4 Image Enhancement in the Frequency
Domain
12
Chapter 4 Image Enhancement in the Frequency
Domain
13
Chapter 4 Image Enhancement in the Frequency
Domain
14
Chapter 4 Image Enhancement in the Frequency
Domain
15
Chapter 4 Image Enhancement in the Frequency
Domain
16
Chapter 4 Image Enhancement in the Frequency
Domain
17
Chapter 4 Image Enhancement in the Frequency
Domain
18
Chapter 4 Image Enhancement in the Frequency
Domain
19
DFT in Matlab
Compute DFT gtgt f imread(center_bump.tif) gtgt
F fft2(f) gtgt S abs(F) gtgtimshow(S,)
20
Centering DFT
  • gtgt Fcfftshift(F)
  • gtgt imshow(abs(Fc),)

21
Sharpening by Log Transform
  • gtgt S2log(1abs(Fc))
  • gtgt imshow(S2,)

22
From DFT back to signal
  • gtgt Fifftshift(Fc)
  • gtgt fifft2(F)
  • gtgt freal(ifft2(F))

23
Basic Frequency Filtering
  • gtgt fimread(square_original.tif)
  • gtgt M,Nsize(f)
  • gtgt Ffft2(f)
  • gtgt sig10
  • gtgt Hlpfilter(gaussian,M,N,sig)
  • gtgt GH.F
  • gtgt greal(ifft2(G))
  • gtgt imshow(g,)

24
Chapter 4 Frequency Domain (the need for padding)
25
Chapter 4 Frequency Domain (the need for padding)
26
Chapter 4 Frequency Domain (why padding)
27
Chapter 4 Image Enhancement in the Frequency
Domain
28
Chapter 4 Image Enhancement in the Frequency
Domain
29
Chapter 4 Image Enhancement in the Frequency
Domain
30
Chapter 4 Frequency Domain Processing
31
Chapter 4 Frequency Domain Processing
32
Chapter 4 Frequency Domain Processing
33
Chapter 4 Frequency Domain Processing
34
Padding in Practice
  • Assume images f(x,y) h(x,y) of sizes A B and
    C D
  • Form two padded functions of size P Q by
    appending zeros to f and g. You can show that
    wraparound error is avoided by
  • choosing
  • P ? A C - 1
  • and
  • Y ? B D - 1
  • For special case of f(x,y) h(x,y) of the same
    size, M N, we pad with
  • P ? 2M - 1 and Q ? 2N - 1

35
Padding in Practice
  • gtgt PQpaddedsize(size(f))
  • Compute the FFT with padding.
  • gtgt Fpfft2(f,PQ(1),PQ(2))
  • gtgt Hplpfilter(gaussian,PQ(1),PQ(2),2sig)
  • gtgt GpHp.Fp
  • gtgt gpreal(ifft2(Gp))
  • gtgt gpcgp(1size(f,1),1size(f,2))
  • gtgt imshow(gp,)
  • gtgt imshow(gpc,)

36
Chapter 4 Image Enhancement in the Frequency
Domain
37
Chapter 4 Image Enhancement in the Frequency
Domain
38
Chapter 4 Image Enhancement in the Frequency
Domain
39
Chapter 4 Image Enhancement in the Frequency
Domain
40
Chapter 4 Image Enhancement in the Frequency
Domain
41
Chapter 4 Image Enhancement in the Frequency
Domain
42
Chapter 4 Image Enhancement in the Frequency
Domain
43
Chapter 4 Image Enhancement in the Frequency
Domain
44
Chapter 4 Image Enhancement in the Frequency
Domain
45
Chapter 4 Image Enhancement in the Frequency
Domain
46
Chapter 4 Image Enhancement in the Frequency
Domain
47
Chapter 4 Image Enhancement in the Frequency
Domain
48
Chapter 4 Image Enhancement in the Frequency
Domain
49
Chapter 4 Image Enhancement in the Frequency
Domain
50
Chapter 4 Image Enhancement in the Frequency
Domain
51
Chapter 4 Image Enhancement in the Frequency
Domain
52
Chapter 4 Image Enhancement in the Frequency
Domain
53
Chapter 4 Image Enhancement in the Frequency
Domain
54
Chapter 4 Image Enhancement in the Frequency
Domain
55
Chapter 4 Image Enhancement in the Frequency
Domain
56
Chapter 4 Image Enhancement in the Frequency
Domain
57
Chapter 4 Image Enhancement in the Frequency
Domain
58
Chapter 4 Image Enhancement in the Frequency
Domain
59
Chapter 4 Image Enhancement in the Frequency
Domain
60
Chapter 4 Image Enhancement in the Frequency
Domain
61
Chapter 4 Image Enhancement in the Frequency
Domain
Write a Comment
User Comments (0)
About PowerShow.com