1 Perception, Illusion and VR HNRS 299, Spring 2008 Lecture 14 Introduction to Computer Graphics.

Slides:



Advertisements
Similar presentations
Information Representation
Advertisements

Color COM 366 Web Design & Production. RGB color Amount of light in each channel Closer to 255, whiter color gets Every color has value for red,
Bit Depth and Spatial Resolution SIMG-201 Survey of Imaging Science © 2002 CIS/RIT.
Graphics in the web Digital Media: Communication and Design
Introduction to Computer Graphics
Contains 16,777,216 Colors. My Car is red My Car is red How do I add colors to my web page? Notepad Browser Works with the “Standard” colors: Red, Green,
An Introduction to Scanning and Storing Photographs and Graphics Bryn Jones Aug 2002
CS110: Computers and the Internet Color and Image Representation.
Understanding Web Graphics Web Design Section 5-4 Part or all of this lesson was adapted from the University of Washington’s “Web Design & Development.
WEB GRAPHICS. The Pixel Computer displays are comprised of rows and columns of pixels. Pixels are indivisible. Some common screen resolutions are:, 600.
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.
Images and the Web web graphics. web graphics: constraints Due to the constraints imposed by varying degrees of Internet bandwidth, designing images for.
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.
CSCI-235 Micro-Computers in Science Hardware Part II.
Lecture 4 - Introduction to Computer Graphics
Digital Images Chapter 8, Exploring the Digital Domain.
THE COLORS OF LIGHT RED, GREEN and BLUE
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.
Chapter 11 Fluency with Information Technology 4 th edition by Lawrence Snyder (slides by Deborah Woodall : 1.
Copyright © 2003 Pearson Education, Inc. Slide 4-1 Created by, Stephanie Ludi, Rochester Institute of Technology—NY Basic Web Page Construction Graphics.
Department of Information Technology Chapter 8 - Creating Hypertext links Lecturer: Ms Melinda Chung.
Data Representation CS280 – 09/13/05. Binary (from a Hacker’s dictionary) A base-2 numbering system with only two digits, 0 and 1, which is perfectly.
Bit-Mapped Graphic Data: Input (Capture) Hardware Multimedia – Section 2.
© 1999 Rochester Institute of Technology Introduction to Digital Imaging.
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 Darkroom I Theresa L. Ford. Objectives Basic Digital Image Terminology Screen Display of Pictures –Why are pictures too big for the screen? –Why.
Digital Multimedia, 2nd edition Nigel Chapman & Jenny Chapman Chapter 3 This presentation © 2004, MacAvon Media Productions Introduction to Computer Graphics.
Image formats. Basic terminologies… Pixels: Pixels are the building blocks of every digital image. a pixel is a single point in a graphic image. Resolutions:
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.
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,
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.
Graphics An image is made up of tiny dots called pixels (“picture elements”) The resolution determines the.
Color and Images. Color The natural colors we see and the colors we see on computer monitors are different. CMYK -natural RGB -monitor.
Images. Digital Images Rectangular arrays of pixel data Pixel - picture element, smallest addressable part of the frame buffer. Color depth - the depth.
CSCI-100 Introduction to Computing Hardware Part II.
Color and Images. Color The natural colors we see and the colors we see on computer monitors are different. ______ -natural ______ -monitor.
Digital Images are represented by manipulating this…
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.
1 Perception and VR MONT 104S, Fall 2008 Lecture 20 Computer Graphics and VR.
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.
HTTP transaction with Graphics HTML file + two graphics files.
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.
Software Design and Development Storing Data Part 2 Text, sound and video Computing Science.
Unit 2.6 Data Representation Lesson 3 ‒ Images
Images Data Representation.
Image Processing Objectives To understand pixel based image processing
Data Representation.
Sampling, Quantization, Color Models & Indexed Color
Binary Representation in Audio and Images
Computer Science Higher
How to Convert Pictures into Numbers
Raster Images CPSC 1030.
Digital Images.
Introduction to Computer Graphics
Representing Images 2.6 – Data Representation.
Web Design and Development
COMS 161 Introduction to Computing
Web Programming– UFCFB Lecture 7
Color and Images.
Multimedia System Image
Computer Systems Nat 4.5 Computing Science Data Representation
Lecture 4 - Introduction to Computer Graphics
Presentation transcript:

1 Perception, Illusion and VR HNRS 299, Spring 2008 Lecture 14 Introduction to Computer Graphics

2 What is a Graphics file? moon.gif GIF89a¶ˇÃˇˇôˇˇfˇˇ3ˇˇÊøß5뢑Zµ´T¨Yß6;≥YØh7^ „ŸMöù;r- €êπÑ+˜`À≥t€Ω´w!PÅ|≈Bå[8∞cƒw€ée‹±/‚ƒç?Ã6≥C ߬=<∞f™ ú¡z.kyÊ^“°O”uJÿÙ^≥d%äîÕr‰êäC~Àÿvo¥©U moon.gif ?

3 Storage of Graphic Images Graphics are stored as 1's and 0's on the disk or in the computer's random access memory (RAM). The numbers form a code that a web browser or graphics application interprets to display the graphic on the monitor. Computer displays are composed of many dots, known as picture elements (pixels). The numeric code in an image file specifies the color of each pixel in the image.

4 Counting in Base 10 In the decimal number system (base 10), we use 10 digits We count until we run out of digits, and then add a new place with value place value = 10 = 10 1 place value = 1 = 10 0 We continue to count, adding 1 to the 10's place every 10th number. When we run out of digits for the 10's place, we add a new place with value 10 2 (or 100) place value = 100 = 10 2

5 Counting in Binary With binary numbers, we have only 2 digits to work with (0 and 1), so we add places more frequently. Each new place has a value that is a power of two. DecimalBinary Note: Each 1 or 0 is called a binary digit or bit.

6 Base 10 vs. Base 2 In base 10, each place represents a power of 10: 4173 = 4 x x x x 10 0 In base 2, each place represents a power of 2: = 1 x x x x x 2 0 = 22 Practice: Convert from binary to decimal.

7 Resolution The number of pixels on the screen determines the resolution of the image. More pixels per inch implies better resolution and better image quality. Older PC's had resolutions of 800 pixels x 600 pixels. Older Macs had resolutions of 640 pixels x 480 pixels. Newer PC's and Macs have much higher resolutions (e.g x 768).

8 Resolution affects Image Size The more pixels there are per inch (ppi) the smaller each pixel is. Image sizes are specified in terms of pixels. So the same image will appear smaller on a monitor with a higher resolution. Increasing resolution decreases the image size.

9 Bit Depth The number of colors each pixel can assume contributes to image quality. The bit depth of an image is the number of bits used to specify color for that image. The bit depth determines how many colors can be shown. Black and white monitors have 2 colors. Only one bit is needed to specify color (bit depth = 1). A bit depth of n allows representation of 2 n colors.

10 Changing Bit Depth Some images don't need a large bit depth: Bit depth 8 Bit depth 4 Bit depth 1 Smaller bit depths help to keep the file size (in kb or mb) small. This makes it faster to download the image file.

11 Bit Depth and Image Quality For more complex images, higher bit depth leads to better resolution: Bit depth = 32 (16.7 million colors)

12 Indexed Color With indexed color, the computer stores a table of colors (256 colors for bit depth of 8). Each pixel is given a value between 0 and 255, which corresponds to one of the colors in the table.

13 RGB Uses Hexadecimal Numbers The RGB system uses hexadecimal (base 16) numbers. To count in base 16, we use the letters A - F to stand for decimal equivalents of Base 10Base 16Base 10Base FF A 11B 12C 13D 14E 15F = 256

14 Converting from Binary to Hexadecimal Every 4 bits represents 1 hexadecimal digit. To convert from binary to Hexadecimal, group the bits into sets of four (from right to left) and find the corresponding hexadecimal digit for each set of 4 bits B ? ?

15 RGB (Red, Green, Blue) Color In the RGB color system, each pixel is given a specified amount of red, green and blue (between 0 and 255). The color value is written in Hexadecimal, using 2 digits for each color: #FF0000Red #00FF00Green #0000FFBlue #FFFFFF? #000000? #880066Purple

16 Image File Compression Images on the web are stored as separate files that must be downloaded from the server to the client to be viewed. If the image file size is large, it will take a long time to download. Therefore, it is important to try to keep the file size as small as possible without losing much image quality. Ways to reduce file size: 1. Reduce the size of the image (in pixels) 2. Reduce the resolution of the image. 3. Reduce the bit depth of the image 4. Use image file compression (GIF or JPEG)

17 GIF files The Graphics Interchange Format (GIF) is excellent for compressing images with large areas of uniform color. It is "lossless", meaning that the original image can be regenerated with no loss of information. GIF supports transparency in images. GIF supports animations (animated GIF's) This format is limited to 256 colors.

18 JPEG compression The JPEG (Joint Photographic Experts Group) compression method works well for complex images, such as photographs. JPEG supports millions of colors (up to a bit depth of 24). JPEG is "lossy", meaning that the original image cannot be regenerated exactly from the original. Some information is lost in the conversion to JPEG.

19 Computer Graphics in VR In virtual reality applications, the graphics are often computed as the program runs. The color value for each pixel is stored in computer memory (RAM) Values for each pixel on the monitor are stored in the frame buffer. If we are using 24 bit color, each pixel needs 24 bits. There are 8 bits in a byte, so each pixel needs 3 bytes. If the screen is 600 x 800 resolution, how many pixels are there? How many bytes are needed to store color values for the entire screen?

20 Computing the Pixel Values Computer graphics are computed in the following stages: 1)Build 3D models of objects in the world. 2)Specify Lighting and Material properties. 3)Transform the modeled objects to desired positions. 4)Project the 3D model onto the 2D image plane 5)Rasterize the image (convert it to pixels).