Image Processing, Leture #16

Slides:



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

JPEG DCT Quantization FDCT of 8x8 blocks.
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.
Geometry Compression Michael Deering, Sun Microsystems SIGGRAPH (1995) Presented by: Michael Chung.
Data Compression Michael J. Watts
SWE 423: Multimedia Systems
Compression & Huffman Codes
School of Computing Science Simon Fraser University
CPSC 231 Organizing Files for Performance (D.H.) 1 LEARNING OBJECTIVES Data compression. Reclaiming space in files. Compaction. Searching. Sorting, Keysorting.
SWE 423: Multimedia Systems
CSCI 3 Chapter 1.8 Data Compression. Chapter 1.8 Data Compression  For the purpose of storing or transferring data, it is often helpful to reduce the.
Fundamentals of Multimedia Chapter 7 Lossless Compression Algorithms Ze-Nian Li and Mark S. Drew 건국대학교 인터넷미디어공학부 임 창 훈.
CMPT 365 Multimedia Systems
T.Sharon-A.Frank 1 Multimedia Image Compression 2 T.Sharon-A.Frank Coding Techniques – Hybrid.
Lossless Compression - I Hao Jiang Computer Science Department Sept. 13, 2007.
Management Information Systems Lection 06 Archiving information CLARK UNIVERSITY College of Professional and Continuing Education (COPACE)
Image Compression - JPEG. Video Compression MPEG –Audio compression Lossy / perceptually lossless / lossless 3 layers Models based on speech generation.
JPEG C OMPRESSION A LGORITHM I N CUDA Group Members: Pranit Patel Manisha Tatikonda Jeff Wong Jarek Marczewski Date: April 14, 2009.
: Chapter 12: Image Compression 1 Montri Karnjanadecha ac.th/~montri Image Processing.
Klara Nahrstedt Spring 2011
 In electrical engineering and computer science image processing is any form of signal processing for which the input is an image, such as a photograph.
Seeram Chapter #3: Digital Imaging
Indiana University Purdue University Fort Wayne Hongli Luo
8. 1 MPEG MPEG is Moving Picture Experts Group On 1992 MPEG-1 was the standard, but was replaced only a year after by MPEG-2. Nowadays, MPEG-2 is gradually.
Addressing Image Compression Techniques on current Internet Technologies By: Eduardo J. Moreira & Onyeka Ezenwoye CIS-6931 Term Paper.
Understanding JPEG MIT-CETI Xi’an ‘99 Lecture 10 Ben Walter, Lan Chen, Wei Hu.
Digital Image Processing Image Compression
Image Compression – Fundamentals and Lossless Compression Techniques
Compression There is need for compression: bandwidth constraints of multimedia applications exceed the capability of communication channels Ex. QCIF bit.
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:
Advances in digital image compression techniques Guojun Lu, Computer Communications, Vol. 16, No. 4, Apr, 1993, pp
1 Research Question  Can a vision-based mobile robot  with limited computation and memory,  and rapidly varying camera positions,  operate autonomously.
Lecture 4: Lossless Compression(1) Hongli Luo Fall 2011.
JPEG.
Page 11/28/2016 CSE 40373/60373: Multimedia Systems Quantization  F(u, v) represents a DCT coefficient, Q(u, v) is a “quantization matrix” entry, and.
STATISTIC & INFORMATION THEORY (CSNB134) MODULE 11 COMPRESSION.
Introduction to JPEG m Akram Ben Ahmed
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.
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.
An introduction to audio/video compression Prepared by :: Bhatt shivani ( )
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 PROCESSING IMAGE COMPRESSION
Digital Image Processing Lecture 20: Image Compression May 16, 2005
CPSC 231 Organizing Files for Performance (D.H.)
Distributed Compression For Still Images
3.3 Fundamentals of data representation
IMAGE COMPRESSION.
Chapter 9 Image Compression Standards
Data Compression.
Algorithms in the Real World
JPEG Image Coding Standard
JPEG.
JPG vs GIF vs PNG What is the difference?
Data Compression.
Data Compression CS 147 Minh Nguyen.
Image Compression 9/20/2018 Image Compression.
CMPT 365 Multimedia Systems
Digital Image Processing
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 Transforms for Robust Coding
Image Compression Purposes Requirements Types
Image Coding and Compression
File Compression Even though disks have gotten bigger, we are still running short on disk space A common technique is to compress files so that they take.
Data Compression.
Quantizing Compression
Huffman Coding Greedy Algorithm
Quantizing Compression
Presentation transcript:

240-373 Image Processing, Leture #16 Image Compression Purposes To minimize storage space To maximize transfer speed To minimize hardware costs Requirements Speedy operation (compression and unpacking) Significantly reduction in required memory No significant loss of quality Format of output suitable for transfer and storage Types Statistical compression--based on pixels in whole image Spatial compression--based on the spatial relationship of pixels of similar type Quantizing compression--reducing number of gray levels and resolution Fractal compression--based on fractal generating functions 08/12/61 240-373 Image Processing, Leture #16

Statistical Compression The Huffman Coding Based on the assumption that the histogram is not normally flat If 4 of 16 colors are used 60% of the time, 4 more for a further 30% and the rest for 10%, then we could use the following scheme: frequently used four colors 000 001 010 011 next most frequently used colors 1000 1001 1010 1011 the rest 11000 11001 11010 11011 11100 11101 11110 11111 This means that the length (for an 640x480 image=150K) is reduced to [(0.6*3)+(0.3*4)+(0.1*5)] * 640 * 480 = 131.25K 08/12/61 240-373 Image Processing, Leture #16

240-373 Image Processing, Leture #16 The average length has been reduced from 4 bits to 3.5 bits It can be shown that with M gray levels, each with probability of P0, P1, .. PM-1 , The number of bits required to code them is at least Technique 1: The Huffman Code USE: To reduce the space that an image uses on disk or in transit OPERATION: Order the gray levels according to their frequency of use, most occurrence first Combine the two least used gray levels into one group, combine their frequencies and reorder the gray levels Continue to do this until only two gray levels are left Now allocate a 0 to one of these gray-level groups and a 1 to the other Work back through the groupings so that where two groups have been combined to form a new, larger, group which is currently coded as ‘ccc’ Code one of the smaller groups as ccc0 and the other as ccc1 08/12/61 240-373 Image Processing, Leture #16

Huffman coding example Example: For a nine-color system, we obtain the following coding: 0 100000 5 01 1 10001 6 000 2 101 7 1001 3 001 8 100001 5 11 Storage has improved from 19000*3 bits = 57000 bits to 51910 bits. 08/12/61 240-373 Image Processing, Leture #16

240-373 Image Processing, Leture #16 08/12/61 240-373 Image Processing, Leture #16

240-373 Image Processing, Leture #16 Spatial Compression Technique 2: Run length encoding USE: To reduce the space required by an image OPERATION: The run is encoded by creating pairs of values: the first representing the gray level and the second how many of them are in the run Example: image giving a sequence: 1 2 1 1 1 1 1 3 4 4 4 4 1 1 3 3 3 5 1 1 1 1 3 3 (24 values) with run length encoding (1,1) (2,1) (1,5) (3,1) (4,4) (1,2) (3,3) (5,1) (1,4) (3,2) this would give: 1 1 2 1 1 5 3 1 4 4 1 2 3 3 5 1 1 4 3 2 (20 values) 08/12/61 240-373 Image Processing, Leture #16

Spatial Compression: Cont’d Notes Huffman coding can be performed after Run length encoding It might be possible to implement the Huffman code only on the run lengths Contour Coding Reducing the areas of pixels of the same gray levels to a set of contours that bound those areas Consider the following image 08/12/61 240-373 Image Processing, Leture #16

240-373 Image Processing, Leture #16 08/12/61 240-373 Image Processing, Leture #16

240-373 Image Processing, Leture #16 08/12/61 240-373 Image Processing, Leture #16

240-373 Image Processing, Leture #16 Changing the Domain Technique 3: Compression using the frequency domain USE: To reduce space required for an image OPERATION: Convert the image to the frequency domain using FFT or FHT Threshold this new image removing all values less than k If what is left is significantly less than the original image, using one of the spatial region techniques, store the rest of the image If it is not significantly less, increase k-- more information will be lost 08/12/61 240-373 Image Processing, Leture #16