Sampling and Aliasing.

Slides:



Advertisements
Similar presentations
ECE 4371, Fall, 2014 Introduction to Telecommunication Engineering/Telecommunication Laboratory Zhu Han Department of Electrical and Computer Engineering.
Advertisements

Prof. Brian L. Evans Dept. of Electrical and Computer Engineering The University of Texas at Austin EE445S Real-Time Digital Signal Processing Lab Spring.
CEN352, Dr. Ghulam Muhammad King Saud University
Sampling of continuous-Time Signal What is sampling? How to describe sampling mathematically? Is sampling arbitrary?
Chapter 7 CT Signal Analysis : Fourier Transform Basil Hamed
Digital Signal Processing – Chapter 7
Sampling of Continuous-Time Signals
EE313 Linear Systems and Signals Fall 2010 Initial conversion of content to PowerPoint by Dr. Wade C. Schwartzkopf Prof. Brian L. Evans Dept. of Electrical.
First semester King Saud University College of Applied studies and Community Service 1301CT.
EE313 Linear Systems and Signals Fall 2010 Initial conversion of content to PowerPoint by Dr. Wade C. Schwartzkopf Prof. Brian L. Evans Dept. of Electrical.
Chapter 4: Sampling of Continuous-Time Signals
1 Today's lecture −Concept of Aliasing −Spectrum for Discrete Time Domain −Over-Sampling and Under-Sampling −Aliasing −Folding −Ideal Reconstruction −D-to-A.
… Representation of a CT Signal Using Impulse Functions
EE421, Fall 1998 Michigan Technological University Timothy J. Schulz 08-Sept, 98EE421, Lecture 11 Digital Signal Processing (DSP) Systems l Digital processing.
Chapter 5 Frequency Domain Analysis of Systems. Consider the following CT LTI system: absolutely integrable,Assumption: the impulse response h(t) is absolutely.
Ni.com Data Analysis: Time and Frequency Domain. ni.com Typical Data Acquisition System.
Signals and Systems Lecture 20: Chapter 4 Sampling & Aliasing.
Lecture 1 Signals in the Time and Frequency Domains
Digital Pulse Amplitude Modulation (PAM)
Sampling Theorems. Periodic Sampling Most signals are continuous in time. Example: voice, music, images ADC and DAC is needed to convert from continuous-time.
Prof. Brian L. Evans Dept. of Electrical and Computer Engineering The University of Texas at Austin EE445S Real-Time Digital Signal Processing Lab Fall.
Prof. Brian L. Evans Dept. of Electrical and Computer Engineering The University of Texas at Austin EE445S Real-Time Digital Signal Processing Lab Fall.
Digital Signal Processing
EE345S Real-Time Digital Signal Processing Lab Fall 2006 Lecture 16 Quadrature Amplitude Modulation (QAM) Receiver Prof. Brian L. Evans Dept. of Electrical.
Interpolation and Pulse Shaping
Chapter 5 Frequency Domain Analysis of Systems. Consider the following CT LTI system: absolutely integrable,Assumption: the impulse response h(t) is absolutely.
Prof. Brian L. Evans Dept. of Electrical and Computer Engineering The University of Texas at Austin EE 313 Linear Systems and Signals Spring 2013 Continuous-Time.
1 Prof. Nizamettin AYDIN Advanced Digital Signal Processing.
Signals and Systems Prof. Brian L. Evans Dept. of Electrical and Computer Engineering The University of Texas at Austin EE 382C-9 Embedded Software Systems.
ECE 4710: Lecture #6 1 Bandlimited Signals  Bandlimited waveforms have non-zero spectral components only within a finite frequency range  Waveform is.
Notice  HW problems for Z-transform at available on the course website  due this Friday (9/26/2014) 
1 Introduction to Information Technology LECTURE 6 AUDIO AS INFORMATION IT 101 – Section 3 Spring, 2005.
Signals Prof. Brian L. Evans Dept. of Electrical and Computer Engineering The University of Texas at Austin EE 313 Linear Systems and Signals Fall 2010.
Prof. Brian L. Evans Dept. of Electrical and Computer Engineering The University of Texas at Austin Lecture 4 EE 345S Real-Time.
ECE 4710: Lecture #7 1 Overview  Chapter 3: Baseband Pulse & Digital Signaling  Encode analog waveforms into baseband digital signals »Digital signaling.
Generating Sinusoidal Signals Prof. Brian L. Evans Dept. of Electrical and Computer Engineering The University of Texas at Austin EE 445S Real-Time Digital.
EE445S Real-Time Digital Signal Processing Lab Spring 2014 Lecture 16 Quadrature Amplitude Modulation (QAM) Receiver Prof. Brian L. Evans Dept. of Electrical.
Prof. Brian L. Evans Dept. of Electrical and Computer Engineering The University of Texas at Austin EE345S Real-Time Digital Signal Processing Lab Fall.
EE313 Linear Systems and Signals Fall 2010 Initial conversion of content to PowerPoint by Dr. Wade C. Schwartzkopf Prof. Brian L. Evans Dept. of Electrical.
Digital Signal Processing
Lecture 3: The Sampling Process and Aliasing 1. Introduction A digital or sampled-data control system operates on discrete- time rather than continuous-time.
Continuous-time Signal Sampling
1 What is Multimedia? Multimedia can have a many definitions Multimedia means that computer information can be represented through media types: – Text.
Prof. Brian L. Evans Dept. of Electrical and Computer Engineering The University of Texas at Austin Lecture 3
1 Digital Signal Processing (DSP) By: Prof. M.R.Asharif Department of Information Engineering University of the Ryukyus, Okinawa, Japan.
Chapter 2 Ideal Sampling and Nyquist Theorem
Digital Signal Processing
Lecture 1.4. Sampling. Kotelnikov-Nyquist Theorem.
Sampling and DSP Instructor: Dr. Mike Turi Department of Computer Science & Computer Engineering Pacific Lutheran University.
Prof. Brian L. Evans Dept. of Electrical and Computer Engineering The University of Texas at Austin EE445S Real-Time Digital Signal Processing Lab Spring.
Sampling and Aliasing Prof. Brian L. Evans
Sampling and Aliasing Prof. Brian L. Evans
Module 3 Pulse Modulation.
7.0 Sampling 7.1 The Sampling Theorem
Lecture Signals with limited frequency range
Sampling and Reconstruction
EE Audio Signals and Systems
Generating Sinusoidal Signals
Lecture 10 Digital to Analog (D-to-A) Conversion
Lecture 4 Sampling & Aliasing
Interpolation and Pulse Shaping
Chapter 2 Ideal Sampling and Nyquist Theorem
Rectangular Sampling.
CEN352, Dr. Ghulam Muhammad King Saud University
Chapter 3 Sampling.
Today's lecture System Implementation Discrete Time signals generation
Sampling and Aliasing.
ELEN E4810: Digital Signal Processing Topic 11: Continuous Signals
DIGITAL CONTROL SYSTEM WEEK 3 NUMERICAL APPROXIMATION
State Space approach State Variables of a Dynamical System
Presentation transcript:

Sampling and Aliasing

Outline Data conversion Sampling Aliasing Bandpass sampling Time and frequency domains Sampling theorem Aliasing Bandpass sampling Rolling shutter artifacts Conclusion

Data Conversion Analog-to-Digital Conversion Lowpass filter has stopband frequency less than ½ fs to reduce aliasing at sampler output (enforce sampling theorem) Digital-to-Analog Conversion Discrete-to-continuous conversion could be as simple as sample and hold Lowpass filter has stopband frequency less than ½ fs to reduce artificial high frequencies Analog Lowpass Filter Quantizer Sampler at sampling rate of fs Lecture 8 Lecture 4 Analog Lowpass Filter Discrete to Continuous Conversion fs Lecture 7

Sampling: Time Domain Many signals originate in continuous-time Sampling - Review Sampling: Time Domain Many signals originate in continuous-time Talking on cell phone, or playing acoustic music By sampling a continuous-time signal at isolated, equally-spaced points in time, we obtain a sequence of numbers n  {…, -2, -1, 0, 1, 2,…} Ts is the sampling period. Ts t Ts f(t) Sampled analog waveform impulse train

Sampling: Frequency Domain Sampling - Review Sampling: Frequency Domain Sampling replicates spectrum of continuous-time signal at integer multiples of sampling frequency Fourier series of impulse train where ws = 2 p fs Modulation by cos(s t) Modulation by cos(2 s t) w F(w) 2pfmax -2pfmax w G(w) ws 2ws -2ws -ws How to recover F()?

What happens if fs = 2 fmax? Sampling - Review Sampling Theorem Continuous-time signal x(t) with frequencies no higher than fmax can be reconstructed from its samples x(n Ts) if samples taken at rate fs > 2 fmax Nyquist rate = 2 fmax Nyquist frequency = fs / 2 Example: Sampling audio signals Normal human hearing is from about 20 Hz to 20 kHz Apply lowpass filter before sampling to pass low frequencies up to 20 kHz and reject high frequencies Lowpass filter needs 10% of maximum passband frequency to roll off to zero (2 kHz rolloff in this case) What happens if fs = 2 fmax?

Sampling Theorem Assumption Continuous-time signal has absolutely no frequency content above fmax Sampling time is exactly the same between any two samples Sequence of numbers obtained by sampling is represented in exact precision Conversion of sequence to continuous time is ideal In Practice

Sampling and Oversampling As sampling rate increases above Nyquist rate, sampled waveform looks more like original Zero crossings: frequency content of a sinusoid Distance between two zero crossings: one half period With sampling theorem satisfied, sampled sinusoid crosses zero right number of times per period In some applications, frequency content matters not time-domain waveform shape DSP First, Ch. 4, Sampling/Interpolation demo For username/password help link link

Aliasing Continuous-time sinusoid Sample at Ts = 1/fs x(t) = A cos(2p f0 t + f) Sample at Ts = 1/fs x[n] = x(Tsn) = A cos(2p f0 Ts n + f) Keeping the sampling period same, sample y(t) = A cos(2p (f0 + l fs) t + f) where l is an integer y[n] = y(Tsn) = A cos(2p(f0 + lfs)Tsn + f) = A cos(2pf0Tsn + 2plfsTsn + f) = A cos(2pf0Tsn + 2pln + f) = A cos(2pf0Tsn + f) = x[n] Here, fsTs = 1 Since l is an integer, cos(x + 2 p l) = cos(x) y[n] indistinguishable from x[n]

Aliasing Aliasing Since l is any integer, a countable but infinite number of sinusoids give same sampled sequence Frequencies f0 + l fs for l  0 Called aliases of frequency f0 with respect to fs All aliased frequencies appear same as f0 due to sampling Signal Processing First, Continuous to Discrete Sampling demo (con2dis) link

Aliasing Aliasing Sinusoid sin(2  finput t) sampled at fs = 2000 samples/s with finput varied Mirror image effect about finput = ½ fs gives rise to name of folding fs = 2000 samples/s 1000 Apparent frequency (Hz) 1000 2000 3000 4000 Input frequency, finput (Hz)

Lowpass filter to extract baseband Bandpass Sampling Bandpass Sampling Reduce sampling rate Bandwidth: f2 – f1 Sampling rate fs must be greater than analog bandwidth fs > f2 – f1 For replica to be centered at origin after sampling fcenter = ½(f1 + f2) = k fs Practical issues Sampling clock tolerance: fcenter = k fs Effects of noise Ideal Bandpass Spectrum f1 f2 f –f2 –f1 Sample at fs Sampled Ideal Bandpass Spectrum f1 f2 f –f2 –f1 Lowpass filter to extract baseband

Sampling for Up/Downconversion Bandpass Sampling Sampling for Up/Downconversion Upconversion method Sampling plus bandpass filtering to extract intermediate frequency (IF) band with fIF = kIF fs Downconversion method Bandpass sampling plus bandpass filtering to extract intermediate frequency (IF) band with fIF = kIF fs f fmax -fmax f1 f2 f –f2 –f1 Sample at fs f fs fIF -fIF -fs f –f2 –f1 -fIF fIF

Rolling Shutter Cameras Rolling Shutter Artifacts Rolling Shutter Cameras Smart phone and point-and-shoot cameras No (global) hardware shutter to reduce cost, size, weight Light continuously impinges on sensor array Artifacts due to relative motion between objects and camera Figure from tutorial by Forssen et al. at 2012 IEEE Conf. on Computer Vision & Pattern Recognition

Rolling Shutter Artifacts Plucked guitar strings – global shutter camera String vibration is (correctly) damped sinusoid vs. time “Guitar Oscillations Captured with iPhone 4” Rolling shutter (sampling) artifacts but not aliasing effects Fast camera motion Pan camera fast left/right Pole wobbles and bends Building skewed video video Warped frame Compensated using gyroscope readings (i.e. camera rotation) and video features C. Jia and B. L. Evans, “Probabilistic 3-D Motion Estimation for Rolling Shutter Video Rectification from Visual and Inertial Measurements,” IEEE Multimedia Signal Proc. Workshop, 2012. Link to article.

Conclusion Conclusion Sampling replicates spectrum of continuous-time signal at offsets that are integer multiples of sampling frequency Sampling theorem gives necessary condition to reconstruct the continuous-time signal from its samples, but does not say how to do it Aliasing occurs due to sampling Noise present at all frequencies A/D converter design tradeoffs to control impact of aliasing Bandpass sampling reduces sampling rate significantly by using aliasing to our benefit