Fourier Transforms and Their Use in Data Compression

Slides:



Advertisements
Similar presentations
DCSP-12 Jianfeng Feng Department of Computer Science Warwick Univ., UK
Advertisements

Fourier Transform and its Application in Image Processing
JPEG Compresses real images Standard set by the Joint Photographic Experts Group in 1991.
Time Series II.
Data Compression CS 147 Minh Nguyen.
Time-Frequency Analysis Analyzing sounds as a sequence of frames
Chapter 4: Representation of data in computer systems: Sound OCR Computing for GCSE © Hodder Education 2011.
Parallel Fast Fourier Transform Ryan Liu. Introduction The Discrete Fourier Transform could be applied in science and engineering. Examples: ◦ Voice recognition.
Digital Kommunikationselektronik TNE027 Lecture 5 1 Fourier Transforms Discrete Fourier Transform (DFT) Algorithms Fast Fourier Transform (FFT) Algorithms.
Transform Techniques Mark Stamp Transform Techniques.
DFT/FFT and Wavelets ● Additive Synthesis demonstration (wave addition) ● Standard Definitions ● Computing the DFT and FFT ● Sine and cosine wave multiplication.
A Matlab Playground for JPEG Andy Pekarske Nikolay Kolev.
Chapter 7 End-to-End Data
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?
1 Audio Compression Techniques MUMT 611, January 2005 Assignment 2 Paul Kolesnik.
Computer Graphics Recitation 7. 2 Motivation – Image compression What linear combination of 8x8 basis signals produces an 8x8 block in the image?
Advanced Computer Graphics (Spring 2006) COMS 4162, Lecture 3: Sampling and Reconstruction Ravi Ramamoorthi
SWE 423: Multimedia Systems Chapter 7: Data Compression (3)
Digital Audio, Image and Video Hao Jiang Computer Science Department Sept. 6, 2007.
Advanced Computer Graphics (Spring 2005) COMS 4162, Lecture 3: Sampling and Reconstruction Ravi Ramamoorthi
T.Sharon-A.Frank 1 Multimedia Image Compression 2 T.Sharon-A.Frank Coding Techniques – Hybrid.
Department of Computer Engineering University of California at Santa Cruz Data Compression (2) Hai Tao.
SWE 423: Multimedia Systems Chapter 7: Data Compression (5)
Image Compression - JPEG. Video Compression MPEG –Audio compression Lossy / perceptually lossless / lossless 3 layers Models based on speech generation.
Trevor McCasland Arch Kelley.  Goal: reduce the size of stored files and data while retaining all necessary perceptual information  Used to create an.
CS559-Computer Graphics Copyright Stephen Chenney Image File Formats How big is the image? –All files in some way store width and height How is the image.
GCT731 Fall 2014 Topics in Music Technology - Music Information Retrieval Overview of MIR Systems Audio and Music Representations (Part 1) 1.
Lecture 1 Signals in the Time and Frequency Domains
Introduction to JPEG Alireza Shafaei ( ) Fall 2005.
CS Spring 2012 CS 414 – Multimedia Systems Design Lecture 8 – JPEG Compression (Part 3) Klara Nahrstedt Spring 2012.
CSC361/661 Digital Media Spring 2002
Transforms. 5*sin (2  4t) Amplitude = 5 Frequency = 4 Hz seconds A sine wave.
: Chapter 14: The Frequency Domain 1 Montri Karnjanadecha ac.th/~montri Image Processing.
ESE 250: Digital Audio Basics Week 4 February 5, 2013 The Frequency Domain 1ESE Spring'13 DeHon, Kod, Kadric, Wilson-Shah.
09/19/2002 (C) University of Wisconsin 2002, CS 559 Last Time Color Quantization Dithering.
Understanding JPEG MIT-CETI Xi’an ‘99 Lecture 10 Ben Walter, Lan Chen, Wei Hu.
Digital Image Processing, 2nd ed. © 2002 R. C. Gonzalez & R. E. Woods Background Any function that periodically repeats itself.
Digital Media Lecture 4: Bitmapped images: Compression & Convolution Georgia Gwinnett College School of Science and Technology Dr. Jim Rowan.
Marwan Al-Namari 1 Digital Representations. Bits and Bytes Devices can only be in one of two states 0 or 1, yes or no, on or off, … Bit: a unit of data.
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.
COMP135/COMP535 Digital Multimedia, 2nd edition Nigel Chapman & Jenny Chapman Chapter 2 Lecture 2 – Digital Representations.
Fourier Transform.
HOW JEPG WORKS Presented by: Hao Zhong For 6111 Advanced Algorithm Course.
STATISTIC & INFORMATION THEORY (CSNB134) MODULE 11 COMPRESSION.
Chapter 8 Lossy Compression Algorithms. Fundamentals of Multimedia, Chapter Introduction Lossless compression algorithms do not deliver compression.
CS654: Digital Image Analysis Lecture 11: Image Transforms.
1 Part A Multimedia Production Chapter 2 Multimedia Basics Digitization, Coding-decoding and Compression Information and Communication Technology.
IS502:M ULTIMEDIA D ESIGN FOR I NFORMATION S YSTEM M ULTIMEDIA OF D ATA C OMPRESSION Presenter Name: Mahmood A.Moneim Supervised By: Prof. Hesham A.Hefny.
Submitted To-: Submitted By-: Mrs.Sushma Rani (HOD) Aashish Kr. Goyal (IT-7th) Deepak Soni (IT-8 th )
Fourier Analysis Patrice Koehl Department of Biological Sciences National University of Singapore
Digital Image Processing Lecture 8: Fourier Transform Prof. Charlene Tsai.
Chapter 8 Lossy Compression Algorithms
The content of lecture This lecture will cover: Fourier Transform
JPEG Compression What is JPEG? Motivation
Introduction to Transforms
Section II Digital Signal Processing ES & BM.
Data Compression.
Compression.
Data Compression.
CSI-447: Multimedia Systems
Dr. Nikos Desypris, Oct Lecture 3
Data Compression CS 147 Minh Nguyen.
Bits and Pieces November 6, 2007.
Image Processing, Leture #14
Chapter 4: Representing sound
Image Coding and Compression
Chapter 8 The Discrete Fourier Transform
Govt. Polytechnic Dhangar(Fatehabad)
The Frequency Domain Any wave shape can be approximated by a sum of periodic (such as sine and cosine) functions. a--amplitude of waveform f-- frequency.
Presentation transcript:

Fourier Transforms and Their Use in Data Compression By Joseph Gehring

What is a Fourier Transform? From Simple Wikipedia: “A Fourier transform is a math function that makes a sometimes less useful function into another more useful function.” “A Fourier transform really just shows you what frequencies are in a signal.”

The Math The Fourier Transform is a generalization of the Fourier Series Any periodic function can be represented as an infinite sum of sines and cosines

Fourier Series

Fourier Transform Forward Inverse Symmetric Linear Transform a=0, b=-2*pi for signal processing

Fourier Transform Every function f(x) has a forward and inverse Fourier Transform such that Given: Integral of f(x) exists Discontinuous at a finite number of points Function has a bounded variation

Discrete Fourier Transform For given input data: Reveals periodic elements Shows the relative strength of those periodic elements Input sequence of real numbers results in Fourier Transform output of complex numbers Efficiently computed using Fast Fourier Transform

Some Clarification Fourier Series uses an infinite sum of sines and cosines Fourier Transform uses an integral over an infinite range to develop an approximation Discrete Fourier Transform uses a finite sum of sines and cosines over a given range, based on sampling rates and sample length In music, the sample rate is usually set to 44,100 samples/second based on CD quality

Approximating a Square Wave

Fast Fourier Transform Efficient algorithm reducing the number of computations required to determine the discrete Fourier Transform of a function from O(n^2) to O(n*log2(n)) Has been used in mp3 and JPG compression Ultimately, even the FFT could not compete with the Discrete Cosine Transform, which is the cosine portion of the Fourier Transform, and uses only real values

Compression The compression ratio offered by use of the Fourier Transform is dependent on the quality required by the application The higher quality the result needs to be, the lower the compression ratio will be To create a more accurate output, more coefficients are needed and the data cannot be compressed as significantly

MP3 Input file is sampled, usually at 44.1 kHz, and the file is split into chunks of 576 samples each (~.013 seconds) FFT or DCT is performed to convert time domain to frequency domain Frequencies outside range of human hearing are removed Coefficient data is stored in conjunction with a 32-bit header containing sound quality (frame) Multiple frames are combined to make a single mp3 file http://www.indiana.edu/~acoustic/s522/fourapdkp.html

JPG The original image is broken up into 64 pixel blocks, each 8x8 pixels. The DCT is taken of each 8x8 group using a set of 64 basis functions. Each numerical value in the group is replaced with a new, smaller number representing a coefficient for a basis function. Because these numbers are smaller, the number of bits required to represent them can be reduced. So, each value in the group is truncated to a lower number of bits. By storing this lower number of bits instead, the total amount of information is compressed.

JPG (cont’d) In this image, we see how many coefficients are required to achieve an approximation of the original image. Using 15 coefficients for the Fourier Transform instead of 64 original values, a good approximation can be made of the initial image

JPG (Cont’d) The last step of JPG compression involves the use of Huffman Encoding, which is a form of variable bit length encoding that uses fewer bits to represent values that occur more frequently than those that occur more rarely. The 64 encoded values are then converted to a linear sequence of values rather than an array

In Conclusion All these methods have undergone periodic updates depending on the complexity of input data and the computing power available to perform the tasks. As storage space becomes cheaper, compression ratios can become less strict to create closer approximations to original information

This cat has some serious periodic components.

Works Cited “Fourier Transform.” Simple Wikipedia. Web. 04 April 2011. http://simple.wikipedia.org/wiki/Fourier_transform. Various Articles. Wolfram MathWorld: The Web’s Most Extensive Mathematics Resource. Web. 03 April 2011. http://mathworld.wolfram.com. “MP3.” Wikipedia, The Free Encyclopedia. Web. 04 April 2011. http://en.wikipedia.org/wiki/MP3. Smith, Steven W. “JPEG (Transform Compression).” The Scientist and Engineer’s Guide to Digital Signal Processing. Web. 04 April 2011. http://www.dspguide.com/ch27/6.htm. Yoo, Yerin. “Tutorial on Fourier Theory.” Department of Computer Science. University of Otago. Web. 05 April 2011. http://www.cs.otago.ac.nz/cosc453/student_tutorials/fourier_analysis.pdf Handley, Mark. “3: Fourier Transforms.” Department of Computer Science. Columbia University. Web. 05 April 2011. http://www.cs.columbia.edu/~hgs/teaching/ais/slides/03-fourier.pdf Munroe, Randall. “Fourier.” xkcd. Web. 05 April 2011. http://xkcd.com/26.