Image Enhancement and Restoration

Slides:



Advertisements
Similar presentations
Fourier Transform and its Application in Image Processing
Advertisements

Computer Vision Lecture 7: The Fourier Transform
3-D Computational Vision CSc Image Processing II - Fourier Transform.
Basic Properties of signal, Fourier Expansion and it’s Applications in Digital Image processing. Md. Al Mehedi Hasan Assistant Professor Dept. of Computer.
Digital Image Processing
Fourier Transform (Chapter 4)
Fourier Transform – Chapter 13. Image space Cameras (regardless of wave lengths) create images in the spatial domain Pixels represent features (intensity,
Chapter Four Image Enhancement in the Frequency Domain.
Reminder Fourier Basis: t  [0,1] nZnZ Fourier Series: Fourier Coefficient:
The Fourier Transform Jean Baptiste Joseph Fourier.
The Fourier Transform Jean Baptiste Joseph Fourier.
Digital Image Processing Chapter 4: Image Enhancement in the Frequency Domain.
Image Enhancement in the Frequency Domain Part I Image Enhancement in the Frequency Domain Part I Dr. Samir H. Abdul-Jauwad Electrical Engineering Department.
Some Properties of the 2-D Fourier Transform Translation Distributivity and Scaling Rotation Periodicity and Conjugate Symmetry Separability Convolution.
Digital Image Processing Chapter 4: Image Enhancement in the Frequency Domain.
Transforms: Basis to Basis Normal Basis Hadamard Basis Basis functions Method to find coefficients (“Transform”) Inverse Transform.
The Fourier Transform Jean Baptiste Joseph Fourier.
Fourier Transform and Applications
Fourier Transform 2D Discrete Fourier Transform - 2D
DREAM PLAN IDEA IMPLEMENTATION Introduction to Image Processing Dr. Kourosh Kiani
Digital Image Processing, 2nd ed. © 2002 R. C. Gonzalez & R. E. Woods Chapter 4 Image Enhancement in the Frequency Domain Chapter.
Image Processing Fourier Transform 1D Efficient Data Representation Discrete Fourier Transform - 1D Continuous Fourier Transform - 1D Examples.
CSC589 Introduction to Computer Vision Lecture 7 Thinking in Frequency Bei Xiao.
Fourier series. The frequency domain It is sometimes preferable to work in the frequency domain rather than time –Some mathematical operations are easier.
: Chapter 14: The Frequency Domain 1 Montri Karnjanadecha ac.th/~montri Image Processing.
Image Processing © 2002 R. C. Gonzalez & R. E. Woods Lecture 4 Image Enhancement in the Frequency Domain Lecture 4 Image Enhancement.
Image Enhancement in the Frequency Domain Spring 2006, Jen-Chang Liu.
1 Chapter 5 Image Transforms. 2 Image Processing for Pattern Recognition Feature Extraction Acquisition Preprocessing Classification Post Processing Scaling.
Seismic Reflection Data Processing and Interpretation A Workshop in Cairo 28 Oct. – 9 Nov Cairo University, Egypt Dr. Sherif Mohamed Hanafy Lecturer.
Digital Image Processing Chapter 4 Image Enhancement in the Frequency Domain Part I.
Digital Image Processing, 2nd ed. © 2002 R. C. Gonzalez & R. E. Woods Background Any function that periodically repeats itself.
Lecture 7: Sampling Review of 2D Fourier Theory We view f(x,y) as a linear combination of complex exponentials that represent plane waves. F(u,v) describes.
October 29, 2013Computer Vision Lecture 13: Fourier Transform II 1 The Fourier Transform In the previous lecture, we discussed the Hough transform. There.
Inverse DFT. Frequency to time domain Sometimes calculations are easier in the frequency domain then later convert the results back to the time domain.
7- 1 Chapter 7: Fourier Analysis Fourier analysis = Series + Transform ◎ Fourier Series -- A periodic (T) function f(x) can be written as the sum of sines.
Dr. Scott Umbaugh, SIUE Discrete Transforms.
Fourier Transform.
CS 376b Introduction to Computer Vision 03 / 17 / 2008 Instructor: Michael Eckmann.
2D Fourier Transform.
Ch # 11 Fourier Series, Integrals, and Transform 1.
The Frequency Domain Digital Image Processing – Chapter 8.
Fourier transform.
Digital Image Processing Lecture 7: Image Enhancement in Frequency Domain-I Naveed Ejaz.
The Fourier Transform.
Fourier Transform (Chapter 4) CS474/674 – Prof. Bebis.
Digital Image Processing Lecture 8: Fourier Transform Prof. Charlene Tsai.
The content of lecture This lecture will cover: Fourier Transform
The Fourier Transform Jean Baptiste Joseph Fourier.
Section II Digital Signal Processing ES & BM.
Lecture 1.26 Spectral analysis of periodic and non-periodic signals.
The Fourier Transform Jean Baptiste Joseph Fourier.
The Fourier Transform Jean Baptiste Joseph Fourier.
Image Enhancement in the
Frequency Domain Processing
Dr. Nikos Desypris, Oct Lecture 3
All about convolution.
ENG4BF3 Medical Image Processing
4.1 DFT In practice the Fourier components of data are obtained by digital computation rather than by analog processing. The analog values have to be.
CSCE 643 Computer Vision: Thinking in Frequency
Image Processing, Leture #14
4. Image Enhancement in Frequency Domain
4. DIGITAL IMAGE TRANSFORMS 4.1. Introduction
Instructor: S. Narasimhan
1-D DISCRETE COSINE TRANSFORM DCT
The Fourier Transform Jean Baptiste Joseph Fourier.
The Fourier Transform Jean Baptiste Joseph Fourier.
Digital Image Procesing Unitary Transforms Discrete Fourier Trasform (DFT) in Image Processing DR TANIA STATHAKI READER (ASSOCIATE PROFFESOR) IN SIGNAL.
Digital Image Procesing Unitary Transforms Discrete Fourier Trasform (DFT) in Image Processing DR TANIA STATHAKI READER (ASSOCIATE PROFFESOR) IN SIGNAL.
Lecture 4 Image Enhancement in Frequency Domain
The Frequency Domain Any wave shape can be approximated by a sum of periodic (such as sine and cosine) functions. a--amplitude of waveform f-- frequency.
Presentation transcript:

Image Enhancement and Restoration Digital Image from sensor Too dark, Too bright, or Noisy Better quality Image Pixel (Spatial Domain) Frequency Domain i/p Frequency Transform Adjust freq. coefficient Inverse Transform o/p

Fourier Analysis Color lights DFT Signals with different frequencies White Light Signals with different frequencies Signal DFT . Fourier Analysis

Frequency Components Frequency Domain Time Domain

Fourier Analysis & Transform นักคณิตศาสตร์ชาวฝรั่งเศส ชื่อเต็มว่า Jean Baptiste Joseph Fourier ทฤษฎีของ Fourier ได้ถูกตีพิมพ์ในหนังสือของ Fourier ชื่อ 1822: “La The’orie Analitique de la Chaleur” 1878: ถูกนำมาแปลเป็นภาษาอังกฤษโดย Freeman “ฟังก์ชันใดๆ ที่มีคุณสมบัติการวนซ้ำค่า (repeat periodically) สามารถแสดงในรูปของผลรวมของสัญญาณ sine และ cosine ของความถี่ที่แตกต่างกันได้ ซึ่ง sine และ cosine แต่ละความถี่จะมีขนาดหรือถูกคูณด้วยค่าสัมประสิทธิ์ที่มีค่าแตกต่างกันไป” Fourier Analysis & Transform

Fourier Theory Any functions or signals = Fourier Fourier Series Fourier Transform Periodic function Aperiodic function Continuous Discrete Continuous Discrete Fourier Theory

1D Discrete Fourier Transform Forward 1D DFT: Inverse 1D DFT (IDFT): 1D Discrete Fourier Transform

Basis Set: Generalized Harmonics The set of generalized harmonics -> an orthonormal basis set for functions: {ei2pst} where each harmonic has a different frequency s. Remember: ei2pst = cos(2pst) + i sin(2pst) The real part is a cosine of frequency s. The imaginary part is a sine of frequency s.`

How to Interpret the Weights F(u) The weights F(u) are complex numbers: Real part Imaginary part How much of a cosine of frequencys you need. How much of a sine of frequencys you need. Magnitude Phase How much of a sinusoid of frequencys you need. What phase that sinusoid needs to be.

4-point 1D DFT x 4 12 x 4 - 4 +

b0 = 0 a0 = 36 8-point DFT

8-point DFT b1= -9.6569 a1 = - 4 b2 = -4 a2 = 4 [0.7071, 0, -0.7071, -1, -0.7071, 0, 0.7071, 1] [0.7071, 1, 0.7071, 0, -0.7071, -1, -0.7071, 0] b2 = -4 a2 = 4 8-point DFT [0, -1, 0, 1, 0, -1, 0, 1] [1, 0, -1, 0, 1, 0, -1, 0]

8-point DFT a7 = -4 b7 = 9.6569 b0 = 0 a0 = 36 a1 = - 4 b1= -9.6569 [0.7071, 0, -0.7071, -1, -0.7071, 0, 0.7071, 1] [-0.7071, -1, -0.7071, 0, 0.7071, 1, 0.7071, 0] b0 = 0 a0 = 36 a1 = - 4 b1= -9.6569 a2 = 4 b2 = -4 … a7 = -4 b7 = 9.6569 a0 – j b0 = 36 a1 – j b1 = - 4 + j 9.6569 a2 – j b2 = 4 + j 4 a7 – j b7 = - 4 – j 9.6569 8-point DFT

8-point 1D DFT x x x x x x x x x x x x x x x x

2D Discrete Fourier Transform (DFT) f(x,y) M N F(u,v) M N 2D DFT Forward 2D DFT: Inverse 2D DFT (IDFT): 2D Discrete Fourier Transform (DFT)

Sine Wave Image (1) 1D sine wave v = 3; A = 127; v = 6; A = 127;

Sine Wave Image (2) 2D sine wave u = 4; v = 0; A = 127;

2D DFT Basic Functions

Fourier Transform Properties Shifting property

2D DFT Cosine Periodic Property

2D DFT Shifted Sine Periodic Property

Fourier Transform property (1) 1 = 4* 1 2 2 = 3* 3 4

Fourier Shifting

Fourier Transform property (2) Unshifted Magnitude Spectrum Shifted Magnitude Spectrum Fourier Transform property (2)

2D DFT Separable Property 1D DFT (row) 1D DFT (column)

Fast Fourier Transform (FFT) 1D DFT (x-direction) 2D image 1D DFT (y-direction) 1D DFT 1D Fast Fourier Transform (FFT) Separate discrete data points into several groups Calculate DFT in hierarchical manner

Fast Fourier Transform If we let WN = e-i2p /N the Discrete Fourier Transform can be written F(u) = f [x] WN If N is a multiple of 2, N = 2M for some positive integer M, substituting 2M for N gives F(u) = f [x] W2M 1 N N -1 S n = 0 sn 1 2M 2M -1 S n = 0 ux

Fast Fourier Transform Separating out the M even and M odd terms, F(u) = f [2x] W2M + f [2x+1] W2M Notice that W2M = e-i2p u (2x)/(2M) = e-i2p u x /M =WM and W2M = e-i2p u (2 x+1)/(2M) = e-i2p u x/M e-i2p u /2M = WM W2M So, F(u) = f [2x] WM + f [2x+1] WM W2M { } 1 2 1 M M -1 S n = 0 1 M M -1 S n = 0 u(2x) u(2x+1) u(2x) ux u(2x+1) ux u { } M -1 S n = 0 1 M 2 ux u

Fast Fourier Transform { } M -1 S n = 0 1 M 2 ux u F(u) = f [2x] WM + f [2x+1] WM W2M Can be written as F(u) = {Feven(u) + Fodd(u)W2M} Simplifying further, the first M terms of the Fourier transform of 2M items can be computed by F(u) = {Feven(u) + Fodd(u)W2M} and the last M terms can be computed by F(u) = {Feven(u) - Fodd(u)W2M} 1 2 u 1 2 u 1 2 u

Fast Fourier Transform If M is itself a multiple of 2, do it again! If N is a power of 2, keep recursively subdividing until you have one element, which is its own Fourier Transform. FourierTransform FFT(Signal f) { if (length(f) == 1) return f; evenpart = FFT(EvenTerms(f)); oddpart = FFT( OddTerms(f)); for (s = 0; s < length(f) / 2; s++) { result[s ] = evenpart[s] + W_2M ^ s * oddpart[s]; result[s+M] = evenpart[s] – W_2M ^ s * oddpart[s]; }

DIT-FFT (Scalable) (1) 2-point FFT butterfly 2-point a b a+b a-b a b weight 2-point FFT - 1 f(0) f(2) f(1) f(3) F(0) F(1) F(2) F(3) butterfly DIT-FFT (Scalable) (1)

DIT-FFT (Scalable) (2) 8-point FFT weight butterfly 4-point 4-point 8 W 1 2 3 - ) ( F 4 5 6 7 f(4) f(2) f(6) f(1) 4-point FFT f(5) f(3) f(7) DIT-FFT (Scalable) (2)

Fast Fourier Transform (DIT-FFT) Direct calculation = N2 FFT = 2log2N 8-point FFT Fast Fourier Transform (DIT-FFT)

Fast Fourier Transform Computational Complexity: Remember: The Fast Fourier Transform is just a faster algorithm for computing the Discrete Fourier Transform — it does not produce a different result. Discrete Fourier Transform  O(N2) Fast Fourier Transform O(2 log2 N)

Processing Time (DFT vs FFT)

DFT Magnitude response |F(u,v)| Unit step response

DFT Magnitude response |F(u,v)| Small vertical line response -45 degree rotated line response Linear Combination response