CS 376 Introduction to Computer Graphics 01 / 24 / 2007 Instructor: Michael Eckmann.

Slides:



Advertisements
Similar presentations
13- 1 Chapter 13: Color Processing 。 Color: An important descriptor of the world 。 The world is itself colorless 。 Color is caused by the vision system.
Advertisements

CS 445 / 645 Introduction to Computer Graphics Lecture 13 Color Color.
Introduction to Computer Graphics ColorColor. Specifying Color Color perception usually involves three quantities: Hue: Distinguishes between colors like.
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.
Fundamentals of Digital Imaging
School of Computing Science Simon Fraser University
CS 4731: Computer Graphics Lecture 24: Color Science
SWE 423: Multimedia Systems Chapter 4: Graphics and Images (2)
© 2002 by Yu Hen Hu 1 ECE533 Digital Image Processing Color Imaging.
What is color for?.
Display Issues Ed Angel Professor of Computer Science, Electrical and Computer Engineering, and Media Arts University of New Mexico.
CS 376b Introduction to Computer Vision 02 / 05 / 2008 Instructor: Michael Eckmann.
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.
CS559-Computer Graphics Copyright Stephen Chenney Color Recap The physical description of color is as a spectrum: the intensity of light at each wavelength.
Chapter 9: Color What is color? Color mixtures –Intensity-distribution curves –Additive Mixing –Partitive Mixing Specifying colors –RGB Color –Chromaticity.
Color Models AM Radio FM Radio + TV Microwave Infrared Ultraviolet Visible.
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.
Light and Color. Light is a form of energy light travels extremely fast and over long distances light carries energy and information light travels in.
Colour Digital Multimedia, 2nd edition Nigel Chapman & Jenny Chapman
Digital Multimedia, 2nd edition Nigel Chapman & Jenny Chapman Chapter 6 This presentation © 2004, MacAvon Media Productions Colour.
SCI 200 Physical Science Lecture 9 Color Mixing Rob Daniell July 28, 2011.
Digital Image Processing Colour Image Processing.
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.
How do we perceive colour? How do colours add?. What is colour? Light comes in many “colours”. Light is an electromagnetic wave. Each “colour” is created.
Color Theory What is color? How do we describe and match colors? Color spaces.
CS 376 Introduction to Computer Graphics 01 / 22 / 2007 Instructor: Michael Eckmann.
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 325 Introduction to Computer Graphics 01 / 29 / 2010 Instructor: Michael Eckmann.
CS 325 Introduction to Computer Graphics 02 / 01 / 2010 Instructor: Michael Eckmann.
Topic 5 - Imaging Mapping - II DIGITAL IMAGE PROCESSING Course 3624 Department of Physics and Astronomy Professor Bob Warwick.
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.
Week 6 Colour. 2 Overview By the end of this lecture you will be familiar with: –Human visual system –Foundations of light and colour –HSV and user-oriented.
Color 2011, Fall. Colorimetry : Definition (1/2) Colorimetry  Light is perceived in the visible band from 380 to 780 nm  distribution of wavelengths.
Color Theory ‣ What is color? ‣ How do we perceive it? ‣ How do we describe and match colors? ‣ Color spaces.
CS 325 Introduction to Computer Graphics 01 / 25 / 2010 Instructor: Michael Eckmann.
1 Introduction to Computer Graphics with WebGL Ed Angel Professor Emeritus of Computer Science Founding Director, Arts, Research, Technology and Science.
Digital Image Processing Part 1 Introduction. The eye.
CSC361/ Digital Media Burg/Wong
CS6825: Color 2 Light and Color Light is electromagnetic radiation Light is electromagnetic radiation Visible light: nm. range Visible light:
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.
CS654: Digital Image Analysis Lecture 29: Color Image Processing.
1 CSCE441: Computer Graphics: Color Models Jinxiang Chai.
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.
1 CSCE441: Computer Graphics: Color Models Jinxiang Chai.
CS-321 Dr. Mark L. Hornick 1 Color Perception. CS-321 Dr. Mark L. Hornick 2 Color Perception.
David Luebke 1 2/5/2016 Color CS 445/645 Introduction to Computer Graphics David Luebke, Spring 2003.
Image credit: Wikipedia (Fovea) Human Eye Some interesting facts – Rod cells: requires only low light b/w vision blur, all over retina EXCEPT fovea – Cone.
09/10/02(c) University of Wisconsin, CS559 Fall 2002 Last Time Digital Images –Spatial and Color resolution Color –The physics of color.
Computer Graphics: Achromatic and Coloured Light.
1 of 32 Computer Graphics Color. 2 of 32 Basics Of Color elements of color:
COMPUTER GRAPHICS CS 482 – FALL 2016 CHAPTER 28 COLOR COLOR PERCEPTION CHROMATICITY COLOR MODELS COLOR INTERPOLATION.
Color Models Light property Color models.
Half Toning Dithering RGB CMYK Models
Display Issues Ed Angel
Color Image Processing
(c) University of Wisconsin, CS559 Spring 2002
Colour Theory Fundamentals
Color Representation Although we can differentiate a hundred different grey-levels, we can easily differentiate thousands of colors.
Slides taken from Scott Schaefer
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:

CS 376 Introduction to Computer Graphics 01 / 24 / 2007 Instructor: Michael Eckmann

Michael Eckmann - Skidmore College - CS Spring 2007 Today’s Topics Color visible light, frequency, wavelength CIE system chromaticity diagram –color gamut, complementary colors, dominant wavelength RGB, YIQ CMY, CMYK, HSV

Homework READING: –If you haven't read Ch. 12 yet, do so. –For next couple of lectures: OpenGL / JOGL introduction Read sections 2.8 through 2.9 of Chapter 2 – deals with openGL (using C, but don't let that bother you, the information is directly applicable to what we'll be doing in Java with JOGL.) –Put off the first 7 sections of chapter 2 for now. Michael Eckmann - Skidmore College - CS Spring 2007

Color Recall that –Physically, color is electromagnetic radiation in the visible light frequency range. –Psychologically, how humans perceive color is more than just the frequency. Hue (dominant wavelength), brightness (amount of light energy) and purity (how little white light is added) are what characterize what color is seen. –Chromaticity refers collectively to hue and purity (everything except brightness)

Michael Eckmann - Skidmore College - CS Spring 2007 Color Frequency range of visible light is approx. from: (changed this) 4.3*10^14 Hz up to 7.9*10^14 Hz

Michael Eckmann - Skidmore College - CS Spring 2007 Color Frequency is measured in Hertz (Hz) which is 1 / seconds Wavelength is often used to describe colors where the wavelength = speed of light / frequency Speed of light in a vaccum is approx. 3*10^8 m / s Visible light’s wavelength range is approximately: –wavelength of the low frequency end 3.8 * 10^14 Hz is: 3*10^8 m/s / 4.3 * 10^14 Hz = 697 nm (Red end) –wavelength of the high frequency end of 7.9 * 10^14 Hz is: 3*10^8 m/s / 7.9 * 10^14 Hz = 379 nm (Violet end)

Michael Eckmann - Skidmore College - CS Spring 2007 Color

Michael Eckmann - Skidmore College - CS Spring 2007 Color The last slide shows a color that is reddish and fairly pure due to the fact that E D is >> E W. If the graph contained approximately the same amount of energy of each frequency then it would represent white.

Michael Eckmann - Skidmore College - CS Spring 2007 Color If we combine light with different dominant frequencies, we can create other colors. We combine primary colors in various proportions to make up a wide range of colors known as the color gamut. Complementary colors are any two colors that combine to produce white. No finite set of light sources can produce all colors. The color gamut of three primary colors is typically sufficient for most purposes.

Michael Eckmann - Skidmore College - CS Spring 2007 Color The tristimulus theory of color perception states that the retina in the human eye has three kinds of color sensors (cones) with peak sensitivies to red, blue and green light. –Cones (6-8 million in retina, concentrated in fovea) for color / bright light vision –Rods (over 100 million in retina, none in fovea) for achromatic brightness levels / night vision –fovea is in center of retina --- that's where most of the cones are –Let's look here for the rod & cone distribution throughout the retina:

Michael Eckmann - Skidmore College - CS Spring 2007 Color The tristimulus theory of color perception (continued) –Experiments have shown that based on this theory that blue's peak is 440 nm, green's is 545 nm, and red's is 580 nm. –Also, experiments have shown that the eye's response to blue light is much less strong than to red and green. –Given 3 primary colors, we can combine them with various proportions to produce new colors. Defining colors by mixtures of three primaries is an extremely useful approach.

Michael Eckmann - Skidmore College - CS Spring 2007 Color The next slide shows color matching functions f Z, f Y and f X for a standard set (CIE 1931) of primaries Z, Y and X. These functions were created via experiments in 1931 given to very few subjects where they were asked to match a test color to an adjustable color made up of some combination of the three primaries. These three colors X, Y and Z correspond roughly to red, green, and blue respectively. (note this is corrected from last class slide) Notice that due to the eye being much less responsive to blue, the color matching function, f Z, on the blue end of the graph needs more amount than the others.

Michael Eckmann - Skidmore College - CS Spring 2007 Color

Michael Eckmann - Skidmore College - CS Spring 2007 Color contains text files with the amounts of each of the color matching functions needed to produce colors at all the wavelengths between 360 nm and 830 nm. The values in the charts correspond to the graph on the last slide. The values are used as weights thusly: Color = xX + yY + zZ, where x, y and z are the weights applied to the primaries X, Y and Z. x+y+z is the total light energy. We can normalize with respect to this amount.

Michael Eckmann - Skidmore College - CS Spring 2007 Color Color = xX + yY + zZ x' = x / (x+y+z) y' = y / (x+y+z) z' = z / (x+y+z) Since x' + y' + z' = 1, any color can be represented by just two of the x', y' and z'. By normalizing based on the total light energy (brightness) we are only now dealing with hue and purity (collectively known as Chromaticity) The graph on the next slide is in 2d and it's x axis corresponds to x' here, and y axis to y' here.

Michael Eckmann - Skidmore College - CS Spring 2007 Color

Michael Eckmann - Skidmore College - CS Spring 2007 Color source: Wikipedia

Michael Eckmann - Skidmore College - CS Spring 2007 Color Chromaticity diagram on the last two slides –White is formally defined by the point C (which approximates sunlight) –All perceivable colors with the same chromaticity but different brightness map to the same point. –The spectrally pure colors are on the outer curve.

Michael Eckmann - Skidmore College - CS Spring 2007 Color

Michael Eckmann - Skidmore College - CS Spring 2007 Color The chromaticity diagram is useful for –comparing color gamuts of different primaries is it obvious that no 3 colors within the diagram will produce a color gamut encompassing all the visible colors? 2 colors can combine to make any color along the straight line segment joining them (C 1 to C 2 ) –determining complementary colors how can this be done using the diagram?

Michael Eckmann - Skidmore College - CS Spring 2007 Color The chromaticity diagram is useful for –comparing color gamuts of different primaries is it obvious that no 3 colors within the diagram will produce a color gamut encompassing all the visible colors? 2 colors can combine to make any color along the straight line segment joining them (C 1 to C 2 ) –determining complementary colors recall that complementary colors are two that combine in some way to make white so if the line segment between two colors contains the white point then these two are complements of each other.

Michael Eckmann - Skidmore College - CS Spring 2007 Color

Michael Eckmann - Skidmore College - CS Spring 2007 Color The chromaticity diagram is also useful for determining purity and hue for a color –purity (saturation): ratio of distance of line from color (eg. C 1 ) to C to the distance of line from C to spectral color C s on the outer curve. –hue (dominant wavelength): draw a line from C through the color C 1 to the spectral color curve (the intersection of this line with the outer curve is the hue) why? because the color C 1 can be represented by some combination of white ( C ) and the spectral color C s on the outer curve. –if the dominant wavelength lands on the “purple line” then...

Michael Eckmann - Skidmore College - CS Spring 2007 Color For the colors (called non-spectral colors) in the chromaticity diagram that lie such that when drawing a line starting at C through the color will intersect the “purple” line –the dominant wavelength is the complement of some wavelength draw a line from the color C 2 through C (white) to the outer spectral curve C sp the intersection is the wavelength that is subtracted from the spectral distribution of the color –purity (saturation): is still the closer to white, the less pure the further from white, the more pure

Michael Eckmann - Skidmore College - CS Spring 2007 Color Is the Chromaticity diagram useful for determining the brightness of a color?

Michael Eckmann - Skidmore College - CS Spring 2007 Color Is the Chromaticity diagram useful for determining the brightness of a color? –No, the brightness (light energy) was normalized to 1 –recall, Color = xX + yY + zZ –x' = x / (x+y+z) –y' = y / (x+y+z) –z' = z / (x+y+z) –Since x' + y' + z' = 1, any color can be represented by just two of the x', y' and z'. –By normalizing based on the total light energy (brightness) we are only now dealing with hue and purity (collectively known as Chromaticity)

Michael Eckmann - Skidmore College - CS Spring 2007 RGB Color Model The color gamut for RGB colors appears on the next slide. Color = rR + gG + bB r, g and b range from 0.0 to 1.0 notice: white's (r,g,b) = (1,1,1) black's (r,g,b) = (0,0,0) complementary colors are those that add up to (1,1,1) can anyone tell me 2?

Michael Eckmann - Skidmore College - CS Spring 2007 RGB Color Model

Michael Eckmann - Skidmore College - CS Spring 2007 YIQ Color Model Graphics monitors use RGB (separate signals for R, G and B) NTSC television monitors use a composite signal called the YIQ model. Y is luminance (brightness) I & Q together incorporate the hue and purity (collectively chromaticity) and some luminance RGB can be transformed into YIQ and vice versa which means, given RGB values, you can compute the equivalent color in YIQ and vice versa. See section 12.5 of textbook for transforms. One nice feature of YIQ is that since Y is the luminance, if that's all that is captured by the television then you end up with black & white television (grey-scale) Also since the human eye responds more to luminance than color (recall the number of rods vs. cones) more bandwidth is set aside for the Y value than I & Q.

Michael Eckmann - Skidmore College - CS Spring 2007 CMY & CMYK Color Models Both RGB and YIQ color models discussed thus far are additive models. That is, colors are produced by adding light sources. When we view a monitor or television we are looking at the light sources themselves. Since hard copy devices print colors, the colors we see are reflected from the paper. To print on paper something that will reflect a certain color of light requires a subtractive process. We are not viewing the light source, but instead what is reflected off the paper when white light is shown on it.

Michael Eckmann - Skidmore College - CS Spring 2007 CMY & CMYK Color Models C = Cyan, M = Magenta, Y = Yellow white's (c,m,y) = (0,0,0) black's (c,m,y) = (1,1,1) cyan absorbs red (and reflects green and blue) magenta absorbs green yellow absorbs blue cyan & magenta ink combined will reflect blue light (b/c red and green are absorbed) cyan & yellow ink combined will reflect green light magenta & yellow ink combined will reflect red light

Michael Eckmann - Skidmore College - CS Spring 2007 CMY & CMYK Color Models Transformation from RGB to CMY is simple. [C, M, Y] T = [1, 1, 1] T - [R, G, B] T Transformation from CMY to RGB is: [R, G, B] T = [1, 1, 1] T - [C, M, Y] T CMYK C = Cyan, M = Magenta, Y = Yellow, K = Black instead of using cyan, magenta and yellow ink all combined to make black, typically a fourth ink, black is used to produce black and grey levels

Michael Eckmann - Skidmore College - CS Spring 2007 Recap on Color Models RGB color model is an additive model. Amounts of red, green and blue are combined by adding light sources of these colors to produce new colors. CMY and CMYK are subtractive models. Amounts of cyan, magenta and yellow are combined by adding pigments of these colors to produce new colors that reflect certain wavelengths of light. –it is subtractive because adding pigments reduce what light is reflected, when all 3 primaries (C M and Y) are put together then the result is no light is reflected (black).

Michael Eckmann - Skidmore College - CS Spring 2007 HSV Color Model

Michael Eckmann - Skidmore College - CS Spring 2007 HSV Color Model Hue is an angle between 0 and 360 degrees Saturation (purity) is one axis and Value (luminance) is another axis You can picture this as a circular cone if you prefer or even as a cylinder because S is considered a ratio from the V axis (0) to max 1.

Michael Eckmann - Skidmore College - CS Spring 2007 HSV Color Model HSV color model is more intuitive/useful to people/artists Starting with the pure hue: Vary the saturation (add white) to get different tints Vary the value (add black) to get different shades

What's most important of Color theory for us in this course? Know the terminology – dominant wavelength, hue, brightness, luminance, purity, saturation, chromaticity, color gamut, idea of primary colors, etc. Know the relationship between wavelength and frequency Know what the CIE chromaticity digram is useful for and how –determining: color gamuts, complementary colors, purity –comparison of: color gamuts, purity Know how additive (e.g. RGB, YIQ) and subtractive color models (e.g. CMY) work to produce new colors Know about more intuitive models like HSV and why they're useful Know that different color models can be transformed into each other by a transform matrix. Michael Eckmann - Skidmore College - CS Spring 2007