Sampling Theory. CS5625 Lecture Steve Marschner. Cornell CS5625 Spring 2016 Lecture 7

Similar documents
Sampling and reconstruction

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

Sampling and reconstruction. CS 4620 Lecture 13

Sampling and Reconstruction

Sampling and reconstruction

Filters. Materials from Prof. Klaus Mueller

ECE 484 Digital Image Processing Lec 09 - Image Resampling

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

Antialiasing and Related Issues

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

Image Resizing. Reminder no class next Tuesday, but your problem set is due. 9/19/08 Comp 665 Image Resizing 1

CS4495/6495 Introduction to Computer Vision. 2C-L3 Aliasing

Sampling and Signal Processing

Texture mapping from 0 to infinity

Sampling and Reconstruction

CS 775: Advanced Computer Graphics. Lecture 12 : Antialiasing

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

Lecture Schedule: Week Date Lecture Title

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

! Multi-Rate Filter Banks (con t) ! Data Converters. " Anti-aliasing " ADC. " Practical DAC. ! Noise Shaping

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

Wavelet Transform. From C. Valens article, A Really Friendly Guide to Wavelets, 1999

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

Module 3 : Sampling and Reconstruction Problem Set 3

Signal Characteristics

Sampling and Reconstruction of Analog Signals

Image Sampling. Moire patterns. - Source: F. Durand

DISCRETE FOURIER TRANSFORM AND FILTER DESIGN

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

Multirate Digital Signal Processing

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

Introduction to Wavelets Michael Phipps Vallary Bhopatkar

SAMPLING THEORY. Representing continuous signals with discrete numbers

Image Filtering and Gaussian Pyramids

Signal Processing for Speech Applications - Part 2-1. Signal Processing For Speech Applications - Part 2

Nyquist's criterion. Spectrum of the original signal Xi(t) is defined by the Fourier transformation as follows :

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

Image Interpolation. Image Processing

Transforms and Frequency Filtering

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

Digital Filters IIR (& Their Corresponding Analog Filters) Week Date Lecture Title

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

Biomedical Signals. Signals and Images in Medicine Dr Nabeel Anwar

FFT analysis in practice

Final Exam Solutions June 7, 2004

ESE 531: Digital Signal Processing

Frequency Division Multiplexing Spring 2011 Lecture #14. Sinusoids and LTI Systems. Periodic Sequences. x[n] = x[n + N]

Introduction to Wavelet Transform. Chapter 7 Instructor: Hossein Pourghassem

The quality of the transmission signal The characteristics of the transmission medium. Some type of transmission medium is required for transmission:

Signals A Preliminary Discussion EE442 Analog & Digital Communication Systems Lecture 2

Biomedical Instrumentation B2. Dealing with noise

System analysis and signal processing

Antialiasing & Compositing

Appendix B. Design Implementation Description For The Digital Frequency Demodulator

Lecture 3, Multirate Signal Processing

MULTIRATE DIGITAL SIGNAL PROCESSING

Digital Signal Processing

Sampling and Reconstruction

Digital Signal Processing

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

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

(Refer Slide Time: 01:45)

END-OF-YEAR EXAMINATIONS ELEC321 Communication Systems (D2) Tuesday, 22 November 2005, 9:20 a.m. Three hours plus 10 minutes reading time.

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

ENGR 210 Lab 12: Sampling and Aliasing

Multirate DSP, part 1: Upsampling and downsampling

Digital Processing of Continuous-Time Signals

Prof. Feng Liu. Fall /04/2018

Wavelet Transform. From C. Valens article, A Really Friendly Guide to Wavelets, 1999

Exercise Problems: Information Theory and Coding

Fourier Theory & Practice, Part I: Theory (HP Product Note )

Digital Processing of

Fourier and Wavelets

TRANSFORMS / WAVELETS

Two-Dimensional Wavelets with Complementary Filter Banks

The Discrete Fourier Transform. Claudia Feregrino-Uribe, Alicia Morales-Reyes Original material: Dr. René Cumplido

2D Discrete Fourier Transform

Design of FIR Filters

Design IV. E232 Spring 07

+ a(t) exp( 2πif t)dt (1.1) In order to go back to the independent variable t, we define the inverse transform as: + A(f) exp(2πif t)df (1.

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

Sampling and Reconstruction. Today: Color Theory. Color Theory COMP575

The Scientist and Engineer's Guide to Digital Signal Processing By Steven W. Smith, Ph.D.

PROBLEM SET 5. Reminder: Quiz 1will be on March 6, during the regular class hour. Details to follow. z = e jω h[n] H(e jω ) H(z) DTFT.

To Do. Advanced Computer Graphics. Image Compositing. Digital Image Compositing. Outline. Blue Screen Matting

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

Fourier transforms, SIM

EE 215 Semester Project SPECTRAL ANALYSIS USING FOURIER TRANSFORM

Subband coring for image noise reduction. Edward H. Adelson Internal Report, RCA David Sarnoff Research Center, Nov

Lecture Fundamentals of Data and signals

DIGITAL SIGNAL PROCESSING CCC-INAOE AUTUMN 2015

Digital Signal Processing

MITOCW MITRES_6-007S11lec18_300k.mp4

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

The Intuitions of Signal Processing (for Motion Editing)

Orthonormal bases and tilings of the time-frequency plane for music processing Juan M. Vuletich *

Signal processing preliminaries

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

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

2) How fast can we implement these in a system

Transcription:

Sampling Theory CS5625 Lecture 7

Sampling example (reminder) When we sample a high-frequency signal we don t get what we expect result looks like a lower frequency not possible to distinguish between this and a low-frequency signal

Sneak preview Sampling creates copies of the signal at higher frequencies Aliasing is these frequencies leaking into the reconstructed signal frequency f s x shows up as frequency x The solution is filtering during sampling, filter to keep the high frequencies out so they don t create aliases at the lower frequencies during reconstruction, again filter high frequencies to avoid including high-frequency aliases in the output.

Checkpoint Want to formalize sampling and reconstruction define impulses then we can talk about S&R with only one datatype Define Fourier transform Destination: explaining how aliases leak into result

Mathematical model We have said sampling is storing the values on a grid For analysis it s useful to think of the sampled representation in the same space as the original I ll do this using impulse functions at the sample points

Impulse function A function that is confined to a very small interval but still has unit integral really, the limit of a sequence of ever taller and narrower functions also called Dirac delta function Key property: multiplying by an impulse selects the value at a point Defn via integral Impulse is the identity for convolution impulse response of a filter

Sampling & recon. reinterpreted Start with a continuous signal Convolve it with the sampling filter Multiply it by an impulse grid Convolve it with the reconstruction filter

[F

Checkpoint Formalized sampling and reconstruction used impulses with multiplication and convolution can talk about S&R with only one datatype Define Fourier transform Destination: explaining how aliases leak into result

Fourier series Probably familiar idea of adding up sines and cosines to approximate a periodic function

Fourier series

Fourier transform Like Fourier series but for aperiodic functions Fourier series: only multiples of base frequency Fourier transform: let period go to infinity eventually all frequencies are needed result: countable sum turns into integral

The Fourier transform Any function on the real line can be represented as an infinite sum of sine waves [F

The Fourier transform

The Fourier transform The coefficients of those sine waves form a continuous function of frequency That function, which has the same datatype as the first one, is the Fourier transform. Phase encoded in complex number

Fourier transform properties F.T. is its own inverse (just about) Frequency space is a dual representation amplitude known as spectrum [FvDFH fig.14.15 / Wolberg]

Fourier pairs sinusoid impulse pair box sinc tent sinc 2 bspline sinc 4 gaussian gaussian (inv. width) imp. grid imp. grid (1/d spacing) [FvDFH fig.14.25 / Wolberg]

More Fourier facts F.T. preserves energy That is, the squared integral DC component (average value) It shows up at F(0)

More Fourier facts Dilation (stretching/squashing) Results in inverse dilation in F.T.

Convolution and multiplication They are dual to one another under F.T. Lowpass filters Most of our blurring filters have most of their F.T. at low frequencies Therefore they attenuate higher frequencies

Checkpoint Formalized sampling and reconstruction used impulses with multiplication and convolution Can talk about S&R with only one datatype Defined Fourier transform alternate representation for functions turns convolution, which seems hard, into multiplication, which is easy Destination: explaining how aliases leak into result

Sampling and reconstruction in F.T. Look at our sampling/reconstruction formulation in Fourier domain Convolve with filter = remove high frequencies Multiply by impulse grid = convolve with impulse grid that is, make a bunch of copies Convolve with filter = remove extra copies Left with approximation of original but filtered a couple of times

Aliasing in sampling/reconstruction

Aliasing in sampling If sampling filter is not adequate, spectra will overlap No way to fix once it s happened can only use drastic reconstruction filter to eliminate Nyquist criterion

Preventing aliasing in sampling Use high enough sample frequency works when signal is band limited sample rate 2 * (highest freq.) is enough to capture all details Filter signal to remove high frequencies make the signal band limited remove frequencies above 0.5 * (sample freq.) (Nyquist)

Effect of sample rate on aliasing

Smoothing (lowpass filtering)

Effect of smoothing on aliasing

Aliasing in reconstruction If reconstruction filter is inadequate, will catch alias spectra Result: high frequency alias components Can happen even if sampling is ideal

Reconstruction filters

Sampling filters Ideal is box filter in frequency which is sinc function in space Finite support is desirable compromises are necessary Filter design: passband, stopband, and in between [Glassner fig.5-27]

Useful sampling filters Sampling theory gives criteria for choosing Box filter sampling: unweighted area average reconstruction: e.g. LCD Gaussian filter sampling: gaussian-weighted area average reconstruction: e.g. CRT Piecewise cubic good small-support reconstruction filter popular choice for high-quality resampling

Resampling filters Resampling, logically, is two steps first: reconstruct continuous signal second: sample signal at the new sample rate Each step requires filtering reconstruction filter sampling filter This amounts to two successive convolutions so regroup into one operation: single filter both reconstructs and antialiases

Resampling in frequency space

Sizing reconstruction filters Has to perform as a reconstruction filter has to be at least big enough relative to input grid Has to perform as a sampling filter has to be at least big enough relative to output grid Result: filter size is max of two grid spacings upsampling (enlargement): determined by input downsampling (reduction): determined by output for intuition think of extreme case (10x larger or smaller)

Summary Want to explain aliasing and answer questions about how to avoid it Formalized sampling and reconstruction using impulse grids and convolution Fourier transform gives insight into what happens when we sample Nyquist criterion tells us what kind of filters to use

Supersampling When we can t have a bandlimited signal we can improve matters by taking several samples per pixel think of this as an estimate of the convolution integral Regular sampling is a simple quadrature rule: I[i, j] = X Z I(x k,y k )A k I(x, y)da k Irregular sampling can be seen as a Monte Carlo estimate: I[i, j] = X k I(x k,y k ) Z I(x, y)p(x, y)dxdy

Regular supersampling in FT Really, we are first sampling at a higher rate, then convolving with the sampling filter regular supersampling pushes the alias spectra farther away from the main spectrum the signal we are sampling still contains regular spikes, though Irregular sampling patterns have a different kind of FT. Dong-Ming Yan et al. J Comp. Sci. Tech. 2015