Image Processing and Coding 1. Image  Rich info. from visual data  Examples of images around us natural photographic images; artistic and engineering.

Slides:



Advertisements
Similar presentations
Md. Monjur –ul-Hasan Department of Computer Science & Engineering Chittagong University of Engineering & Technology Chittagong 4349
Advertisements

T.Sharon-A.Frank 1 Multimedia Compression Basics.
Data Compression CS 147 Minh Nguyen.
Error detection and concealment for Multimedia Communications Senior Design Fall 06 and Spring 07.
School of Computing Science Simon Fraser University
Image (and Video) Coding and Processing Lecture 1: Class Overview Wade Trappe.
Introduction to Computer and Human Vision Shimon Ullman, Ronen Basri, Michal Irani Assistants: Lena Gorelick Denis Simakov.
Digital Image Processing Ligang Liu Zhejiang University
Spatial and Temporal Data Mining
WATERLOO ELECTRICAL AND COMPUTER ENGINEERING 10s: Communications and Information Systems 1 WATERLOO ELECTRICAL AND COMPUTER ENGINEERING 10s Communications.
Software Research Image Compression Mohamed N. Ahmed, Ph.D.
Media File Formats Jon Ivins, DMU. Text Files n Two types n 1. Plain text (unformatted) u ASCII Character set is most common u 7 bits are used u This.
Computer Vision – Compression(2) Hanyang University Jong-Il Park.
ECE472/572 - Lecture 12 Image Compression – Lossy Compression Techniques 11/10/11.
Digital Video and Multimedia If images can portray a powerful message then video (as a series of related images) is a serious consideration for any multimedia.
Video Basics. Agenda Digital Video Compressing Video Audio Video Encoding in tools.
: Chapter 12: Image Compression 1 Montri Karnjanadecha ac.th/~montri Image Processing.
 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.
The Digital Image Dr. John Ryan.
Tour Guide Image Compression Image Manipulation Image Analysis Image Acquisition Image Perception Image Display Image Generation D.I.P. Theme Park.
Prof. Amr Goneid Department of Computer Science & Engineering
Image Processing and Computer Vision: 91. Image and Video Coding Compressing data to a smaller volume without losing (too much) information.
1 Lecture 1 1 Image Processing Eng. Ahmed H. Abo absa
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.
CIS679: Multimedia Basics r Multimedia data type r Basic compression techniques.
Image Compression Supervised By: Mr.Nael Alian Student: Anwaar Ahmed Abu-AlQomboz ID: IT College “Multimedia”
Chapter 2 : Imaging and Image Representation Computer Vision Lab. Chonbuk National University.
Digital Image Processing Image Compression
Lossless Compression CIS 465 Multimedia. Compression Compression: the process of coding that will effectively reduce the total number of bits needed to.
Image Compression – Fundamentals and Lossless Compression Techniques
Computer Graphics & Image Processing Lecture 1 Introduction.
ENEE631 Digital Image Processing (Spring'04) Digital Image and Video Processing – An Introduction Spring ’04 Instructor: Min Wu ECE Department, Univ. of.
Spring 2000CS 4611 Multimedia Outline Compression RTP Scheduling.
Digital Image Processing NET 404) ) Introduction and Overview
Advances in digital image compression techniques Guojun Lu, Computer Communications, Vol. 16, No. 4, Apr, 1993, pp
Computer Vision Introduction to Digital Images.
Digital Image Processing In The Name Of God Digital Image Processing Lecture2: Digital Image Fundamental M. Ghelich Oghli By: M. Ghelich Oghli
Lecture 4: Lossless Compression(1) Hongli Luo Fall 2011.
1-1 Chapter 1: Introduction 1.1. Images An image is worth thousands of words.
CS654: Digital Image Analysis Lecture 34: Different Coding Techniques.
Visual Computing Computer Vision 2 INFO410 & INFO350 S2 2015
1 Machine Vision. 2 VISION the most powerful sense.
WELCOME TO ALL. DIGITAL IMAGE PROCESSING Processing of images which are Digital in nature by a Digital Computer.
STATISTIC & INFORMATION THEORY (CSNB134) MODULE 11 COMPRESSION.
ELE 488 F06 ELE 488 Fall 2006 Image Processing and Transmission ( ) Image Compression Review of Basics Huffman coding run length coding Quantization.
Ec2029 digital image processing
infinity-project.org Engineering education for today’s classroom Outline Images Then and Now Digitizing Images Design Choices in Digital Images Better.
An Introduction to Digital Image Processing Dr.Amnach Khawne Department of Computer Engineering, KMITL.
Digital Image Processing CSC331 Introduction 1. My Introduction EDUCATION Technical University of Munich, Germany Ph.D. Major: Machine learning.
Fundamentals of Data Representation Yusung Kim
CS Spring 2014 CS 414 – Multimedia Systems Design Lecture 4 – Visual Perception and Digital Image Representation Klara Nahrstedt Spring 2014.
Visual Information Processing. Human Perception V.S. Machine Perception  Human perception: pictorial information improvement for human interpretation.
Image Processing F34IMP lecture 1
CS-565 Computer Vision Nazar Khan Lecture 2.
IMAGE PROCESSING IMAGE COMPRESSION
Image and Video Processing: An Introduction and Overview
IMAGE COMPRESSION.
Data Compression.
Image Processing Digital image Fundamentals. Introduction to the course Grading – Project: 30% – Midterm Exam: 30% – Final Exam : 40% – Total: 100% –
Discrete Cosine Transform
IT – 472 Digital Image Processing
Data Compression.
Data Compression CS 147 Minh Nguyen.
Image and Video Processing – An Introduction
Digital Multimedia Coding
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 Processing, Leture #16
Image Compression Purposes Requirements Types
© 2010 Cengage Learning Engineering. All Rights Reserved.
Presentation transcript:

Image Processing and Coding 1

Image  Rich info. from visual data  Examples of images around us natural photographic images; artistic and engineering drawings scientific images (satellite, medical, etc.)  “Motion pictures” => video movie, TV program; family video; surveillance and highway/ferry camera A picture is worth 1000 words. A video is worth 1000 sentences? 2

Image Processing  Enhancement and restoration  Remove artifacts and scratches from an old photo/movie  Improve contrast and correct blurred images 3

Image Processing  Composition (for magazines and movies), Display, Printing …  Transmission and storage  images from oversea via Internet, or from a remote planet  Information analysis and automated recognition  Providing “human vision” to machines Face detection in CMU CS, 4

An Example  A Navigation system study for Accident Scene Analysis and Obstacle Avoidance Based on Mobile Multimedia sensor Platform 5

Image Processing  Medical imaging for diagnosis and exploration  Security, forensics and rights protection  Encryption, hashing, digital watermarking, digital fingerprinting … Visible Watermark invisible Watermark 6

Digital Image  “Exactness”  Perfect reproduction without degradation  Perfect duplication of processing result  Convenient & powerful computer-aided processing  Can perform sophisticated processing through computer hardware or software  Even kindergartners can do some!  Easy storage and transmission  1 CD can store hundreds of family photos!  Paperless transmission of high quality photos through network within seconds 7

Examples of Digital Image Processing  Compression  Manipulation and Restoration  Restoration of blurred and damaged images  Noise removal and reduction 8

Examples of Digital Image Processing  Applications  Face detection  Visible and invisible watermarking  Error concealment and resilience in video transmission 25% blocks in a checkerboard pattern are corrupted corrupted blocks are concealed via edge- directed interpolation (a) original lenna image (c) concealed lenna image (b) corrupted lenna image 9

 International Conf. on Image Processing 10

What is An Image? 11  Grayscale image  A grayscale image is a function I(x,y) of the two spatial coordinates of the image plane.  I(x,y) is the intensity of the image at the point (x,y) on the image plane.  I(x,y) takes non-negative values  assume the image is bounded by a rectangle [0,a]  [0,b] Color image – Can be represented by three functions, R(x,y) for red, G(x,y) for green, and B(x,y) for blue. y x y x I(x, y)

Matlab Example x=imread('lena.bmp'); imshow(x); [n,m]=size(x); x(5:40,5:40)=0; imshow(x) x(90:150, 90:150)=255; Imshow(x) 12

Different Ways to View an Image (More generally, to view a 2-D real- valued function) In 3-D (x,y, z) plot with z= I (x,y); red color for high value and blue for low Equal value contour in (x,y) plane Intensity visualization over 2-D (x,y) plane 13

Sampling and Quantization  Computer handles “discrete” data.  Sampling  Sample the value of the image at the nodes of a regular grid on the image plane.  A pixel (picture element) at (i, j) is the image intensity value at grid point indexed by the integer coordinate (i, j).  Quantization  Is a process of transforming a real valued sampled image to one taking only a finite number of distinct values.  Each sampled value in a 256-level grayscale image is represented by 8 bits. 0 (black) 255 (white) 14

Image Compression  Savings in storage and transmission  Multimedia data (esp. image and video) have large data volume  Difficult to send real-time uncompressed video over current network  Accommodate relatively slow storage devices  -they do not allow playing back uncompressed multimedia data in real time  1x CD-ROM transfer rate ~ 150 kB/s  320 x 240 x 24 fps color video bit rate ~ 5.5MB/s => 36 seconds needed to transfer 1-sec uncompressed video from CD 15

PCM coding  How to encode a digital image into bits?  Sampling and perform uniform quantization  “Pulse Coded Modulation” (PCM)  8 bits per pixel ~ good for grayscale image/video  bpp ~ needed for medical images  Reduce # of bpp for reasonable quality via quantization  Quantization reduces # of possible levels to encode  Visual quantization: companding, contrast quantization, dithering, etc.  Halftone use 1bpp but usually upsampling ~ saving less than 2:1 16

DiscussiononImprovingPCMDiscussion on Improving PCM  Quantized PCM values may not be equally likely  – Can we do better than encode each value using same # bits?  Example  P(“0” ) = 0.5, P(“1”) = 0.25, P(“2”) = 0.125, P(“3”) =  If use same # bits for all values  Need 2 bits to represent the four possibilities if treat  If use less bits for likely values “0” ~ Variable Length Codes (VLC)  “0” => [0], “1” => [10], “2” => [110], “3” => [111]  Use 1.75 bits on average ~ saves 0.25 bpp!  Bring probability into the picture  Now use prob. distr. to reduce average # bits per quantized sample 17

Variable Length Code 18  If the probabilities of (a, b, c, d) were (1/2,1/4,1/8,1/8), the expected number of its used to represent a source symbol would be bits/per symbol:

EntropycodingEntropy coding 19

E.g.ofEntropyCoding:HuffmanCodingE.g. of Entropy Coding: Huffman Coding 20

HuffmanCoding(cont’d)Huffman Coding (cont’d) 21

HuffmanCoding:Pros&ConsHuffman Coding: Pros & Cons  Pro  Simplicity in implementation (table lookup)  For a given block size Huffman coding gives the best coding efficiency  Con  Need to obtain source statistics  Improvement  Code a group of symbols as a whole to allow fractional # bit per symbol  Arithmetic coding  Lempel-Ziv coding or LZW algorithm  “universal”, no need to estimate source statistics 22

Discussion: Coding a Binary Image  How to efficiently encode it?  – “ …”  Run-length coding (RLC)  Code length of runs of “0” between successive “1”  run-length of “0” ~ # of “0” between “1”  good if often getting frequent large runs of “0” and sparse “1”  – E.g., => (4) (0) (3) (1) (6) (0) (0) … …   – Assign fixed-length codeword to run-length  Or use variable-length code like Huffman to further improve  RLC Also applicable to general binary data sequence with sparse “1” (or “0”) 23

24 Any Questions?

25 Things To Do  Find your partners for the class project  Feb. 11, Thursday ( me the team information)  Each group has 3-4 members  Check out the class website about  lecture notes  reading assignments Next Topics Image Compression-JPEG