CS654: Digital Image Analysis

Slides:



Advertisements
Similar presentations
Chapter 6 Information Theory
Advertisements

Data Compression Michael J. Watts
Compression & Huffman Codes
SWE 423: Multimedia Systems
Department of Computer Engineering University of California at Santa Cruz Data Compression (3) Hai Tao.
Fundamental limits in Information Theory Chapter 10 :
Image Compression (Chapter 8)
MPEG Audio Compression by V. Loumos. Introduction Motion Picture Experts Group (MPEG) International Standards Organization (ISO) First High Fidelity Audio.
Information Theory Eighteenth Meeting. A Communication Model Messages are produced by a source transmitted over a channel to the destination. encoded.
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 건국대학교 인터넷미디어공학부 임 창 훈.
1 Image Compression อ. รัชดาพร คณาวงษ์ วิทยาการคอมพิวเตอร์ คณะ วิทยาศาสตร์ มหาวิทยาลัยศิลปากรวิทยาเขต พระราชวังสนามจันทร์
Lossless Compression - I Hao Jiang Computer Science Department Sept. 13, 2007.
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]
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.
ELG5126 Source Coding and Data Compression
Image Compression - JPEG. Video Compression MPEG –Audio compression Lossy / perceptually lossless / lossless 3 layers Models based on speech generation.
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.
©2003/04 Alessandro Bogliolo Background Information theory Probability theory Algorithms.
Entropy and some applications in image processing Neucimar J. Leite Institute of Computing
INFORMATION THEORY BYK.SWARAJA ASSOCIATE PROFESSOR MREC.
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.
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
Audio Compression Usha Sree CMSC 691M 10/12/04. Motivation Efficient Storage Streaming Interactive Multimedia Applications.
CS Spring 2011 CS 414 – Multimedia Systems Design Lecture 7 – Basics of Compression (Part 2) Klara Nahrstedt Spring 2011.
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.
Digital Image Processing, 2nd ed. © 2002 R. C. Gonzalez & R. E. Woods Chapter 8 – Image Compression.
Image Compression (Chapter 8) CSC 446 Lecturer: Nada ALZaben.
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
Image Compression – Fundamentals and Lossless Compression Techniques
Outline Kinds of Coding Need for Compression Basic Types Taxonomy Performance Metrics.
Image Compression Fasih ur Rehman. Goal of Compression Reduce the amount of data required to represent a given quantity of information Reduce relative.
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.
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.
Advances in digital image compression techniques Guojun Lu, Computer Communications, Vol. 16, No. 4, Apr, 1993, pp
Source Coding Efficient Data Representation A.J. Han Vinck.
Lecture 4: Lossless Compression(1) Hongli Luo Fall 2011.
CS654: Digital Image Analysis Lecture 34: Different Coding Techniques.
Digital Image Processing Lecture 22: Image Compression
STATISTIC & INFORMATION THEORY (CSNB134) MODULE 11 COMPRESSION.
Image Processing Architecture, © Oleh TretiakPage 1Lecture 4 ECE-C490 Winter 2004 Image Processing Architecture Lecture 4, 1/20/2004 Principles.
Chapter 8 Lossy Compression Algorithms. Fundamentals of Multimedia, Chapter Introduction Lossless compression algorithms do not deliver compression.
CS Spring 2012 CS 414 – Multimedia Systems Design Lecture 7 – Basics of Compression (Part 2) Klara Nahrstedt Spring 2012.
Mutual Information, Joint Entropy & Conditional Entropy
Dr. Hadi AL Saadi Image Compression. Goal of Image Compression Digital images require huge amounts of space for storage and large bandwidths for transmission.
IT472 Digital Image Processing
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.
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.
CH 8. Image Compression 8.1 Fundamental 8.2 Image compression models
I MAGE C OMPRESSION. The goal of image compression is to reduce the amount of data required to represent a digital image.
Image Compression 9/20/2018 Image Compression.
Digital Multimedia Coding
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 Compression Fundamentals Error-Free Compression
Image Transforms for Robust Coding
Presentation transcript:

CS654: Digital Image Analysis Lecture 33: Introduction to Image Compression and Coding

Outline of Lecture 33 Introduction to image compression Measure of information content Introduction to Coding Redundancies Image compression model

Goal of Image Compression The goal of image compression is to reduce the amount of data required to represent a digital image

Approaches Lossless Information preserving Low compression ratios Lossy Not information preserving High compression ratios

Data ≠ Information Data and information are NOT synonymous terms Data is the means by which information is conveyed Data compression aims to reduce the amount of data required to represent a given quantity of information To preserve as much information as possible The same amount of information can be represented by various amount of data

Compression Ratio (CR) 𝐶𝑅= 𝑛 1 𝑛 2

Data Redundancy 𝑅𝐷=1− 1 𝐶𝑅 𝐶𝑅= 10 1 ∴𝑅𝐷=1− 1 10 =90% Relative data redundancy: 𝑅𝐷=1− 1 𝐶𝑅 Example: A compression engine represents 10 bits of information of the source data with only 1 bit. Calculate the data redundancy present in the source data. 𝐶𝑅= 10 1 ∴𝑅𝐷=1− 1 10 =90%

Types of Data Redundancy Coding Redundancy 1 Number of bits required to code Interpixel Redundancy 2 similarity in the neighborhood. Psychovisual Redundancy 3 irrelevant information for the human visual system Compression attempts to reduce one or more of these redundancy types.

Coding Redundancy Code: a list of symbols (letters, numbers, bits etc.) Code word: a sequence of symbols used to represent a piece of information or an event (e.g., gray levels). Code word length: number of symbols in each code word 𝑵×𝑴 image 𝒓𝒌: k-th gray level 𝑷(𝒓𝒌): probability of 𝑟𝑘 𝒍(𝒓𝒌): number of bits for 𝑟𝑘 Expected value: 𝐸 𝑋 = 𝑥 𝑥𝑃(𝑋=𝑥) 𝐿 𝑎𝑣𝑔 =𝐸 𝑙 𝑟 𝑘 = 𝑘=0 𝐿−1 𝑙 𝑟 𝑘 𝑃( 𝑟 𝑘 ) Average number of bits Total number of bits 𝑁𝑀𝐿 𝑎𝑣𝑔

Coding Redundancy Fixed length coding 𝑟𝑘 𝒑 𝒓 ( 𝒓 𝒌 ) Code 1 𝒍 𝒓 (𝑟𝑘) 𝑟 0 =0 0.19 000 3 𝑟 1 =1/7 0.25 001 𝑟 2 =2/7 0.21 010 𝑟 3 =3/7 0.16 011 𝑟 4 =4/7 0.08 100 𝑟 5 =5/7 0.06 101 𝑟 6 =6/7 0.03 110 𝑟 7 =1 0.02 111 𝐿 𝑎𝑣𝑔 = 𝑘=0 7 3𝑃 𝑟 𝑘 =3 bits Total number of bits =3𝑁𝑀

Coding Redundancy Variable length coding 𝑟𝑘 𝒑 𝒓 ( 𝒓 𝒌 ) Code 1 𝒍 𝒓 (𝑟𝑘) Code 2 𝒍 𝒓 (𝐫𝐤) 𝑟 0 =0 0.19 000 3 11 2 𝑟 1 =1/7 0.25 001 01 𝑟 2 =2/7 0.21 010 10 𝑟 3 =3/7 0.16 011 𝑟 4 =4/7 0.08 100 0001 4 𝑟 5 =5/7 0.06 101 00001 5 𝑟 6 =6/7 0.03 110 000001 6 𝑟 7 =1 0.02 111 000000 𝐿 𝑎𝑣𝑔 = 𝑘=0 7 𝑙 𝑟 ( 𝑟 𝑘 )𝑃 𝑟 𝑘 =2.7 bits 𝐶𝑅= 3 2.7 =1.11≈10% 𝑅𝐷=1− 1 1.11 =0.099

Inter-pixel redundancy Inter-pixel redundancy implies that pixel values are correlated A pixel value can be reasonably predicted by its neighbors A B

Psychovisual redundancy The human eye does not respond with equal sensitivity to all visual information. It is more sensitive to the lower frequencies than to the higher frequencies in the visual spectrum. Discard data that is perceptually insignificant!

16 gray levels/ random noise Example 256 gray levels 16 gray levels 16 gray levels/ random noise

Measuring Information What is the minimum amount of data that is sufficient to describe completely an image without loss of information? How do we measure the information content of a message/ image?

Modeling Information We assume that information generation is a probabilistic process. Associate information with probability! A random event 𝐸 with probability 𝑃(𝐸) contains: Note: 𝐼(𝐸)=0 when 𝑃(𝐸)=1

How much information does a pixel contain? Suppose that gray level values are generated by a random process, then 𝒓𝒌 contains: units of information!

How much information does an image contain? Average information content of an image: using units/pixel (e.g., bits/pixel) Entropy: (assumes statistically independent random events)

Redundancy (revisited) where: Note: if 𝐿𝑎𝑣𝑔= 𝐻, then 𝑅=0 (no redundancy)

Image Compression Model 𝒇(𝒙,𝒚) Compression Noise tolerance Encoder Decoder Source decoder Channel Decoder Channel Channel encoder Source Encoder 𝒇′(𝒙,𝒚)

Functional blocks

Functional blocks Mapper: transforms input data in a way that facilitates reduction of inter-pixel redundancies.

Functional blocks Quantizer: reduces the accuracy of the mapper’s output in accordance with some pre-established fidelity criteria.

Functional blocks Symbol encoder: assigns the shortest code to the most frequently occurring output values.

Fidelity Criteria How close is to ? Criteria Subjective: based on human observers Objective: mathematically defined criteria 25

Subjective Fidelity Criteria

Objective Fidelity Criteria Root mean square error (RMS) Mean-square signal-to-noise ratio (SNR) 27

Repetitive Sequence Encoding Lossless Compression Types of coding Repetitive Sequence Encoding Statistical Encoding Predictive Coding Bitplane coding RLE Huffman Arithmatic LZW DPCM