 By Bob “The Bird” Fiske & Anita “The Snail” Cost.

Slides:



Advertisements
Similar presentations
Pixels and Digital Images Yrd. Doc. Dr. Ahmet Sayar Kocaeli Universitesi Bilgisayar Muhendisligi Ileri Bilgisayar Grafikleri.
Advertisements

Digital Color 24-bit Color Indexed Color Image file compression
Information Representation
Bit Depth and Spatial Resolution SIMG-201 Survey of Imaging Science © 2002 CIS/RIT.
ISYS 3074 Graphics File Formats File formats have developed with applications. At least 50 currently in use. Examples include: GIF, JPEG, TIFF, BMP, DIB,
Graphics File Formats. 2 Graphics Data n Vector data –Lines –Polygons –Curves n Bitmap data –Array of pixels –Numerical values corresponding to gray-
CSC Computing with Images1 Image encodings CSC 1040.
Introduction to Computer Graphics
The University of Adelaide Picture Perfect: Image Formats and Resolution Peter Murdoch March 2014 PREPARING GOOD LOOKING DOCUMENTS.
Lesson Objectives Explain the representation of an image as a series of pixels represented in binary Explain the need for meta data to be included in the.
Image Compression CSC CSC Computing with Images2 How do we use fewer bytes to encode the same or similar information? Reduce redundancy Take.
Data starts with width and height of image Then an array of pixel values (colors) The number of elements in this array is width times height Colors can.
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,
Digital Images The digital representation of visual information.
Chpater 3 Resolution, File Formats and Storage. Introduction There are two factors that determine the quality of the picture you take; The resolution.
Higher Computing Data Representation.
1 Ethics of Computing MONT 113G, Spring 2012 Session 11 Graphics on the Web Limits of Computer Science.
Faculty of Sciences and Social Sciences HOPE Website Development Graphics Stewart Blakeway FML 213
Computer Systems Nat 4.5 Computing Science Data Representation Lesson 4: Storing Graphics EXTENSION.
COMP Bitmapped and Vector Graphics Pages Using Qwizdom.
Digital Images Chapter 8, Exploring the Digital Domain.
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.
TOPIC 4 INTRODUCTION TO MEDIA COMPUTATION: DIGITAL PICTURES Notes adapted from Introduction to Computing and Programming with Java: A Multimedia Approach.
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.
Foundations of Web Design I Photoshop CS5 Michael Daniel
Follow the Data Data (and information) move from place to place in computer systems and networks. As it moves it changes form frequently. This story describes.
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.
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.
Two –Dimensional Arrays Mrs. C. Furman Java Programming November 19, 2008.
Computer Images Can store color info about each pixel, but makes file BIG Compression for Web 15.
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,
Unit 1: Task 1 By Abbie Llewellyn. Vector Graphic Software (Corel Draw) Computer graphics can be classified into two different categories: raster graphics.
Graphics An image is made up of tiny dots called pixels (“picture elements”) The resolution determines the.
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.
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.
COMPUTER GRAPHICS. Can refer to the number of pixels in a bitmapped image Can refer to the number of pixels in a bitmapped image The amount of space it.
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.
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.
CS 101 – Sept. 14 Review Huffman code Image representation –B/W and color schemes –File size issues.
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.
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.
Image Editing Vocabulary Words Pioneer Library System Norman Public Library Nancy Rimassa, Trainer Thanks to Wikipedia ( help.
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.
Computer Graphics Lesson 2 July 12, 2005 Image Formats What are some formats you are familiar with? There are 4 basic image format types: Uncompressed.
BITMAPPED IMAGES & VECTOR DRAWN GRAPHICS
Data Representation.
Sampling, Quantization, Color Models & Indexed Color
Vocabulary byte - The technical term for 8 bits of data.
Binary Representation in Audio and Images
Computer Science Higher
How to Convert Pictures into Numbers
Compression (of this 8-bit 397,000 pixel image):
Vocabulary byte - The technical term for 8 bits of data.
Chapter III, Desktop Imaging Systems and Issues: Lesson IV Working With Images
File size and image quality
Saving Images from Fireworks
Graphics Basic Concepts.
Data Representation.
Representing Images 2.6 – Data Representation.
COMS 161 Introduction to Computing
Colors Computers build colors from Red, Green, and Blue; not Red, Blue, and Yellow. RGB = Red Green Blue Creating Colors Red + Blue = Purple No Red, No.
Follow the Data Data (and information) move from place to place in computer systems and networks. As it moves it changes form frequently. This story.
Basic Concepts of Digital Imaging
Presentation transcript:

 By Bob “The Bird” Fiske & Anita “The Snail” Cost

 Bitmaps & the brightness grayscale  Color pictures are red, green & blue  Storing bitmaps as files  Compressing bitmap data

 A bitmap is not a bit of a map or maybe it is.  It might be a map bit but not in the computer world  A bitmap is an image made up of tiny little pixels, not to be confused with pixies.  Pixels are tiny dots of color within a computer image

 A grayscale image is what you might call a “black and white” picture  The grayscale determines the brightness of each pixel  Each pixel is a number between 0 and 255.  This represents a scale of brightness going from  black (0) to white (255) and  shades of gray (the numbers in between).

 First row of a bitmap picture:  A lower down row in the picture:

 To get a color image, you combine 3 primary colors.  The commonly used colors are RGB (red, green and blue).  When we show a color picture on the computer, we are combining 3 black and white images  By sending them through the 3 color channels (RGB).

 How do they do it? In essence, you make 3 black and white images of the picture  filtered through a red filter,  filtered through a green filter, and  filtered through a blue filter. Red imageGreen imageBlue image

Red channelGreen channelBlue channel Combine to create…

 Each grayscale pixel uses 1 byte of storage  This is the same as 8 bits  A bit stores either a 1 or a 0  8 bits are necessary to encode the numbers 0 to 255  8 bits = 1 byte  If I have 1000 pixels, that is 1 kilobyte (KB)  Technically, a KB is actually 1024 bytes Computer math is funny. Ha ha!

 If I have a color image that has 245 pixels per row, and 200 rows  The number of pixels is: 245 x 200 = 49,000 pixels  But it's a color image, so in fact it's 3 grayscale images: 3 x 49,000 = 147,000 pixels  And each pixel uses 1 byte.  So I'm using 147,000 bytes.  How many kilobytes? 147,000 / 1024 = KB  144 KB!?! And that is a small bitmap image!

 A Bitmap image (known as a BMP) uses full memory storage for each pixel  There are many schemes for compressing this data into a smaller file  Compression compacts the data before it stores it to a file.

 JPEG is one type of compression scheme.  JPEG is a "lossy" compression It changes the original data.  Another compression scheme that is very widely used is GIF.  GIF is a "lossless" compression It preserves the original data.  A much older compression is the 256-color bitmap  This method compresses the color scale to save on file space

 How many colors?  With an RGB image, each pixel consists of 8 bits times 3  For the 3 color images  That’s a total of 24 bits for each color pixel  The total colors that can be produced by a single pixel in this system is:  Red channel: 0 to 255 (256 colors)  Green channel: 0 to 255 (256 colors)  Blue channel: 0 to 255 (256 colors)  (See the next slide)

 The total number of combinations is 256 x 256 x 256  So, the total number of possible colors is 256 x 256 x 256 = 16,777,216

 There is an older bitmap encoding that doesn’t use 16 million colors  Instead, it uses only 256 colors  This makes it possible to use only a single pixel image plane Instead of the separate Red, Green and Blue image planes combined into a single picture  There is a tradeoff, however:  The 256 colors are actually a color-and-brightness scale at the same time. This means that you don’t get the full range of colors You also don’t get the full range of brightness levels

 GIF compression compresses the image like this: Run Length Encoding  With this scheme, the data can be packaged tightly, using less file space  Yet it can also be perfectly unpacked  That restores the original image data.

 In run length compression, you count the number of repeated pixels.  Start with this:  After compression, end with this: 2:0s, 1:1, 1:6, 1:18, 5:20s,4:24s 1:148, 1:152, 1:200, 4:210s, 2:150s, 1:100, 1:78, 3:60s  This is lossless encoding  The original data can be brought back  It works best with “geometric” images  These are non-photographic images that have large regions consisting of the same color value

 See how this geometric image uses the same color pixels over and over?  This is ideal for saving space using GIF encoding

 Oh yeah, I forgot. When I converted my bitmap to GIF, it also did a color compression  Storing each 24-bit pixel as an 8-bit pixel  This is the same as my 256-color bitmap.

 JPEG uses a sophisticated mathematical compression based on Fourier analysis. So it's hard to describe what is happening to the data.  As if I could!  I’m not that nerdy!  Suffice it to say, the while the data is being compressed, it is being changed:  Errors are introduced.

 Does anybody complain about the JPEG errors?  In photographic images (that don't actually contain sharp edges), the errors are not noticeable.  In "geometric images" that contain lots of straight lines and regions of uniform color, the errors become noticeable They appear as "edge echoes". Photographic Geometric