Wavelets and Data Compression

Slides:



Advertisements
Similar presentations
Lecture 7: Basis Functions & Fourier Series
Advertisements

Sec. 4.5: Integration by Substitution. T HEOREM 4.12 Antidifferentiation of a Composite Function Let g be a function whose range is an interval I, and.
Trigonometric equations
DEPARTMENT OF MATHEMATI CS [ YEAR OF ESTABLISHMENT – 1997 ] DEPARTMENT OF MATHEMATICS, CVRCE.
5.3 Solving Trigonometric Equations. What are two values of x between 0 and When Cos x = ½ x = arccos ½.
Boyce/DiPrima 10th ed, Ch 10.2: Fourier Series Elementary Differential Equations and Boundary Value Problems, 10th edition, by William E. Boyce and Richard.
Chapter 15 Fourier Series and Fourier Transform
Verify a trigonometric identity
Derivative as a Function
Chapter 6 – Graphs and Inverses of the Trigonometric Functions
RATIONAL FUNCTIONS 2.6. RATIONAL FUNCTIONS VERTICAL ASYMPTOTES  To find vertical asymptotes first reduce the function if possible.  Set the denominator.
9.2 Arithmetic Sequence and Partial Sum Common Difference Finite Sum.
Graphing Piecewise Functions
1 Review of Fourier series Let S P be the space of all continuous periodic functions of a period P. We’ll also define an inner (scalar) product by where.
5.5 Multiple-Angle and Product-Sum Formulas. Find all solutions in.
Verify a trigonometric identity
ECE 8443 – Pattern Recognition ECE 3163 – Signals and Systems Objectives: Useful Building Blocks Time-Shifting of Signals Derivatives Sampling (Introduction)
WAVELET (Article Presentation) by : Tilottama Goswami Sources:
Riemann’s example of function f for which exists for all x, but is not differentiable when x is a rational number with even denominator.
Section 1.7 Piecewise Functions. Vocabulary Absolute Value Function – a piecewise function, written as f(x)=, where f(x) 0 for all values of x. Greatest.
Lesson 2.6 Rational Functions and Asymptotes. Graph the function: Domain: Range: Increasing/Decreasing: Line that creates a split in the graph:
Derivatives. What is a derivative? Mathematically, it is the slope of the tangent line at a given pt. Scientifically, it is the instantaneous velocity.
Integral Transform Method CHAPTER 15. Ch15_2 Contents  15.1 Error Function 15.1 Error Function  15.2Applications of the Laplace Transform 15.2Applications.
CHAPTER Continuity Implicit Differentiation.
CHAPTER Continuity Arc Length Arc Length Formula: If a smooth curve with parametric equations x = f (t), y = g(t), a  t  b, is traversed exactly.
Fourier Series - QUIZ Team A questions in white
Orthogonal Functions and Fourier Series
12.2 Fourier Series Trigonometric Series is orthogonal on the interval [ -p, p]. In applications, we are interested to expand a function f(x) defined on.
Input Function x(t) Output Function y(t) T[ ]. Consider The following Input/Output relations.
Power Series Section 9.1a.
In this section, we investigate a specific new type of series that has a variable component.
Differential Equations Brannan Copyright © 2010 by John Wiley & Sons, Inc. All rights reserved. Chapter 09: Partial Differential Equations and Fourier.
MATHPOWER TM 12, WESTERN EDITION Chapter 5 Trigonometric Equations.
Solving a Trigonometric Equation Find the general solution of the equation.
Sum and Difference Formulas...using the sum and difference formula to solve trigonometric equation.
6.3 Graphing Sine and Cosine Functions Objective: Use the graphs of the sine and cosine functions.
Frequency domain analysis and Fourier Transform
Jean Baptiste Joseph Fourier 1768 – 1830 Jean Baptiste Joseph Fourier 1768 – 1830 Fourier studied the mathematical theory of heat conduction. He established.
Ch # 11 Fourier Series, Integrals, and Transform 1.
Power Series Chapter 12.8,12.9. Basic Definitions: A power series looks like: All the techniques for testing convergence apply but now we are interesting.
Subject : Advance engineering mathematics Topic : Fourier series & Fourier integral.
The Mathematics of Star Trek Workshop
1.7 Piecewise Functions Objective: Identify and graph piecewise functions including greatest integer, step, and absolute value functions.
Graphing Trigonometric Functions
Piecewise Functions At least 2 equations, each of which applies to a different part of the functions domain. It is like having 3 equations for 3 different.
Continuous-Time Signal Analysis
Class Notes 12: Laplace Transform (1/3) Intro & Differential Equations
Class Notes 12: Laplace Transform (1/3) Intro & Differential Equations
Chapter 3 Section 3.
Functions FUNCTIONS AND THEIR GRAPHS Essential Questions:
Numerical Examples Example: Find the system of finite difference equations for the following problem. Steady state heat conduction through a plane wall.
Test the series for convergence or divergence. {image}
5.2 The Natural Logarithmic Function: Integration
Use power series to solve the differential equation. {image}
Test the series for convergence or divergence. {image}
Piecewise Functions At least 2 equations, each of which applies to a different part of the functions domain. It is like having 3 equations for 3 different.
Piecewise-defined Functions
Graphing and Evaluating The Piecewise Function A Series of Examples
Solving Trigonometric Equations (Section 5-3)
Fourier Analysis Lecture-8 Additional chapters of mathematics
Introduction to Fourier Series
Use power series to solve the differential equation. y ' = 7xy
Warmup Solve 3 sin θ - 2 cos 2 θ =0 for all values of θ if θ is measured in degrees. A 30° + 360°k, 120°+ 360°k B 30°+360°k, 150° +360°k C 150° + 360°k,
LECTURE 02: BASIC PROPERTIES OF SIGNALS
Rayat Shikshan Sanstha’s S.M.Joshi College, Hadapsar -28
Warmup Solve 3 sin θ - 2 cos 2 θ =0 for all values of θ if θ is measured in degrees. A 30° + 360°k, 120°+ 360°k B 30°+360°k, 150° +360°k C 150° + 360°k,
Find the interval of convergence of the series. {image}
Find the interval of convergence of the series. {image}
FOURIER SERIES PERIODIC FUNCTIONS
Part (a) The function IS CONTINUOUS at x=3 because substituting 3 into each equation makes f(x)=2 both times.
Presentation transcript:

Wavelets and Data Compression Michael A. Karls

Topics Fourier Series Wavelets FBI Fingerprint Compression A Wavelet-Based Data Compression Scheme An Image Compression Example Averaging and Differencing

Fourier Series A function f(x) is said to be periodic with period a if f(x+a)=f(x) for all x in the domain of f. For a function f with period 2, the Fourier series of f is a sum of the form: a0 + n=11 (an cos nx + bn sin nx), where a0 = 1/(2) s- f(x) dx, an = 1/ s- f(x) cos nx dx, bn = 1/ s- f(x) sin nx dx. Applications of Fourier series include solving partial differential equations and signal processing. Joseph Fourier (1768-1830) used this idea of writing a function as a sum of trigonometric functions in his study of the mathematical theory of heat conduction.

Fourier Series (cont.) For functions that are piecewise smooth, i.e. continuous and differentiable, except for a finite number of holes, jumps, or corners on any interval in the domain of f, the Fourier series of f will converge to f. For example, to the right is a graph of the step function: f(x) = 0 for -<x<0, f(x) = 1 for 0<x<. The first few terms of the step function’s Fourier series are shown to the right.

Wavelets Similar to Fourier series, Wavelets are mathematical functions that are used to represent data or other functions, by analyzing the data according to scale. Wavelets were developed independently in the fields of mathematics, quantum physics, electrical engineering, and seismic geology. Applications of wavelets include: Astronomy Acoustics Nuclear engineering More applications of wavelets: Signal and image processing Neurophysiology Music Magnetic resonance imaging Speech discrimination Optics Earthquake-prediction, Radar Human vision Solving partial differential equations

A Use of Wavelets: FBI Fingerprint Compression Since 1924, the US Federal Bureau of Investigation has collected over 200 million sets of fingerprints. Most fingerprint files are inked impressions on paper cards. Low-quality faxes of the impressions are sent out to law enforcement agencies. Various jurisdictions have been experimenting with digital storage of the prints, causing incompatibilities between data storage formats. To address this problem, the FBI's Criminal Justice Information Services Division, along with the National Institute of Standards and Technology (NIST), Los Alamos National Laboratory, commercial vendors, and criminal justice communities have developed standards for fingerprint digitization and compression.

A Use of Wavelets: FBI Fingerprint Compression Here’s an image of a fingerprint which is made up of an array of size 768 x 768 = 589,824 numbers known as pixels. Each pixel is a number that represents a gray level ranging from black (minimum number) to white (maximum number). This image uses 256 = 28 levels of gray for each pixel. Thus, each pixel uses one byte of storage space on a computer and 589,824 bytes (~0.6 MB) are required to store the entire fingerprint. A pair of hands would require about 6 MB of storage!

A Use of Wavelets: FBI Fingerprint Compression Since large amounts of data are needed to represent fingerprints in this way, it would be useful to find a way to use less data to describe the fingerprint. Digitizing the FBI's current archive would result in about 2000 terabytes of data! Recall that 1 terabyte is 210 = 1024 gigabytes. Thus, at a cost of about $900 per gigabyte, the cost of storing these uncompressed images would be about 2 billion dollars!

A Use of Wavelets: FBI Fingerprint Compression Clearly, data compression would help with reducing the cost of data storage. Common compression standards such as JPEG (Joint Photographic Experts Group) format reduce the amount of data required, but do not provide enough detail upon recovery of the image after compression. (See the next slide - notice the blocking that occurs in the recovered image.) One way to compress data and be able to recover sufficient detail to be useful is via wavelets. (See the slide after the next slide.)

A Use of Wavelets: FBI Fingerprint Compression Original Image 12.9:1 JPEG Compression

A Use of Wavelets: FBI Fingerprint Compression Original Image 12.9:1 Wavelet Compression

A Wavelet-Based Data Compression Scheme We now illustrate one way to compress data that is essentially what is being done with wavelet compression! Consider the following string of eight pieces of data, which could be data from a function or data from an 8 x 8 pixel image: 64 48 16 32 56 56 48 24. By performing a process known as averaging and differencing (we’ll see how this is done later), this data is transformed into a new set of data made up of one average (in italics) and seven detail coefficients (in bold): 43 -3 16 10 8 -8 0 12. This process can be reversed to recover the original data! Note that for this example there are six non-zero detail coefficients. A transformation of data of this type is known as lossless compression, since no information is lost.

A Wavelet-Based Data Compression Scheme If we replace the -3 detail coefficient with 0 and reverse the averaging and differencing process, we will get an approximation to our original data, using five non-zero detail coefficients (instead of six): 67 51 19 35 53 53 45 21. If we also replace the -8 and 8 detail coefficients with 0, we will get an approximation to our original data, using only three non-zero detail coefficients: 59 59 27 27 53 53 45 21.

A Wavelet-Based Data Compression Scheme When detail coefficients are replaced with zeros, we are performing lossy compression at a threshold level , where any coefficient whose magnitude is less than  is set to zero. Thus, replacing –3, -8, and 8 with a zero corresponds to lossy compression at a threshold level of 8.

A Wavelet-Based Data Compression Scheme Here are graphs of the original data (black curves) and the approximations (red curves) to the original data:

A Wavelet-Based Data Compression Scheme Since picture data is just a string of numbers describing gray levels, the idea of lossy compression can be used to reduce the amount of information needed to be stored for a picture! Below, from left to right, are the original picture of Emmy Noether, along with pictures that have been compressed using 4% and 1% of the detail coefficients!

An Image Compression Example Using the software Wavcomp, we can actually compress images! Try this with Albert Einstein's picture! Directions follow on how to do this from any lab computer on campus.

An Image Compression Example On the web page http://faculty.gvsu.edu/aboufade/web/wavelets/software.htm, click on the Wavcomp link to download the file wavcomp.zip. Extract the contents of this folder to the Windows Desktop. Click on the File menu and choose Open Picture. Double click on one of the *.isc files. For example, choosing fprintx1.isc will select a picture of a fingerprint. Click on the Compress menu and choose Start Compression. A new window will appear. Choose OK. A new window will appear with a number (often it will be 1.125) in a box labeled Threshold Level. Type in a number greater than or equal to zero. Then choose OK. A new box will appear that tells how many data coefficients have been discarded and the total number of data in the original image. Click OK. Expand the compression window and compare the original image to the new image!

Averaging and Differencing We now look at how to apply the averaging and differencing scheme for data compression! Given a row of 2n values of data, such as 64 48 16 32 56 56 48 24 (in this case n = 3), create n new rows of data as follows: First, find the average of successive pairs: (64+48)/2 = 112/2 = 56, (16+32)/2 = 48/2 = 24, (56+56)/2 = 112/2 = 56, (48+24)/2 = 72/2 = 36. Write these four averages in a second row below the first row of data, in order:

Averaging and Differencing (cont.) Row 1: 64 48 16 32 56 56 48 24 Row 2: 56 24 56 36 Next compute the difference between the first element of a pair in Row 1 and the corresponding average in Row 2. 64 - 56 = 8, 16 - 24 = -8, 56 - 56 = 0, 48 - 36 = 12.

Averaging and Differencing These differences fill out the remaining four entries of Row 2, in order. Thus we have: Row 1: 64 48 16 32 56 56 48 24 Row 2: 56 24 56 36 8 -8 0 12

Averaging and Differencing For the next row, Row 3, apply averaging and differencing to the first four entries of Row 2. The last four entries are the same as the last four entries of Row 2: Row 1: 64 48 16 32 56 56 48 24 Row 2: 56 24 56 36 8 -8 0 12 Row 3: 40 46 16 10 8 -8 0 12

Averaging and Differencing Row 4 is obtained by applying averaging and differencing to the first pair of numbers in Row 3 and reproducing the remaining entries from Row 3: Row 1: 64 48 16 32 56 56 48 24 Row 2: 56 24 56 36 8 -8 0 12 Row 3: 40 46 16 10 8 -8 0 12 Row 4: 43 -3 16 10 8 -8 0 12 Note that the first entry in Row 4, namely 43, is the average of all eight numbers in Row 1! (HW - check why this is true.)

References The wavelet introduction and FBI example come from the paper “An Introduction to Wavelets” by Amara Graps (IEEE Computational Science and Engineering, Summer 1995, vol. 2, no. 2, http://www.amara.com/IEEEwave/IEEEwavelet.html and Chris Brislawn’s website: http://www.c3.lanl.gov/~brislawn/FBI/FBI.html. The examples of data compression and the pictures of Emmy Noether are from the paper “Plotting & Scheming With Wavelets” by Colm Mulcahy (Mathematics Magazine, Vol 69, No 5, December 1996, 323-343, which can be found here: http://www.spelman.edu/~colm/wav.html. “Wavcomp”, written by Mochan Shrestha a student at Grand Valley State University can be downloaded from: http://faculty.gvsu.edu/aboufade/web/wavelets/software.htm. The brief introduction to Fourier series is from Boundary Value Problems, 5th edition, by David Powers, 2006.