CS 128/ES 228 - Lecture 7a1 Data – How (Much of) It Is Stored.

Slides:



Advertisements
Similar presentations
Introduction to Computer Graphics Raster Vs. Vector COMMUNICATION TECHNOLOGY.
Advertisements

L.Ghadah R. Hadba CT1514-L1.  Computer Graphics :refers to processing of creating a new image from Geometry, Lighting parameters, Materials and Textures.Using.
Graphics CS 121 Concepts of Computing II. What is a graphic? n A rectangular image. n Stored in a file of its own, or … … embedded in another data file.
Image Editing Basics Resolution Screen resolution Printer resolution.
CS 128/ES Lecture 7b1 File Formats. CS 128/ES Lecture 7b2 Outline What is an image really? Methods of storing images Compression algorithms.
Guilford County SciVis V106.01
V Obtained from a Guildford County workshop-Summer, 2014.
Welcome to a New Quarter Class Rules and Responsibilities What will be learning? 106-Static and Dynamic Visualization 105-Synthesize Data for SciVis Video-Real.
Image Compression CSC CSC Computing with Images2 How do we use fewer bytes to encode the same or similar information? Reduce redundancy Take.
Image and Sound Editing Raed S. Rasheed Image Image. Digital image. – Raster images. – Vector Images. – Stereo Images. – Image File Formats Lossless.
Manipulating Images Image A visual representation of something that is seen in real life. It can be two-dimensional or three-dimensional A visual representation.
File Formats By Jack Turner. Raster (Bitmap) Raster or bitmap is a dot matrix data structure, containing columns of dots and rows, of a graphics image.
File Formats Different applications (programs) store data in different formats. Applications support some file formats and not others. Open…, Save…, Save.
1 Creating Web Graphics Outline 2.1 Graphics Types 2.2 Vector Graphics 2.3Bitmapped Graphics 2.4Graphics for the Web 2.5 GIF (Graphics Interchange Format)
File Formats COM 366 Web Design & Layout. Native file format –Format native to software program –.psd > PhotoShop default Preserves layers –Use “Save.
File Formats About graphic file formats And image compression.
Module Code: CU0001NI Technical Information on Digital Images Week -2.
Lecture 4 - Introduction to Computer Graphics
An Introduction to Graphic File Formats.jpg.gif.tiff bmp and.eps and.psd...
Image Storage Bitmapped Graphics – in which an image is represented as a collection of dots Vector Graphics – in which an image is represented as a set.
All About File Formats Mr. Butler John Jay High School Department of Technology.
Presentation Design: Graphics. More About Color “Bit depth” of colors -- This is based on the smallest unit of information that a computer understands.
Digital Image: Representation & Processing (2/2) Lecture-3
SOFTWARE TYPES Word processing Page layout Paint Draw.
8 Using Web Graphics Section 8.1 Identify types of graphics Identify and compare graphic formats Describe compression schemes Section 8.2 Identify image.
Web Image Basics Comp 140 December 2. Vector Graphics Can be repositioned or resized – Will not diminish output quality Typically stored in AI, EPS, PICT.
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.
Information Processes and Technology Multimedia: Graphics.
CS- 375 Graphics and Human Computer Interaction Lecture 1: 12/4/1435 Fundamental Techniques in Graphics Lecturer: Kawther Abas.
Graphics workshop Library and Information Services University of St Andrews.
File Formats Different applications (programs) store data in different formats. Applications support some file formats and not others. Open…, Save…, Save.
Web Graphics By Chris Harding. Contents  Software  Vector Graphics and Pixel Based  Transparent Images  Compression  GIF vs. JPEG  Animated GIF.
File Format. Graphics file Format GIF (Graphics Interchange Format) JPEG (Joint Photographic Experts Group) PNG (Portable Network Graphics) TIFF (Tag.
2D Graphics Theory & Principles. Single Point Smallest addressable area on screen or digital image.
File Formats and Vector Graphics. File Types Images and data are stored in files. Each software application uses different native file types and file.
Chapter 2 File Format Objectives (1 of 2) Identify the difference between vector based graphics and bitmap-based graphics Clarify bitmap and vector graphic.
File Format. Graphic file Format GIF –cross-platform compatibility –developed by CompuServe as a common format for exchanging bitmapped images between.
Digital Imaging 101 Ann Ware. Digital Image Categories BITMAP  A vector is created by using a series of mathematically defined lines and curves rather.
Digital Imaging 101 Ann Ware
Chapter 3 Image Files © 2013 Cengage Learning. All Rights Reserved. May not be scanned, copied or duplicated, or posted to a publicly accessible website,
Color and Images. Color The natural colors we see and the colors we see on computer monitors are different. CMYK -natural RGB -monitor.
Raster Graphics 2.01 Investigate graphic image design.
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 Editing Presented by John Hohn. File Formats JPEG – Joint Photographic Experts Group PNP – Portable Network Graphics GIF – Graphic Interchange.
Introduction to Images & Graphics JMA260. Objectives Images introduction Photoshop.
21 st Century Technology. Painting Uses Pixels Quality of image Changes Drawing Uses Vectors or Lines Quality of Image Does NOT Change.
Digital Graphics for Computer Games Pixels Types of Digital Graphics (Raster and Vector) Compression.
Lesson 2: Introduction to Digital Imaging Digital Photography MITSAA IAP 2003 Rob Zehner.
Image File Formats Harrow Computer Club – Wed, 1 Dec 2010 Bob Watson MA CMath MIMA MBCS.
Graphics and Image Data Representations 1. Q1 How images are represented in a computer system? 2.
File Formats Different applications (programs) store data in different formats. Applications support some file formats and not others. Open…, Save…, Save.
Common Bitmap Image File Types
Digital Imaging 101 Ann Ware.
Chapter 3 Image Files © 2013 Cengage Learning. All Rights Reserved. May not be scanned, copied or duplicated, or posted to a publicly accessible website,
Web Graphics By Chris Harding.
Introduction to Graphics
Image Formats.
Sci Vis I Exam Review Unit 6 File Formats.
2.01 Investigate graphic image design.
JPG vs GIF vs PNG What is the difference?
Chapter 3 Image Files © 2017 Cengage Learning®. May not be scanned, copied or duplicated, or posted to a publicly accessible website, in whole or in part.
"Digital Media Primer" Yue-Ling Wong, Copyright (c)2013 by Pearson Education, Inc. All rights reserved.
A computer display is made up of small squares, called pixels.
Digital Images.
1.01 Investigate graphic types and file formats.
2.01 Investigate graphic image design.
2.01 Investigate graphic image design.
"Digital Media Primer" Yue-Ling Wong, Copyright (c)2013 by Pearson Education, Inc. All rights reserved.
2.01 Investigate graphic image design.
Presentation transcript:

CS 128/ES Lecture 7a1 Data – How (Much of) It Is Stored

CS 128/ES Lecture 7a2 Outline What Is an Image Really? Methods of Storing Images How to Make a Big File Small Compression Algorithms Conversion Algorithms In theory In practice

CS 128/ES Lecture 7a3 What is an image? An image is anything we store on the computer that we think of as a “picture”. It should look “the same” on any display. Image file formats GIF, JPEG, TIFF, BMP NOT shapefiles

CS 128/ES Lecture 7a4 File Formats There are many image file formats 35 on the first page I hit looking for a list! Each has advantages and disadvantages

CS 128/ES Lecture 7a5 GIF Developed by Compuserve in 1987 Particularly good for line drawings (anything with sharp edges) VERY common on web

CS 128/ES Lecture 7a6 JPEG (or JPG) Product of the Joint Photographers Experimental Group Good for photos, images with subtle changes Also popular on the web

CS 128/ES Lecture 7a7 GIF vs. JPEG JPEGGIF Use For“Realistic” artworkIllustrations Compres- sion Lossy, but controllableLossy, no control Colors24-bits8-bits OthersNo transparencyTransparency

CS 128/ES Lecture 7a8 JPEG 2000 (aka JP2) “The JP2 and JPX file formats allow for handling of color-space information, metadata, and for interactivity in networked applications as developed in the JPEG Part 9 JPIP protocol.” Some imagery is now distributed as JP2 files – datum and projection included at no extra charge!

CS 128/ES Lecture 7a9 Portable Network Graphics (PNG) PNG also stands for “PNG’s Not GIF” Loss-less compression using non- patented algorithm Supports transparency, but not really animation ISO standard since 2003

CS 128/ES Lecture 7a10 BMP Bitmap format – Primarily for Windows (but not exclusively) NO Compression means LARGE files Standard Screen Snapshot is BMP

CS 128/ES Lecture 7a11 EPS, PICT, TIFF Encapsulated PostScript (mostly for printing, some display) PICTure format (Macs only) Tag Interchange File Format (multi- platform, but less used these days)

CS 128/ES Lecture 7a12 Shapefiles and active software A running program may read from or write to these formats, but generally uses its own memory management while running. Shapefiles contain shape information and are not in any of these formats – and not truly image files They are vector layers, after all

CS 128/ES Lecture 7a13 Compression Algorithms Compression algorithms “shrink” files May do so by mathematical “tricks” or by discarding information

CS 128/ES Lecture 7a14 Two KEY Facts about Compression NO LOSS-LESS compression algorithm can work all the time! NO LOSSY compression algorithm can regenerate its original data.

CS 128/ES Lecture 7a15 An LOSS-LESS Example Run-length compression Count and record the length of the data set and then each group of 0’s or 1’s

CS 128/ES Lecture 7a16 A LOSSY Example Truncation

CS 128/ES Lecture 7a17 How much does compression affect image quality? Original (32 MB) Compressed (493 kB)

CS 128/ES Lecture 7a18 Converting Vector to Raster Must compute the equation of the line Then choose which pixels to highlight Many algorithms, but differences are technical

CS 128/ES Lecture 7a19 Typical algorithm Y = y0 + 1 Illuminate pixel (x, int(Y)) Y = Y + 1 X = X + 1 /m Illuminate pixel (x, int(Y)) … Until Y == y1 X = x0 Y = y0 Illuminate pixel (x, int(Y)) (x1,y1) (x0,y0)

CS 128/ES Lecture 7a20 Anti-aliasing Basic idea – Remove the “jaggies” by using color variations

CS 128/ES Lecture 7a21 Conversion in practice

CS 128/ES Lecture 7a22 Converting Raster to Vector Basic idea Find areas with sharp changes – these are your boundaries. Adjust as topology indicates Much harder in practice than the other way around Alternative is hand-digitization