How to Convert Pictures into Numbers

Slides:



Advertisements
Similar presentations
Information Representation
Advertisements

Graphics in the web Digital Media: Communication and Design
Image Representation CS105. Data Representation Text representation – ASCII character set – Unicode – Data compression Images!
How Images are Represented Bitmap images (Dots used to draw the image) Monochrome images 8 bit grey scale images 24 bit colour Colour lookup tables Vector.
Part A Multimedia Production Rico Yu. Part A Multimedia Production Ch.1 Text Ch.2 Graphics Ch.3 Sound Ch.4 Animations Ch.5 Video.
An Introduction to Scanning and Storing Photographs and Graphics Bryn Jones Aug 2002
CS110: Computers and the Internet Color and Image Representation.
1 Internet Graphics. 2 Representing Images  Raster Image: Images consist of “dots” of color, not lines  Pixel: Picture element-tiny rectangle  Resolution:
Color Names All standards-compliant browsers should handle these color names These color names can be used with the CSS properties of color and background-color.
Computer Systems Nat 4.5 Computing Science Data Representation Lesson 4: Storing Graphics EXTENSION.
COMP Bitmapped and Vector Graphics Pages Using Qwizdom.
TOPIC 4 INTRODUCTION TO MEDIA COMPUTATION: DIGITAL PICTURES Notes adapted from Introduction to Computing and Programming with Java: A Multimedia Approach.
THE COLORS OF LIGHT RED, GREEN and BLUE
Objective Understand concepts used to create digital graphics. Course Weight : 15% Part Three : Concepts of Digital Graphics.
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.
1 Perception, Illusion and VR HNRS 299, Spring 2008 Lecture 14 Introduction to Computer Graphics.
Image Representation. Objectives  Bitmaps: resolution, colour depth and simple bitmap file calculations.  Vector graphics: drawing list – objects and.
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.
1 Ethics of Computing MONT 113G, Spring 2012 Session 10 HTML Tables Graphics on the Web.
Digital Image Formats: An Explanation Guilford County SciVis V
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,
Graphics An image is made up of tiny dots called pixels (“picture elements”) The resolution determines the.
Data Representation The storage of Text Numbers Graphics.
Computer Systems Nat 4.5 Computing Science Data Representation Lesson 4: Representing and Storing Graphics EXTENSION.
Digital Imaging Fundamentals Ms. Hema C.R. School of Mechatronic Engineering.
Why a bitmap (.bmp), not a.jpg? If you cannot save a.bmp, make it an uncompressed.tif. Compression (of this 8-bit 397,000 pixel image): none (397kb memory)medium.
Editing Images for the Web. Optimization/Compression Graphics optimization is important for fast web page display.
Digital Images are represented by manipulating this…
 By Bob “The Bird” Fiske & Anita “The Snail” Cost.
Graphics Concepts Presentation
POWERPOINT PLUS 11/17/07 Class Notes. WHAT IS A PIXEL A pixel is a number that represents the intensity of light at a square spot in the picture. Pixels.
Digital Graphics for Computer Games Pixels Types of Digital Graphics (Raster and Vector) Compression.
Vocabulary Worksheet Answers
GIF vs. JPEG GIF and JPEG (JPG) image formats are different. You should know which to use when. Here are some examples.
TOPIC 4 INTRODUCTION TO MEDIA COMPUTATION: DIGITAL PICTURES Notes adapted from Introduction to Computing and Programming with Java: A Multimedia Approach.
Digital Image Formats: An Explanation Guilford County SciVis V
Image Editing Vocabulary Words Pioneer Library System Norman Public Library Nancy Rimassa, Trainer Thanks to Wikipedia ( help.
Software Design and Development Storing Data Part 2 Text, sound and video Computing Science.
Lesson Objectives Aims You should be able to:
BITMAPPED IMAGES & VECTOR DRAWN GRAPHICS
Storing Graphics Nat 5 Data Representation Lesson 4a: Storing Graphics
Images Data Representation.
Computer Systems Nat 4/5 Data Representation Lesson 4:
Vocabulary byte - The technical term for 8 bits of data.
Binary Representation in Audio and Images
Computer Science Higher
Chapter 2: How are data represented?
Image Formats.
Compression (of this 8-bit 397,000 pixel image):
Introduction To Photo Editing SHIELA MAE A. AQUINO SRNHS.
JPG vs GIF vs PNG What is the difference?
Raster Images CPSC 1030.
Vocabulary byte - The technical term for 8 bits of data.
Chapter I Digital Imaging Fundamentals
Chapter 3:- Graphics Eyad Alshareef Eyad Alshareef.
LET’S LEARN ABOUT GRAPHICS!
Digital Image Formats: An Explanation
An Introduction to Scanning and Storing Photographs and Graphics
Graphics Basic Concepts.
Data Representation.
Representing Images 2.6 – Data Representation.
MED 2001 Advanced Media Production
Nuts and Bolts of Digital Imaging
Web Programming– UFCFB Lecture 7
Color and Images.
Multimedia System Image
Computer Systems Nat 4.5 Computing Science Data Representation
Basic Concepts of Digital Imaging
Binary CSCE 101.
Presentation transcript:

How to Convert Pictures into Numbers Digitizing Pictures How to Convert Pictures into Numbers

Digitizing Pictures We already know how to represent numbers in binary. Divide the picture into very small squares (pixels) and determine the color of each pixel. Pixel: a “picture element”—a dot Assign a number to each color and use the binary representation of that number and you are done!

Digitizing Pictures: Options Two things affect picture quality: Resolution: number/size of pixels More pixels = more numbers = more memory. Number of colors: More colors = more numbers = more memory.

Elvis Line Art 100% This is a picture of Elvis made up of only 2 colors: black and white.

Same picture at 800%. Each pixel is outlined in black. Elvis Line Art 800% Same picture at 800%. Each pixel is outlined in black.

Same picture at 1600%. Pixel structure is obvious. Elvis Line Art 1600% Same picture at 1600%. Pixel structure is obvious.

Elvis as zeros and ones: Same picture at 1600%. Pixel structure is obvious. You can actually see the eye!.

Elvis Gray Scale (256 shades) Same picture in “gray scale” – 256 shades of gray. Each pixel is represented by an 8-bit number in the range from 0 [black] to 255 [white]. Note the shades of gray.

Gray Scale

Elvis Gray Scale 800%

Elvis Gray Scale 1600%

Elvis 8-bit color (GIF) Elvis in 8-bit color. Skin colors are not as smooth as with 24-bit color.

Elvis 8-bit color 800% Same picture at 800%.

Elvis 8-bit color 1600% Same picture at 1600%.

Elvis 24-bit color 100% Same picture in 24-bit color: 8 bits for red, 8 bits for green, and 8 bits for blue. Total possible colors is 256 x 256 x 256, or over 16 million. Also called “True Color”. Gives photo-quality displays. True Color: 24-bits, 16 million colors

Elvis 24-bit color 800% Same picture at 800%. Pixels are outlined in black.

Elvis 24-bit color 1600% Same picture at 1600%. Pixel structure is obvious.

Graphic Memory Requirements 16 million colors: Elvis 24-bit color BMP 127 KB (each pixel is represented by 3 bytes – no compression) Elvis 24-bit color JPG 16 KB (each pixel is represented by 3 bytes, but with “lossy” compression). Lossy compression: the picture viewed is not the same pixels as the original. Pixels have been lost.

Lossy Compression Original After 40 saves

Graphic Memory Requirements 256 colors: Elvis 8-bit color BMP 44 KB (each pixel is represented by a single byte, no compression) Elvis 8-bit color GIF 37 KB (each pixel is represented by a single byte, with “lossless” compression) Lossless compression: the picture is compressed, but when viewed, all of the original pixels are there.

Side-by-side comparison 2 colors 256 shades 256 colors 16M colors of gray

24-bit (top) vs. 8-bit color

` 24-bit color 8-bit color Gray scale 1-bit line art Comparison: ` 24-bit color 8-bit color Gray scale 1-bit line art

Conclusion: Pictures look better if you have: More pixels (higher resolution) This requires more memory. More colors

Paint.NET Paint.NET is an open-source image editor Web site: http://www.getpaint.net/

The End