Images 01/29/04 Resources: Yale Web Style Guide The GIF Controversy Unisys - lzw.

Slides:



Advertisements
Similar presentations
Digital Color 24-bit Color Indexed Color Image file compression
Advertisements

The Lossless JPEG standard y=(a+b)/2 = 145 r= =-35 Category (r) = 6, Magnitude (r) = ’s complement of cat (r) = Rep(35)={6,011100}
Image Data Representations and Standards
A Digital Imaging Primer Nick Dvoracek Instructional Resources Center University of Wisconsin Oshkosh.
Source Coding Data Compression A.J. Han Vinck. DATA COMPRESSION NO LOSS of information and exact reproduction (low compression ratio 1:4) general problem.
Flowcharts Using Visio. Definitions  An Algorithm is just a detailed sequence of simple steps that are needed to solve a problem.  A Flowchart is a.
Dale & Lewis Chapter 3 Data Representation. Representing color Similarly to how color is perceived in the human eye, color information is encoded in combinations.
ISYS 3074 Graphics File Formats File formats have developed with applications. At least 50 currently in use. Examples include: GIF, JPEG, TIFF, BMP, DIB,
Lossless Compression in Multimedia Data Representation Hao Jiang Computer Science Department Sept. 20, 2007.
Data dan Teknologi Multimedia Sesi 08 Nofriyadi Nurdam.
Lossless Compression Multimedia Systems (Module 2 Lesson 3)
Image Compression CSC CSC Computing with Images2 How do we use fewer bytes to encode the same or similar information? Reduce redundancy Take.
File Types, Sizes & Dots Per Inch (dpi) Best practices applied to Photoshop file formats when creating media-specific documents. Bit Depth is the number.
1 GFI Files Graphics Interchange Format. 2 GIF History  CompuServe developed 1987 Versions 87a, V89a Because there was no standard.
Russell Taylor Week 3. Image File Formats - TIF, JPG, PNG, GIF - which to use? The three most common and important image file formats for for printing,
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.
Lecture 10 Data Compression.
Data Compression For Images. Data compression or source coding is the process of encoding information using fewer bits (or other information-bearing units)
1 Ethics of Computing MONT 113G, Spring 2012 Session 11 Graphics on the Web Limits of Computer Science.
COMP Bitmapped and Vector Graphics Pages Using Qwizdom.
Lab #5-6 Follow-Up: More Python; Images Images ● A signal (e.g. sound, temperature infrared sensor reading) is a single (one- dimensional) quantity that.
Graphics/Image Data Types
Chapter 11 Fluency with Information Technology 4 th edition by Lawrence Snyder (slides by Deborah Woodall : 1.
1 Perception, Illusion and VR HNRS 299, Spring 2008 Lecture 14 Introduction to Computer Graphics.
Digital Image: Representation & Processing (2/2) Lecture-3
Images The Science of Images What is an Image on the computer? The Psychology of Images What do we use images for? What effect color has on our mood and.
Multimedia Specification Design and Production 2012 / Semester 1 / L3 Lecturer: Dr. Nikos Gazepidis
Digital Cameras And Digital Information. How a Camera works Light passes through the lens Shutter opens for an instant Film is exposed to light Film is.
Still-image compression Moving-image compression and File types.
Addressing Image Compression Techniques on current Internet Technologies By: Eduardo J. Moreira & Onyeka Ezenwoye CIS-6931 Term Paper.
1 Image Formats. 2 Color representation An image = a collection of picture elements (pixels) Each pixel has a “color” Different types of pixels Binary.
Graphics workshop Library and Information Services University of St Andrews.
Image Representation. Digital Cameras Scanned Film & Photographs Digitized TV Signals Computer Graphics Radar & Sonar Medical Imaging Devices (X-Ray,
Marr CollegeHigher ComputingSlide 1 Higher Computing: COMPUTER SYSTEMS Part 1: Data Representation – 6 hours.
ADOBE PHOTOSHOP VECTOR VS RASTER. Pixel A pixel is the fundamental unit of an image in Photoshop. It is a small square block of color. An image often.
Web Graphics. Colours and Display Graphics and Modems 28.8kbps = 3.6 KB per second 36 KB takes 10 seconds to load. Pixels and color.
File Formats and Vector Graphics. File Types Images and data are stored in files. Each software application uses different native file types and file.
Image Compression CSC CSC Computing with Images2 Image Compression Goal: reduce redundancy –Encode the same information using fewer bits.
Multimedia Basics (1) Hongli Luo CEIT, IPFW. Topics r Image data type r Color Model : m RGB, CMY, CMYK, YUV, YIQ, YCbCr r Analog Video – NTSC, PAL r Digital.
Chapter 3 Image Files © 2013 Cengage Learning. All Rights Reserved. May not be scanned, copied or duplicated, or posted to a publicly accessible website,
CSC Computing with Images1 File formats for images on the web CSC 1040.
Images. Digital Images Rectangular arrays of pixel data Pixel - picture element, smallest addressable part of the frame buffer. Color depth - the depth.
Class 9 LBSC 690 Information Technology Multimedia.
Image File Formats. What is an Image File Format? Image file formats are standard way of organizing and storing of image files. Image files are composed.
Digital Image Processing Lecture 22: Image Compression
Digital Graphics for Computer Games Pixels Types of Digital Graphics (Raster and Vector) Compression.
STATISTIC & INFORMATION THEORY (CSNB134) MODULE 11 COMPRESSION.
Lesson 2: Introduction to Digital Imaging Digital Photography MITSAA IAP 2003 Rob Zehner.
Image File Formats By Dr. Rajeev Srivastava 1. Image File Formats Header and Image data. A typical image file format contains two fields namely Dr. Rajeev.
Image File Formats Harrow Computer Club – Wed, 1 Dec 2010 Bob Watson MA CMath MIMA MBCS.
Scanner Scanner Introduction: Scanner is an input device. It reads the graphical images or line art or text from the source and converts.
Graphics and Image Data Representations 1. Q1 How images are represented in a computer system? 2.
IS502:M ULTIMEDIA D ESIGN FOR I NFORMATION S YSTEM M ULTIMEDIA OF D ATA C OMPRESSION Presenter Name: Mahmood A.Moneim Supervised By: Prof. Hesham A.Hefny.
8th Lecture – Intro to Bitmap or Raster Images
2.01 Understand Digital Raster Graphics
File Formats Different applications (programs) store data in different formats. Applications support some file formats and not others. Open…, Save…, Save.
Chapter 3 Image Files © 2013 Cengage Learning. All Rights Reserved. May not be scanned, copied or duplicated, or posted to a publicly accessible website,
Everything is a number Everything in a computer memory and on storages is a number. Number  Number Characters  Number by ASCII code Sounds  Number.
Web Graphics By Chris Harding.
Binary Representation in Audio and Images
Computer Science Higher
2.01 Understand Digital Raster Graphics
How to Convert Pictures into Numbers
Image File Size and File Compression
Representing Images 2.6 – Data Representation.
MED 2001 Advanced Media Production
COMS 161 Introduction to Computing
COMS 161 Introduction to Computing
File Compression and Formats
Chapter 8 – Compression Aims: Outline the objectives of compression.
Presentation transcript:

Images 01/29/04 Resources: Yale Web Style Guide The GIF Controversy Unisys - lzw

Image Characteristics  Size  Image Size: Dimension in pixels  Canvas Size: Dimension in inches  Screen Resolution (Pixels per inch)  72 –96 ppi for a monitor  ppi for print

Image Characteristics  Color  True Color  8 bits per Red, Green, Blue  Or 24 bits per pixel  Given a square image with a dimension of 4 inches and given 2 ppi. What file size would be needed just to store the image data (in bits)?

Image Characteristics  Color  True Color  8 bits per Red, Green, Blue  Or 24 bits per pixel  Given a square image with a dimension of 4 inches and given 72 ppi. What file size would be needed just to store the image data (in bits)?  24bits/pixel * 72 pixels/inch * 4 inches/scan line = 6912 bits/scan line  6912 bits/scan line * 72 scan lines/inch * 4 inches = ~ 2000 K

Image Characteristics  Given a square image with a dimension of 4 inches and given 300 ppi. What file size would be needed just to store the raw image data (in bits)?

Image Characteristics  Given a square image with a dimension of 4 inches and given 300 ppi. What file size would be needed just to store the raw image data (in bits)? 24bits/pixel * 300 pixels/inch * 4 inches/scan line = 28800bits/scan line 28800bits/scan line * 300 scan lines/inch * 4 inches = K

Image Transmission  Most Internet users connect at 56K modems. The download rate for a 56K modem is actually pretty close to 7K.  To transmit ~ K would take ~one hour  To transmit ~2000K will take ~4.76 minutes  Studies show that users get impatient after a 2 second delay.  Implications?

Compression : What is it?  The goal of data compression is to represent an information source (e.g. a data file, a speech signal, an image, or a video signal) as accurately as possible using the fewest number of bits.

Image Compression : Web Formats  GIF – lossy for more than 256 colors  For line drawings, gray scale images and color pictures with a palette of 256 colors or fewer  JPG – always lossy  For true color images, especially photographs  PNG - lossless  Not well supported in IE  Replacement format for GIF

Compression : How does it work?  Describe the algorithm.  A procedure or formula for solving a problem.  An algorithm can be described in  Pseudocode >An outline of an algorithm, written in a form that can easily be converted into a program. >There are no formatting or syntax rules >Enables the programmer to concentrate on the algorithms without worrying about all the syntactic details of a particular programming language

Run Length Encoding  RLE is used in TIFF and PDF files  For a binary image, given the dimensions of the image ( r x c ) and that ( x 0, x 1,..., x( (r*c)-1 ) are image pixels with one of two possible intensity values (0 or 1), the image line can be said to consist of k image segments having length l i.  Assume that the initial image segment has a white value or value of 1.

Run Length Encoding Pseudo Code initialize RunColor to 1 initialize RunLength to 0 for each pixel in the image if (pixel is the same as the RunColor) increment RunLength else write RunLength change RunColor to pixel's intensity initialize RunLength to 1 write last RunLength

initialize RunColor to 1 initialize RunLength to 0 for each pixel in the image if (pixel is the same as the RunColor) increment RunLength else write RunLength change RunColor to pixel's intensity initialize RunLength to 1 write last RunLength

Three Programming Contructs 1. Sequence construct  Statements are executed in the order they're found in the code. X = 3 Y = 2 Z = X * Y

Three Programming Contructs (continued) 2. Selection  Controls the flow of execution down one of two or more paths, depending on the result of a logical test.  If – then – [else – then] If (temperature < 50) Wear long pants Else Wear shorts

Three Programming Contructs (continued) 2. Selection - Switch Switch (temperature / 10) Case 0: Case 1: Case 2: Case 3: Case 4: Wear long pants break Case 5: Wear zip-offs break Default Wear shorts

Three Programming Contructs (continued)  Iteration  A block of code is required to be executed continually until a condition is met  For  While  Pre condition  Do While  Post Condition

Lempel Ziv Welch - LZW  Used in GIF, TIFF-LZW, PostScript, Portable Document Format (PDF), V.42bis, compress  U.S. LZW patent (Unisys) expired June 20,  CompuServe released GIF as a free and open specification in  … the reading and/or writing of GIF images requires a license to use Unisys patented Lempel Ziv Welch (LZW) data compression and decompression technology … form Unisys

LZW  LZW starts with a 4K dictionary, of which entries refer to individual bytes, and entries refer to substrings.  Each time a new code is generated it means a new string has been parsed.  New strings are generated by appending the current character/pixel color K to the end of an existing string w.

LZW set w = “” loop read a character/pixel K if wK exists in the table w = wK else output the code for w add wK to the table w = K endloop

LZW Input string: /WED/WE/WEE/WEB Character Code New code value input: Output: and associated string: /W / 256 = /W E W 257 = WE D E 258 = ED / D 259 = D/ WE = /WE / E 261 = E/ WEE = /WEE /W = E/W EB = WEB B

LZW LZW applet