Frequency Domain Processing Lecture: 3. In image processing, linear systems are at the heart of many filtering operations, and they provide the basis.

Slides:



Advertisements
Similar presentations
Image Enhancement in the Frequency Domain (2)
Advertisements

Laboratory of Image Processing Pier Luigi Mazzeo
Frequency Domain Filtering (Chapter 4)
1 Image Processing Ch4: Filtering in frequency domain Prepared by: Tahani Khatib AOU.
Digital Image Processing
Image Enhancement in the Frequency Domain Part III
Fourier Transform (Chapter 4)
Chapter Four Image Enhancement in the Frequency Domain.
© by Yu Hen Hu 1 ECE533 Digital Image Processing Image Enhancement in Frequency Domain.
Chap 4 Image Enhancement in the Frequency Domain.
Digital Image Processing
Vector Spaces Space of vectors, closed under addition and scalar multiplication.
Reminder Fourier Basis: t  [0,1] nZnZ Fourier Series: Fourier Coefficient:
Chapter 4 Image Enhancement in the Frequency Domain.
CHAPTER 4 Image Enhancement in Frequency Domain
Chap 4-2. Frequency domain processing Jen-Chang Liu, 2006.
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.
Image Enhancement in the Frequency Domain Part II Dr. Samir H. Abdul-Jauwad Electrical Engineering Department King Fahd University of Petroleum & Minerals.
Chapter 4 Image Enhancement in the Frequency Domain.
Digital Image Processing, 2nd ed. © 2002 R. C. Gonzalez & R. E. Woods Chapter 4 Image Enhancement in the Frequency Domain Chapter.
Transforms: Basis to Basis Normal Basis Hadamard Basis Basis functions Method to find coefficients (“Transform”) Inverse Transform.
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.
Filters in the Frequency Domain.  Image Smoothing Using Frequency Domain Filters: ◦ Ideal Lowpass Filters ◦ Butterworth Lowpass Filters ◦ Gaussian Lowpass.
Introduction to Image Processing
Digital Image Processing Chapter # 4 Image Enhancement in Frequency Domain Digital Image Processing Chapter # 4 Image Enhancement in Frequency Domain.
Chapter 4: Image Enhancement in the Frequency Domain Chapter 4: Image Enhancement in the Frequency Domain.
: 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.
1 Chapter 5 Image Transforms. 2 Image Processing for Pattern Recognition Feature Extraction Acquisition Preprocessing Classification Post Processing Scaling.
Chapter 7: The Fourier Transform 7.1 Introduction
1 © 2010 Cengage Learning Engineering. All Rights Reserved. 1 Introduction to Digital Image Processing with MATLAB ® Asia Edition McAndrew ‧ Wang ‧ Tseng.
Digital Image Processing Chapter 4 Image Enhancement in the Frequency Domain Part I.
ENG4BF3 Medical Image Processing Image Enhancement in Frequency Domain.
Digital Image Processing Chapter 4: Image Enhancement in the Frequency Domain 22 June 2005 Digital Image Processing Chapter 4: Image Enhancement in the.
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.
University of Ioannina - Department of Computer Science Filtering in the Frequency Domain (Application) Digital Image Processing Christophoros Nikou
Practical Image Processing1 Chap7 Image Transformation  Image and Transformed image Spatial  Transformed domain Transformation.
1 CMPB 345: IMAGE PROCESSING DISCRETE TRANSFORM 2.
Fourier Transform.
Digital Image Processing Lecture 9: Filtering in Frequency Domain Prof. Charlene Tsai.
BYST Xform-1 DIP - WS2002: Fourier Transform Digital Image Processing Bundit Thipakorn, Ph.D. Computer Engineering Department Fourier Transform and Image.
Frequency Domain Filtering. Frequency Domain Methods Spatial Domain Frequency Domain.
Fourier transform.
Amity School of Engineering & Technology 1 Amity School of Engineering & Technology DIGITAL IMAGE PROCESSING & PATTERN RECOGNITION Credit Units: 4 Mukesh.
Digital Image Processing Lecture 8: Image Enhancement in Frequency Domain II Naveed Ejaz.
Digital Image Processing Chapter - 4
Digital Image Processing , 2008
Jean Baptiste Joseph Fourier
IMAGE ENHANCEMENT IN THE FREQUENCY DOMAIN
IMAGE PROCESSING FREQUENCY DOMAIN PROCESSING
The content of lecture This lecture will cover: Fourier Transform
Spatial & Frequency Domain
Gaussian Lowpass Filter
Image Enhancement in the
Frequency Domain Processing
Image Enhancement in the Frequency Domain Part I
ENG4BF3 Medical Image Processing
Frequency Domain Analysis
2D Fourier transform is separable
Image Processing, Leture #14
4. Image Enhancement in Frequency Domain
Digital Image Processing
Frequency Domain Processing
6. Time and Frequency Characterization of Signals and Systems
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:

Frequency Domain Processing Lecture: 3

In image processing, linear systems are at the heart of many filtering operations, and they provide the basis for analyzing complex problems in areas such as image restoration. In this section we give a short review of linear systems 0. Overview of Linear Systems

0.1 Definitions

0.2 Convolutions

Frequency Domain Processing

1 The 2D Discrete Fourier Transform Let f(x,y) for x=0,1,2,..., M-1 and y=1,2,..., N-1 denote an M×N image. The 2D DFT of f is given by The frequency domain is simply the coordinate system spanned by F(u,v) with u and v as frequency variables.

1 The 2D Discrete Fourier Transform The inverse DFT is given by Thus, given F(u,v), we can obtain f(x,y) back by means of the inverse DFT.

1 The 2D Discrete Fourier Transform The value of the transform at the origin of the frequency domain that is F(0,0) is called the dc component of the Fourier transform. Even if f(x,y) is real, its transform is complex. The principal method of visually analyzing a transform is to compute its spectrum that is the magnitude of F(u,v).

1 The 2D Discrete Fourier Transform The Fourier spectrum is defined as The phase angle is defined as

1 The 2D Discrete Fourier Transform The polar representation of F(u,v) is defined by The power spectrum is defined as

1 The 2D Discrete Fourier Transform It can be shown that The DFT is infinitely periodic in both u and v directions, with the periodicity determined by M and N.

1 The 2D Discrete Fourier Transform Periodicity is also a property of the inverse DFT. An image obtained by taking the inverse DFT is also infinitely periodic in both u and v directions, with the periodicity determined by M and N.

1 The 2D Discrete FourierTransform

2 Computing and Vizualizing the 2D DFT The FFT of an M × N image array is obtained by the syntax F=fft2(f) and with padding by the syntax F=fft2(f, P,Q) The Fourier spectrum is obtained as S=abs(F)

2 Computing and Vizualizing the 2D DFT The funcion F=fft2 (f) moves the origin of transform to the center of the frequency rectangle. Fc=fftshift (F) Log transformation: S2=log(1+abs(Fc)) Function ifftshift reverses the centering: F=ifftshift(Fc)

2 Computing and Vizualizing the 2D DFT To compute inverse FFT f=ifft2 (F) If the imput used to compute F is real then the inverse should also be real. However fft2 often has small imaginary components resulting from round-off errors. It is good practice to extract the real part of the result: f=real(ifft2(F))

2 Computing and Vizualizing the 2D DFT

3 Filtering in the frequency domain The convolution theorem: Linear spatial convolution is by convolving f(x,y) and h(x,y). The same result is obtained in the frequency domain by multiplying F(u,v) and H(u,v). The basic idea in frequency domain is to select a filter transfer function that modifies F(u,v) in a specified manner. A transfer function is multiplied by a centered F(u,v). A filter is called low pass filter if it attenuates the high frequency components to F(u,v) while leaving the low frequencies relatively unchanged.

3 Filtering in the frequency domain

Example: Linear spatial filtering. f = w = g=imfilter(f, w, filtering_mode, boundary_options, size_options)

3 Filtering in the frequency domain g=imfilter(f, w, filtering_mode, boundary_options, size_options) >> g=imfilter(f,w,'corr',0,'full') g =

3 Filtering in the frequency domain With specified values of P and Q we use the following syntax to compute the FFT using zero padding. >> F=fft2(f, 7,7) F = Columns 1 through i i i i i i i i i i i i

3.2 Basic steps in DFT filtering 1. Obtain the padding parameters P and Q. 2. Obtain the Fourier transform with padding: F=fft2(f, P,Q); 3. Generate a filter function, H of size P×Q. If the filter is centered then use : H=fftshift(H) before using the filter. 4. Multiply the transform by the filter: G=H.*F; 5. Obtain the real part of G: g=real(ifft2(G)); 6. Crop the top,left rectangle to the original size: g=g(1:size(f,1), 1:size(f,2));

4. Lowpass frequency domain filters Ideal lowpass filter (ILPF): where D(u,v) is the distance from point (u,v) to the center of the filter.

4. Lowpass frequency domain filters Butterworth lowpass filter (ILPF): where D(u,v) is the distance from point (u,v) to the center of the filter.

4. Lowpass frequency domain filters Gaussian lowpass filter (ILPF): where D(u,v) is the distance from point (u,v) to the center of the filter.

1 The 2D Discrete FourierTransform