Image Compression Supervised By: Mr.Nael Alian Student: Anwaar Ahmed Abu-AlQomboz ID:120060883 IT College “Multimedia”

Slides:



Advertisements
Similar presentations
Código de Huffman.
Advertisements

Introduction to H.264 / AVC Video Coding Standard Multimedia Systems Sharif University of Technology November 2008.
T.Sharon-A.Frank 1 Multimedia Compression Basics.
Data Compression CS 147 Minh Nguyen.
Chapter 7 End-to-End Data
SWE 423: Multimedia Systems
Spring 2003CS 4611 Multimedia Outline Compression RTP Scheduling.
Department of Computer Engineering University of California at Santa Cruz Data Compression (3) Hai Tao.
MPEG: A Video Compression Standard for Multimedia Applications Didier Le Gall Communications of the ACM Volume 34, Number 4 Pages 46-58, 1991.
Spatial and Temporal Data Mining
MPEG: A Video Compression Standard for Multimedia Applications Didier Le Gall Communications of the ACM Volume 34, Number 4 Pages 46-58, 1991.
CS :: Fall 2003 MPEG-1 Video (Part 1) Ketan Mayer-Patel.
JPEG Still Image Data Compression Standard
CMPT 365 Multimedia Systems
T.Sharon-A.Frank 1 Multimedia Image Compression 2 T.Sharon-A.Frank Coding Techniques – Hybrid.
Multimedia Data The DCT and JPEG Image Compression Dr Mike Spann Electronic, Electrical and Computer.
Department of Computer Engineering University of California at Santa Cruz Data Compression (2) Hai Tao.
Why Compress? To reduce the volume of data to be transmitted (text, fax, images) To reduce the bandwidth required for transmission and to reduce storage.
Image and Video Compression
Image Compression - JPEG. Video Compression MPEG –Audio compression Lossy / perceptually lossless / lossless 3 layers Models based on speech generation.
Lossy Compression Based on spatial redundancy Measure of spatial redundancy: 2D covariance Cov X (i,j)=  2 e -  (i*i+j*j) Vertical correlation   
Lecture 10 Data Compression.
GODIAN MABINDAH RUTHERFORD UNUSI RICHARD MWANGI.  Differential coding operates by making numbers small. This is a major goal in compression technology:
Compression is the reduction in size of data in order to save space or transmission time. And its used just about everywhere. All the images you get on.
Computer Vision – Compression(2) Hanyang University Jong-Il Park.
CS Spring 2012 CS 414 – Multimedia Systems Design Lecture 8 – JPEG Compression (Part 3) Klara Nahrstedt Spring 2012.
JPEG Motivations: Motivations: 1.Uncompressed video and audio data are huge. In HDTV, the bit rate easily exceeds 1 Gbps. --> big problems for.
ECE472/572 - Lecture 12 Image Compression – Lossy Compression Techniques 11/10/11.
MPEG: A Video Compression Standard for Multimedia Applications Didier Le Gall Communications of the ACM Volume 34, Number 4 Pages 46-58, 1991.
 Coding efficiency/Compression ratio:  The loss of information or distortion measure:
1 Image Compression. 2 GIF: Graphics Interchange Format Basic mode Dynamic mode A LZW method.
LECTURE Copyright  1998, Texas Instruments Incorporated All Rights Reserved Encoding of Waveforms Encoding of Waveforms to Compress Information.
MPEG: (Moving Pictures Expert Group) A Video Compression Standard for Multimedia Applications Seo Yeong Geon Dept. of Computer Science in GNU.
Audio Compression Usha Sree CMSC 691M 10/12/04. Motivation Efficient Storage Streaming Interactive Multimedia Applications.
Klara Nahrstedt Spring 2011
Comparative study of various still image coding techniques. Harish Bhandiwad EE5359 Multimedia Processing.
Image and Video Compression Fundamentals Heejune AHN Embedded Communications Laboratory Seoul National Univ. of Technology Fall 2013 Last updated 2013.
JPEG. The JPEG Standard JPEG is an image compression standard which was accepted as an international standard in  Developed by the Joint Photographic.
Image Processing and Computer Vision: 91. Image and Video Coding Compressing data to a smaller volume without losing (too much) information.
Data Compression. Compression? Compression refers to the ways in which the amount of data needed to store an image or other file can be reduced. This.
CIS679: Multimedia Basics r Multimedia data type r Basic compression techniques.
1 Classification of Compression Methods. 2 Data Compression  A means of reducing the size of blocks of data by removing  Unused material: e.g.) silence.
Outline Kinds of Coding Need for Compression Basic Types Taxonomy Performance Metrics.
Compression video overview 演講者:林崇元. Outline Introduction Fundamentals of video compression Picture type Signal quality measure Video encoder and decoder.
An introduction to audio/video compression Dr. Malcolm Wilson.
Spring 2000CS 4611 Multimedia Outline Compression RTP Scheduling.
Advances in digital image compression techniques Guojun Lu, Computer Communications, Vol. 16, No. 4, Apr, 1993, pp
JPEG.
STATISTIC & INFORMATION THEORY (CSNB134) MODULE 11 COMPRESSION.
(B1) What are the advantages and disadvantages of digital TV systems? Hint: Consider factors on noise, data security, VOD etc. 1.
1 Multimedia Outline Compression RTP Scheduling. 2 Compression Overview Encoding and Compression –Huffman codes Lossless –data received = data sent –used.
Motion Estimation Multimedia Systems and Standards S2 IF Telkom University.
UNIT V. Linear Predictive coding With the advent of inexpensive digital signal processing circuits, the source simply analyzing the audio waveform to.
6/9/20161 Video Compression Techniques Image, Video and Audio Compression standards have been specified and released by two main groups since 1985: International.
Entropy vs. Average Code-length Important application of Shannon’s entropy measure is in finding efficient (~ short average length) code words The measure.
JPEG Compression What is JPEG? Motivation
Image compression.
IMAGE PROCESSING IMAGE COMPRESSION
IMAGE COMPRESSION.
Data Compression.
Multimedia Outline Compression RTP Scheduling Spring 2000 CS 461.
Algorithms in the Real World
JPEG Image Coding Standard
JPEG.
Data Compression.
Chapter 7.2: Layer 5: Compression
CMPT 365 Multimedia Systems
Why Compress? To reduce the volume of data to be transmitted (text, fax, images) To reduce the bandwidth required for transmission and to reduce storage.
Standards Presentation ECE 8873 – Data Compression and Modeling
Comparative study of various still image coding techniques.
Presentation transcript:

Image Compression Supervised By: Mr.Nael Alian Student: Anwaar Ahmed Abu-AlQomboz ID: IT College “Multimedia”

Why Do We Need Compression? Requirements may outstrip the anticipated increase of storage space and bandwidth For data storage and data transmission DVD Video conference Printer The bit rate of uncompressed digital cinema data exceeds 1 Gbps

Why Can We Compress? Spatial redundancy Neighboring pixels are not independent but correlated Temporal redundancy

(Bandwidth Compression vs. Bit Rate Reduction) Reduction of the number of bits needed to represent a given image or it’s information Image Compression Image compression exploits the fact that all images are not equally likely Exploits energy gaps in signal

Information vs Data REDUNDANT DATA INFORMATION DATA = INFORMATION + REDUNDANT DATA

An Image Model - Ref: J.B.O ’ Neal Picture size is one unit wide by one unit high Width 1 Unit Height 1 Unit M 1/2 M D M=Number of Samples D=Spacing Between Samples = Correlation Between Adjacent Samples

Compression As It Relates To Image Content Picture Correlation Distance Portrait 6.3 (Fills 1/2 Frame) Typical 16.7 (Moderate Detail) 100 People People 150

INTERFRAME and INTRAFRAME PROCESSING Interframe Processing Predictive Encoding Point to Point Line to Line Intraframe Processing

BIT RATE = NQF N = NUMBER OF PIXELS Q = QUANTIZATION BITS/PIXEL F = FRAME RATE Compression Ratio = 10 LOG Channel Bit Rate N Q F

REDUCINGCREATES NReduced Resolution FImage Blur QContouring (Artifacts) We need More Sophisticated Approaches

Selected Methods for compression LPC Delta Modulation Bit plane encoding Transform encoding Standards JPEG MPEG

PREDICTIVE CODING Predictive Coding transmit the difference between estimate of future sample & the sample itself. - Delta modulation - DPCM - Adaptive predictive coding - Differential frame coding

Differential Pulse Code Modulation (DPCM)

SIMPLE DELTA MODULATION  + - f (t) y (t) x(t)  (t) +

SIMPLE DELTA MODULATION f(t) t y(t) x(t)

BIT PLANE ENCODING a b c d e f f e d c b a

TRANSFORM CODING Transform Coding - transform image - code the coefficients of the transform - transmit them - reconstruct by inverse transform Benefits - transform coeff. relatively uncorrelated - energy is highly compacted - reasonable robust relative to channel errors

Potential Bit Rate Reduction for 525 Line Video Imagery Decrease N (from 512 to 256) Resolution4:1 TYPECOMMENTSOPERATIONS Decrease Q6:5 Dynamic Range of Display Decrease F6:1 (30 Fps 5 Fps) Frame Rate Flicker Results Image Blurring Delta Modulation 2:1 3:1 6 Bits/Pixel to 2 Bits/Pixel Point to Point Redundancy

TYPECOMMENTSOPERATIONS Adaptive Intraframe PCM - Delta Intraframe Redundancy 5:1 6 Bits/Pixel to 1.2 Bits/Pixel Optimal Transform Encoding Intraframe Redundancy 12:1 6 Bits/Pixel to 1.2 Bits/Pixel JPEG 27:1 Intraframe Redundancy Hundreds to one Frame to Frame Redundancy Interframe Processing

RANK COMPRESSION/COST RATIO RANKING Technique Compression/ Cost Ratio Compression/ Vs. 6-Bit PCM 1 “D”  MOD “D” Adaptive  MOD “D” W-H Transform “D”DPCM

Hybrid Techniques Delta Modulation of transform coefficients Variable scan rate techniques Contour encoding JPEG and MPEG

Lossless or Lossy Compression Lossless compression There is no information loss, and the image can be reconstructed exactly the same as the original Applications: Medical imagery, Archiving Lossy compression Information loss is tolerable Many-to-1 mapping in compression eg. quantization Applications: commercial distribution (DVD) and rate constrained environment where lossless methods can not provide enough compression ratio

Standards JPEG MPEG

Why Do We Need International Standards? International standardization is conducted to achieve inter-operability. Only syntax and decoder are specified. Encoder is not standardized and its optimization is left to the manufacturer. Standards provide state-of-the-art technology that is developed by a group of experts in the field. Not only solve current problems, but also anticipate the future application requirements.

What Is JPEG? "Joint Photographic Expert Group". Voted as international standard in Works with color and grayscale images, e.g., satellite, medical,... Lossy and lossless

JPEG (Intraframe coding) First generation JPEG uses DCT+Run length Huffman entropy coding. Second generation JPEG (JPEG2000) uses wavelet transform + bit plane coding + Arithmetic entropy coding.

Why DCT Not DFT? DCT is similar to DFT, but can provide a better approximation with fewer coefficients The coefficients of DCT are real valued instead of complex valued in DFT.

The 64 (8 X 8) DCT Basis Functions Each 8x8 block can be looked at as a weighted sum of these basis functions. The process of 2D DCT is also the process of finding those weights.

Zig-zag Scan DCT Blocks Why? -- To group low frequency coefficients in top of vector. Maps 8 x 8 to a 1 x 64 vector.

Original

JPEG 27:1

JPEG :1

JPEG Compression Example Original image 512 x 512 x 8 bits = 2,097,152 bits JPEG 27:1 reduction =77,673 bits

What Is MPEG ? "Motion Picture Expert Group", established in 1990 to create standard for delivery of audio and video. MPEG-1 : target VHS quality on a CD-ROM (320 x CD 1.5 Mbits/sec).

MPEG (Interframe Coding) Temporal DPCM is used to remove temporal redundancy first. The motion compensated error is coded with DCT+Run length Huffman entropy coding.

MPEG Temporal redundancy Prediction along the motion trajectories (motion compensation prediction)

Motion Estimation The accuracy of motion estimation has a big influence on coding efficiency. Motion estimation is a very time-consuming work. Some fast algorithms are needed.

Motion Compensated Prediction First frame Second frame

MPEG-1 I frame — Intra-coded frame P frame — Inter-coded frame or Predicted frame