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.

Slides:



Advertisements
Similar presentations
Image Data Representations and Standards
Advertisements

Raster graphics. Colour depth 01 1 bit pr pixel = 2 combinations (2 1 ): 2 bits pr pixel = 4 combinations (2 2 ): bits pr pixel = 16 combinations(2.
A Digital Imaging Primer Nick Dvoracek Instructional Resources Center University of Wisconsin Oshkosh.
Dale & Lewis Chapter 3 Data Representation. Representing color Similarly to how color is perceived in the human eye, color information is encoded in combinations.
Bit Depth and Spatial Resolution SIMG-201 Survey of Imaging Science © 2002 CIS/RIT.
Multimedia for the Web: Creating Digital Excitement Multimedia Element -- Graphics.
Graphics File Formats. 2 Graphics Data n Vector data –Lines –Polygons –Curves n Bitmap data –Array of pixels –Numerical values corresponding to gray-
Images.
Images and colour Colour - colours - colour spaces - colour models Raster data - image representations - single and multi-band (multi-channel) images -
CSC Computing with Images1 Image encodings CSC 1040.
Graphics in the web Digital Media: Communication and Design
Graphics and Animation Chapter 8. 8 Graphics in Multimedia Graphics are an element that virtually all multimedia applications include.
Bitmapped Images 27 th November 2014 With Mrs
V Obtained from a summer workshop in Guildford County July, 2014
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
Graphical images Bit-mapped (or raster-based) image: Matrix describing the individual dots that are the smallest elements (pixels) of resolution on a computer.
1 Ethics of Computing MONT 113G, Spring 2012 Session 11 Graphics on the Web Limits of Computer Science.
Computer Systems Nat 4.5 Computing Science Data Representation Lesson 4: Storing Graphics EXTENSION.
COMP Bitmapped and Vector Graphics Pages Using Qwizdom.
Chapter 3 Graphics and Image Data Representations
Objective Understand concepts used to create digital graphics. Course Weight : 15% Part Three : Concepts of Digital Graphics.
Graphics/Image Data Types
Vector vs. Bitmap
1 Perception, Illusion and VR HNRS 299, Spring 2008 Lecture 14 Introduction to Computer Graphics.
Foundations of Web Design I Photoshop CS5 Michael Daniel
Digital Image: Representation & Processing (2/2) Lecture-3
Graphics and Animation Multimedia Projects Part 2.
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.
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.
Lecture 4 Pixels, Images and Image Files 1. In this Lecture, you will learn the following concepts: Image files (in particular, the BMP file format) How.
Computer Graphics Bitmaps & Sprites CO2409 Computer Graphics Week 3.
Pixels, Images and Image Files 1 By Dr. HANY ELSALAMONY.
Information Processes and Technology Multimedia: Graphics.
+ 5 Things you need to know about images* *Images for the web.
Raster Graphics. An image is considered to be made up of small picture elements (pixels). Constructing a raster image requires setting the color of each.
CS112 Scientific Computation Department of Computer Science Wellesley College Numb3rs Number and image types.
44212: Web-site Development Optimising Images for Web-pages Ian Perry Room:C49 Extension:7287
Marr CollegeHigher ComputingSlide 1 Higher Computing: COMPUTER SYSTEMS Part 1: Data Representation – 6 hours.
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.
1 © 2010 Cengage Learning Engineering. All Rights Reserved. 1 Introduction to Digital Image Processing with MATLAB ® Asia Edition McAndrew ‧ Wang ‧ Tseng.
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.
Multimedia. What is a graphic?  A graphic can be a: Chart Drawing Painting Photograph Logo Navigation button Diagram.
Chapter 12 Web Publishing. Goals Become an image optimization master Get a handle on Web file formats, including SVG and SWF Learn about Web image color.
Digital Images are represented by manipulating this…
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.
Resolution The resolution of an image is determined by the number of individually addressable points that make up the image, whether it is the number.
Digital Graphics for Computer Games Pixels Types of Digital Graphics (Raster and Vector) Compression.
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.
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.
8th Lecture – Intro to Bitmap or Raster Images
Unit 2.6 Data Representation Lesson 3 ‒ Images
BITMAPPED IMAGES & VECTOR DRAWN GRAPHICS
Common Bitmap Image File Types
Graphics and image data representation
Computer Science Higher
Vector vs. Bitmap.
How to Convert Pictures into Numbers
Chapter 3 Graphics and Image Data Representations
Graphics Bitmap Vector
Raster Images CPSC 1030.
An Introduction to Scanning and Storing Photographs and Graphics
Bitmap, Vector, Pixels, Resolution, Metadata.
Representing Images 2.6 – Data Representation.
Multimedia System Image
Presentation transcript:

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 be noted as Indexed (looked up from a table) or True Color (actual red/green/blue values specified) BITMAP IMAGE (OR RASTER IMAGE)

Image files are often referred to by the number of bits used to store color information A bit is a piece of binary data (meaning that it has only two possible values). It can be a one or a zero, true or false, yes or no It can be combined with other bits to produce a range of numbers BIT DEPTH

One bit = two possible values (0, 1) Two bits = four values (00, 01, 10, 11) Three bits = eight values (000, 001, 010, 011, 100, 101, 110, 111) So, the number of possible values is 2 n where n is the number of bits per pixel Therefore, eight bits give 256 potential values Eight bits is one byte, so that is a common image format BIT DEPTH

Eight-bit images can be color or “grayscale” With grayscale, the values vary continuously from 0 (black) to 255 (white) With eight bit color, the colors are normally indexed. This means there is a look-up table containing RGB values for all the colors you want to show. This can be limiting, however. BIT DEPTH

For a bitmap or raster image, changing the color depth changes the size of the file by a precise predictable amount, e.g.: A 1 bit (black and white) image is one eighth the size of 8 bit A 8 bit is one third the size of 24 bit With compression, these ratios can vary, but they’re still a good rule of thumb CHANGING COLOR DEPTH

8 BIT COLOR 261X275 PIXELS, 38 KB GIF

4 BIT COLOR 261X275 PIXELS, 13 KB GIF

2 BIT COLOR 261X275 PIXELS, 5 KB GIF

1 BIT COLOR 261X275 PIXELS, 2 KB GIF

It is possible to greatly reduce the size of an image by reducing the number of pixels used to represent the image Size savings are squared; i.e. if you reduce an image from 200x200 (40,000 pixels) by half to 100x100 (10,000 pixels), the size savings is actually 1/2 * 1/2 = 1/4 CHANGING RESOLUTION

8 BIT COLOR 261X275 PIXELS, 38 KB GIF

8 BIT COLOR ~130X137 PIXELS, 9KB GIF

8 BIT COLOR ~65X68 PIXELS, 3KB GIF

An image with a low bit depth (1 bit, 8 bit) can be improved by a process called dithering True colors are simulated by speckling areas of the image with other colors that average out to the color desired Similar to a newspaper/magazine printing process or old-fashioned TV screen DITHERING

1 BIT COLOR - DITHERED 261X275 PIXELS, 5 KB GIF

Some images include information on transparency encoded into the image. GIF images may include one transparent color in the color index table, allowing one “color” of the image to be transparent. PNG images can be indexed or true color and may include an additional byte of information per color (the alpha channel), which determines how transparent a particular pixel or color is. Native computer graphics formats are often 32-bit color – one byte each for RGB plus an additional byte for transparency or “alpha” TRANSPARENCY

Often, it is desirable to apply a compression algorithm to an image to reduce the file size How does this work? RLE - no loss of data; not much compression GIF/PNG - no loss of data; OK compression JPEG - loss of data; efficient and scalable compression COMPRESSION

JPEG IMAGE, QUALITY 85; 59 KB

GIF IMAGE (8 BIT COLOR) 113 KB (DEPENDING ON ENCODING, PNG WOULD BE PERFECT BUT UP TO 6X AS BIG)

Images taken from Edward Fox, CS 4624 course site ( Watch the sizes as we go: Original image (taken by H. Rex Hartson) is as a 24-bit bitmap image COMPRESSION EXAMPLES

ORIGINAL (804 KB BITMAP)

GIF KB (8 BIT COLOR)

JPEG - QUALITY KB

JPEG - QUALITY KB

JPEG - QUALITY KB

JPEG - QUALITY KB

JPEG - QUALITY KB

JPEG - QUALITY KB