Quantizing Compression

Slides:



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

15 Data Compression Foundations of Computer Science ã Cengage Learning.
Data Compression CS 147 Minh Nguyen.
MPEG4 Natural Video Coding Functionalities: –Coding of arbitrary shaped objects –Efficient compression of video and images over wide range of bit rates.
SWE 423: Multimedia Systems
School of Computing Science Simon Fraser University
Image Sequence Coding by Split and Merge Patrice Willemin, Todd R. Reed and Murat Kunt Presented by: Idan Shatz.
Fundamentals of Multimedia Chapter 7 Lossless Compression Algorithms Ze-Nian Li and Mark S. Drew 건국대학교 인터넷미디어공학부 임 창 훈.
Video Compression Concepts Nimrod Peleg Update: Dec
CS559-Computer Graphics Copyright Stephen Chenney Image File Formats How big is the image? –All files in some way store width and height How is the image.
MPEG MPEG-VideoThis deals with the compression of video signals to about 1.5 Mbits/s; MPEG-AudioThis deals with the compression of digital audio signals.
: Chapter 12: Image Compression 1 Montri Karnjanadecha ac.th/~montri Image Processing.
7/11/20081 Today’s Agenda Friday 6 th Nov Revision of certain topics Floating point notation Excess Notation Exam format Interim Report.
JPEG. The JPEG Standard JPEG is an image compression standard which was accepted as an international standard in  Developed by the Joint Photographic.
Image Processing and Computer Vision: 91. Image and Video Coding Compressing data to a smaller volume without losing (too much) information.
Data Compression. Compression? Compression refers to the ways in which the amount of data needed to store an image or other file can be reduced. This.
Still-image compression Moving-image compression and File types.
Image Compression Supervised By: Mr.Nael Alian Student: Anwaar Ahmed Abu-AlQomboz ID: IT College “Multimedia”
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.
1 Image Formats. 2 Color representation An image = a collection of picture elements (pixels) Each pixel has a “color” Different types of pixels Binary.
Spring 2000CS 4611 Multimedia Outline Compression RTP Scheduling.
Advances in digital image compression techniques Guojun Lu, Computer Communications, Vol. 16, No. 4, Apr, 1993, pp
Lecture 4: Lossless Compression(1) Hongli Luo Fall 2011.
Digital Image Processing Lecture 22: Image Compression
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.
Lecture 12 Huffman Algorithm. In computer science and information theory, a Huffman code is a particular type of optimal prefix code that is commonly.
Motion Estimation Multimedia Systems and Standards S2 IF Telkom University.
Submitted To-: Submitted By-: Mrs.Sushma Rani (HOD) Aashish Kr. Goyal (IT-7th) Deepak Soni (IT-8 th )
File Compression 3.3.
Graphics and image data representation
JPEG Compression What is JPEG? Motivation
Digital Image Processing Lecture 20: Image Compression May 16, 2005
3.3 Fundamentals of data representation
CSI-447: Multimedia Systems
Video Basics.
Computer Science Higher
Data Compression.
Multimedia Outline Compression RTP Scheduling Spring 2000 CS 461.
Chapter 3 Graphics and Image Data Representations
Graphics Bitmap Vector
JPEG Image Coding Standard
Injong Rhee ICMCS’98 Presented by Wenyu Ren
JPEG.
Data Compression.
Video Compression - MPEG
Huffman Coding, Arithmetic Coding, and JBIG2
Data Compression CS 147 Minh Nguyen.
Digital Image Formats: An Explanation
CMPT 365 Multimedia Systems
Sum of Absolute Differences Hardware Accelerator
CIS679: MPEG MPEG.
ENEE 631 Project Video Codec and Shot Segmentation
Image Processing, Leture #16
Standards Presentation ECE 8873 – Data Compression and Modeling
MPEG4 Natural Video Coding
Chapter Nine: Data Transmission
Technique 6: General gray-level transformations
Image Compression Purposes Requirements Types
Data Structure and Algorithms
Image Coding and Compression
15 Data Compression Foundations of Computer Science ã Cengage Learning.
Technique 6: General gray-level transformations
Chapter 7 漸進式影像傳輸.
Govt. Polytechnic Dhangar(Fatehabad)
Chapter 8 – Compression Aims: Outline the objectives of compression.
15 Data Compression Foundations of Computer Science ã Cengage Learning.
Quantizing Compression
Presentation transcript:

Quantizing Compression Involves reducing number of gray levels The easiest way is to divide all the gray levels by a factor Technique 4: Quantizing compression USE: To reduce storage space by limiting number of colors or gray levels OPERATION: Let P be the number of pixels in an original image to be compressed to N gray levels Create a histogram of the gray level in the original image Identify N ranges in the histogram such that approximately P/N lie in each range Identify the median (the gray level with 50% of the pixels in the range on one side of it and 50% on the other) gray level in each range. These will be the N gray levels used to quantize the image Store the N gray levels and allocate to each pixel a group (0 to n -1) according to which range it lies in 16/05/62 240-373 Image Processing

Quantizing compression example Consider the following image which is to be compressed to 2 bits/pixel, i.e. N = 4 histogram: 0 ** 1 ** 2 ********* 3 *********** 4 ********* 5 **** 6 ***** 7 ******** 8 ********* 9 ****** 65 pixels, down to 4 gray levels = 16.24 in each range. The best range are: 13 1 ** 20 4 ********* 17 6 ***** 15 9 ****** 16/05/62 240-373 Image Processing

Example: Cont’d Fractal Compression With median gray levels 2,3,6 and 8, the new image become: Note that this technique is similar to the histogram equalization technique. Fractal Compression Yields 10000:1 compression ratio Can also yield 1000000:1 compression ration with conventional algorithm added Based on very simple functions to generate (in multi-dimensional space) highly complex and totally predictable pattern Fractal graphics workstations: a 640x480 VGA image requires 5800 bytes of storage 16/05/62 240-373 Image Processing

Real-Time Image Transmission Compressing and sending a sequence of images in real- time Most of real-time vision systems send many images of the same type before changing the image to a new scene For example, most television program will dwell on a scene for at least 5 seconds Approach: the full first frame is sent, then only the differences of the next frames will be sent Run length encoding or simple vector encoding can be used for data reduction Example 3 bits/pixel x 48 pixels = 144 bits/image 16/05/62 240-373 Image Processing

Example (cont’d) If the first frame is sent, then the differences (mod 8) are now: Vector encoded: (2,2)=2, (2,5)=5, (3,2)=3, (3,5)=5, (4,2)=3, (4,5)=6 6 vectors, 6 bits/position, 4 bits/difference = 60 bits Modified run length encoded: 18 2 2 2 5 4 3 2 5 4 3 2 6 10 6 bits/0 count, 4 bits/difference = 66 bits Difficulties arise when the scene does change, then the information may be too much to be transmitted in one frame time Solution: The receiver has a series of buffers for images to be displayed. The differences image must take less than the minimum ‘uncompressed’ frame time 16/05/62 240-373 Image Processing

Previous frame Latest frame m n p p Motion Prediction Search area The image may still have the same constituent parts but they may have all shifted in one direction Technique 5: Block matching for motion prediction USE: Saving space by estimating what motion has occurred between past and present images, then only saving the changes. OPERATION: 1. Tile off the latest frame into blocks 2. Each of these blocks is then compared with blocks of the same size from the previous frame that are near in position to the block on the latest frame. 3. This has to be done for all blocks in the latest frame. Then the best match (and the corresponding predicted movement vector) is determined. This is called “ full-search block matching” Previous frame Latest frame m Search area n p p One of many blocks 16/05/62 240-373 Image Processing

Quadtrees A quadtree is a recursive segmenting of an image into four parts A suitable compression method for an image that has large area of the same colored pixels and rectangular in character Operation: the original image is cut into 4 equal quarter images and theses are cut into four, and so on… consider each quarter image, break the image that has more than one color (non-homogeneous) and combine similar quarter build a tree structure to store sub-images relationship 2 1 1 2 1 Image standard .BMP, .PIC, .PCX, .PIG, .TIFF, .GIF, .JPG, etc. 16/05/62 240-373 Image Processing

Image Compression Exercise Compare the compression of the following image using (a) Huffman coding (b) run length coding. The image has a gray level range of 0-7. 16/05/62 240-373 Image Processing