enhancement in frequency domain

42
Image Enhancement in the Frequency Domain

Upload: ashish-kumar

Post on 11-May-2015

1.772 views

Category:

Documents


1 download

TRANSCRIPT

Page 1: Enhancement in frequency domain

Image Enhancement in the Frequency Domain

Page 2: Enhancement in frequency domain

2

Basic steps for filtering in the frequency domain

Page 3: Enhancement in frequency domain

3

Basics of filtering in the frequency domain

1. multiply the input image by (-1)x+y to center the transform to u = M/2 and v = N/2 (if M and N are even numbers, then the shifted coordinates will be integers)

2. computer F(u,v), the DFT of the image from (1)3. multiply F(u,v) by a filter function H(u,v)4. compute the inverse DFT of the result in (3)5. obtain the real part of the result in (4)6. multiply the result in (5) by (-1)x+y to cancel the

multiplication of the input image.

Page 4: Enhancement in frequency domain

4

Notch filter

otherwise 1

N/2 (M/2, v)(u, if 0),(

) vuH

• this filter is to force the F(0,0) which is the average value of an image (dc component of the spectrum)• the output has prominent edges• in reality the average of the displayed image can’t be zero as it needs to have negative gray levels. the output image needs to scale the gray level

Page 5: Enhancement in frequency domain

5

Low pass filter

high pass filter

Page 6: Enhancement in frequency domain

6

Add the ½ of filter height to F(0,0) of the high pass filter

Page 7: Enhancement in frequency domain

7

Correspondence between filter in spatial and frequency domains

Page 8: Enhancement in frequency domain

8

Smoothing Frequency-domain filters: Ideal Lowpass filter

Page 9: Enhancement in frequency domain

9

image power circles

Page 10: Enhancement in frequency domain

10

Result of ILPF

Page 11: Enhancement in frequency domain

11

Example

Page 12: Enhancement in frequency domain

12

Butterworth Lowpass Filter: BLPF

Page 13: Enhancement in frequency domain

13

Example

Page 14: Enhancement in frequency domain

14

Spatial representation of BLPFs

Page 15: Enhancement in frequency domain

15

Gaussian Lowpass Filter: GLPF

Page 16: Enhancement in frequency domain

16

Example

Page 17: Enhancement in frequency domain

17

Example

Page 18: Enhancement in frequency domain

18

Example

Page 19: Enhancement in frequency domain

19

Example

Page 20: Enhancement in frequency domain

20

Sharpening Frequency Domain Filter: Ideal highpass filter

Butterworth highpass filter

Gaussian highpass filter

0

0

Dv)D(u, if 1

Dv)D(u, if 0),( vuH

nvuDvuH 2

0 ),(D1

1),(

20

2 2/),(1),( DvuDevuH

Page 21: Enhancement in frequency domain

21

Spatial representation of Ideal, Butterworth and Gaussian highpass filters

Page 22: Enhancement in frequency domain

22

Example: result of IHPF

Page 23: Enhancement in frequency domain

23

Example: result of BHPF

Page 24: Enhancement in frequency domain

24

Example: result of GHPF

Page 25: Enhancement in frequency domain

25

Laplacian in the Frequency domain

Page 26: Enhancement in frequency domain

26

Example: Laplacian filtered image

Page 27: Enhancement in frequency domain

27

Example: high-boost filter

Page 28: Enhancement in frequency domain

28

Examples

Page 29: Enhancement in frequency domain

29

Homomorphic Filter

Page 30: Enhancement in frequency domain

30

Result of Homomorphic filter

Page 31: Enhancement in frequency domain

31

Page 32: Enhancement in frequency domain

32

Page 33: Enhancement in frequency domain

33

Page 34: Enhancement in frequency domain

34

Page 35: Enhancement in frequency domain

35

Page 36: Enhancement in frequency domain

36

Page 37: Enhancement in frequency domain

37

Page 38: Enhancement in frequency domain

38

Page 39: Enhancement in frequency domain

39

Page 40: Enhancement in frequency domain

40

Page 41: Enhancement in frequency domain

41

Page 42: Enhancement in frequency domain

42