chapter 4 image enhancement in the frequency domain

37
Chapter 4 Image Enhancement in the Frequency Domain

Post on 19-Dec-2015

263 views

Category:

Documents


8 download

TRANSCRIPT

Page 1: Chapter 4 Image Enhancement in the Frequency Domain

Chapter 4

Image Enhancement in the Frequency Domain

Page 2: Chapter 4 Image Enhancement in the Frequency Domain

Fourier Transform1-D Fourier Transform1-D Discrete Fourier Transform (DFT)MagnitudePhasePower spectrum

Page 3: Chapter 4 Image Enhancement in the Frequency Domain

2D DFT Definition:

1

0

)//(21

0

1

0

)//(21

0

),(),(

),(1

),(

N

v

NvyMuxjM

u

N

y

NvyMuxjM

x

evuFyxf

eyxfMN

vuF

1

0

1

0

),(1

)0,0(M

x

N

y

yxfMN

F

),(),(

),(*),(

vuFvuF

vuFvuF

if f(x,y) is real

Page 4: Chapter 4 Image Enhancement in the Frequency Domain

Centered Fourier Spectrum

It can be shown that:

)2/,2/()1)(,( NvMuFyxf yx

Page 5: Chapter 4 Image Enhancement in the Frequency Domain

Example

SEM Image

Page 6: Chapter 4 Image Enhancement in the Frequency Domain

Filtering in the Frequency Domain

1. Multiply the input image by (-1)^x+y to center the transform

2. Compute F(u,v), the DFT of input3. Multiply F(u,v) by a filter H(u,v)4. Computer the inverse DFT of 35. Obtain the real part of 46. Multiply the result in 5 by (-

1)^(x+y)

Page 7: Chapter 4 Image Enhancement in the Frequency Domain

Fourier Domain Filtering

Page 8: Chapter 4 Image Enhancement in the Frequency Domain

Some Basic FiltersNotch filter:

otherwise 1

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

Page 9: Chapter 4 Image Enhancement in the Frequency Domain

Lowpass and Highpass Filters

Page 10: Chapter 4 Image Enhancement in the Frequency Domain

Convolution TheoremDefinition

Theorem

Need to define the discrete version of impulse function to prove these results.

1

0

1

0

),(),(1

),(),(M

m

N

n

nymxhnmfMN

yxhyxf

),(),(),(),(

),(),(),(),(

vuHvuFyxhyxf

vuHvuFyxhyxf

),(),(),( 00

1

0

1

000 yxAsyyxxAyxs

M

x

N

y

Page 11: Chapter 4 Image Enhancement in the Frequency Domain

Gaussian Filters

Difference of Gaussians (DoG)

222

22

2

2/

2)(

)(x

u

Aexh

AeuH

22

221

2 2/2/)( uu BeAeuH

Page 12: Chapter 4 Image Enhancement in the Frequency Domain

Illustration

Page 13: Chapter 4 Image Enhancement in the Frequency Domain

Smoothing FiltersIdeal lowpass filtersButterworth lowpass filtersGaussian lowpass filters

Page 14: Chapter 4 Image Enhancement in the Frequency Domain

Ideal Lowpass Filters

Page 15: Chapter 4 Image Enhancement in the Frequency Domain

Example

Page 16: Chapter 4 Image Enhancement in the Frequency Domain

Ringing Effect

Page 17: Chapter 4 Image Enhancement in the Frequency Domain

Butterworth Lowpass FiltersDefinition:

nDvuDvuH 2

0/),(1

1),(

Page 18: Chapter 4 Image Enhancement in the Frequency Domain

Example

Page 19: Chapter 4 Image Enhancement in the Frequency Domain

Ringing Effect

Page 20: Chapter 4 Image Enhancement in the Frequency Domain

Gaussian Lowpass FiltersDefinition:

22 2/),(),( vuDevuH

Page 21: Chapter 4 Image Enhancement in the Frequency Domain

Example

Page 22: Chapter 4 Image Enhancement in the Frequency Domain

More example

Page 23: Chapter 4 Image Enhancement in the Frequency Domain

Sharpening FiltersHigh-pass filtersIn general,Ideal highpass filterButterworth highpass filter:

Gaussian highpass filters

),(1),( vuHvuH lphp

nvuDDvuH

20 )],(/[1

1),(

Page 24: Chapter 4 Image Enhancement in the Frequency Domain

Relationship between Lowpass and Highpass Filters

Page 25: Chapter 4 Image Enhancement in the Frequency Domain

Spatial Domain Representation

Page 26: Chapter 4 Image Enhancement in the Frequency Domain

Ideal Highpass Example

Page 27: Chapter 4 Image Enhancement in the Frequency Domain

Butterworth Highpass Example

Page 28: Chapter 4 Image Enhancement in the Frequency Domain

Gaussian Highpass Example

Page 29: Chapter 4 Image Enhancement in the Frequency Domain

Laplacian in the Frequency Domain

It can be shown that:

Therefore,

)()()(

uFjudx

xfd nn

n

),()()],([ 222 vuFvuyxf

Page 30: Chapter 4 Image Enhancement in the Frequency Domain

Illustration

Page 31: Chapter 4 Image Enhancement in the Frequency Domain

Other FiltersUnsharp masking: High-boost filtering:High-frequency emphasis filtering:

),(),(),( yxfyxfyxf lphp

),(),(),( yxfyxAfyxf lphp

),(),( vubHavuH hphfe

Page 32: Chapter 4 Image Enhancement in the Frequency Domain

Homomorphic Filtering

Page 33: Chapter 4 Image Enhancement in the Frequency Domain

Example

Page 34: Chapter 4 Image Enhancement in the Frequency Domain

DFT: Implementation Issues

RotationPeriodicity and conjugate symmetrySeparabilityNeed for paddingCircular convolutionFFT

Page 35: Chapter 4 Image Enhancement in the Frequency Domain

Properties of 2D FT (1)

Page 36: Chapter 4 Image Enhancement in the Frequency Domain

Properties of 2D FT (2)

Page 37: Chapter 4 Image Enhancement in the Frequency Domain

FT Pairs