CSI-447: Multimedia Systems

Slides:



Advertisements
Similar presentations
Multimedia Data Compression
Advertisements

Engineering Mathematics Class #15 Fourier Series, Integrals, and Transforms (Part 3) Sheng-Fang Huang.
Fourier Transform (Chapter 4)
1 Chapter 16 Fourier Analysis with MATLAB Fourier analysis is the process of representing a function in terms of sinusoidal components. It is widely employed.
Chapter Four Image Enhancement in the Frequency Domain.
Discrete Cosine Transform. Take our sampled signal and transform it. How? Why?
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?
Computer Graphics Recitation 7. 2 Motivation – Image compression What linear combination of 8x8 basis signals produces an 8x8 block in the image?
The basis of Fourier transform Recall DFT: Exercise#1: M=8, plot cos(2πu/M)x at each frequency u=0,…,7 x=0:7; u=0; plot(x, cos(2*pi*u/8*x));
Spatial and Temporal Data Mining
JPEG.
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.
Fourier Analysis D. Gordon E. Robertson, PhD, FCSB School of Human Kinetics University of Ottawa.
Department of Computer Engineering University of California at Santa Cruz Data Compression (2) Hai Tao.
SWE 423: Multimedia Systems Chapter 7: Data Compression (5)
5. 1 JPEG “ JPEG ” is Joint Photographic Experts Group. compresses pictures which don't have sharp changes e.g. landscape pictures. May lose some of the.
Introduction to JPEG Alireza Shafaei ( ) Fall 2005.
Image Processing Fourier Transform 1D Efficient Data Representation Discrete Fourier Transform - 1D Continuous Fourier Transform - 1D Examples.
Digital Image Processing Chapter # 4 Image Enhancement in Frequency Domain Digital Image Processing Chapter # 4 Image Enhancement in Frequency Domain.
Image Enhancement in the Frequency Domain Spring 2006, Jen-Chang Liu.
CMPT 365 Multimedia Systems
Indiana University Purdue University Fort Wayne Hongli Luo
1 Fourier Representations of Signals & Linear Time-Invariant Systems Chapter 3.
Part I: Image Transforms DIGITAL IMAGE PROCESSING.
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.
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.
The task of compression consists of two components, an encoding algorithm that takes a file and generates a “compressed” representation (hopefully with.
Fourier Transform.
HOW JEPG WORKS Presented by: Hao Zhong For 6111 Advanced Algorithm Course.
ELE 488 F06 ELE 488 Fall 2006 Image Processing and Transmission ( ) Image Compression Quantization independent samples uniform and optimum correlated.
CS654: Digital Image Analysis
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.
Dr. Abdul Basit Siddiqui FUIEMS. QuizTime 30 min. How the coefficents of Laplacian Filter are generated. Show your complete work. Also discuss different.
Image hole-filling. Agenda Project 2: Will be up tomorrow Due in 2 weeks Fourier – finish up Hole-filling (texture synthesis) Image blending.
JPEG. Introduction JPEG (Joint Photographic Experts Group) Basic Concept Data compression is performed in the frequency domain. Low frequency components.
Chapter 13 Discrete Image Transforms
Entropy vs. Average Code-length Important application of Shannon’s entropy measure is in finding efficient (~ short average length) code words The measure.
The Frequency Domain Digital Image Processing – Chapter 8.
Chapter 2. Characteristics of Signal ※ Signal : transmission of information The quality of the information depends on proper selection of a measurement.
Fourier transform.
Digital Image Processing Lecture 7: Image Enhancement in Frequency Domain-I Naveed Ejaz.
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
Digital Image Processing Lecture 8: Fourier Transform Prof. Charlene Tsai.
Chapter 8 Lossy Compression Algorithms
Singular Value Decomposition and its applications
Image Transformation Spatial domain (SD) and Frequency domain (FD)
JPEG Compression What is JPEG? Motivation
IMAGE COMPRESSION.
Chapter 9 Image Compression Standards
A Simple Image Compression : JPEG
JPEG Image Coding Standard
Last update on June 15, 2010 Doug Young Suh
JPEG.
Dr. Nikos Desypris, Oct Lecture 3
All about convolution.
Researchlab 4 Presentation
4. Image Enhancement in Frequency Domain
JPEG Still Image Data Compression Standard
1-D DISCRETE COSINE TRANSFORM DCT
Fourier Analysis Without Tears
Frequency Response Method
Discrete Fourier Transform
Presentation transcript:

CSI-447: Multimedia Systems Chapter 8: Data Compression (c)

Outline Transform Coding – Discrete Cosine Transform

Transform Coding ⎢⎣ xk ⎥⎦ ⎢ ⎥ ⎢ x2 ⎥ Let X  ⎢ . ⎥ be a vector of samples. There is a ⎢ ⎥ ⎢ . ⎥ ⎢⎣ xk ⎥⎦ good chance that a substantial amount of correlation is inherent among neighboring samples xi. The rational behind transform coding is that if Y is the result of a linear transform T of X in such a way that the components of Y are much less correlated, then Y can be coded more efficiently than X

Transform Coding In dimensions higher than 3, if most information is accurately described in the first few components of a transformed vector, the remaining components can be coarsely quantized or even set to zero with little signal distortion. The less effect one dimension has on another, the more chance we have of dealing differently with axes that store relatively minor amounts of information without affecting reasonably accurate reconstruction of the signal from its quantized or truncated transform coefficients. Therefore, compression comes from the quantization of the components of Y.

Discrete Cosine Transform 2D DCT: Given a function f(i, j) over two integer variables i and j (e.g. a piece of an image), the 2D DCT transforms it into a new function F(u, v), with integers u and v running over the same range as i and j such that F (u, v)  2C(u)C(v) cos (2i 1)u cos (2 j 1)v f (i, j) M 1 N 1 MN 2M 2N i0 j 0 where i,u = 0, ..., M – 1 and j,v = 0, ..., N – 1 and ⎧ 1 ⎪ if x  0 C(x)  ⎨ 2 ⎪ ⎩1 otherwise

Discrete Cosine Transform For N = M = 8 (used for JPEG Standard), the 2D DCT is ... The inverse DCT (2D-IDCT) is ~(i, j)   C(u)C(v) cos (2i 1)u cos (2 j 1)v F (u, v) 7 7 f 4 16 16 u 0 v0

Discrete Cosine Transform 1D DCT: Given a function f(i) over integer variable i, the 1D DCT transforms it into a new function F(u), with integer u running over the same range as i such that (M=8) F (u)  C(u) cos (2i 1)u f (i) 7 2 where i,u = 0, ..., 7 and 16 i0 ⎧ 1 ⎪ if x  0 C(x)  ⎨ 2 ⎪ ⎩1 otherwise

Discrete Cosine Transform The inverse 1D-DCT is defined by ~(i)   C(u) cos (2i 1)u F (u) 7 f 2 16 u 0 where i,u = 0, ..., 7 and ⎧ 1 ⎪ if x  0 C(x)  ⎨ 2 ⎪ ⎩1 otherwise

Discrete Cosine Transform An electrical signal with constant magnitude is known as a DC signal (Direct Current) For example, a 9-volts battery. An electrical signal that changes its magnitude periodically at a certain frequency is known as an AC signal (alternating Current) For example, household electric power circuit (110 volts, 60Hz vs. 220 volts 50Hz) Although most signals are complex, any signal can be expressed as a sum of multiple signals that are sine or cosine waveforms at various amplitudes and frequencies. This is known as Fourier Analysis

Discrete Cosine Transform If a cosine function is used, the process of determining the amplitudes of the AC and DC components of the signal is called a Cosine Transform, and the integer indices make it a Discrete Cosine Transform. When u=0, F(u) yields the DC coefficient When u = 1, 2, ..., 7, F(u) yields the first, second, ..., seventh AC coefficient.

Discrete Cosine Transform The inverse transform uses a sum of the products of the DC or AC coefficients and the cosine functions to reconstruct the function f(i), now known as f~(i). Both DCT and IDCT use the same set of cosine functions, known as basis functions. The idea behind Transform Coding is to use only a few coefficients that result in the highest energy

Examples (1D-DCT)

Examples (1D-DCT)

Examples (1D-IDCT)

Discrete Cosine Transform Approximation of the ramp function using a 3-term DCT approximation vs. a 3-term DFT approximation.