Image Compression Fasih ur Rehman. Goal of Compression Reduce the amount of data required to represent a given quantity of information Reduce relative.

Slides:



Advertisements
Similar presentations
Data Compression CS 147 Minh Nguyen.
Advertisements

Image Compression. Data and information Data is not the same thing as information. Data is the means with which information is expressed. The amount of.
Information Theory EE322 Al-Sanie.
SWE 423: Multimedia Systems
Department of Computer Engineering University of California at Santa Cruz Data Compression (3) Hai Tao.
Image Compression (Chapter 8)
Losslessy Compression of Multimedia Data Hao Jiang Computer Science Department Sept. 25, 2007.
Image Compression (Chapter 8)
Fundamentals of Multimedia Chapter 7 Lossless Compression Algorithms Ze-Nian Li and Mark S. Drew 건국대학교 인터넷미디어공학부 임 창 훈.
T.Sharon-A.Frank 1 Multimedia Image Compression 2 T.Sharon-A.Frank Coding Techniques – Hybrid.
1 Image Compression อ. รัชดาพร คณาวงษ์ วิทยาการคอมพิวเตอร์ คณะ วิทยาศาสตร์ มหาวิทยาลัยศิลปากรวิทยาเขต พระราชวังสนามจันทร์
Computer Vision Lecture 3: Digital Images
2007Theo Schouten1 Compression "lossless" : f[x,y]  { g[x,y] = Decompress ( Compress ( f[x,y] ) | “lossy” : quality measures e 2 rms = 1/MN  ( g[x,y]
Image Compression - JPEG. Video Compression MPEG –Audio compression Lossy / perceptually lossless / lossless 3 layers Models based on speech generation.
 Image compression is the art and science of reducing the amount of data required to represent an image.  It is one of the most useful and commercially.
Image Compression Image compression address the problem of reducing the amount of data required to represent a digital image with no significant loss of.
Software Research Image Compression Mohamed N. Ahmed, Ph.D.
Trevor McCasland Arch Kelley.  Goal: reduce the size of stored files and data while retaining all necessary perceptual information  Used to create an.
CM613 Multimedia storage and retrieval Lecture: Lossy Compression Slide 1 CM613 Multimedia storage and retrieval Lossy Compression D.Miller.
©2003/04 Alessandro Bogliolo Background Information theory Probability theory Algorithms.
Chapter 5 : IMAGE COMPRESSION – LOSSLESS COMPRESSION - Nur Hidayah Bte Jusoh (IT 01481) 2)Azmah Bte Abdullah Sani (IT 01494) 3)Dina Meliwana.
Lecture 1 Contemporary issues in IT Lecture 1 Monday Lecture 10:00 – 12:00, Room 3.27 Lab 13:00 – 15:00, Lab 6.12 and 6.20 Lecturer: Dr Abir Hussain Room.
Department of Physics and Astronomy DIGITAL IMAGE PROCESSING
GODIAN MABINDAH RUTHERFORD UNUSI RICHARD MWANGI.  Differential coding operates by making numbers small. This is a major goal in compression technology:
Computer Vision – Compression(2) Hanyang University Jong-Il Park.
ECE472/572 - Lecture 12 Image Compression – Lossy Compression Techniques 11/10/11.
Image Restoration AND Compression
Prof. Amr Goneid Department of Computer Science & Engineering
Chapter 8 Image Compression. What is Image Compression? Reduction of the amount of data required to represent a digital image → removal of redundant data.
Image Processing and Computer Vision: 91. Image and Video Coding Compressing data to a smaller volume without losing (too much) information.
Indiana University Purdue University Fort Wayne Hongli Luo
Image Compression (Chapter 8) CSC 446 Lecturer: Nada ALZaben.
Image Compression Supervised By: Mr.Nael Alian Student: Anwaar Ahmed Abu-AlQomboz ID: IT College “Multimedia”
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.
Digital Image Processing Image Compression
Lossless Compression CIS 465 Multimedia. Compression Compression: the process of coding that will effectively reduce the total number of bits needed to.
Image Compression – Fundamentals and Lossless Compression Techniques
Outline Kinds of Coding Need for Compression Basic Types Taxonomy Performance Metrics.
COMPRESSION. Compression in General: Why Compress? So Many Bits, So Little Time (Space) CD audio rate: 2 * 2 * 8 * = 1,411,200 bps CD audio storage:
Computer Vision – Compression(1) Hanyang University Jong-Il Park.
Chapter 17 Image Compression 17.1 Introduction Redundant and irrelevant information  “Your wife, Helen, will meet you at Logan Airport in Boston.
Lecture 4: Lossless Compression(1) Hongli Luo Fall 2011.
CS654: Digital Image Analysis
CS654: Digital Image Analysis Lecture 34: Different Coding Techniques.
Digital Image Processing Lecture 22: Image Compression
Block-based coding Multimedia Systems and Standards S2 IF Telkom University.
STATISTIC & INFORMATION THEORY (CSNB134) MODULE 11 COMPRESSION.
Chapter 8 Lossy Compression Algorithms. Fundamentals of Multimedia, Chapter Introduction Lossless compression algorithms do not deliver compression.
Chapter 7 Lossless Compression Algorithms 7.1 Introduction 7.2 Basics of Information Theory 7.3 Run-Length Coding 7.4 Variable-Length Coding (VLC) 7.5.
Fundamentals of Multimedia Chapter 6 Basics of Digital Audio Ze-Nian Li and Mark S. Drew 건국대학교 인터넷미디어공학부 임 창 훈.
By Dr. Hadi AL Saadi Lossy Compression. Source coding is based on changing of the original image content. Also called semantic-based coding High compression.
IT472 Digital Image Processing
Entropy vs. Average Code-length Important application of Shannon’s entropy measure is in finding efficient (~ short average length) code words The measure.
Image Compression (Chapter 8) CS474/674 – Prof. Bebis.
Introductions What Is Data Compression ? Data compression is the process of reduction in the amount of signal space that must be allocated to a given.
H. 261 Video Compression Techniques 1. H.261  H.261: An earlier digital video compression standard, its principle of MC-based compression is retained.
Chapter 8 Lossy Compression Algorithms
Image Compression (Chapter 8)
IMAGE PROCESSING IMAGE COMPRESSION
Digital Image Processing Lecture 20: Image Compression May 16, 2005
IMAGE COMPRESSION.
Image Compression The still image and motion images can be compressed by lossless coding or lossy coding. Principle of compression: - reduce the redundant.
Data Compression.
CH 8. Image Compression 8.1 Fundamental 8.2 Image compression models
Image Compression 9/20/2018 Image Compression.
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.
ENEE 631 Project Video Codec and Shot Segmentation
Image Compression Fundamentals Error-Free Compression
Image Coding and Compression
Presentation transcript:

Image Compression Fasih ur Rehman

Goal of Compression Reduce the amount of data required to represent a given quantity of information Reduce relative data redundancy R

Redundancies Three basic data “redundancies” for image compression: –Coding redundancy, –Inter-pixel redundancy (spatial and temporal) and –Psycho-visual redundancy

Coding Redundancy Based on intensity value –Code word: a sequence of symbols use to represent a piece of information or event –Code length: the number of symbols

Spatial and Temporal Redundancy Unnecessarily replicated in the representations of the correlated pixels Psycho-visual redundancy –Information ignored by the human visual system

Which Figure has More Redundancies?

Coding Redundancy Is present when the codes do not take full advantage of the probabilities of the events The gray level of an image and that r k occur with probability p r (r k ) The average bits of number required to represent each pixel Variable length coding -assign fewer bits to the more probable gray level than less probable ones achieve data compression

Variable Length Coding

Basis of Compression through VLC

Inter-pixel Redundancy VLC can be used to reduce the coding redundancy that would result from a straight or natural binary coding of their pixels The coding would not alter the level of correlation between the pixels within the images 2-D pixel array used for human viewing and interpretation must transformed into a more efficient format Mapping – represent an image with difference between adjacent pixels Reversible mapping -the original image elements can be reconstructed from the transformed data set Map the pixels along each scan line f(x,0) f(x,1)… f(x,N- 1) into a sequence of pair The thresholded image can be more efficiently represented by the values and length of its constant gray-level runs than by a 2-D array of binary pixels

Example Inter-pixel Redundancy

Psycho-visual Redundancy Certain information has less importance than other information in normal visual processing Human perception of the information in an image does not involve quantitative analysis of every pixel value (the reason of existing Psycho-visual Redundancy) Associated with real or quantifiable visual information It can be eliminated only because the information itself is not essential in formal visual processing –The elimination results in a loss of quantitative information: quantization –Quantization leads to lossy data compression

Quantization IGS (improved gray-scale quantization) –expense of some additional but less objectionable grain ness –Using break edges by adding to each pixel a pseudo-random number IGS entails a decrease in the image’s spatial and/or gray-scale resolution –Use heuristic techniques to compensate for the visual impact of quantization

IGS Quantization Procedure

Example Quantization

Measuring Information How few bits are actually needed to represent the information in an image? The generation of information can be modeled as a probabilistic process Units of information –No uncertainty P(E)=1 –M-ary units – if the base 2 is selected, P(E) =2, I(E)= 1 bit The average information per source output—called the entropy of the source is The intensity entropy based on the histogram of the observed image is

Fidelity Criterion A repeatable or reproducible means of quantifying the nature and extent of information loss Two general classes of criteria for assessment: (1) objective fidelity criteria ; (2) subjective criteria Objective Fidelity Criteria –the level of information loss can be expressed as a function of the original or input image and the compressed and subsequently decompressed output. –Root-mean square error –Mean-square signal-to-noise ratio of the compressed-decompressed image Subjective is more appropriate for measuring image quality –If we can select viewers and average their evaluations

Ratings Scales for TV

Image Compression Models A compression system consists of two structural blocks: an encoder and a decoder Encoder is made up of source encoder and a channel encoder Source encoder and decoder –Source encoder Reduce or eliminate any coding, inter-pixel or psycho-visual redundancies in the input image The corresponding source encoder- mapper, quantizer and symbol encoder

Mapper Transforms the input data into a format designed to reduce inter-pixel redundancies Reversible process May and may not directly reduce the amount of data required to represent the image

Quantizer Reduce the accuracy of the mapper’s output in accordance with some pre- established fidelity criterion Reduce psycho-visual redundancy Irreversible operation when error compression is omitted

Symbol Encoder Creates a fixed or variable-length to represent quantizer output and maps the output in accordance with the code A variable length code is used to represent the mapped and quantized data set Reduce coding redundancy (assign the shortest code words to the most frequently occurring values

Source Decoder Contains only two components –Symbol Decoder –Inverse Mapper –Inverse quantizer usually is not included in decoder

Block Diagram (Compression Model)

Block Diagram (Codec)