Chapter Four Image Enhancement in the Frequency Domain.

27
Chapter Four Image Enhancement in the Frequency Domain

Transcript of Chapter Four Image Enhancement in the Frequency Domain.

Page 1: Chapter Four Image Enhancement in the Frequency Domain.

Chapter Four

Image Enhancement in the Frequency Domain

Page 2: Chapter Four Image Enhancement in the Frequency Domain.

Mathematical Background:Complex Numbers

• A complex number x has the form:

a: real part, b: imaginary part

• Addition

• Multiplication

Page 3: Chapter Four Image Enhancement in the Frequency Domain.

Mathematical Background:Complex Numbers (cont’d)

• Magnitude-Phase (i.e.,vector) representation

Magnitude:

Phase:

φ

Page 4: Chapter Four Image Enhancement in the Frequency Domain.

Mathematical Background:Complex Numbers (cont’d)

• Multiplication using magnitude-phase representation

• Complex conjugate

• Properties

Page 5: Chapter Four Image Enhancement in the Frequency Domain.

Mathematical Background:Complex Numbers (cont’d)

• Euler’s formula

• Properties

j

Page 6: Chapter Four Image Enhancement in the Frequency Domain.

Mathematical Background:Sine and Cosine Functions

• Periodic functions• General form of sine and cosine functions:

Page 7: Chapter Four Image Enhancement in the Frequency Domain.

Mathematical Background:Sine and Cosine Functions

Special case: A=1, b=0, α=1

π

Page 8: Chapter Four Image Enhancement in the Frequency Domain.

Mathematical Background:Sine and Cosine Functions (cont’d)

• Shifting or translating the sine function by a const b

Page 9: Chapter Four Image Enhancement in the Frequency Domain.

Mathematical Background:Sine and Cosine Functions (cont’d)

• Changing the amplitude A

Page 10: Chapter Four Image Enhancement in the Frequency Domain.

Mathematical Background:Sine and Cosine Functions (cont’d)

• Changing the period T=2π/|α| e.g., y=cos(αt)

period 2π/4=π/2

shorter period higher frequency(i.e., oscillates faster)

α =4

Frequency is defined as f=1/T

Different notation: sin(αt)=sin(2πt/T)=sin(2πft)

Page 11: Chapter Four Image Enhancement in the Frequency Domain.

• Any periodic function can be represented by the sum of

sines/cosines of different frequencies, multiplied by a different

coefficient (Fourier series).

• Non-periodic functions can also be represented as the integral

of sines/cosines multiplied by weighing function

(Fourier transform).

Important characterestic: a function can be reconstructed

completely via inverse transform with no loss of information.

Fourier Series Theorem

Page 12: Chapter Four Image Enhancement in the Frequency Domain.

Fourier Series (cont’d)

α1

α2

α3

• Illustration

Page 13: Chapter Four Image Enhancement in the Frequency Domain.

1-D Discrete Fourier Transform (DFT)

Page 14: Chapter Four Image Enhancement in the Frequency Domain.

1-D Discrete Fourier Transform (DFT)

• The domain (values of u) over which F(u) range is called the frequency domain• Each of th M terms of F(u) is called frequency

compnent of the transform.

Page 15: Chapter Four Image Enhancement in the Frequency Domain.

1-D Discrete Fourier Transform (DFT)

• |F(u)| is called magnitude or spectrum of the DFT.

• Φ(u) is called the phase angle of the spectrum.

• In terms of image enhancement we are interested in the properties of the spectrum.

Page 16: Chapter Four Image Enhancement in the Frequency Domain.

1-D DFT: Example

Example: Let f (x) = {1, − 1, 2, 3}. (Note that M=4.)

Page 17: Chapter Four Image Enhancement in the Frequency Domain.

1-D Discrete Fourier Transform (DFT)

Page 18: Chapter Four Image Enhancement in the Frequency Domain.

2-D DFT

The Two-Dimensional Fourier Transform and its Inverse

Page 19: Chapter Four Image Enhancement in the Frequency Domain.

2-D DFT

Page 20: Chapter Four Image Enhancement in the Frequency Domain.

Conjugate symmetry

• The Fourier transform of a real function is conjugate symmetric

• This means

• Which says that the spectrum of the DFT is symmetric.

Page 21: Chapter Four Image Enhancement in the Frequency Domain.

DC component

Page 22: Chapter Four Image Enhancement in the Frequency Domain.

Frequency domain basics

Page 23: Chapter Four Image Enhancement in the Frequency Domain.

Filtering in The Frequency Domain

Page 24: Chapter Four Image Enhancement in the Frequency Domain.

Filtering in The Frequency Domain

Page 25: Chapter Four Image Enhancement in the Frequency Domain.

Filtering in The Frequency Domain

Some basic filters:

1- Notch filter:

Page 26: Chapter Four Image Enhancement in the Frequency Domain.

2- Lowpass filter: Attenuates a high frequencies, while passing a low frequencies (average gray level).

Filtering in The Frequency Domain

Page 27: Chapter Four Image Enhancement in the Frequency Domain.

3- Highpass filter: Attenuates a low frequencies, while passing a high frequencies (details).

Filtering in The Frequency Domain