Computer Graphics Recitation 6. 2 Motivation – Image compression What linear combination of 8x8 basis signals produces an 8x8 block in the image?

Slides:



Advertisements
Similar presentations
DCSP-11 Jianfeng Feng
Advertisements

Time Series II.
Fourier Transforms and Their Use in Data Compression
Digital Kommunikationselektronik TNE027 Lecture 5 1 Fourier Transforms Discrete Fourier Transform (DFT) Algorithms Fast Fourier Transform (FFT) Algorithms.
Fourier Transform (Chapter 4)
Frequency Domain The frequency domain
Fourier Transform – Chapter 13. Image space Cameras (regardless of wave lengths) create images in the spatial domain Pixels represent features (intensity,
School of Computing Science Simon Fraser University
Digital Image Processing
Computer Graphics Recitation 7. 2 Motivation – Image compression What linear combination of 8x8 basis signals produces an 8x8 block in the image?
Spectral bases for 3D shapes representation. Spectral bases – reminder Last week we spoke of Fourier analysis  1D sine/cosine bases for signals:
Intro to Fourier Analysis Definition Analysis of periodic waves Analysis of aperiodic waves Digitization Time-frequency uncertainty.
Advanced Computer Graphics (Spring 2006) COMS 4162, Lecture 3: Sampling and Reconstruction Ravi Ramamoorthi
SWE 423: Multimedia Systems Chapter 7: Data Compression (3)
Fourier Analysis Without Tears : Computational Photography Alexei Efros, CMU, Fall 2005 Somewhere in Cinque Terre, May 2005.
Signals, Fourier Series
1 Computer Science 631 Lecture 4: Wavelets Ramin Zabih Computer Science Department CORNELL UNIVERSITY.
Advanced Computer Graphics (Spring 2005) COMS 4162, Lecture 3: Sampling and Reconstruction Ravi Ramamoorthi
The Frequency Domain : Computational Photography Alexei Efros, CMU, Fall 2008 Somewhere in Cinque Terre, May 2005 Many slides borrowed from Steve.
T.Sharon-A.Frank 1 Multimedia Image Compression 2 T.Sharon-A.Frank Coding Techniques – Hybrid.
SWE 423: Multimedia Systems Chapter 7: Data Compression (5)
Digital Image Processing, 2nd ed. © 2002 R. C. Gonzalez & R. E. Woods Chapter 4 Image Enhancement in the Frequency Domain Chapter.
Chapter 15 Fourier Series and Fourier Transform
Advanced Computer Graphics CSE 190 [Spring 2015], Lecture 3 Ravi Ramamoorthi
Discrete-Time and System (A Review)
EE421, Fall 1998 Michigan Technological University Timothy J. Schulz 08-Sept, 98EE421, Lecture 11 Digital Signal Processing (DSP) Systems l Digital processing.
Lecture 1 Signals in the Time and Frequency Domains
Fourier Series Summary (From Salivahanan et al, 2002)
Transforms. 5*sin (2  4t) Amplitude = 5 Frequency = 4 Hz seconds A sine wave.
Fundamentals of Electric Circuits Chapter 17
Image Processing © 2002 R. C. Gonzalez & R. E. Woods Lecture 4 Image Enhancement in the Frequency Domain Lecture 4 Image Enhancement.
1 Chapter 5 Image Transforms. 2 Image Processing for Pattern Recognition Feature Extraction Acquisition Preprocessing Classification Post Processing Scaling.
Wireless and Mobile Computing Transmission Fundamentals Lecture 2.
DCT cs195g: Computational Photography James Hays, Brown, Spring 2010 Somewhere in Cinque Terre, May 2005 Slides from Alexei Efros.
Part I: Image Transforms DIGITAL IMAGE PROCESSING.
09/19/2002 (C) University of Wisconsin 2002, CS 559 Last Time Color Quantization Dithering.
Digital Image Processing, 2nd ed. © 2002 R. C. Gonzalez & R. E. Woods Background Any function that periodically repeats itself.
Recap of Monday linear Filtering convolution differential filters filter types boundary conditions.
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.
Image as a linear combination of basis images
Dr. Scott Umbaugh, SIUE Discrete Transforms.
INTRODUCTION TO SIGNALS
Fourier Transform.
Chapter 8 Lossy Compression Algorithms. Fundamentals of Multimedia, Chapter Introduction Lossless compression algorithms do not deliver compression.
CS 376b Introduction to Computer Vision 03 / 17 / 2008 Instructor: Michael Eckmann.
Image hole-filling. Agenda Project 2: Will be up tomorrow Due in 2 weeks Fourier – finish up Hole-filling (texture synthesis) Image blending.
Chapter 2. Characteristics of Signal ※ Signal : transmission of information The quality of the information depends on proper selection of a measurement.
Fourier transform.
CH#3 Fourier Series and Transform 1 st semester King Saud University College of Applied studies and Community Service 1301CT By: Nour Alhariqi.
Fourier Transform (Chapter 4) CS474/674 – Prof. Bebis.
Fourier Analysis Patrice Koehl Department of Biological Sciences National University of Singapore
Signal Fndamentals Analogue, Discrete and Digital Signals
Chapter 8 Lossy Compression Algorithms
Advanced Computer Graphics
Continuous-Time Signal Analysis
Image Enhancement in the
Image Pyramids and Applications
CSI-447: Multimedia Systems
Dr. Nikos Desypris, Oct Lecture 3
Fourier Transform.
All about convolution.
UNIT II Analysis of Continuous Time signal
Frequency Domain Analysis
CSCE 643 Computer Vision: Image Sampling and Filtering
1-D DISCRETE COSINE TRANSFORM DCT
Fourier Analysis Without Tears
8.6 Autocorrelation instrument, mathematical definition, and properties autocorrelation and Fourier transforms cosine and sine waves sum of cosines Johnson.
Digital Image Procesing Discrete CosineTrasform (DCT) in Image Processing DR TANIA STATHAKI READER (ASSOCIATE PROFFESOR) IN SIGNAL PROCESSING IMPERIAL.
Digital Image Procesing Unitary Transforms Discrete Fourier Trasform (DFT) in Image Processing DR TANIA STATHAKI READER (ASSOCIATE PROFFESOR) IN SIGNAL.
Digital Image Procesing Unitary Transforms Discrete Fourier Trasform (DFT) in Image Processing DR TANIA STATHAKI READER (ASSOCIATE PROFFESOR) IN SIGNAL.
Presentation transcript:

Computer Graphics Recitation 6

2 Motivation – Image compression What linear combination of 8x8 basis signals produces an 8x8 block in the image?

3 The plan today Fourier Transform (FT). Discrete Cosine Transform (DCT).

4 What is a transform? Function: rule that tells how to obtain result y given some input x Transform: rule that tells how to obtain a function G(f) from another function g(t)  Reveal important properties of g  More compact representation of g

5 Periodic function Definition: g(t) is periodic if there exists P such that g(t+P) = g(t) Period of a function: smallest constant P that satisfies g(t+P) = g(t)

6 Attributes of periodic function Amplitude: max value of g(t) in any period Period: P Frequency: 1/P, cycles per second, Hz Phase: position of the function within a period

7 Time and Frequency example : g(t) = sin(2pf t) + (1/3)sin(2p(3f) t)

8 Time and Frequency example : g(t) = sin(2pf t) + (1/3)sin(2p(3f) t) = +

9 Time and Frequency example : g(t) = sin(2pf t) + (1/3)sin(2p(3f) t) = +

10 Time and Frequency example : g(t) = { 1,  a/2 < t < a/2 0, elsewhere

11 Time and Frequency example : g(t) = { = + = 1,  a/2 < t < a/2 0, elsewhere

12 Time and Frequency example : g(t) = { = + = 1,  a/2 < t < a/2 0, elsewhere

13 Time and Frequency example : g(t) = { = + = 1,  a/2 < t < a/2 0, elsewhere

14 Time and Frequency example : g(t) = { = + = 1,  a/2 < t < a/2 0, elsewhere

15 Time and Frequency example : g(t) = { = + = 1,  a/2 < t < a/2 0, elsewhere

16 Time and Frequency example : g(t) = { = 1,  a/2 < t < a/2 0, elsewhere

17 Time and Frequency If the shape of the function is far from regular wave its Fourier expansion will include infinite num of frequencies. =

18 Frequency domain Spectrum of freq. domain : range of freq. Bandwidth of freq. domain : width of the spectrum DC component (direct current): component of zero freq. AC – all others

19 Fourier transform Every periodic function can be represented as the sum of sine and cosine functions Transform a function between a time and freq. domain

20 Fourier transform Discrete Fourier Transform: 0n-1

21 FT for digitized image Each pixel P xy = point in 3D ( z coordinate is value of color/gray level Each coefficient describes the 2D sinusoidal function needed to reconstruct the surface In typical image neighboring pixels have “close” values surface is very smooth most FT coefficients small

22 Sampling theory Image = continuous signal of intensity function I(t) Sampling: store a finite sequence in memory I(1)…I(n) The bigger the sample, the better the quality? – not necessarily

23 Sampling theory We can sample an image and reconstruct it without loss of quality if we can :  Transform I(t) function from to freq. Domain  Find the max frequency f max  Sample I(t) at rate > 2 f max  Store the sampled values in a bitmap 2f max is called Nyquist rate

24 Sampling theory Some loss of image quality because:  f max can be infinite. choose a value such that freq. > f max do not contribute much (low amplitudes)  Bitmap may be too small – not enough samples

25 Fourier Transform Periodic function can be represented as sum of sine waves that are integer multiple of fundamental (basis) frequencies Frequency domain can be applied to a non periodic function if it is nonzero over a finite range

26 Discrete Cosine Transform A variant of discrete Fourier transform  Real numbers  Fast implementation  Separable (row/column)

27 Discrete Cosine Transform Definition of 2D DCT:  Input: Image I(i, j) 1  i  N 1, 1  j  N 2  Output: a new “image” B(u, v), each pixel stores the corresponding coefficient of the DCT

28 Using DCT in JPEG DCT on 8x8 blocks

29 Using DCT in JPEG DCT – basis

30 Using DCT in JPEG Block size  small block faster correlation exists between neighboring pixels  large block better compression in smooth regions Power of 2 – for fast implementation

31 Using DCT in JPEG For smooth, slowly changing images most coefficients of the DCT are zero For images that oscillate – high frequency present – more coefficients will be non-zero

32 Using DCT in JPEG The first coefficient B(0,0) is the DC component, the average intensity The top-left coeffs represent low frequencies, the bottom right – high frequencies

33 Image compression using DCT DCT enables image compression by concentrating most image information in the low frequencies Loose unimportant image info (high frequencies) by cutting B(u,v) at bottom right The decoder computes the inverse DCT – IDCT

Bye-bye