Advanced Computer Graphics

Slides:



Advertisements
Similar presentations
Sampling and Reconstruction
Advertisements

Advanced Computer Graphics (Spring 2006) COMS 4162, Lecture 4: Image Processing 1 Ravi Ramamoorthi
Advanced Computer Graphics CSE 190 [Spring 2015], Lecture 4 Ravi Ramamoorthi
Sampling theory Fourier theory made easy
Prof. Brian L. Evans Dept. of Electrical and Computer Engineering The University of Texas at Austin EE445S Real-Time Digital Signal Processing Lab Spring.
Advanced Computer Graphics CSE 190 [Spring 2015], Lecture 5 Ravi Ramamoorthi
School of Computing Science Simon Fraser University
Computer Graphics Recitation 6. 2 Motivation – Image compression What linear combination of 8x8 basis signals produces an 8x8 block in the image?
Advanced Computer Graphics (Fall 2010) CS 283, Lecture 3: Sampling and Reconstruction Ravi Ramamoorthi Some slides.
Sep 15, 2005CS477: Analog and Digital Communications1 Modulation and Sampling Analog and Digital Communications Autumn
CSCE 641 Computer Graphics: Image Sampling and Reconstruction Jinxiang Chai.
General Functions A non-periodic function can be represented as a sum of sin’s and cos’s of (possibly) all frequencies: F(  ) is the spectrum of the function.
CSCE 641 Computer Graphics: Image Sampling and Reconstruction Jinxiang Chai.
Advanced Computer Graphics (Spring 2006) COMS 4162, Lecture 3: Sampling and Reconstruction Ravi Ramamoorthi
CSCE 641 Computer Graphics: Fourier Transform Jinxiang Chai.
Advanced Computer Graphics (Spring 2005) COMS 4162, Lecture 7: Review, Reconstruction Ravi Ramamoorthi
University of British Columbia CPSC 414 Computer Graphics © Tamara Munzner 1 Sampling Week 7, Fri 17 Oct 2003 p1 demos sampling.
Sampling and Aliasing Kurt Akeley CS248 Lecture 3 2 October 2007
CPSC 641 Computer Graphics: Fourier Transform Jinxiang Chai.
Advanced Computer Graphics (Spring 2005) COMS 4162, Lecture 3: Sampling and Reconstruction Ravi Ramamoorthi
Computational Photography: Fourier Transform Jinxiang Chai.
Image Sampling Moire patterns -
Leo Lam © Signals and Systems EE235. Transformers Leo Lam ©
Sampling of Continuous Time Signal Section
Advanced Computer Graphics CSE 190 [Spring 2015], Lecture 3 Ravi Ramamoorthi
Computer Vision Spring ,-685 Instructor: S. Narasimhan Wean 5403 T-R 3:00pm – 4:20pm.
… Representation of a CT Signal Using Impulse Functions
G52IIP, School of Computer Science, University of Nottingham 1 Image Transforms Fourier Transform Basic idea.
Image Processing 고려대학교 컴퓨터 그래픽스 연구실 cgvr.korea.ac.kr.
EE421, Fall 1998 Michigan Technological University Timothy J. Schulz 08-Sept, 98EE421, Lecture 11 Digital Signal Processing (DSP) Systems l Digital processing.
Antialiasing CptS 548 Advanced Computer Graphics John C. Hart.
Pegasus Lectures, Inc. COPYRIGHT 2006 Volume I Companion Presentation Frank R. Miele Pegasus Lectures, Inc. Ultrasound Physics & Instrumentation 4 th Edition.
EE D Fourier Transform. Bahadir K. Gunturk EE Image Analysis I 2 Summary of Lecture 2 We talked about the digital image properties, including.
Chapter 9 Basic Signal Processing. Motivation Many aspects of computer imagery differ from aspects of conventional imagery Computer representations are.
111 Lecture 2 Signals and Systems (II) Principles of Communications Fall 2008 NCTU EE Tzu-Hsien Sang.
1 Chapter 5 Ideal Filters, Sampling, and Reconstruction Sections Wed. June 26, 2013.
Lecture 3: Edge detection CS4670/5670: Computer Vision Kavita Bala From Sandlot ScienceSandlot Science.
09/19/2002 (C) University of Wisconsin 2002, CS 559 Last Time Color Quantization Dithering.
Lecture 7: Sampling Review of 2D Fourier Theory We view f(x,y) as a linear combination of complex exponentials that represent plane waves. F(u,v) describes.
Image Processing Basics. What are images? An image is a 2-d rectilinear array of pixels.
Leo Lam © Signals and Systems EE235 Leo Lam.
2D Sampling Goal: Represent a 2D function by a finite set of points.
CS559: Computer Graphics Lecture 3: Digital Image Representation Li Zhang Spring 2008.
Lecture 5: Fourier and Pyramids
The Frequency Domain Digital Image Processing – Chapter 8.
University of Texas at Austin CS384G - Computer Graphics Fall 2008 Don Fussell Sampling and Reconstruction.
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 Week 7, Fri 17 Oct 2003 p1 demos sampling.
Advanced Computer Graphics
… Sampling … … Filtering … … Reconstruction …
Advanced Computer Graphics
Data Processing As a science major, you will all eventually have to deal with data. All data has noise Devices do not give useful measurements; must convert.
Advanced Computer Graphics
Lecture Signals with limited frequency range
(C) 2002 University of Wisconsin, CS 559
Dr. Nikos Desypris, Oct Lecture 3
General Functions A non-periodic function can be represented as a sum of sin’s and cos’s of (possibly) all frequencies: F() is the spectrum of the function.
Fourier Transform.
Sampling and the Discrete Fourier Transform
CSCE 643 Computer Vision: Image Sampling and Filtering
CSCE 643 Computer Vision: Thinking in Frequency
Sampling and Reconstruction
Interpolation and Pulse Shaping
Filtering Part 2: Image Sampling
Lecture 5: Resampling, Compositing, and Filtering Li Zhang Spring 2008
Lesson Week 8 Fourier Transform of Time Functions (DC Signal, Periodic Signals, and Pulsed Cosine)
Chapter 3 Sampling.
Lecture 7: Signal Processing
Digital Signal Processing
Data Processing Chapter 3
Presentation transcript:

Advanced Computer Graphics CSE 163 [Spring 2017], Lecture 3 Ravi Ramamoorthi http://www.cs.ucsd.edu/~ravir

To Do Sign up for Piazza Assignment 1, Due Apr 28. Anyone need help finding partners? Any issues with skeleton code? Please START EARLY

Some slides courtesy Tom Funkhouser Outline Basic ideas of sampling, reconstruction, aliasing Signal processing and Fourier analysis Implementation of digital filters (second part of homework): next lecture Section 14.10 of FvDFH 2nd edition (should read) Readings: Chapter 13 (color) and 14.10 Some slides courtesy Tom Funkhouser

Sampling and Reconstruction An image is a 2D array of samples Discrete samples from real-world continuous signal

Sampling and Reconstruction

(Spatial) Aliasing

(Spatial) Aliasing Jaggies probably biggest aliasing problem

Sampling and Aliasing Artifacts due to undersampling or poor reconstruction Formally, high frequencies masquerading as low E.g. high frequency line as low freq jaggies

Image Processing pipeline

Some slides courtesy Tom Funkhouser Outline Basic ideas of sampling, reconstruction, aliasing Signal processing and Fourier analysis Implementation of digital filters (second part of homework): next lecture Section 14.10 of FvDFH 2nd edition (should read) Readings: Chapter 13 (color) and 14.10 Some slides courtesy Tom Funkhouser

Motivation Formal analysis of sampling and reconstruction Important theory (signal-processing) for graphics Also relevant in rendering, modeling, animation

Ideas Signal (function of time generally, here of space) Continuous: defined at all points; discrete: on a grid High frequency: rapid variation; Low Freq: slow variation Images are converting continuous to discrete. Do this sampling as best as possible. Signal processing theory tells us how best to do this Based on concept of frequency domain Fourier analysis

Sampling Theory Analysis in the frequency (not spatial) domain Sum of sine waves, with possibly different offsets (phase) Each wave different frequency, amplitude

Fourier Transform Tool for converting from spatial to frequency domain Or vice versa One of most important mathematical ideas Computational algorithm: Fast Fourier Transform One of 10 great algorithms scientific computing Makes Fourier processing possible (images etc.) Not discussed here, but look up if interested

Fourier Transform Simple case, function sum of sines, cosines Continuous infinite case

Fourier Transform Simple case, function sum of sines, cosines Discrete case

Fourier Transform: Examples 1 Single sine curve (+constant DC term)

Fourier Transform Examples 2 Common examples

Fourier Transform Properties Common properties Linearity: Derivatives: [integrate by parts] 2D Fourier Transform Convolution (next)

Sampling Theorem, Bandlimiting A signal can be reconstructed from its samples, if the original signal has no frequencies above half the sampling frequency – Shannon The minimum sampling rate for a bandlimited function is called the Nyquist rate

Sampling Theorem, Bandlimiting A signal can be reconstructed from its samples, if the original signal has no frequencies above half the sampling frequency – Shannon The minimum sampling rate for a bandlimited function is called the Nyquist rate A signal is bandlimited if the highest frequency is bounded. This frequency is called the bandwidth In general, when we transform, we want to filter to bandlimit before sampling, to avoid aliasing

Antialiasing Sample at higher rate Prefilter to bandlimit signal Not always possible Real world: lines have infinitely high frequencies, can’t sample at high enough resolution Prefilter to bandlimit signal Low-pass filtering (blurring) Trade blurriness for aliasing

Ideal bandlimiting filter Formal derivation is homework exercise

Some slides courtesy Tom Funkhouser Outline Basic ideas of sampling, reconstruction, aliasing Signal processing and Fourier analysis Convolution Implementation of digital filters (second part of homework): next lecture Section 14.10 of FvDFH 2nd edition (should read) Readings: Chapter 13 (color) and 14.10 Some slides courtesy Tom Funkhouser

Convolution 1

Convolution 2

Convolution 3

Convolution 4

Convolution 5

Convolution in Frequency Domain Convolution (f is signal ; g is filter [or vice versa]) Fourier analysis (frequency domain multiplication)

Practical Image Processing Discrete convolution (in spatial domain) with filters for various digital signal processing operations Easy to analyze, understand effects in frequency domain E.g. blurring or bandlimiting by convolving with low pass filter

Some slides courtesy Tom Funkhouser Outline Basic ideas of sampling, reconstruction, aliasing Signal processing and Fourier analysis Implementation of digital filters (second part of homework): next lecture Section 14.10 of FvDFH 2nd edition (should read) Readings: Chapter 13 (color) and 14.10 Some slides courtesy Tom Funkhouser