Achromatic and Colored Light

Slides:



Advertisements
Similar presentations
CS 445 / 645 Introduction to Computer Graphics Lecture 13 Color Color.
Advertisements

Introduction to Computer Graphics ColorColor. Specifying Color Color perception usually involves three quantities: Hue: Distinguishes between colors like.
2002 by Jim X. Chen: 1 Understand brightness, intensity, eye characteristics, and gamma correction, halftone technology,
Achromatic and Colored Light CS 288 9/17/1998 Vic.
Light Light is fundamental for color vision Unless there is a source of light, there is nothing to see! What do we see? We do not see objects, but the.
School of Computing Science Simon Fraser University
SWE 423: Multimedia Systems Chapter 4: Graphics and Images (2)
Colour Theory and Application B.Sc. (Hons) Multimedia ComputingMedia Technologies.
What is color for?.
Display Issues Ed Angel Professor of Computer Science, Electrical and Computer Engineering, and Media Arts University of New Mexico.
1 Perception. 2 “The consciousness or awareness of objects or other data through the medium of the senses.”
1 CSCE441: Computer Graphics: Color Models Jinxiang Chai.
Color Models AM Radio FM Radio + TV Microwave Infrared Ultraviolet Visible.
Color & Color Management. Overview I. Color Perception Definition & characteristics of color II. Color Representation RGB, CMYK, XYZ, Lab III. Color Management.
CMYK Cyan Cyan Magenta Magenta Yellow Yellow Black Black.
9/14/04© University of Wisconsin, CS559 Spring 2004 Last Time Intensity perception – the importance of ratios Dynamic Range – what it means and some of.
Guilford County SciVis V104.02
CS 376 Introduction to Computer Graphics 01 / 26 / 2007 Instructor: Michael Eckmann.
2001 by Jim X. Chen: 1 The purpose of a color model is to allow convenient specification of colors within some color gamut.
COLLEGE OF ENGINEERING UNIVERSITY OF PORTO COMPUTER GRAPHICS AND INTERFACES / GRAPHICS SYSTEMS JGB / AAS Light and Color Graphics Systems / Computer.
Chapter 3: Colorimetry How to measure or specify color? Color dictionary?
CS 445 / 645: Introductory Computer Graphics Color.
Color. Contents Light and color The visible light spectrum Primary and secondary colors Color spaces –RGB, CMY, YIQ, HLS, CIE –CIE XYZ, CIE xyY and CIE.
CS 445 / 645 Introduction to Computer Graphics Lecture 13 Color Color.
Color Theory ‣ What is color? ‣ How do we perceive it? ‣ How do we describe and match colors? ‣ Color spaces.
1 Introduction to Computer Graphics with WebGL Ed Angel Professor Emeritus of Computer Science Founding Director, Arts, Research, Technology and Science.
1 Chapter 2: Color Basics. 2 What is light?  EM wave, radiation  Visible light has a spectrum wavelength from 400 – 780 nm.  Light can be composed.
CSC361/ Digital Media Burg/Wong
COLORCOLOR Angel 1.4 and 2.4 J. Lindblad
CS6825: Color 2 Light and Color Light is electromagnetic radiation Light is electromagnetic radiation Visible light: nm. range Visible light:
CS 376 Introduction to Computer Graphics 01 / 24 / 2007 Instructor: Michael Eckmann.
Graphics Lecture 4: Slide 1 Interactive Computer Graphics Lecture 4: Colour.
A color model is a specification of a 3D color co-ordinate system and a visible subset in the co-ordinate System within all colors in a particular color.
Three-Receptor Model Designing a system that can individually display thousands of colors is very difficult Instead, colors can be reproduced by mixing.
Introduction to Computer Graphics
EEL Introduction to Computer Graphics PPT12: Color models Yamini Bura – U
Color Models. Color models,cont’d Different meanings of color: painting wavelength of visible light human eye perception.
Greg Humphreys CS445: Intro Graphics University of Virginia, Fall 2003 Raster Graphics and Color Greg Humphreys University of Virginia CS 445, Fall 2003.
David Luebke 1 2/5/2016 Color CS 445/645 Introduction to Computer Graphics David Luebke, Spring 2003.
Chapter 4: Color in Image and Video
Computer Graphics: Achromatic and Coloured Light.
1 of 32 Computer Graphics Color. 2 of 32 Basics Of Color elements of color:
Digital Image Processing Lecture 12: Color Image Processing Naveed Ejaz.
COMPUTER GRAPHICS CS 482 – FALL 2016 CHAPTER 28 COLOR COLOR PERCEPTION CHROMATICITY COLOR MODELS COLOR INTERPOLATION.
Multimedia systems Lecture 5: Color in Image and Video.
Color Models Light property Color models.
ITEC2110, Digital Media Chapter 2 Fundamentals of Digital Imaging
Half Toning Dithering RGB CMYK Models
Display Issues Ed Angel
Color Image Processing
Color Image Processing
Color Image Processing
(c) University of Wisconsin, CS559 Spring 2002
COLOR space Mohiuddin Ahmad.
Chapter 6: Color Image Processing
Color Image Processing
Colour Theory Fundamentals
Perception and Measurement of Light, Color, and Appearance
Introduction to Computer Graphics with WebGL
Color Representation Although we can differentiate a hundred different grey-levels, we can easily differentiate thousands of colors.
Chapter 12 COLOR THEORY.
Introduction to Perception and Color
Color Image Processing
Digital Image Processing
Slides taken from Scott Schaefer
Digital Image Processing
Color Image Processing
Color Model By : Mustafa Salam.
Color Models l Ultraviolet Infrared 10 Microwave 10
Color Theory What is color? How do we perceive it?
Presentation transcript:

Achromatic and Colored Light Chapter 11

Chapter 11 -- Achromatic and Colored Light It is crucial that the student of modern computer graphics understand the theory and application of light and color. Even the judicious use of just a few shades of gray can greatly enhance the appearance of a rendered object. But it is color that is responsible for much of the impact of images. Color is an immensely complex subject -- it draws from many fields physics, physiology, psychology, art, graphic design,… Chapter 11 -- Achromatic and Colored Light

Chapter 11 -- Achromatic and Colored Light The color of an object depends not only on the object itself, but also on the light source, the color of the surrounding area, and the human visual system Furthermore, certain objects reflect light wall, desk, paper And others transmit light cellophane glass But we are going to begin our discussion with achromatic sensations -- Black, Gray, and White Chapter 11 -- Achromatic and Colored Light

Chapter 11 -- Achromatic and Colored Light 1. Achromatic Light Achromatic light (literally the absence of color) is what we see on a black and white television set. An observer of achromatic light experiences none of the sensations we associate with red, blue, yellow, and so on. Quantity of light is the only attribute of achromatic light. Chapter 11 -- Achromatic and Colored Light

Chapter 11 -- Achromatic and Colored Light Quantity of light can be discussed in different ways. in the physics sense of energy, in which case certain terms are used: intensity luminance in the psychological sense of perceived intensity, in which case the following term is used: brightness These concepts are related, but are not the same Chapter 11 -- Achromatic and Colored Light

Chapter 11 -- Achromatic and Colored Light It is useful to associate a scalar with with different intensity levels 0 as black 1 as white intensities between 0 and 1 representing different grays Devices Some can produce many different intensities at a single pixel black-and-white television Others can not. printers Chapter 11 -- Achromatic and Colored Light

1.1 Selection of Intensities Suppose we want 256 different intensities Why was 256 selected? because it can be represented in 8 bits. Which intensities do we want to use? we don’t want half between 0.0 and 0.1, and the other half between 0.9 and 1.0. the transition between 0.1 and 0.9 is big. We might distribute them evenly Chapter 11 -- Achromatic and Colored Light

Chapter 11 -- Achromatic and Colored Light We might distribute them evenly this choice ignores the important characteristic of the eye -- it is sensitive to ratios of intensity levels, not absolute differences. 0.10 to 0.11 is viewed as being as different as 0.5 to 0.55 Therefore, the intensity levels should be spaced logarithmically rather than linearly. Finding the intensities to display: First find I0 -- the minimum intensity of the device. For a CRT it is not 0, it is typically between 0.005 and 0.025 of Max intensity because of the phosphor. The ratio between maximum and minimum intensity is called the dynamic range Now you can select the values. Chapter 11 -- Achromatic and Colored Light

Chapter 11 -- Achromatic and Colored Light Gamma Correction: correctly displaying intensities is difficult. particularly when the device has nonlinearities CRT, film,… These difficulties can be overcome with a technique called gamma correction. How many intensities are enough? By “enough” we mean the number need to reproduce a continuous tone black-and-white image such that the reproduction appears to be continuous. Chapter 11 -- Achromatic and Colored Light

Chapter 11 -- Achromatic and Colored Light How many intensities are enough? There is a formula for the number of intensities you need based upon the ratio of (1/I0) n=log1.01(1/I0) Here is the results for typical display media Chapter 11 -- Achromatic and Colored Light

Chapter 11 -- Achromatic and Colored Light How many intensities are enough? The book provides an example of a continuous tone photograph original with 4 intensity levels countouring is very obvious with 32 intensity levels contouring is barely detectable They observe that for this text, 64 levels would be acceptable. Chapter 11 -- Achromatic and Colored Light

1.2 Halftone Approximation Many displays and hardcopy devices are bilevel They produce just two intensity levels The question then is -- How can we expand the range of available intensities? Chapter 11 -- Achromatic and Colored Light

Chapter 11 -- Achromatic and Colored Light The answer lies in the spatial integration that our eyes perform. If we view a small area from a sufficiently large viewing distance, our eyes average fine detail within the small area and record only the overall intensity of the area. This phenomenon is exploited in printing of black-and-white photographs in newspapers, magazines, and books, by a technique called halftoning. Chapter 11 -- Achromatic and Colored Light

Chapter 11 -- Achromatic and Colored Light Each small resolution unit is imprinted with a circle of black ink whose area is proportional to the blackness of the area of the original image. Newspaper halftones use 60 to 80 variable-sized and variable-shaped areas per inch. Magazines and books use 110 to 200 per inch FIGURE 11.3 pg 399 Chapter 11 -- Achromatic and Colored Light

Chapter 11 -- Achromatic and Colored Light Graphics output devices can approximate the variable-area circles by decreasing spatial resolution. in general there is a tradeoff between spatial resolution and intensity resolution. Chapter 11 -- Achromatic and Colored Light

Chapter 11 -- Achromatic and Colored Light This figure shows the same figure processed with the 2x2 pattern from the previous slide. Figure 11.5 Chapter 11 -- Achromatic and Colored Light

Chapter 11 -- Achromatic and Colored Light Error Diffusion: developed by Floyd & Steinberg the visual effects are often satisfactory The strategy has the effect of spreading, or diffusing, the error of one pixel over several nearby pixels. Figure 11.6 Chapter 11 -- Achromatic and Colored Light

Chapter 11 -- Achromatic and Colored Light Error Diffusion Code: K = Approximate(S[x][y]); // Approximate S to nearest displayable intensity I[x][y] = K; // Draw the pixel at (x, y) error = S[x][y] - K; // Error term. Must be of type float // Step 1: // spread 7/16 of error into the pixel to the right S[x + 1][y] += 7*error /16; // Step 2: // spread 3/16 of error into pixel below and to the left S[x - 1][y - 1] += 3*error /16; // Step 3: // spread 5/16 of error into pixel below S[x][y - 1] += 5*error /16; // Step 4: // spread 1/16 of error below and to the right S[x + 1][y - 1] += error /16; Chapter 11 -- Achromatic and Colored Light

Chapter 11 -- Achromatic and Colored Light 2. Chromatic Color The visual sensations caused by colored light are much richer than those caused by achromatic light. Discussions of color perception involve three quantities: Hue Saturation Lightness (sometimes Brightness is used here) Chapter 11 -- Achromatic and Colored Light

Chapter 11 -- Achromatic and Colored Light It is necessary to specify and measure colors if we are to use them precisely. For reflected light, we can do these tasks by visually comparing a sample of unknown color against a set of standard samples. The Munsell color-order system includes sets of published standard colors organized in a 3D space of hue, value(lightness), and chroma (saturation) In the printing industry they use the PANTONE MATCHING SYSTEM. Chapter 11 -- Achromatic and Colored Light

Chapter 11 -- Achromatic and Colored Light Artists often specify color as different tints, shades and tones of strongly saturated, or pure pigments. A tint results when white pigment is added to a pure pigment, thereby decreasing saturation. A shade comes from adding a black pigment to a pure pigment, thereby decreasing lightness. A tone is the consequence of adding both black and white pigments to a pure pigment. Chapter 11 -- Achromatic and Colored Light

Chapter 11 -- Achromatic and Colored Light 2.1 Psychophysics These last two methods are subjective. An objective, quantitative way of specifying colors is needed. To meet this need we turn to a branch of physics known as colorimetry. Important terms here are: dominant wavelength excitation purity luminance Chapter 11 -- Achromatic and Colored Light

Chapter 11 -- Achromatic and Colored Light Colorimetry Terms: Dominant wavelength the wavelength of the color we see. corresponds to hue. Excitation purity corresponds to the saturation of the color Luminance is the amount or intensity of the light. Chapter 11 -- Achromatic and Colored Light

Chapter 11 -- Achromatic and Colored Light Basically, light is electromagnetic energy in the 400 to 700-nm wavelength part of the spectrum How does this discussion relate to the red, green, and blue phosphor dots on a color CRT? And the tristimulus theory? The tristimulus theory: it is intuitively attractive because it corresponds loosely to the notion that colors can be specified by positively weighted sums of red, green, and blue. Chapter 11 -- Achromatic and Colored Light

Chapter 11 -- Achromatic and Colored Light The tristimulus theory This notion is almost true the negative values mean that we cannot match the color by adding the primaries. Chapter 11 -- Achromatic and Colored Light

2.2 The CIE Chromaticity Diagram In 1931, the Commission Internationale de l’ Eclairage (CIE) defined a new color system. based upon X, Y, and Z, it allows you to define every visible color as a positive combination of the three. Chapter 11 -- Achromatic and Colored Light

Chapter 11 -- Achromatic and Colored Light Color Plate 15 Chapter 11 -- Achromatic and Colored Light

3. Color Models for Raster Graphics A color model is a specification of a 3D color coordinate system. Three hardware models are: RGB - used with color CRT monitors YIQ - the broadcast TV color system CMY - used for certain color printing devices (cyan, magenta, and yellow) unfortunately they do not relate directly to intuitive color notions of hue, saturation, and brightness. Chapter 11 -- Achromatic and Colored Light

Chapter 11 -- Achromatic and Colored Light 3.1 The RGB Color Model The RGB color model used in color CRT monitors and color raster graphics employs a Cartesian coordinate system Chapter 11 -- Achromatic and Colored Light

Chapter 11 -- Achromatic and Colored Light 3.2 The CMY Color Model Cyan, magenta, and yellow are the complements of red, green, and blue. they are used as subtractive primaries. A knowledge of CMY is important when you are dealing with hardcopy devices that deposit pigments onto paper. there are straightforward transformations between the RGB and CMY color models Chapter 11 -- Achromatic and Colored Light

Chapter 11 -- Achromatic and Colored Light 3.3 The YIQ Color Model This model is used in US commercial color TV broadcasting. therefore, it is closely related to RGB. Basically YIQ is a recoding of RGB for transmission efficiency and backward compatibility with B/W TVs The recoded signal is transmitted using the NTSC standard. Chapter 11 -- Achromatic and Colored Light

Chapter 11 -- Achromatic and Colored Light 3.4 The HSV Color Model The RGB, CMY, and YIQ models are hardware oriented. By contrast the HSV (hue, saturation, value) model is user oriented. Chapter 11 -- Achromatic and Colored Light

3.5 Interactive Specification of Color Chapter 11 -- Achromatic and Colored Light

3.6 Interpolation in Color Space Color interpolation is necessary in at least three situations: Gourand shading Antialiasing Blending two images together fade-in/fade-out sequence. The results of interpolation depend on the color model in which the colors are interpolated. Chapter 11 -- Achromatic and Colored Light

4. Use of Color in Computer Graphics We use color for aesthetics, to establish tone or mood, for realism, as a highlight, … In addition, users tend to like color, even when there is no quantitative evidence that its use improves their performance. There are several pitfalls in color usage, so the biggest rule of color usage is: Apply color conservatively. Chapter 11 -- Achromatic and Colored Light