!"!#"#$% Lecture 2: Media Creation. Some materials taken from Prof. Yao Wang s slides RECAP

Similar documents
Sampling and Reconstruction of Analog Signals

Chapter 2: Digitization of Sound

Sampling of Continuous-Time Signals. Reference chapter 4 in Oppenheim and Schafer.

Module 3 : Sampling and Reconstruction Problem Set 3

Islamic University of Gaza. Faculty of Engineering Electrical Engineering Department Spring-2011

Lecture Schedule: Week Date Lecture Title

Advanced Digital Signal Processing Part 2: Digital Processing of Continuous-Time Signals

PROBLEM SET 6. Note: This version is preliminary in that it does not yet have instructions for uploading the MATLAB problems.

Figure 1: Block diagram of Digital signal processing

Sampling and Signal Processing

Discrete-time Signals & Systems

ECE 484 Digital Image Processing Lec 09 - Image Resampling

Digital Processing of Continuous-Time Signals

Digital Processing of

Last Lecture. photomatix.com

Sampling and Reconstruction

Lecture 7 Frequency Modulation

Music 270a: Fundamentals of Digital Audio and Discrete-Time Signals

Digital Signal Processing

Continuous vs. Discrete signals. Sampling. Analog to Digital Conversion. CMPT 368: Lecture 4 Fundamentals of Digital Audio, Discrete-Time Signals

Filters. Materials from Prof. Klaus Mueller

The Sampling Theorem:

Multirate Signal Processing, DSV2 Introduction Lecture: Mi., 9-10:30 HU 010 Seminar: Do. 9-10:30, K2032

Multirate DSP, part 1: Upsampling and downsampling

Chapter 9. Chapter 9 275

Design IV. E232 Spring 07

ece 429/529 digital signal processing robin n. strickland ece dept, university of arizona ECE 429/529 RNS

CMPT 318: Lecture 4 Fundamentals of Digital Audio, Discrete-Time Signals

In The Name of Almighty. Lec. 2: Sampling

Laboratory Assignment 5 Amplitude Modulation

Electrical & Computer Engineering Technology

Last Lecture. photomatix.com

EE 230 Lecture 39. Data Converters. Time and Amplitude Quantization

Chapter-2 SAMPLING PROCESS

Discrete-time Signals & Systems

Filter Banks I. Prof. Dr. Gerald Schuller. Fraunhofer IDMT & Ilmenau University of Technology Ilmenau, Germany. Fraunhofer IDMT

Signal Processing Toolbox

! Where are we on course map? ! What we did in lab last week. " How it relates to this week. ! Sampling/Quantization Review

Laboratory Assignment 4. Fourier Sound Synthesis

Computer Graphics (Fall 2011) Outline. CS 184 Guest Lecture: Sampling and Reconstruction Ravi Ramamoorthi

Sampling, interpolation and decimation issues

Signals and Systems. Lecture 13 Wednesday 6 th December 2017 DR TANIA STATHAKI

ECE 2111 Signals and Systems Spring 2012, UMD Experiment 9: Sampling

Multirate Digital Signal Processing

Final Exam Solutions June 14, 2006

The University of Texas at Austin Dept. of Electrical and Computer Engineering Final Exam

Introduction of Audio and Music

Communications IB Paper 6 Handout 3: Digitisation and Digital Signals

קורס גרפיקה ממוחשבת 2008 סמסטר ב' Image Processing 1 חלק מהשקפים מעובדים משקפים של פרדו דוראנד, טומס פנקהאוסר ודניאל כהן-אור

Concordia University. Discrete-Time Signal Processing. Lab Manual (ELEC442) Dr. Wei-Ping Zhu

Multirate Signal Processing Lecture 7, Sampling Gerald Schuller, TU Ilmenau

Chapter 3 Data Transmission COSC 3213 Summer 2003

Waveform Encoding - PCM. BY: Dr.AHMED ALKHAYYAT. Chapter Two

Moving from continuous- to discrete-time

Based with permission on lectures by John Getty Laboratory Electronics II (PHSX262) Spring 2011 Lecture 9 Page 1

QUESTION BANK. SUBJECT CODE / Name: EC2301 DIGITAL COMMUNICATION UNIT 2

Multirate Signal Processing, DSV2 Introduction

Image Interpolation. Image Processing

Final Exam. EE313 Signals and Systems. Fall 1999, Prof. Brian L. Evans, Unique No

Image Processing. What is an image? קורס גרפיקה ממוחשבת 2008 סמסטר ב' Converting to digital form. Sampling and Reconstruction.

Signals and Systems Lecture 6: Fourier Applications

4. Design of Discrete-Time Filters

Discrete-Time Signal Processing (DTSP) v14

Fourier Transform. Any signal can be expressed as a linear combination of a bunch of sine gratings of different frequency Amplitude Phase

MITOCW MITRES_6-007S11lec18_300k.mp4

CSCD 433 Network Programming Fall Lecture 5 Physical Layer Continued

Final Exam Practice Questions for Music 421, with Solutions

ECE438 - Laboratory 7a: Digital Filter Design (Week 1) By Prof. Charles Bouman and Prof. Mireille Boutin Fall 2015

Signals and Systems Lecture 6: Fourier Applications

Antialiasing and Related Issues

Experiment 8: Sampling

DIGITAL SIGNAL PROCESSING. Chapter 1 Introduction to Discrete-Time Signals & Sampling

Pulse Code Modulation (PCM)

Two-Dimensional Wavelets with Complementary Filter Banks

Aliasing and Antialiasing. What is Aliasing? What is Aliasing? What is Aliasing?

Sampling and pixels. CS 178, Spring Marc Levoy Computer Science Department Stanford University. Begun 4/23, finished 4/25.

Audio /Video Signal Processing. Lecture 1, Organisation, A/D conversion, Sampling Gerald Schuller, TU Ilmenau

Figure z1, Direct Programming Method ... Numerator Denominator... Vo/Vi = N(1+D1) Vo(1+D ) = ViN Vo = ViN-VoD

Outline. Discrete time signals. Impulse sampling z-transform Frequency response Stability INF4420. Jørgen Andreas Michaelsen Spring / 37 2 / 37

Compression. Encryption. Decryption. Decompression. Presentation of Information to client site

2: Audio Basics. Audio Basics. Mark Handley

EECS 452 Midterm Exam (solns) Fall 2012

Multirate Filtering, Resampling Filters, Polyphase Filters. or how to make efficient FIR filters

Image Processing. Image Processing. What is an Image? Image Resolution. Overview. Sources of Error. Filtering Blur Detect edges

Communication Theory II


FAST Fourier Transform (FFT) and Digital Filtering Using LabVIEW

Analog-Digital Interface

Understanding Digital Signal Processing

Sampling and Reconstruction

Module 9: Multirate Digital Signal Processing Prof. Eliathamby Ambikairajah Dr. Tharmarajah Thiruvaran School of Electrical Engineering &

Image acquisition. Midterm Review. Digitization, line of image. Digitization, whole image. Geometric transformations. Interpolation 10/26/2016

06: Thinking in Frequencies. CS 5840: Computer Vision Instructor: Jonathan Ventura

Sampling and reconstruction. CS 4620 Lecture 13

Lecture 3 Review of Signals and Systems: Part 2. EE4900/EE6720 Digital Communications

Communications I (ELCN 306)

Team proposals are due tomorrow at 6PM Homework 4 is due next thur. Proposal presentations are next mon in 1311EECS.

EE 421L Digital Electronics Laboratory. Laboratory Exercise #9 ADC and DAC

Thinking in Frequency

Excuse Me Sir, Will That Be One Millisecond Or Two??

Transcription:

Lecture 2: Media Creation Some materials taken from Prof. Yao Wang s slides RECAP #%

A Big Umbrella Content Creation: produce the media, compress it to a format that is portable/ deliverable Distribution: how the message arrives is often as important as what the message is Search: finding the information you need Protection: we care about privacy and security, ownership and digital rights The four are tangled together A Multimedia System &%

A Multimedia System Digital Data Acquisition Analog-to-digital conversion Sampling Filtering Formatting Image, video, audio Adding colors Roadmap Today: Digital data acquisition Sampling Quantization Aliasing Filtering Next 2 Lectures Media formats Adding colors!%

Digital Data Acquisition Source: Analog Output: Digital Analog Digital Two Steps Sampling: take samples at time nt T: sampling period; f s = 1/T: sampling frequency Quantization: map amplitude values into a set of discrete values '%

Sampling! = x s (n)=x(nt), T is the sampling period f s =1/T is the sampling frequency Recover Continuous Signals from Samples Connecting samples using interpolation kernels Sampling and hold (rectangular kernels) Linear interpolation (triangular kernels) High order kernels (%

Sampling & Reconstruction Artifacts of Sampling After sampling, two different data can appear to be the same Need to carefully choose sampling frequency )%

Artifacts of Sampling Intensity quantization Not enough intensity resolution Spatial aliasing Not enough spatial resolution Temporal aliasing Not enough temporal resolution Spatial Aliasing Limited spatial resolution *%

Sampling Theory How many samples are required to represent a given signal without loss of information? What signals can be reconstructed without loss for a given sampling rate? Finding the Right Sampling Rate Given the waveform, find the shortest ripple, there should be at least two samples in the shortest ripple Signal bandwidth: f M =1/T min Required sampling frequency: f s >= 2f M +%

Sampling Theorem A signal can be reconstructed from its samples, if the original signal has no frequencies above 1/2 the sampling frequency The minimum sampling rate for band-limited function is called Nyquist rate This means: T (or f s ) depends on the signal frequency range A fast varying signal should be sampled more frequently! speech: f s >8KHz; music, f s >44KHz Spatial! Frequency Spatial domain view Frequency domain view F(u) = Fourier transform & % #% f (x)" e #2$ixu dx Bandwidth A signal is band-limited if its highest frequency is bounded.,%

Example: Time domain signal Frequency domain view: A box Spatial domain view: A Sinc function Example: Image & Audio Spatial view Frequency view #$%

Before and After Sampling Spatial domain Frequency domain 1 -f M f M Sampling! frequency signal duplications at k fs 1/T -f s -f M f M f s T f s =1/T Original signal Reconstruction (Frequency domain view) 1 -f M f M Sampled signal f s > =2f M 1/T -f s -f M f M f s Ideal reconstruction! signal x low-pass filter in frequency domain T -f s /2 1 f s /2 Reconstructed signal = original signal -f M f M ##%

Ideal Reconstruction Filter Frequency domain view Spatial domain view Frequency domain multiplication = Time domain convolution Reconstruction (Frequency domain view) Original signal 1 -f M f M Sampled signal f s < 2f M 1/T -f s -f M f M f s T Ideal reconstruction Filter (low-pass) Reconstructed signal!= original signal -f s /2 f s /2 1 -f M f M Alias due to insufficient sampling rate #&%

Sampling with Pre-filtering H If f s < 2f M, aliasing will occur Given f s, pre-filter the continuous signal to control f M, and make f s >= 2f M Ideal filter H: low-pass filter with cutoff frequency at f s /2 Practical filter H: averaging within one sample interval May blur edges in images Original signal Anti-Aliasing via Pre-filter 1 Pre-filter -f M 1 f M Sampled signal f s < 2f M -f s /2 f s /2 1/T -f s T f s Ideal reconstruction Filter (low-pass) 1 No alias, but blurred Reconstructed signal!= original signal -f M f M #!%

Image Examples Original image, frequency domain view Frequency response of a low-pass filter Changing Sampling Rate #'%

Down-Sampling Try down sample by 2 T =2T f s =f s /2 Problem! aliasing of high frequency content from the original Solution? smooth original signal before down sampling Down Sampling by a Factor of K: Procedure Step 1: Apply a prefilter to limit the bandwidth of the original to 1/K-th of the original Without prefiltering, aliasing occurs in the down-sampled data Ideal filter: low-pass filter with cut-off frequency f=f M /K Practical filter: averaging of weighted averaging over a neighborhood Step 2: Take every M-th sample from existing samples #(%

Down-Sampling Example Given a sequence of numbers, down-sample by 2 Original sequence:1,3,4,7,8,9,13,15 Without prefiltering, take every other sample: 1,4,8,13,... With 2-sample averaging filter Filtered value=0.5*self+0. 5*right, filter h[n]=[0.5,0.5] Resulting sequence: 2, 5.5,8.5,14,. With 3-sample weighted averaging filter Filtered value=0.5*self+0.25*left+0.25*right, filter h[n]= [0.25,0.5,0.25] Resulting sequence (assuming zeros for samples left of first): 1.25, 4.5,8,12.5,.. Up-Sampling Via interpolation Insert L-1 samples between every two existing samples T =T/L, f s =f s L Interpolation Insert L-1 zeros Low-pass filtering to estimate missing samples Simplest: linear interpolation #)%

Example Given a sequence of numbers, up-sample by 2 Original sequence: 1,3,4,7,8,9,13,15 Zero-padding: 1,0,3,0,4,0,7,0, Sample and hold Repeat the left neighbor, filter h[n]=[1,1] Outcome: 1,1,3,3,4,4,7,7, With linear interpolation New sample=0.5*left+0.5*right, filter h[n]=[0.5,1,0.5] Outcome:1,2,3,3.5,4,5.5,7,8,...,. Summary of Up & Down Sampling Down Sampling Pre-filtering! avoid aliasing Up Sampling Post-filtering! interpolation #*%

More about Filtering Multiplication in frequency domain! convolution in spatial domain Typical filters Lowpass! smoothing, noise removal Highpass! edge/transition detection Bandpass! Retain only a certain frequency range Sound wav in time Demo - Filtering Frequency map Via a low-pass filter -f M f M Via a high-pass filter Via a band-stop filter #+%

Demo Pre-filtering The pre-filter cannot cover all the bandwidth Image Examples Original image, frequency domain view Frequency response of a low-pass filter #,%

Image Examples Original image, frequency domain view Frequency response of a high-pass filter One More! &$%

Things We Learned Today Sampling: Derive the minimally required sampling rate: f s >2f max,ts < T min /2 Can estimate T min from signal waveform Can plot the spectrum of a sampled signal The sampled signal spectrum contains the original spectrum and its replicas (aliases) at k f s, k=+/- 1,2,... Can determine whether the sampled signal suffers from aliasing Understand why do we need a prefilter when sampling a signal To avoid alising Ideally, the filter should be a lowpass filter with cutoff frequency at f s /2. Can show the aliasing phenomenon Things We Learned Today Interpolation Can illustrate sample-and-hold and linear interpolation from samples. Understand why the ideal interpolation filter is a lowpass filter with cutoff frequency at fs /2. Sampling Rate Conversion: Know the meaning of down-sampling and upsampling Understand the need for prefiltering before down-sampling To avoid aliasing Know how to apply simple averaging filter for downsampling Can illustrate up-sampling by sample-and-hold and linear interpolation Filtering concept Know how to apply filtering in the frequency domain Can interpret the function of a filter based on its frequency response &#%

Homework Assignment Chapter 2: exercise pg. 44-47 Question 2, 5, 9 Due: wed. April 7 before class &&%