University of British Columbia CPSC 414 Computer Graphics © Tamara Munzner 1 Color 2 Week 10, Fri 7 Nov 2003.

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.
Color & Light, Digitalization, Storage. Vision Rods work at low light levels and do not see color –That is, their response depends only on how many photons,
Color To understand how to make realistic images, we need a basic understanding of the physics and physiology of vision.
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
University of British Columbia CPSC 314 Computer Graphics Jan-Apr 2005 Tamara Munzner Color Week 5, Fri Feb.
University of British Columbia CPSC 314 Computer Graphics Jan-Apr 2007 Tamara Munzner Vision/Color II, Virtual.
School of Computing Science Simon Fraser University
CS 4731: Computer Graphics Lecture 24: Color Science
University of British Columbia CPSC 414 Computer Graphics © Tamara Munzner 1 Color Week 10, Wed 5 Nov 2003.
SWE 423: Multimedia Systems Chapter 4: Graphics and Images (2)
University of British Columbia CPSC 314 Computer Graphics Jan-Apr 2007 Tamara Munzner Vision/Color Week 5, Mon.
COLOR and the human response to light
Display Issues Ed Angel Professor of Computer Science, Electrical and Computer Engineering, and Media Arts University of New Mexico.
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.
Why Care About Color? Accurate color reproduction is commercially valuable - e.g. Kodak yellow, painting a house Color reproduction problems increased.
Color Models AM Radio FM Radio + TV Microwave Infrared Ultraviolet Visible.
Colour in Computer Graphics Mel Slater. Outline: This time Introduction Spectral distributions Simple Model for the Visual System Simple Model for an.
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.
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.
Any questions about the current assignment? (I’ll do my best to help!)
Color Theory What is color? How do we describe and match colors? Color spaces.
Chapter 3: Colorimetry How to measure or specify color? Color dictionary?
CS 445 / 645: Introductory Computer Graphics Color.
1 © 2010 Cengage Learning Engineering. All Rights Reserved. 1 Introduction to Digital Image Processing with MATLAB ® Asia Edition McAndrew ‧ Wang ‧ Tseng.
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 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.
1 Introduction to Computer Graphics with WebGL Ed Angel Professor Emeritus of Computer Science Founding Director, Arts, Research, Technology and Science.
©College of Computer and Information Science, Northeastern UniversityMay 27, CS 4300 Computer Graphics Prof. Harriet Fell Fall 2012 Lecture 4 – September.
CSC361/ Digital Media Burg/Wong
COLORCOLOR Angel 1.4 and 2.4 J. Lindblad
Graphics Lecture 4: Slide 1 Interactive Computer Graphics Lecture 4: Colour.
CS 551 / 645: Introductory Computer Graphics Color.
Three-Receptor Model Designing a system that can individually display thousands of colors is very difficult Instead, colors can be reproduced by mixing.
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.
David Luebke2/23/2016 CS 551 / 645: Introductory Computer Graphics Color Continued Clipping in 3D.
David Luebke3/11/2016 CS 551 / 645: Introductory Computer Graphics Geometric transforms: perspective projection Color.
09/10/02(c) University of Wisconsin, CS559 Fall 2002 Last Time Digital Images –Spatial and Color resolution Color –The physics of color.
Color University of British Columbia CPSC 314 Computer Graphics Jan-Apr 2016 Tamara Munzner.
Color Measurement and Reproduction Eric Dubois. How Can We Specify a Color Numerically? What measurements do we need to take of a colored light to uniquely.
Computer Graphics: Achromatic and Coloured Light.
1 of 32 Computer Graphics Color. 2 of 32 Basics Of Color elements of color:
Color Models Light property Color models.
Half Toning Dithering RGB CMYK Models
CS 551 / 645: Introductory Computer Graphics
Display Issues Ed Angel
(c) University of Wisconsin, CS559 Spring 2002
COLOR space Mohiuddin Ahmad.
Perception and Measurement of Light, Color, and Appearance
Introduction to Computer Graphics with WebGL
© University of Wisconsin, CS559 Spring 2004
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:

University of British Columbia CPSC 414 Computer Graphics © Tamara Munzner 1 Color 2 Week 10, Fri 7 Nov 2003

Week 10, Fri 7 Nov 03 © Tamara Munzner2 Readings Chapter 1.4: color plus supplemental reading: –A Survey of Color for Computer Graphics, Maureen Stone, SIGGRAPH Course Notes 2001 –pages 4-24 required –

Week 10, Fri 7 Nov 03 © Tamara Munzner3 News yet more extra office hours –Fri (AG lab), 11:30-1:30 (AW, AG xtra) I’m at a conference Fri pm – Mon pm –guest lecture Monday: Ahbijeet Ghosh –my personal mail response will be slow –use newsgroup or to TAs if can’t post remotely, try unsub/resub or port forward homework 1 pickup again end of class

University of British Columbia CPSC 414 Computer Graphics © Tamara Munzner 4 Color recap

Week 10, Fri 7 Nov 03 © Tamara Munzner5 Sunlight Spectrum

Week 10, Fri 7 Nov 03 © Tamara Munzner6 Humans and Light when we view a source of light, our eyes respond respond to –hue: the color we see (red, green, purple) dominant frequency –saturation: how far is color from grey how far is the color from gray (pink is less saturated than red, sky blue is less saturated than royal blue) –brightness: how bright is the color how bright are the lights illuminating the object?

Week 10, Fri 7 Nov 03 © Tamara Munzner7 Trichromacy three types of cones –L or R, most sensitive to red light (610 nm) –M or G, most sensitive to green light (560 nm) –S or B, most sensitive to blue light (430 nm) –color blindness results from missing cone type(s)

Week 10, Fri 7 Nov 03 © Tamara Munzner8 Metamers a given perceptual sensation of color derives from the stimulus of all three cone types identical perceptions of color can thus be caused by very different spectra

Week 10, Fri 7 Nov 03 © Tamara Munzner9 Adaptation, Surrounding Color color perception is also affected by –adaptation (stare at a light bulb… don’t) –surrounding color/intensity: simultaneous contrast effect

University of British Columbia CPSC 414 Computer Graphics © Tamara Munzner 10 Color

Week 10, Fri 7 Nov 03 © Tamara Munzner11 Bezold Effect impact of outlines

Week 10, Fri 7 Nov 03 © Tamara Munzner12 Color Constancy

Week 10, Fri 7 Nov 03 © Tamara Munzner13 Color Constancy

Week 10, Fri 7 Nov 03 © Tamara Munzner14 Color Constancy

Week 10, Fri 7 Nov 03 © Tamara Munzner15 Color Constancy automatic “white balance” from change in illumination vast amount of processing behind the scenes! colorimetry vs. perception

Week 10, Fri 7 Nov 03 © Tamara Munzner16 Color Spaces Three types of cones suggests color is a 3D quantity. How to define 3D color space? Idea: –Shine given wavelength ( ) on a screen –User must control three pure lights producing three other wavelengths (say R=700nm, G=546nm, and B=436nm) – Adjust intensity of RGB until colors are identical this works because of metamers!

Week 10, Fri 7 Nov 03 © Tamara Munzner17 Negative Lobes Exact target match with phosphors not possible –Some red had to be added to target color to permit exact match using “knobs” on RGB intensity output of CRT –Equivalently (theoretically), some red could have been removed from CRT output –Figure shows that red phosphor must remove some cyan for perfect match –CRT phosphors cannot remove cyan, so 500 nm cannot be generated

Week 10, Fri 7 Nov 03 © Tamara Munzner18 Negative Lobes can’t generate all other wavelenths with any set of three positive monochromatic lights! solution: convert to new synthetic coordinate system to make the job easy

Week 10, Fri 7 Nov 03 © Tamara Munzner19 CIE Color Space CIE defined three “imaginary” lights X, Y, and Z, any wavelength can be matched perceptually by positive combinations Note that: X ~ R Y ~ G Z ~ B

Week 10, Fri 7 Nov 03 © Tamara Munzner20 Measured vs. CIE Color Spaces measured basis –monochromatic lights –physical observations –negative lobes transformed basis –“imaginary” lights –all positive, unit area –Y is luminance

Week 10, Fri 7 Nov 03 © Tamara Munzner21 CIE Color Space The gamut of all colors perceivable is thus a three-dimensional shape in X,Y,Z Color = X’X + Y’Y + Z’Z

Week 10, Fri 7 Nov 03 © Tamara Munzner22 CIE Chromaticity Diagram (1931) For simplicity, we often project to the 2D plane X’+Y’+Z’=1 X’ = X’ / (X’+Y’+Z’) Y’ = Y’ / (X’+Y’+Z’) Z’ = 1 – X’ – Y’

Week 10, Fri 7 Nov 03 © Tamara Munzner23 Device Color Gamuts Since X, Y, and Z are hypothetical light sources, no real device can produce the entire gamut of perceivable color Example: CRT monitor

Week 10, Fri 7 Nov 03 © Tamara Munzner24 Device Color Gamuts use CIE chromaticity diagram to compare the gamuts of various devices

Week 10, Fri 7 Nov 03 © Tamara Munzner25 RGB Color Space (Color Cube) Define colors with (r, g, b) amounts of red, green, and blue

Week 10, Fri 7 Nov 03 © Tamara Munzner26 RGB Color Gamuts The RGB color cube sits within CIE color space something like this:

Week 10, Fri 7 Nov 03 © Tamara Munzner27 Gamut Mapping

Week 10, Fri 7 Nov 03 © Tamara Munzner28 Converting Color Spaces Simple matrix operation: The transformation C 2 = M -1 2 M 1 C 1 yields RGB on monitor 2 that is equivalent to a given RGB on monitor 1

Week 10, Fri 7 Nov 03 © Tamara Munzner29 YIQ Color Space YIQ is the color model used for color TV in America. Y is brightness, I & Q are color –Note: Y is the same as CIE’s Y –Result: Use the Y alone and backwards compatibility with B/W TV!

Week 10, Fri 7 Nov 03 © Tamara Munzner30 Converting Color Spaces Converting between color models can also be expressed as such a matrix transform: Note the relative unimportance of blue in computing the Y

Week 10, Fri 7 Nov 03 © Tamara Munzner31 HSV Color Space a more intuitive color space –H = Hue –S = Saturation –V = Value (or brightness) Value Saturation Hue

Week 10, Fri 7 Nov 03 © Tamara Munzner32 Perceptually Uniform Color Space Color space in which Euclidean distance between two colors in space is proportional to the perceived distance –CIE, RGB, not perceptually uniform Example with RGB

Week 10, Fri 7 Nov 03 © Tamara Munzner33 Simplified Models based on RGB triples surface interactions also simplified

Week 10, Fri 7 Nov 03 © Tamara Munzner34

Week 10, Fri 7 Nov 03 © Tamara Munzner35 The Gamma Problem device gamma –monitor: I = A(k 1 D+k 2 V)  –typical monitor  =2.5 –LCD: nearly linear OS gamma –defined by operating system –inverse gamma curve I 1/  –“gamma correction”

Week 10, Fri 7 Nov 03 © Tamara Munzner36 Display System Gamma product of device and OS curves –divide device by OS gamma –  DS   D   OS  display system gamma varies –different devices, different OS –nonlinear viewing conditions also affect perception of “gamma” PCMacSGI Default OS Gamma PCMacSGI Default DS Gamma

Week 10, Fri 7 Nov 03 © Tamara Munzner37 Intensity Mapping

Week 10, Fri 7 Nov 03 © Tamara Munzner38 Pick up Homework 1 take 3