Basic Image Compression or Compression 101



Similar documents
Introduction to image coding

Figure 1: Relation between codec, data containers and compression algorithms.

Understanding HD: Frame Rates, Color & Compression

Video Coding Basics. Yao Wang Polytechnic University, Brooklyn, NY11201

EE3414 Multimedia Communication Systems Part I

White Paper: Video Compression for CCTV

CHAPTER 3: DIGITAL IMAGING IN DIAGNOSTIC RADIOLOGY. 3.1 Basic Concepts of Digital Imaging

Video compression: Performance of available codec software

Video-Conferencing System

JPEG Image Compression by Using DCT

Chapter 8 Memory Units

Introduzione alle Biblioteche Digitali Audio/Video

How To Store Data On A Computer (For A Computer)

Study and Implementation of Video Compression Standards (H.264/AVC and Dirac)

White paper. HDTV (High Definition Television) and video surveillance

Computer Storage. Computer Technology. (S1 Obj 2-3 and S3 Obj 1-1)

Comparison of different image compression formats. ECE 533 Project Report Paula Aguilera

Study and Implementation of Video Compression standards (H.264/AVC, Dirac)

White paper. An explanation of video compression techniques.

ELECTRONIC DOCUMENT IMAGING

Understanding Megapixel Camera Technology for Network Video Surveillance Systems. Glenn Adair

Introduction To Computers: Hardware and Software

CSCA0102 IT & Business Applications. Foundation in Business Information Technology School of Engineering & Computing Sciences FTMS College Global

Understanding Network Video Security Systems

Data Storage 3.1. Foundations of Computer Science Cengage Learning

Computer Logic (2.2.3)

Video Coding Standards. Yao Wang Polytechnic University, Brooklyn, NY11201

Chapter 8. Secondary Storage. McGraw-Hill/Irwin. Copyright 2008 by The McGraw-Hill Companies, Inc. All rights reserved.

Sommario [1/2] Vannevar Bush Dalle Biblioteche ai Cataloghi Automatizzati Gli OPAC accessibili via Web Le Biblioteche Digitali

Digital Audio and Video Data

How To Store Large Amounts Of Content On A Computer Or Network At A Large Capacity

Digital Imaging and Image Editing

HIGH-DEFINITION: THE EVOLUTION OF VIDEO CONFERENCING

Structures for Data Compression Responsible persons: Claudia Dolci, Dante Salvini, Michael Schrattner, Robert Weibel

MEMORY STORAGE CALCULATIONS. Professor Jonathan Eckstein (adapted from a document due to M. Sklar and C. Iyigun)

In the two following sections we separately consider hardware and software requirements. Sometimes, they will be offered for sale as a package.

Parameter values for the HDTV standards for production and international programme exchange

Performance Analysis and Comparison of JM 15.1 and Intel IPP H.264 Encoder and Decoder

ADSL or Asymmetric Digital Subscriber Line. Backbone. Bandwidth. Bit. Bits Per Second or bps

Chapter 6: Broadcast Systems. Mobile Communications. Unidirectional distribution systems DVB DAB. High-speed Internet. architecture Container

Information, Entropy, and Coding

Data Storage. Chapter 3. Objectives. 3-1 Data Types. Data Inside the Computer. After studying this chapter, students should be able to:

PARCA Certified PACS Associate (CPAS) Requirements

Computer Peripherals

High Definition (HD) Image Formats for Television Production

Chapter 5 Fundamental Concepts in Video

Image Compression through DCT and Huffman Coding Technique

EXTERNAL STORAGE WHAT IS IT? WHY USE IT? WHAT TYPES ARE AVAILBLE? MY CLOUD OR THEIR CLOUD? PERSONAL CLOUD SETUP COMMENTS ABOUT APPLE PRODUCTS

WHITE PAPER. Are More Pixels Better? Resolution Does it Really Matter?

Computers. Hardware. The Central Processing Unit (CPU) CMPT 125: Lecture 1: Understanding the Computer

Quality Estimation for Scalable Video Codec. Presented by Ann Ukhanova (DTU Fotonik, Denmark) Kashaf Mazhar (KTH, Sweden)

Examine Your Strategy, Weigh Your Options in Choosing Removable Storage. Dave Holmstrom Associate Director of New Products Verbatim Corporation

9! Multimedia Content! Production and Management

White paper. H.264 video compression standard. New possibilities within video surveillance.

A Look at Emerging Standards in Video Security Systems. Chris Adesanya Panasonic Network Systems Company

Hitting the Moving Target of 4K. The 4K Video Signal What You Need to Know Now...2. Resolution 4K and UHD...2. Color Bit Depth...3. Frame Rate...

Module 8 VIDEO CODING STANDARDS. Version 2 ECE IIT, Kharagpur

Lecture 2 Outline. EE 179, Lecture 2, Handout #3. Information representation. Communication system block diagrams. Analog versus digital systems

SNC-VL10P Video Network Camera

Standard encoding protocols for image and video coding

Tomorrow s Technology and You

encoding compression encryption

A NEW LOSSLESS METHOD OF IMAGE COMPRESSION AND DECOMPRESSION USING HUFFMAN CODING TECHNIQUES

Digital Video Coding Standards and Their Role in Video Communications


Quick start guide! Terri Meyer Boake

A Proposal for OpenEXR Color Management

How To Test The Avocent Ds Series Kvm Over Ip System On A Ds View 3 On A Pc Or Mac Or Ip Computer

Computer Input/Output Ports and Interfaces

ARTICLE. Image quality: Usability is the real issue How to select the right camera system.

Digital Image Basics. Introduction. Pixels and Bitmaps. Written by Jonathan Sachs Copyright Digital Light & Color

Video Communication System PCS-1 PCS-1P

Digital Audio Compression: Why, What, and How

AUDIO. 1. An audio signal is an representation of a sound. a. Acoustical b. Environmental c. Aesthetic d. Electrical

RECOMMENDATION ITU-R BO.786 *

Best practices for producing quality digital video files

How To Understand The Technical Specifications Of Videoconferencing

Note monitors controlled by analog signals CRT monitors are controlled by analog voltage. i. e. the level of analog signal delivered through the

1 PERSONAL COMPUTERS

Technical Information

Chapter 3: Computer Hardware Components: CPU, Memory, and I/O

Terminal, Software Technologies

Digital Versus Analog Lesson 2 of 2

Digital Imaging Color or black-and-white scans, from web to exhibition sizes. Images can be provided in a variety of formats including Adobe PDF.

2K Processor AJ-HDP2000

Copyright 2009 Vicon Industries Inc

Computer Vision and Video Electronics

INTERNET CONNECTIVITY

RECOMMENDATION ITU-R BR * High-definition television (HDTV) digital recording formats

IsumaTV. Media Player Setup Manual COOP Cable System. Media Player

For Articulation Purpose Only

The Ad Hoc Group on television evaluation materials

A+ Guide to Managing and Maintaining Your PC, 7e. Chapter 1 Introducing Hardware

Product Information S N O. Portable VIP protection CCTV & Alarm System 2

Comp 410/510. Computer Graphics Spring Introduction to Graphics Systems

H 261. Video Compression 1: H 261 Multimedia Systems (Module 4 Lesson 2) H 261 Coding Basics. Sources: Summary:

Item Minimum Required Recommended Notes

Discovering Computers Chapter 7 Storage

KIP 720 CIS SCANNING SYSTEM WITH ADVANCED KIP REAL TIME THRESHOLDING TECHNOLOGY

4 Digital Video Signal According to ITU-BT.R.601 (CCIR 601) 43

Transcription:

Basic Image Compression or Compression 11 NSES-Kodak beranrd.brower@kodak.com Derived from tutorial from Majid Rabbani 1

BWC 11 Outline Motivation for image compression Digital images Storage and transmission media Why images can be compressed Redundancy Irrelevancy Image compression basics Transform (DPCM, DCT, Wavelet) Quantization Encoding (Huffman, arithmetic) Rate Control Color and Multidimensional transforms Selecting a compression algorithm Image compression standards Image compression systems JPEG DCT JPEG 2 Current Dissemination of Imagery USIGS dissemination compression algorithms Migration of USIGS to JPEG 2 2

Digital Images Digital images are produced by: Remote sensing satellites and aircraft Digitized film and paper Handheld cameras Synthetic imaging (computer generation) Regardless, digital images are sampled in; Space Resolution (GSD, DPI) Amplitude Bit depth (bits per pixel) Spectral Resolution (# of bands/color) The area coverage or the size of the image footprint is dependent on the field of view of the camera system [High resolution] x [large bit depth] x [large size] x [large # of bands] = Storage and Transmission challenges 3

Digital Image Representation W : H = Aspect Ratio Pixel Red = 15 Green = 95 Blue = 27 H W 24 bits per Pixel R = 255 G = 255 B = 255 4

Bits and Bytes The following terminology is often used when referring to digital image sizes (bit is abbreviation for binary digit): bit (b) 1 bit 1 bit byte (B) 8 bits 8 bits kilobyte (KB) 2 1 bytes 1 3 + 2.4% megabyte (MB) 2 2 bytes 1 6 + 4.9% gigabyte (GB) 2 3 bytes 1 9 + 7.4% terabyte (TB) 2 4 bytes 1 12 + 1% 5

Bit Plane Representation An image with n x m pixels each with a bit-depth of N bits can be represented by N binary bit planes of size n x m ranging from the most significant bit (MSB) to the least significant bit (LSB). x(k,l) = 113 = 1111 MSB LSB 2 N-1 2 N-2 2 N-3. 2 1 2 1 1 1 6

Example: Lena MSB and LSB Planes Most significant bit plane Least significant bit plane 7

Example Images Very Low Resolution Images 16 x 12 (4:2:2) - DCF standard; used for storing icon images in digital cameras. 176 x 144 (4:2:) - QCIF (Quarter Common Intermediate Format); used for video phones and visual telephony. Many web-page images fall in this category. Low Resolution Imagery 352 x 24 (4:2:) - SIF (Source Image Format) @ 3 Hz picture rate (used in CD-I for movies on CD-ROM). 352 x 288 (4:2:) - CIF Format; also SIF @ 25 Hz picture rate (used for video teleconferencing). Suitable for VHS-quality digital video; video-teleconferencing; or sharing pictures with e-mail. 8

Example Images Medium Resolution 64 x 48 - VGA resolution 8 x 6 - SVGA resolution 72 x 48 (4:2:) - CCIR 61, DVD movies 6 x 4 (4:2:) - Kodak Picture Disk (24-exposure film scanned and stored on a floppy) Suitable for NTSC or PAL Television viewing; 4R photographic prints; low- resolution digital cameras; PalmPix and PC cameras. High Resolution 1536 x 124 (4:2:) - Kodak Picture CD (35mm film scanned and stored on a CD) 128 x 72 (4:2:) - HDTV progressive @ 6 Hz (frames/s) 192 x 18 (4:2:) - HDTV interlace, @ 3 frames/s 176 x 1168 - Kodak DC28 (2 megapixel) Digital Camera Suitable for 8 x 1 photographic prints, high-definition monitors, digital cinema. 9

Very High-Resolution Images 36 x 236 - Kodak DCS 46 Professional digital camera Approaching the the resolution limit of the 35mm film; highend professional cameras; very high-quality or large size printing. Some professional applications scan film at twice this resolution (e.g., Cineon) 1

Examples of Digital Still Images Application Pixels Lines bpp Filesize Facsimile 1728 11 1 24 KB Icons 192 128 24 72 KB Kodak Picture Disk 6 4 24 7 KB Still-Video 768 512 24 1.1 MB DC 28 (Kodak) 176 1168 24 6 MB Kodak Picture CD 1536 124 24 4.5 MB DCS-465 (Kodak) 372 248 24 18 MB Kodak Photo CD 372 248 24 18 MB 11

Examples of Digital Video Sequences Application Pixels Lines bpp f/s Data Rate Video Phone 4:2: 176 144 12 15 54 KB/s SIF 4:2: 352 24 12 3 3.6 MB/s CCIR 61-4:2: 72 48 12 3 15 MB/s CCIR 61-4:4:4 72 48 24 3 3 MB/s HDTV (Interlace) 192 18 24 3 18 MB/s HDTV (progressive) 128 72 24 6 16 MB/s Cineon 3656 2664 3 24 1 GB/s 12

Examples of Storage Media Optical Magnetic Solid State 13

Examples of Storage Media Media Type Capacity Floppy Disk Magnetic 1.4 MB Zip Disk Magnetic 1 & 25 MB Jaz Disk Magnetic 1 & 2 GB 8mm Cartridge Magnetic Up to 7 GB D2C Magnetic 25 GB CD-ROM Optical 65 MB DVD-12mm Optical 4.7 GB DVD-8mm Optical 1.9 GB Compact Flash Solid State 1-2 MB Memory Stick Solid State 32 & 64 MB 14

Examples of Transmission Media Media Dial-Up Telephone ISDN (Integrated Digital Network) T1 (24 x ISDN) Ethernet Fast Ethernet Ultra-Fast Ethernet Cable Modem FDDI (Fiber Distributed Data Interchange) Bandwidth 33.6-56 Kb/s 64 Kb/s 1.544 Mb/s 1 Mb/s 1 Mb/s 1 Gb/s 1-2 Mb/s 1 Mb/s 15

Examples of Transmission Media Media Cell Phone (US) IR (Infra-Red) Line-of-sight Bluetooth RF Bluetooth RF (Asymmetric) Kodak RF DSL (Asymmetric) Bandwidth 9.6 14.4 Kb/s 115 kb/s 16 Mb/s 4 Kb/s 741 Kb/s Downstream 56 Kb/s Upstream 16 Mb/s 384 Kb/s 1.5 Mb/s Downstream 128 Kb/s 75 Kb/s Upstream 16

Image Transmission Example Media Time seconds Cell Phone 417 28.8 Modem 139 ISDN 62 Asymmetric DSL (Downstream) 1 Bluetooth 5.5 Cable Modem (1 Mb/s) 4 IR (4 Mb/s) 1 RF (16 Mb/s) 1/4 For an uncompressed VGA 64 x 48 (4:2:) image 5KB 17

Kodak Picture Disk Scanned images from a 24-exposure roll are stored in a floppy disk with a 1 MB of useful space. Filesize for a single image: 6 4 3 = 72 KB 72 KB 24 exp. = 16.5 MB A compression ratio of 17:1 is needed to achieve this goal. 6 pixels 4 lines 18

Kodak Picture CD Scanned images from film are written on a CD @ 6 KB/s (4X write speed). A single uncompressed image takes 7.5 seconds to write; a 36-exposure roll takes 27 seconds. 1536 pixels 124 lines 19

Digital Camera Kodak DC28 digital camera creates a 6 MB image after color interpolation. An 64 MB compact flash card will hold about 1 images. 176 pixels 1168 lines 2

Movies on DVD The full resolution RGB uncompressed DVD movie has a rate of ~6 MB/sec, i.e., a DVD disc holds ~1 minute of uncompressed video! 48 lines 72 pixels 3 frames/s 21

Aerial Photograph 1 Aerial Mapping Camera at about 6 resolution 2.35 Square Miles of Coverage (about 1.5 Miles on a side) 16,-by-16, pixels, 3 bands, 8 bits per band 73 MB uncompressed image does not fit on CD 22

Satellite Image IKONOS or Digital Globe Images 1K-by-1K, 5 bands, 1 bits per pixel 23

HDTV Transmission 192 pixels 18 lines 3 colors 3 f/s ~ 18 MB/s At 18 Mb/s, a compression ratio of ~8:1 is required. 18 lines 192 pixels 3 Frames/sec 24

Need For Image Compression Application Size / Rate CR Method Digital Camera 1-1 MB >1 JPEG Facsimile 24 KB 2 G3 & G4 CD-I (SIF 4:2:) 3.6 MB/s 25 MPEG 1 DVD (CCIR 61 4:2:) 15 MB/s 25 MPEG 2 HDTV 89 MB/s 7 MPEG 2 Teleconferencing 9 MB/s 5 H.261 Video Phone (QCIF).54 MB/s 8 H.263 25

Image Compression Aims at finding methods for reducing the number of bits needed to represent a digital image without compromising the required image quality for a given application. Image compression is used to: Reduce memory for image storage. Reduce the bandwidth/time required for image transmission. Increase effective data transfer rate. 26

Why images can be compressed 27

What is digital image compression Image compression is the art/science of finding efficient representations for digital images in order to: Reduce the memory required for their storage, Reduce the effective data access time when reading from storage devices, Reduce the bandwidth and/or the time required for their transfer across communication channels. The goal is to achieve the desired bit rate without compromising the image quality required for a given application. 28

Why can images be compressed? Image compression can be achieved because image data are often highly redundant and/or irrelevant. The redundancy or irrelevancy exist in spatial, spectral, and temporal forms. Redundancy relates to the statistical properties of an image (e.g., pixel-to-pixel correlation, spectral (RGB) correlation, frame-to-frame similarity, etc.) and is a function of resolution, bit-depth, image noise, and image detail. Irrelevancy relates to an observer viewing an image (HVS spatial and temporal CSF, visual masking, etc.) and is a function of image resolution, noise, detail, and viewing conditions. 29

Spatial Redundancy And Irrelevancy What is the value of the missing pixel? (39) How critical is its exact reproduction? 46 44 46 47 44 5 56 5 4 46 48 76 62 69 45 39 36 4 88 87 65 48 38 36? 56 9 65 76 48 41 43 69 112 77 9 72 66 66 9 18 74 98 86 86 91 83 72 57 3

31 Systems Engineering Systems Engineering Example: Original and Difference Images 139 139 144 +5 149 +5 153 +4 155 +2 155 155 155 144 +5 151 +7 153 +2 156 +3 159 +3 156-3 156 156 15 +6 155 +5 16 +5 163 +3 158-5 156-2 155 155 159 +9 161 +2 162 +1 16-2 16 159-1 159 159 159 16 +1 161 +1 162 +1 162 155-7 155 155 161 +2 161 161 161 16-1 157-3 157 157 162 +1 162 161-1 163 +2 162-1 157-5 157 157 162 162 161-1 161 163 +2 158-5 158 158

Spatial Redundancy The difference between two adjacent pixels has a very skewed distribution centered around zero. 32

Spectral Redundancy Original RGB Transformed YCrCb 33

Temporal Redundancy 34

The Human Visual System CSF The frequency-dependent behavior of the human visual system (HVS) can be characterized by its response to harmonic (sinusoidal) functions. For each sinusoid with a given frequency, the amount of contrast needed to elicit a criterion level of response from a neuron is called the contrast threshold. The inverse of the contrast threshold is called the contrast sensitivity and when plotted as a function of frequency is referred to as the contrast sensitivity function (CSF). The luminance CSF peaks at around 5 cycles/degree, and rapidly drops off to almost zero at 5 cycles/degree. The chrominance CSF drops even faster. 35

Example of Luminance CSF Contrast sensitivity 1..8.6.4.2. 5 1 15 2 25 3 Cycles/degree 36

37

Visual Masking Visual masking refers to the decreased visibility of a signal due to the presence of a supra-threshold background. The HVS is fairly sensitive to changes in flat areas and rather insensitive to changes in busy or detailed regions. The HVS is more tolerant of noise in busy areas compared to flat areas. Visual masking can be utilized in JPEG2 and MPEG to introduce more compression errors in the busy regions of an image compared to the flat regions. 38

39

4

41

42

Chrominance Sub-sample 43

Intensity Sub-sample 44