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

Similar documents
This is not yellow. Image Files - Center for Graphics and Geometric Computing, Technion 2

Common File Formats. Need a standard to store images Raster data Photos Synthetic renderings. Vector Graphic Illustrations Fonts

BMP Graphics File Formats

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

VC 12/13 T16 Video Compression

Graphics File Formats

Lecture 8 JPEG Compression (Part 3)

Lecture 8 JPEG Compression (Part 3)

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

Compression II: Images (JPEG)

Love is not rude, is not selfish, and does not get upset with others. Reading BMP Files

Digital Image Representation Image Compression

Lecture 5: Compression I. This Week s Schedule

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

Repetition 1st lecture

CMPT 365 Multimedia Systems. Media Compression - Image

Lecture 6: Compression II. This Week s Schedule

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

compression and coding ii

CS 335 Graphics and Multimedia. Image Compression

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

Digital Video Processing

PREFACE...XIII ACKNOWLEDGEMENTS...XV

Digital Image Processing

Anatomy of a Video Codec

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

Video Compression An Introduction

7: Image Compression

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

Image coding and compression

Lecture 3 Image and Video (MPEG) Coding

Compression of Stereo Images using a Huffman-Zip Scheme

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

Video Codecs. National Chiao Tung University Chun-Jen Tsai 1/5/2015

Chapter 2 Digital Formats

High Efficiency Video Coding. Li Li 2016/10/18

Course Syllabus. Website Multimedia Systems, Overview

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

The VC-1 and H.264 Video Compression Standards for Broadband Video Services

Mahdi Amiri. February Sharif University of Technology

Lecture 13 Video Coding H.264 / MPEG4 AVC

IMAGE COMPRESSION. October 7, ICSY Lab, University of Kaiserslautern, Germany

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

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

Wireless Communication

An introduction to JPEG compression using MATLAB

JPEG Compression. What is JPEG?

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

The Basics of Video Compression

Using animation to motivate motion

2.2: Images and Graphics Digital image representation Image formats and color models JPEG, JPEG2000 Image synthesis and graphics systems

Compression Part 2 Lossy Image Compression (JPEG) Norm Zeck

Digital Image Representation. Image Representation. Color Models

INF5063: Programming heterogeneous multi-core processors. September 17, 2010

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

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

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

Compressed Image File Formats JPEG, PNG, GIF, XBM, BMP. Your guide to graphics files on the Web. John Miano

Image Coding and Compression

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

Lecture 6 Review of Lossless Coding (II)

A Image Comparative Study using DCT, Fast Fourier, Wavelet Transforms and Huffman Algorithm

Image Pyramids and Applications

MPEG-4: Simple Profile (SP)

yintroduction to compression ytext compression yimage compression ysource encoders and destination decoders

Chapter 1. Digital Data Representation and Communication. Part 2

7.5 Dictionary-based Coding

ECE 499/599 Data Compression & Information Theory. Thinh Nguyen Oregon State University

MULTIMEDIA AND CODING

lectures/7/src7/bmp.h /**************************************************************************** * bmp.h * Computer Science 50 * Problem Set 5

Image and Video Coding I: Fundamentals

COLOR IMAGE COMPRESSION USING DISCRETE COSINUS TRANSFORM (DCT)

A Novel Image Compression Technique using Simple Arithmetic Addition

Operation of machine vision system

Compression. storage medium/ communications network. For the purpose of this lecture, we observe the following constraints:

H.264 STANDARD BASED SIDE INFORMATION GENERATION IN WYNER-ZIV CODING

Fundamentals of Video Compression. Video Compression

KINGS COLLEGE OF ENGINEERING DEPARTMENT OF INFORMATION TECHNOLOGY ACADEMIC YEAR / ODD SEMESTER QUESTION BANK

Interframe coding A video scene captured as a sequence of frames can be efficiently coded by estimating and compensating for motion between frames pri

DigiPoints Volume 1. Student Workbook. Module 8 Digital Compression

VIDEO SIGNALS. Lossless coding

Introduction to Computer Science (I1100) Data Storage

Providing Efficient Support for Lossless Video Transmission and Playback

THE H.264 ADVANCED VIDEO COMPRESSION STANDARD

Topic 5 Image Compression

Forensic analysis of JPEG image compression

Minification techniques

Image Compression. CS 6640 School of Computing University of Utah

The Core Technology of Digital TV

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

Cross Layer Protocol Design

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

Data encoding. Lauri Võsandi

Video Compression Standards (II) A/Prof. Jian Zhang

JPEG: An Image Compression System

Image Compression Algorithm and JPEG Standard

Laboratoire d'informatique, de Robotique et de Microélectronique de Montpellier Montpellier Cedex 5 France

DCT Based, Lossy Still Image Compression

Image Compression. cs2: Computational Thinking for Scientists.

Image Compression - An Overview Jagroop Singh 1

Transcription:

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

Entropy Coding: Unary Coding Golomb Coding Static Huffman Coding Adaptive Huffman Coding Arithmetic Coding Run Length Encoding (RLE) e.g. BMP Differential Encoding Context Sensitive Coding Lempel-Ziv-* LZ77 Gameboy LZW (Welch) GIF, TIFF Deflate PNG, zlib, zip, etc. Lossy Image Coding JPEG The human eye Color Space Conversion, RGB YUV YCrCb, Chroma Subsampling Blocks 8x8, Discrete Cosine Transformation (H.264: wavelet transform) Ordering of Coefficients, Differentical Coding of DC color Thresholding Entropy Encoding Effects: low-contrast edges, deblocking filter Video Coding: MPEG-2, MPEG-4, H.264 Analog video (also for BMP): CRT scan order Prediction: spatial, temporal I-Frames 1e6 bit, P-Frames 3e5 bit, B-Frames 1e5 bit Motion Compensation, Optical Flow, Lukas Canade # 2

Numeral Systems unary systems additive systems: (roman: I, II, III, IV, V, X, C, M, MMXI) positional systems a 1 a a an n 1 0 common base: 2, 10, 16 = i b a i i 10 2 16 1 1 1 2 10 2 3 11 3 4 100 4 5 101 5 6 110 6 7 111 7 8 1000 8 9 1001 9 10 1010 A 11 1011 B 12 1100 C 13 1101 D 14 1110 E 15 1111 F 16 10000 10 3

Example: Numeral Systems 4 Example: 2017 10 3 2 1 2 10 + 0 10 + 1 10 + 7 10 2000 2017-1024 = 993-512 = 481-256 = 225-128 = 97-64 = 33 33-32 = 1-1 = 0 binary: 111 1101 1110 2 1111110 0001 7 14=E hexadecimal: 7E1 16 1 10 0 1 2 0 1 2 1 2 2 2 4 2 3 8 2 4 16 2 5 32 2 6 64 2 7 128 2 8 256 2 9 512 2 10 1024 2 11 2048 2 12 4096 Dr. 31.10.201 6

Run Length Encoding Compresses Repetition of Symbols e.g. A A A B B B B B 3x A, 5x B Special case: binary data {0,1} 0 0 0 1 1 1 1 1 3, 5 Disadvantage: compressed data may be longer than original Soltution: Escape symbol with original data A A A L M U B B B B B 3x A, ESC LMU, 5x B Examples: BMP image format Referat Markus Mustermann # 5

Windows Bitmap Format (BMP) Offset Type Name Description 0 uint16_t bftype BM = 0x42 0x4D 2 uint32_t bfsize Total size in bytes 6 uint32_t bfreserved 0 10 uint32_t bfoffbits Offset to image data (54 if no color table) 14 uint32_t bisize 40 (sizeof(bitmapinfoheader)) 18 uint32_t biwidth Width of image 22 uint32_t biheight Height of image (negative: top-down, positive: bottom-up) 26 uint16_t biplanes 1 28 uint16_t bibitcount Bits per pixel (1,4,8,16,24,32) Referat Markus Mustermann # 6

Windows Bitmap Format (BMP) Part 2 Offset Type Name Description 30 uint32_t bicompression 0: BI_RGB 1: BI_RLE4 2: BI_RLE8 3: BI_BITFIELDS 34 uint32_t bisizeimage Size of image data in bytes 38 uint32_t bixpelspermet er 42 uint32_t biypelspermet er Bits per pixel in X direction (or 0) Bits per pixel in Y direction (or 0) 46 uint32_t biclrused Number of entries in color table (max 2 bibitcount ) 50 uint32_t biclrimportant Same as biclrused Referat Markus Mustermann # 7

Windows Bitmap Format (BMP) Part 3 Color Table: biclrused entries of form: Blue, green, red, 0 as bytes Image data: 24 bpp blue, green, red as bytes 1,4,8 bpp index into color table Referat Markus Mustermann # 8

Windows Bitmap Format (BMP) RLE BI_RLE4, BL_RLE8 in bicompression (offset 30) Two bytes (a, b) a times b e.g. A A A B B B B B 0x03 0x41 0x05 0x42 If a=0: Value of b Description 0 End of image line 1 End of image 2 (a,b ): Skip a columns and b rows 3-255 ESC for b bytes (align to 16 bits) Referat Markus Mustermann # 9

Differential Encoding Encoder Decoder Referat Markus Mustermann # 10

JPEG Encoding Conversion RGB Y C B C R Reduction of color resolution Discrete Cosine Transformation of 8x8 pixel blocks Quantization (lossy) Encoding, e.g. Huffman encoding # 11

JPG: Color Spaces Color Spaces: e.g. additive, subtractive Typical on screen: RGB Human eye perceives intensity and color differently # 12

JPG: Reduction of color resolution The human eye is much more sensitive about intensity then about color # 13

JPG: Block Splitting The image is split into 8x8 pixel blocks. 4 blocks (2x2) are a macro-block # 14

Discrete Cosine Transform # 15

JPEG: Quantization Lossy step Controlled by 8x8 quantization matrix Oriented at human perception # 16

JPEG: Entropy Encoding Zig-Zag Sequence Differential Encoding Run-Length Encoding # 17

Video Compression: Different Picture Types: I-Frame: inter frame, independently encoded image, JPEG style compression, approx. 9 10 5 bit P-Frame: predicted frame, is composed of prediction of previous images, approx. 3 10 5 bit B-Frame: bidirectionally predicted frame, is composed by interpolating between previous and following images, approx. 1 10 5 bit # 18

P-Frames: Motion Compensation Image is predicted by copying over parts of previous images Encoding of difference to predicted image # 19

H264 encoder and decoder structure Source: http://mrutyunjayahiremath.blogspot.de/2010/09/h264-video-codec.html # 20

H264 intra-frame prediction Source: http://stackoverflow.com/questions/25336344/performing-intra-frame-prediction-in-matlab # 21

H264: Deblocking Filter Reduce artefacts due to 8x8 or 16x16 block structure # 22