T h e U n i v e r s i t y o f B r i t i s h C o l u m b i a Bi-Level Image Compression EECE 545: Data Compression by Dave Tompkins.

Slides:



Advertisements
Similar presentations
T.Sharon-A.Frank 1 Multimedia Compression Basics.
Advertisements

Computer Vision – Coding Standards
Chapter 7 End-to-End Data
SWE 423: Multimedia Systems
School of Computing Science Simon Fraser University
Spring 2003CS 4611 Multimedia Outline Compression RTP Scheduling.
SWE 423: Multimedia Systems
Compression Word document: 1 page is about 2 to 4kB Raster Image of 1 page at 600 dpi is about 35MB Compression Ratio, CR =, where is the number of bits.
Department of Computer Engineering University of California at Santa Cruz Data Compression (3) Hai Tao.
Computer Science 335 Data Compression.
CMPT 365 Multimedia Systems
T.Sharon-A.Frank 1 Multimedia Image Compression 2 T.Sharon-A.Frank Coding Techniques – Hybrid.
Lossless Compression in Multimedia Data Representation Hao Jiang Computer Science Department Sept. 20, 2007.
Data dan Teknologi Multimedia Sesi 08 Nofriyadi Nurdam.
1 JPEG Compression CSC361/661 Burg/Wong. 2 Fact about JPEG Compression JPEG stands for Joint Photographic Experts Group JPEG compression is used with.jpg.
Spring 2015 Mathematics in Management Science Binary Linear Codes Two Examples.
Image Compression - JPEG. Video Compression MPEG –Audio compression Lossy / perceptually lossless / lossless 3 layers Models based on speech generation.
Software Research Image Compression Mohamed N. Ahmed, Ph.D.
Lossy Compression Based on spatial redundancy Measure of spatial redundancy: 2D covariance Cov X (i,j)=  2 e -  (i*i+j*j) Vertical correlation   
15-853Page :Algorithms in the Real World Data Compression II Arithmetic Coding – Integer implementation Applications of Probability Coding – Run.
Introduction to JPEG Alireza Shafaei ( ) Fall 2005.
JPEG Motivations: Motivations: 1.Uncompressed video and audio data are huge. In HDTV, the bit rate easily exceeds 1 Gbps. --> big problems for.
1 Image Compression. 2 GIF: Graphics Interchange Format Basic mode Dynamic mode A LZW method.
Lab #5-6 Follow-Up: More Python; Images Images ● A signal (e.g. sound, temperature infrared sensor reading) is a single (one- dimensional) quantity that.
296.3Page 1 CPS 296.3:Algorithms in the Real World Data Compression: Lecture 2.5.
Joint Bi-Level Image Experts Group ( JBIG ). JBIG Joint Bi-Level Image Experts Group (JBIG), reports both to ISO/IEC JTC1/SC29/WG11 and ITU-T SG 8. 
INTERPOLATED HALFTONING, REHALFTONING, AND HALFTONE COMPRESSION Prof. Brian L. Evans Collaboration.
Concepts of Multimedia Processing and Transmission IT 481, Lecture 5 Dennis McCaughey, Ph.D. 19 February, 2007.
UNIT IV Image Compression Outline Goal of Image Compression Lossless and lossy compression Types of redundancy General image compression model Transform.
Prof. Amr Goneid Department of Computer Science & Engineering
JPEG. The JPEG Standard JPEG is an image compression standard which was accepted as an international standard in  Developed by the Joint Photographic.
CIS679: Multimedia Basics r Multimedia data type r Basic compression techniques.
Context-based, Adaptive, Lossless Image Coding (CALIC) Authors: Xiaolin Wu and Nasir Memon Source: IEEE TRANSACTIONS ON COMMUNICATIONS, VOL. 45, NO. 4,
JPEG CIS 658 Fall 2005.
COMPRESSION AND DECOMPRESSION 10/22/20151 A.Aruna, Assistant Professor, Faculty of Information Technology.
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.
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
1 Image Formats. 2 Color representation An image = a collection of picture elements (pixels) Each pixel has a “color” Different types of pixels Binary.
Image Processing Architecture, © Oleh TretiakPage 1Lecture 3 ECE-C490 Winter 2004 Image Processing Architecture Lecture 3, 1/13/2004 Lossless.
Spring 2000CS 4611 Multimedia Outline Compression RTP Scheduling.
Image formats Characteristics © Adolf Knoll, National Library of the Czech Republic.
Lecture 4: Lossless Compression(1) Hongli Luo Fall 2011.
Data compression. lossless – looking for unicolor areas or repeating patterns –Run length encoding –Dictionary compressions Lossy – reduction of colors.
JPEG Image Compression Standard Introduction Lossless and Lossy Coding Schemes JPEG Standard Details Summary.
JPEG.
Image Processing Architecture, © Oleh TretiakPage 1Lecture 4 ECE-C490 Winter 2004 Image Processing Architecture Lecture 4, 1/20/2004 Principles.
Introduction to JPEG m Akram Ben Ahmed
Multi-media Data compression
Digital video Henning Schulzrinne Columbia University Fall 2003.
ECE 101 An Introduction to Information Technology Information Coding.
IS502:M ULTIMEDIA D ESIGN FOR I NFORMATION S YSTEM M ULTIMEDIA OF D ATA C OMPRESSION Presenter Name: Mahmood A.Moneim Supervised By: Prof. Hesham A.Hefny.
MP3 and AAC Trac D. Tran ECE Department The Johns Hopkins University Baltimore MD
JPEG Compression What is JPEG? Motivation
Multimedia Outline Compression RTP Scheduling Spring 2000 CS 461.
Lossy Compression of Stochastic Halftones with JBIG2
Algorithms in the Real World
JPEG.
Image Compression Standards (JPEG)
Huffman Coding, Arithmetic Coding, and JBIG2
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.
JPEG Pasi Fränti
UNIT IV.
Judith Molka-Danielsen, Oct. 02, 2000
JPEG Still Image Data Compression Standard
An Algorithm for Compression of Bilevel Images
Chapter 8 – Compression Aims: Outline the objectives of compression.
Context-based, Adaptive, Lossless Image Coding (CALIC)
Presentation transcript:

T h e U n i v e r s i t y o f B r i t i s h C o l u m b i a Bi-Level Image Compression EECE 545: Data Compression by Dave Tompkins

© 1999 The Signal Processing and Multimedia Group – The University of British Columbia EECE 545: Bi-Level Image Compression. By Dave Tompkins Page 2 Overview Introduction to Bi-Level Image Compression Existing Facsimile Standards:  G3 (MR)  G4 (MMR)  JBIG[1] New Bi-Level Standards:  JBIG2

© 1999 The Signal Processing and Multimedia Group – The University of British Columbia EECE 545: Bi-Level Image Compression. By Dave Tompkins Page 3 Introduction: Meet Dave Dave and his Mom:

© 1999 The Signal Processing and Multimedia Group – The University of British Columbia EECE 545: Bi-Level Image Compression. By Dave Tompkins Page 4 Definition: Bi-Level Multi-Level (Gray Scale) Bi-Level (Black & White)

© 1999 The Signal Processing and Multimedia Group – The University of British Columbia EECE 545: Bi-Level Image Compression. By Dave Tompkins Page 5 Properties of Bi-Level Images Mostly High Frequency Often Very High Resolutions:  Computer Monitor: 96dpi  Fax Machine: 200dpi 1 page fax (8.5” x 11” x 200dpi) ~=.5 Meg  Laser Printer: 600dpi (1 page = 4.2 Megs)  High-End Printing Press: 1600dpi (30 Megs!) Will often contain text, halftoned images and line-art (graphs, equations, logos, etc.)

© 1999 The Signal Processing and Multimedia Group – The University of British Columbia EECE 545: Bi-Level Image Compression. By Dave Tompkins Page 6 Existing Fax Standards T.4 (Group 3) MH (Modified Huffman): Huffman & Run-Length Encoding (RLE) Code Lengths are based on statistics, not actual length Codes are different for each colour Codes are fixed, and never change

© 1999 The Signal Processing and Multimedia Group – The University of British Columbia EECE 545: Bi-Level Image Compression. By Dave Tompkins Page 7 Existing Fax Standards T.6 (Group 4) MMR (Modified Modified Read): Huffman Coding & Modified RLE Reference Line Current Line a0a0 a1a1 a2a2 b1b1 b2b2 a 1 b 1 a 0 a 1 a 1 a 2 vertical mode: | a 1 b 1 |  3 horizontal mode pass mode: a 1 past b 2 3 Different Modes run lengths are relative to the previous line

© 1999 The Signal Processing and Multimedia Group – The University of British Columbia EECE 545: Bi-Level Image Compression. By Dave Tompkins Page 8 Existing Fax Standards T.4 (Group 3)  MH - Modified Huffman (and RLE)  MR - Modified Read Uses information from previous line Uses MH mode every k lines for error correction T.6 (Group 4)  MMR - Modified Modified Read Uses information from previous line Assumes Error-Free Environment

© 1999 The Signal Processing and Multimedia Group – The University of British Columbia EECE 545: Bi-Level Image Compression. By Dave Tompkins Page 9 Existing Fax Standards JBIG[1] (T March, 1993) Joint Bi-Level Image Experts Group  Committee with Academic & Industrial members: ISO (International organization of National Bodies) ITU-T (Regulatory body of the United Nations) Arithmetic Coding (QM Coder) Context-based prediction Progressive Compression (Display)

© 1999 The Signal Processing and Multimedia Group – The University of British Columbia EECE 545: Bi-Level Image Compression. By Dave Tompkins Page 10 Existing Fax Standards Standard JBIG1 Context: ? = Pixel to be coded A = Adaptive pixel (which can be moved) Example: = 17%= 83% ? A

© 1999 The Signal Processing and Multimedia Group – The University of British Columbia EECE 545: Bi-Level Image Compression. By Dave Tompkins Page 11 Existing Fax Standards JBIG1: Progressive Compression (Display) Standard defines how to reduce the image Predictive context uses information from previous resolution level A ?

© 1999 The Signal Processing and Multimedia Group – The University of British Columbia EECE 545: Bi-Level Image Compression. By Dave Tompkins Page 12 Existing Fax Standards Arithmetic Q Coder  Numerous variations: Q, QM, MQ Used by JBIG[1], JPEG, JBIG2 & J2K Different probability tables, byte markers, etc. Adaptive Coder 16-bit Precision (32-bit C register) Uses numerous Approximations:  Fixed Probability Table  No Multiplication

© 1999 The Signal Processing and Multimedia Group – The University of British Columbia EECE 545: Bi-Level Image Compression. By Dave Tompkins Page 13 New Standards JBIG2 (T February 2000) First “lossy” bi-level standard Supports Three basic coding modes:  Generic (MMR or JBIG[1]-like arithmetic)  Halftone  Text Image can be segmented into regions  Each region can be coded with a different method

© 1999 The Signal Processing and Multimedia Group – The University of British Columbia EECE 545: Bi-Level Image Compression. By Dave Tompkins Page 14 JBIG2 - Compound Documents Segmentation is performed on compound documents to detect different regions   Generic Halftone Text

© 1999 The Signal Processing and Multimedia Group – The University of British Columbia EECE 545: Bi-Level Image Compression. By Dave Tompkins Page 15 JBIG2 - Generic Coding The core coding method of JBIG2 has not changed that much from previous methods There are two methods available in generic coding:  MMR (Group 4)  MQ Arithmetic Coding (similar to JBIG[1]) larger contexts are available: ? A AA A

© 1999 The Signal Processing and Multimedia Group – The University of British Columbia EECE 545: Bi-Level Image Compression. By Dave Tompkins Page 16 JBIG-2 Halftone Coding A halftone is coded as a multi-level image, along with a pattern and grid parameters The decoder constructs the halftone from the multi-level image and the pattern The multi-level image is coded as bi-level bit-planes, with the generic coder

© 1999 The Signal Processing and Multimedia Group – The University of British Columbia EECE 545: Bi-Level Image Compression. By Dave Tompkins Page 17 JBIG2 - Text Coding Each symbol is encoded in a dictionary with generic coding: And then, the image is constructed by adding images from the dictionary: yy xx The symbol ID and the (relative) co-ordinates are coded

© 1999 The Signal Processing and Multimedia Group – The University of British Columbia EECE 545: Bi-Level Image Compression. By Dave Tompkins Page 18 JBIG2 - Text Coding In actual documents, many symbols are very similar -- often due to scanning or spacial quantization errors Lossy Coding: Hard Pattern Matching Lossless Coding: Soft Pattern Matching

© 1999 The Signal Processing and Multimedia Group – The University of British Columbia EECE 545: Bi-Level Image Compression. By Dave Tompkins Page 19 JBIG2 - Soft Pattern Matching Soft Pattern Matching (refinement coding) is when a symbol is coded using a similar, previously coded symbol to provide additional context information. Already coded:To be coded: x?