Matlab Tutorial #2 Kathleen Chen chens18@rpi.edu February 13, 2018.

Slides:



Advertisements
Similar presentations
Ch 3 Analysis and Transmission of Signals
Advertisements

DFT properties Note: it is important to ensure that the DFTs are the same length If x1(n) and x2(n) have different lengths, the shorter sequence must be.
MATLAB Session 5 ES 156 Signals and Systems 2007 HSEAS Prepared by Frank Tompkins.
Image Enhancement in the Frequency Domain (2)
Cellular Communications
Digtial Image Processing, Spring ECES 682 Digital Image Processing Oleh Tretiak ECE Department Drexel University.
FFT-based filtering and the Short-Time Fourier Transform (STFT) R.C. Maher ECEN4002/5002 DSP Laboratory Spring 2003.
Week 14. Review 1.Signals and systems 2.State machines 3.Linear systems 4.Hybrid systems 5.LTI systems & frequency response 6.Convolution 7.Fourier Transforms.
Fourier: ApplicationsModern Seismology – Data processing and inversion 1 Fourier Transform: Applications Seismograms Eigenmodes of the Earth Time derivatives.
Image Fourier Transform Faisal Farooq Q: How many signal processing engineers does it take to change a light bulb? A: Three. One to Fourier transform the.
Image (and Video) Coding and Processing Lecture 2: Basic Filtering Wade Trappe.
Spectra: ApplicationsComputational Geophysics and Data Analysis 1 Fourier Transform: Applications in seismology Estimation of spectra –windowing –resampling.
Goals For This Class Quickly review of the main results from last class Convolution and Cross-correlation Discrete Fourier Analysis: Important Considerations.
Discrete-Time and System (A Review)
University of Ioannina - Department of Computer Science Filtering in the Frequency Domain (Fundamentals) Digital Image Processing Christophoros Nikou
Fourier (1) Hany Ferdinando Dept. of Electrical Eng. Petra Christian University.
CSC589 Introduction to Computer Vision Lecture 8
CSC589 Introduction to Computer Vision Lecture 7 Thinking in Frequency Bei Xiao.
8.1 representation of periodic sequences:the discrete fourier series 8.2 the fourier transform of periodic signals 8.3 properties of the discrete fourier.
FOURIER ANALYSIS PART 2: Continuous & Discrete Fourier Transforms
Module 2 SPECTRAL ANALYSIS OF COMMUNICATION SIGNAL.
Filtering Robert Lin April 29, Outline Why filter? Filtering for Graphics Sampling and Reconstruction Convolution The Fourier Transform Overview.
EE104: Lecture 5 Outline Review of Last Lecture Introduction to Fourier Transforms Fourier Transform from Fourier Series Fourier Transform Pair and Signal.
Chapter 4 Fourier transform Prepared by Dr. Taha MAhdy.
Technion, CS department, SIPC Spring 2014 Tutorials 12,13 discrete signals and systems 1/39.
Zhongguo Liu_Biomedical Engineering_Shandong Univ. Chapter 8 The Discrete Fourier Transform Zhongguo Liu Biomedical Engineering School of Control.
Real time DSP Professors: Eng. Julian S. Bruno Eng. Jerónimo F. Atencio Sr. Lucio Martinez Garbino.
Chapter 5: Neighborhood Processing
Z TRANSFORM AND DFT Z Transform
Part 4 Chapter 16 Fourier Analysis PowerPoints organized by Prof. Steve Chapra, University All images copyright © The McGraw-Hill Companies, Inc. Permission.
Digital Image Processing Chapter 4: Image Enhancement in the Frequency Domain 22 June 2005 Digital Image Processing Chapter 4: Image Enhancement in the.
Fundamentals of Digital Signal Processing. Fourier Transform of continuous time signals with t in sec and F in Hz (1/sec). Examples:
Dan Ellis 1 ELEN E4810: Digital Signal Processing Topic 3: Fourier domain 1.The Fourier domain 2.Discrete-Time Fourier Transform (DTFT) 3.Discrete.
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.
Digital Signal Processing
Linear filtering based on the DFT
Fourier and Wavelet Transformations Michael J. Watts
Non-Linear Transformations Michael J. Watts
Dr. Michael Nasief Digital Signal Processing Lec 7 1.
 Carrier signal is strong and stable sinusoidal signal x(t) = A cos(  c t +  )  Carrier transports information (audio, video, text, ) across.
EE422G Signals and Systems Laboratory Fourier Series and the DFT Kevin D. Donohue Electrical and Computer Engineering University of Kentucky.
Lecture 19 Spectrogram: Spectral Analysis via DFT & DTFT
Digital Image Processing , 2008
Digital Image Processing / Fall 2001
Fourier series With coefficients:.
DIGITAL SIGNAL PROCESSING ELECTRONICS
Digital Signal Processing
3.1 Introduction Why do we need also a frequency domain analysis (also we need time domain convolution):- 1) Sinusoidal and exponential signals occur.
FFT-based filtering and the
Fourier and Wavelet Transformations
EE Audio Signals and Systems
Laboratory in Oceanography: Data and Methods
ENG4BF3 Medical Image Processing
Noise in Imaging Technology
Outline Linear Shift-invariant system Linear filters
2D Fourier transform is separable
Z TRANSFORM AND DFT Z Transform
Lecture 15 Outline: DFT Properties and Circular Convolution
EEE 244-6: Fourier Transform (FFT) and Signal Processing
Chapter 8 The Discrete Fourier Transform
Chapter 8 The Discrete Fourier Transform
Lecture 7: Signal Processing
Electrical Communications Systems ECE Spring 2019
Lecture 13: CT Reconstruction
Biomedical Imaging Center
Lecture 6: Fourier Transform
Signals and Systems Using MATLAB Luis F. Chaparro
CE Digital Signal Processing Fall Discrete Fourier Transform (DFT)
Homework 5 (Due: 6/28) Write the Matlab program to compute the FFT of two N-point real signals x and y using only one N-point FFT.
Even Discrete Cosine Transform The Chinese University of Hong Kong
Presentation transcript:

Matlab Tutorial #2 Kathleen Chen chens18@rpi.edu February 13, 2018

BB05 Fourier Series Determination of Fourier components from the code given in the video Use these Fourier components to create a curve close to the square wave

BB06 Fourier Transform Part 2 Two answers were accepted: Analytical – http://www.youtube.com/watch?v=1hX_MUh8wfk MATLAB –

Outline Discrete Convolution Spectral Analysis 2D Filtering Zero-padding Circular Equivalent to Linear Spectral Analysis Refined Spectral Bins 2D Filtering Noise Removal Edge Enhancement

Visualization of Discrete FT

Hands-on Example

Multiplications at n=0 f(k) 1 2 3 4 g(-k) -4 -3 -2 -1 1 2 3 4

Multiplications at n=8 f(k) 1 2 3 4 g(8-k) -4 -3 -2 -1 1 2 3 4

Functional example h(n) X(n) Linear convolution result of X(n) and h(n) XN(n) where X is now periodic with N components (“circularly extended”) Components of linear convolution of XN(n), h(n) Edge effects Composite output (green section is unaffected by edge effects (“desired” solution) *We would need zero padding here!*

Hands-on Result >> x=[5 4 3 2 1]; h=[1 2 3 4 5]; y=conv(x,h); plot(y); ylim([0 100]);

Circular Convolution

Convolution with Zero Padding

Circular convolution w/o zero padding ≠ Linear convolution!

Outline Discrete Convolution Spectral Analysis 2D Filtering Zero-padding Circular Equivalent to Linear Spectral Analysis Refined Spectral Bins 2D Filtering Noise Removal Edge Enhancement

Synthetic Waveform Fs = 1e3; t = 0:0.001:1‐0.001; x = cos(2*pi*100*t)+sin(2*pi*202.5*t); Plot(x(1:100)); https://www.mathworks.com/help/signal/ug/amplitude-estimation-and-zero-padding.html

Without Zero Padding xdft = fft(x); xdft = xdft(1:length(x)/2+1); xdft = xdft/length(x); xdft(2:500) = 2*xdft(2:500); freq = 0:Fs/length(x):Fs/2;   plot(freq,abs(xdft)) hold on plot(freq,ones(length(x)/2+1,1),'LineWidth',2) xlabel('Hz') ylabel('Amplitude') hold off The 202.5 frequency is not well-resolved Not within the default spectral bins (1 Hz)

With Zero Padding xdft = fft(x,2000); xdft = xdft(1:length(xdft)/2+1); xdft = xdft/length(x); xdft(2:500) = 2*xdft(2:500); freq =0:Fs/(2*length(x)):Fs/2; plot(freq,abs(xdft)) hold on plot(freq,ones(2*length(x)/2+1,1),'LineWidth',2) xlabel('Hz') ylabel('Amplitude') hold off Both frequencies are well-resolved Within the default spectral bins (spacing between DFT bins is Fs/2000 = 0.5Hz)

Continuous Function

The 202.5, 445.8 frequencies are not well-resolved; Frequencies are not discrete

The 445.8 frequencies is not well-resolved; Frequencies are not discrete

All frequencies are well-resolved!

Outline Discrete Convolution Spectral Analysis 2D Filtering Zero-padding Circular Equivalent to Linear Spectral Analysis Refined Spectral Bins 2D Filtering Noise Removal Edge Enhancement

2D Fourier Transform

Noise Suppression FT IFT

Low-/High-pass Filtering

2D Image Filters

Filtered Images

ArtX Homework: Overview Poster Shift-invariant Linear System DFT & FFT Signal Processing Fourier Series Fourier Transform Periodic Non-periodic Convolution Shift-invariant Linear System Function/System Due Fri