IMAGE COMPRESSION. Image Compression. Why? Reducing transportation times Reducing file size. A two way event - compression and decompression

Similar documents
Digital Image Representation Image Compression

CS 335 Graphics and Multimedia. Image Compression

VC 12/13 T16 Video Compression

DigiPoints Volume 1. Student Workbook. Module 8 Digital Compression

Fundamentals of Video Compression. Video Compression

CMPT 365 Multimedia Systems. Media Compression - Image

Compression II: Images (JPEG)

Topic 5 Image Compression

Lecture 8 JPEG Compression (Part 3)

Image coding and compression

Digital Image Processing

06/12/2017. Image compression. Image compression. Image compression. Image compression. Coding redundancy: image 1 has four gray levels

Lecture 5: Compression I. This Week s Schedule

Features. Sequential encoding. Progressive encoding. Hierarchical encoding. Lossless encoding using a different strategy

JPEG: An Image Compression System. Nimrod Peleg update: Nov. 2003

Video Compression An Introduction

15 Data Compression 2014/9/21. Objectives After studying this chapter, the student should be able to: 15-1 LOSSLESS COMPRESSION

ECE 417 Guest Lecture Video Compression in MPEG-1/2/4. Min-Hsuan Tsai Apr 02, 2013

Introduction ti to JPEG

IMAGE COMPRESSION TECHNIQUES

Image Coding and Compression

Lecture 6: Compression II. This Week s Schedule

Lecture 8 JPEG Compression (Part 3)

Video Compression MPEG-4. Market s requirements for Video compression standard

JPEG: An Image Compression System

compression and coding ii

Compression; Error detection & correction

So, what is data compression, and why do we need it?

Multimedia Communications. Transform Coding

Index. 1. Motivation 2. Background 3. JPEG Compression The Discrete Cosine Transformation Quantization Coding 4. MPEG 5.

Wireless Communication

DCT Based, Lossy Still Image Compression

IMAGE COMPRESSION. Chapter - 5 : (Basic)

Digital Video Processing

IMAGE COMPRESSION USING HYBRID QUANTIZATION METHOD IN JPEG

Repetition 1st lecture

Megapixel Video for. Part 2 of 4. Brought to You by. Presented by Video Security Consultants

Chapter 1. Digital Data Representation and Communication. Part 2

2014 Summer School on MPEG/VCEG Video. Video Coding Concept

Fundamentals of Multimedia. Lecture 5 Lossless Data Compression Variable Length Coding

IMAGE PROCESSING (RRY025) LECTURE 13 IMAGE COMPRESSION - I

7.5 Dictionary-based Coding

IMAGE COMPRESSION- I. Week VIII Feb /25/2003 Image Compression-I 1

Part 1 of 4. MARCH

Multimedia Networking ECE 599

Data and information. Image Codning and Compression. Image compression and decompression. Definitions. Images can contain three types of redundancy

Lecture Coding Theory. Source Coding. Image and Video Compression. Images: Wikipedia

Professor Laurence S. Dooley. School of Computing and Communications Milton Keynes, UK

JPEG. Wikipedia: Felis_silvestris_silvestris.jpg, Michael Gäbler CC BY 3.0

Multimedia Systems Image III (Image Compression, JPEG) Mahdi Amiri April 2011 Sharif University of Technology

Image, video and audio coding concepts. Roadmap. Rationale. Stefan Alfredsson. (based on material by Johan Garcia)

JPEG 2000 compression

EE67I Multimedia Communication Systems Lecture 4

JPEG Compression. What is JPEG?

Image Compression Algorithm and JPEG Standard

What is multimedia? Multimedia. Continuous media. Most common media types. Continuous media processing. Interactivity. What is multimedia?

Course Syllabus. Website Multimedia Systems, Overview

AN ANALYTICAL STUDY OF LOSSY COMPRESSION TECHINIQUES ON CONTINUOUS TONE GRAPHICAL IMAGES

Image Compression. CS 6640 School of Computing University of Utah

Image Coding and Data Compression

Multimedia. What is multimedia? Media types. Interchange formats. + Text +Graphics +Audio +Image +Video. Petri Vuorimaa 1

Video Codec Design Developing Image and Video Compression Systems

Image Compression - An Overview Jagroop Singh 1

IT Digital Image ProcessingVII Semester - Question Bank

Image compression. Stefano Ferrari. Università degli Studi di Milano Methods for Image Processing. academic year

Compression; Error detection & correction

Mahdi Amiri. February Sharif University of Technology

Bi-Level Image Compression

Computer and Machine Vision

( ) ; For N=1: g 1. g n

Compression Part 2 Lossy Image Compression (JPEG) Norm Zeck

Image Coding. Image Coding

Data Compression. Media Signal Processing, Presentation 2. Presented By: Jahanzeb Farooq Michael Osadebey

Ch. 2: Compression Basics Multimedia Systems

7: Image Compression

G64PMM - Lecture 3.2. Analogue vs Digital. Analogue Media. Graphics & Still Image Representation

Image Processing Computer Graphics I Lecture 15

Image Processing. Blending. Blending in OpenGL. Image Compositing. Blending Errors. Antialiasing Revisited Computer Graphics I Lecture 15

Department of electronics and telecommunication, J.D.I.E.T.Yavatmal, India 2

VIDEO SIGNALS. Lossless coding

TKT-2431 SoC design. Introduction to exercises

Introduction to Video Coding

Robert Matthew Buckley. Nova Southeastern University. Dr. Laszlo. MCIS625 On Line. Module 2 Graphics File Format Essay

1.Define image compression. Explain about the redundancies in a digital image.

Digital Image Processing

COMP 249 Advanced Distributed Systems Multimedia Networking. The Video Data Type Coding & Compression Basics

Biomedical signal and image processing (Course ) Lect. 5. Principles of signal and image coding. Classification of coding methods.

NAVAL POSTGRADUATE SCHOOL MONTEREY, CALIFORNIA THESIS DATA COMPRESSION STANDARDS AND APPLICATIONS TO GLOBAL COMMAND AND CONTROL SYSTEM

CISC 7610 Lecture 3 Multimedia data and data formats

A COMPRESSION TECHNIQUES IN DIGITAL IMAGE PROCESSING - REVIEW

End-to-End Data. Presentation Formatting. Difficulties. Outline Formatting Compression

Compression of Stereo Images using a Huffman-Zip Scheme

MULTIMEDIA AND CODING

High Quality Image Compression

TKT-2431 SoC design. Introduction to exercises. SoC design / September 10

A HYBRID DPCM-DCT AND RLE CODING FOR SATELLITE IMAGE COMPRESSION

Engineering Mathematics II Lecture 16 Compression

REVIEW ON IMAGE COMPRESSION TECHNIQUES AND ADVANTAGES OF IMAGE COMPRESSION

CoE4TN4 Image Processing. Chapter 8 Image Compression

Lecture 12: Compression

Transcription:

IMAGE COMPRESSION Image Compression Why? Reducing transportation times Reducing file size A two way event - compression and decompression 1

Compression categories Compression = Image coding Still-image compression Compression of moving image Lossless Lossy 2

INTERFRAME and INTRAFRAME PROCESSING Interframe Processing Point to Point Predictive Encoding Line to Line Intraframe Processing Image compression meters Compress ratio = Original image size Compressed image size The larger the compression ratio, the smaller the result image 3

Image compression Compression method is not same as the image fileinterchange format. Example TIFF -file format supports several compression methods 4

Why Can We Compress? Spatial redundancy Neighboring pixels are not independent but correlated Temporal redundancy Information vs Data REDUNDANT DATA INFORMATION DATA = INFORMATION + REDUNDANT DATA 5

Image compression fundamentals Same compression method is not to be used more than once. But you can use different methods at the same time, especially different lossless methods like LZW and PKZIP Image compression: symmetry 6

Color image compression RGB - apply the same compression scheme to the three color component images Convert the image from the RGB color space to a less redundant space, because RGB components carries a lot of same information. RGB --> HSB, when Hue and Saturation components are well compressed Color image compression RED GREEN BLUE BRIGHTNESS SATURATION H U E 7

Lossless image compression Image can be decompressed back to original Used when image s future purpose of use is not known, example space exploration imagery is often studied for years following its origination Run-Length Coding x 76 5 78 1 79 2 80 3 98 2 y 76 76 76 76 76 78 79 79 80 80 80 98 98 Run-Length Codes (Brightness Run-length) 8

Run-length coding Codes the nearby pixels which has same brightness values in two values - Run-Length, RLE and brightness value Error sensitive Data explosion Data errors Huffman Coding Converting the pixel brightness values in the original image to new variable-length codes, based on their frequency of occurrence in the image Raw Image Data 98,100,103, 87,86,95... Brightness Histogram Arrange values in descending frequency of occurrence Assign Huffman variable-length codes Substitute Huffman codes Append code list Huffman Code Image Data 0,10,0,1100 1111,11011 The flow of the Huffman coding operation. 9

Huffman coding character number Huffman code a (97) 45 1 1 b (98) 23 1 28 0 01 c (99) 2 0 5 0 000 d (100) 1 0 3 1 0010 CR (13) 1 1 2 1 00111 LF (10) 1 0 00110 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 10

Predictive Coding Based on the assumption that pixel s brightness can be predicted based on the brightness of the preceding pixel Codes only the brightness value of the pixel next to each other DPCM (Differential Pulse Code Modulation) DPCM (Differential Pulse Code Modulation) 11

Block Coding Searching for repeated patterns (mostly in rows) Pixel patterns are put in Codebook Original image s pixel pattern is replaced by codebook index in compressed image Block Coding LZW- compression (Lempel-Ziv-Welch) Compression ratio 2:1-3:1 Starting with a 256 single-pixel long codebook -> adding until it reaches its maximum length LZW+Huffmann, where most common pixel patterns get shortest codes 12

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 Transform Coding A form of lossy block coding, but it does not use codebook Frequency domain Frequency transformation finds the essential data in the image and coding is accurate 8*8 pixel blocks Discrete Cosine Transform (DCT) 13

File formats and compression methods Standards crucial, so pictures are transportable between different systems Compression standards: CCITT group 3 and 4 (Fax-standard) Joint Bi-level Image Expert Group (JBIG) Joint Photographic Experts Group (JPEG) Motion picture: CCITT Recommendation H.261 H.264 Moving Picture Experts Group (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. 14

Compression standards: JPEG Joint Photographic Experts Group (JPEG) One of the most important image data compression standards Developed for highly detailed gray-scale and color images / photographs Most commonly used as a lossy image compression method, but lossless modes exist as well JPEG uses several cascaded compression modes Adjustable compression scheme number of retained frequency components can be changed to achieve different compression ratios DCT > Remove rare frequency components > DPCM > Huffman 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. 15

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. 16

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 17

JPEG 27:1 JPEG2000 27:1 18

Motion compression standards Moving Picture Experts Group (MPEG) Intended for the mass distribution of motion video sequences Compression-asymmetric = compression techniques require more processing time and computing power than the decompression ones In addition to coding techniques used with JPEG, MPEG utilizes interframe coding methods MPEG-1 use CD-ROM and Internet MPEG-2 use DVD and Digi-TV MPEG-4 most advanced technology 19