Image Processing and Computer Vision: 91. Image and Video Coding Compressing data to a smaller volume without losing (too much) information.

Slides:



Advertisements
Similar presentations
Multimedia System Video
Advertisements

T.Sharon-A.Frank 1 Multimedia Compression Basics.
Data Compression CS 147 Minh Nguyen.
Chapter 7 End-to-End Data
SWE 423: Multimedia Systems
Spring 2003CS 4611 Multimedia Outline Compression RTP Scheduling.
1 Audio Compression Techniques MUMT 611, January 2005 Assignment 2 Paul Kolesnik.
MPEG: A Video Compression Standard for Multimedia Applications Didier Le Gall Communications of the ACM Volume 34, Number 4 Pages 46-58, 1991.
Computer Science 335 Data Compression.
CSc 461/561 Multimedia Systems Part B: 2. Lossy Compression
CS :: Fall 2003 MPEG-1 Video (Part 1) Ketan Mayer-Patel.
CMPT 365 Multimedia Systems
T.Sharon-A.Frank 1 Multimedia Image Compression 2 T.Sharon-A.Frank Coding Techniques – Hybrid.
Department of Computer Engineering University of California at Santa Cruz Data Compression (2) Hai Tao.
1 Image and Video Compression: An Overview Jayanta Mukhopadhyay Department of Computer Science & Engineering Indian Institute of Technology, Kharagpur,
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.
MPEG-2 Digital Video Coding Standard
Image and Video Compression
Image Compression - JPEG. Video Compression MPEG –Audio compression Lossy / perceptually lossless / lossless 3 layers Models based on speech generation.
Trevor McCasland Arch Kelley.  Goal: reduce the size of stored files and data while retaining all necessary perceptual information  Used to create an.
Chapter 2 Source Coding (part 2)
CS Spring 2012 CS 414 – Multimedia Systems Design Lecture 8 – JPEG Compression (Part 3) Klara Nahrstedt Spring 2012.
ECE472/572 - Lecture 12 Image Compression – Lossy Compression Techniques 11/10/11.
1 Image Compression. 2 GIF: Graphics Interchange Format Basic mode Dynamic mode A LZW method.
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.
Multimedia Data Video Compression The MPEG-1 Standard
Introduction to JPEG and MPEG Ingemar J. Cox University College London.
MPEG: (Moving Pictures Expert Group) A Video Compression Standard for Multimedia Applications Seo Yeong Geon Dept. of Computer Science in GNU.
Video Compression Techniques By David Ridgway.
Klara Nahrstedt Spring 2011
10/10/04 L5/1/28 COM342 Networks and Data Communications Ian McCrumRoom 5D03B Tel: voice.
JPEG. The JPEG Standard JPEG is an image compression standard which was accepted as an international standard in  Developed by the Joint Photographic.
Indiana University Purdue University Fort Wayne Hongli Luo
CIS679: Multimedia Basics r Multimedia data type r Basic compression techniques.
Codec structuretMyn1 Codec structure In an MPEG system, the DCT and motion- compensated interframe prediction are combined. The coder subtracts the motion-compensated.
Image Compression Supervised By: Mr.Nael Alian Student: Anwaar Ahmed Abu-AlQomboz ID: IT College “Multimedia”
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.
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
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.
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
MPEG.
JPEG Image Compression Standard Introduction Lossless and Lossy Coding Schemes JPEG Standard Details Summary.
JPEG.
Introduction to Image and Video Coding Algorithms
Block-based coding Multimedia Systems and Standards S2 IF Telkom University.
STATISTIC & INFORMATION THEORY (CSNB134) MODULE 11 COMPRESSION.
MPEG CODING PROCESS. Contents  What is MPEG Encoding?  Why MPEG Encoding?  Types of frames in MPEG 1  Layer of MPEG1 Video  MPEG 1 Intra frame Encoding.
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 ( )
H. 261 Video Compression Techniques 1. H.261  H.261: An earlier digital video compression standard, its principle of MC-based compression is retained.
IMAGE COMPRESSION.
Data Compression.
Multimedia Outline Compression RTP Scheduling Spring 2000 CS 461.
Digital Image Processing Lecture 21: Lossy Compression May 18, 2005
JPEG Image Coding Standard
JPEG.
Data Compression.
Chapter 7.2: Layer 5: Compression
Data Compression CS 147 Minh Nguyen.
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.
Standards Presentation ECE 8873 – Data Compression and Modeling
Judith Molka-Danielsen, Oct. 02, 2000
Image Coding and Compression
Govt. Polytechnic Dhangar(Fatehabad)
Chapter 8 – Compression Aims: Outline the objectives of compression.
Fundamentals of Video Compression
Presentation transcript:

Image Processing and Computer Vision: 91

Image and Video Coding Compressing data to a smaller volume without losing (too much) information

Image Processing and Computer Vision: 93 Why Code Data? To reduce storage volume To reduce transmission time One colour image 760 by 580 pixels 3 channels, each 8 bits 1.3 Mbyte Video data Same resolution 25 frames per second 33 Mbyte/second

Image Processing and Computer Vision: 94 Redundancy Spatial Correlation between adjacent pixels Chromatic Correlation between colour channels Temporal Correlation between adjacent frames Perceptual Unnoticed losses

Image Processing and Computer Vision: 95 Example

Image Processing and Computer Vision: 96 Redundancy - Consequences Data exceeds information More data than content justifies Can lose data without losing information

Image Processing and Computer Vision: 97 Compression Ratio

Image Processing and Computer Vision: 98 Lossy vs Lossless Compression Can lose data without losing information Lossily compressed images can look similar to the original Lossy compression has greater C

Image Processing and Computer Vision: 99 Quality of Decoded Images Measure differences between Original Coded/decoded images Options Maximum difference Average difference Subjective scales

Image Processing and Computer Vision: 910 Example

Image Processing and Computer Vision: 911 Subjective Quality Measurement Scales - Example 0 Unusable 1 Annoying degradation 2 Adequate images 3 Barely perceptible degradation 4 No observable degradation

Image Processing and Computer Vision: 912 Difference coding Adjacent pixels are similar Difference is small Uncompressed: Compressed:

Image Processing and Computer Vision: 913 Coding Assign 4 bits to a difference Can code –7, …, +8 Overflow? Use –7 and +8 to show larger differences Code –6, …, +7 directly Use overflow codes to indicate shift of codes

Image Processing and Computer Vision: 914

Image Processing and Computer Vision: 915 Predictive Coding If signals are well sampled Adjacent samples are correlated They have similar values Differences are small Can guess next sample from value of current

Image Processing and Computer Vision: 916 Constants are correlation coefficient and mean grey value Difference between real and predicted values are smaller Code as for difference coding

Image Processing and Computer Vision: 917 Run Length Coding Replace runs of equal brightness values by (length of run, value) (1 1) (2 2) (2 3) (3 4) (1 5) (1 6) (1 5) More use when few brightness values e.g. fax

Image Processing and Computer Vision: 918 Huffman Coding Uses variable length codes Most frequently occurring grey value has shortest code Least frequently occurring values have longest codes

Image Processing and Computer Vision: 919 Example SymbolProbability ABCDEFABCDEF

Image Processing and Computer Vision: 920 SymbolProbability ABCDEFABCDEF

Image Processing and Computer Vision: 921 GIF Applicable to images with 256 colours Replace sequences of bytes with shorter codes Most common sequences use shortest codes

Image Processing and Computer Vision: 922 Wavelet coders Wavelet transform organises image content efficiently Can easily select data to be discarded

Image Processing and Computer Vision: 923 Wavelet coders

Image Processing and Computer Vision: 924 JPEG standard A subcommittee of ISO Optimised for a range of image subject matter Compression rates can be defined Quality inversely proportional to C

Image Processing and Computer Vision: 925 Block Transform Coding original image decompose transform quantise entropy code Sequence of 8 by 8 blocks - different planes treated separately (RGB, YUV etc.) Transformed blocks reduce redundancy and concentrate signal energy into a few coefficients discrete cosine transformation (DCT) Blocks with discarded information - goal is to smooth picture and discard information that will not be missed, e.g. high frequencies

Image Processing and Computer Vision: 926 Block Transform Encoding DCT Zig-zag run length code entropy code quantise …..

Image Processing and Computer Vision: 927 Block Encoding DCT Zig-zag run length code Huffman code quantise … Original image

Image Processing and Computer Vision: 928 Block Transform Decoding DCT Zig-zag run length code entropy code quantise …..

Image Processing and Computer Vision: 929 Result of Coding and Decoding Original block Reconstructed block errors

Image Processing and Computer Vision: 930 Discrete Cosine Transform F[u,v] = 4C(u)C(v) n 2 n-1  j=0 n-1  k=0 f(j,k) cos (2j+1) u  2n cos (2k+1) v  2n with C(w) = 1212 For w = 0 1otherwise

Image Processing and Computer Vision: 931 Discussion Where are lossy steps? Quatisation and subsampling before coding How is quantisation matrix chosen? Its predefined by the standard after much experimentation

Image Processing and Computer Vision: 932 Video coding Many specific standards AVS, MOV, QT, … One universal standard MPEG

Image Processing and Computer Vision: 933 MPEG Standards Standard specifies audio, video and system layers MPEG-1: low data rates, poor quality: VHS quality at 1.5Mbits -1 MPEG-2: high quality hence high data rates: studio quality, 15Mbits -1 MPEG-4: low data rates, small images, 64 kbits -1

Image Processing and Computer Vision: 934 MPEG-1 Audio and video designed to work at CD ROM speeds: 1.5Mbits -1 Video 1.150Mbits -1 Audio 0.256Mbits -1 System 0.094Mbits -1

Image Processing and Computer Vision: 935 MPEG-2 Released in 1994 Aimed at digital TV, ATM. Additions for Interlaced video Scalable video coding Graceful degradation with noise Implementation of full standard impractical Varying profiles/levels of conformity

Image Processing and Computer Vision: 936 MPEG-4 Coding specifically for multimedia objects

Image Processing and Computer Vision: 937 Coding Algorithms Frame sequence Motion compensation Frame coding

Image Processing and Computer Vision: 938 Frame Sequence I frames (Intraframes) Coded independently of any other frame P frames (Predicted frames) Derived from previous I frame by motion prediction B frames (Bidirectionally interpolated) Interpolate motion compensated blocks between I and P frames

Image Processing and Computer Vision: 939 Motion Compensation Image is divided into macroblocks (16 x 16 pixels) Matching macroblocks are found by minimising differences Code differences and macroblock displacement

Image Processing and Computer Vision: 940 Frame Coding Use JPEG algorithms

Image Processing and Computer Vision: 941 Summary Why code data? Redundancy Assessment of compression Lossy vs. lossless compression Algorithms JPEG, MPEG

Image Processing and Computer Vision: 942 But what … is it good for? Engineer at the Advanced Computing Systems Division of IBM, commenting on the microchip in 1968