CS 445 / 645: Introductory Computer Graphics Color.

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,
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.
Fundamentals of Digital Imaging
University of British Columbia CPSC 314 Computer Graphics Jan-Apr 2005 Tamara Munzner Color Week 5, Fri Feb.
CS 445 / 645 Introduction to Computer Graphics Lecture 12 Camera Models Lecture 12 Camera Models.
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
SWE 423: Multimedia Systems Chapter 4: Graphics and Images (2)
University of British Columbia CPSC 414 Computer Graphics © Tamara Munzner 1 Color 2 Week 10, Fri 7 Nov 2003.
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.
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.
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.
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.
Understanding Colour Colour Models Dr Jimmy Lam Tutorial from Adobe Photoshop CS.
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!)
1 Color vision and representation S M L.
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?
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.
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.
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.
Introduction to Computer Graphics CS 445 / 645 Lecture 12 Chapter 12: Color.
1 CSCE441: Computer Graphics: Color Models Jinxiang Chai.
BASIC COLOUR COURSE Algemeen
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.
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
COLOR space Mohiuddin Ahmad.
Color 2017, Fall.
Color 2015, Fall.
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 445 / 645: Introductory Computer Graphics Color

Midterm Exam The Midterm Exam will be Tuesday, October 23 rd Review Session will be Thursday, October 18 th.

Assignment 3 Assignment 3 goes out today Due Sunday, October 21 st at Midnight

Color Next topic: Color To understand how to make realistic images, we need a basic understanding of the physics and physiology of vision. Here we step away from the code and math for a bit to talk about basic principles.

Basics Of Color Elements of color:

Basics of Color Physics: –Illumination Electromagnetic spectra –Reflection Material properties Surface geometry and microgeometry (i.e., polished versus matte versus brushed) Perception –Physiology and neurophysiology –Perceptual psychology

Physiology of Vision The eye: The retina –Rods –Cones Color!

Physiology of Vision The center of the retina is a densely packed region called the fovea. –Cones much denser here than the periphery

Physiology of Vision: Cones 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)

Physiology of Vision: The Retina Strangely, rods and cones are at the back of the retina, behind a mostly- transparent neural structure that collects their response. rg/retina.asp

Perception: 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

Perception: Other Gotchas Color perception is also difficult because: –It varies from person to person –It is affected by adaptation (stare at a light bulb… don’t) –It is affected by surrounding color:

Perception: Relative Intensity We are not good at judging absolute intensity Let’s illuminate pixels with white light on scale of Intensity difference of neighboring colored rectangles with intensities: –0.10 -> 0.11 (10% change) –0.50 -> 0.55 (10% change) will look the same We perceive relative intensities, not absolute

Representing Intensities Remaining in the world of black and white… Use photometer to obtain min and max brightness of monitor This is the dynamic range Intensity ranges from min, I 0, to max, 1.0 How do we represent 256 shades of gray?

Representing Intensities Equal distribution between min and max fails –relative change near max is much smaller than near I 0 –Ex: ¼, ½, ¾, 1 Preserve % change –Ex: 1/8, ¼, ½, 1 –I n = I 0 * r n I 0, n > 0 I 0 =I 0 I 1 = rI 0 I 2 = rI 1 = r 2 I 0 … I 255 =rI 254 =r 255 I 0

Dynamic Ranges Dynamic RangeMax # of Display(max / min illum)Perceived Intensities (r=1.01) CRT: Photo (print) Photo (slide) B/W printout Color printout50400 Newspaper10234

Gamma Correction But most display devices are inherently nonlinear: Intensity = k(voltage)  –i.e., brightness(voltage) != 2*brightness(voltage/2)  is between 2.2 and 2.5 on most monitors Common solution: gamma correction –Post-transformation on intensities to map them to linear range on display device: –Can have separate  for R, G, B

Gamma Correction Some monitors perform the gamma correction in hardware (SGI’s) Others do not (most PCs) Tough to generate images that look good on both platforms (i.e. images from web pages)

Halftoning A technique used in newspaper printing Only two intensities are possible, blob of ink and no blob of ink But, the size of the blob can be varied Also, the dither patterns of small dots can be used

Halftoning

Halftoning

Back to color Color is defined many ways Computer scientists frequently use: –Hue - The color we see (red, green, purple) –Saturation - How far is the color from gray (pink is less saturated than red, sky blue is less saturated than royal blue) –Brightness (Luminance) - How bright is the color

How well do we see color? What color do we see the best? –Yellow-green at 550 nm What color do we see the worst? –Blue at 440 nm Flashback: Colortables (colormaps) for color storage Can perceive color differences of 10 nm at extremes (violet and red) and 2 nm between blue and yellow

How well do we see color? 128 fully saturated hues can be distinguished Cannot perceive hue differences with less saturated light. Sensitivity to changes in saturation for a fixed hue and brightness ranges from 16 to 23 depending on hue.

Combining Colors Additive (RGB)Subtractive (CMYK)

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, and mix three other wavelengths (R,G,B) on same screen. Have user adjust intensity of RGB until colors are identical:

CIE Color Space The CIE (Commission Internationale d’Eclairage) came up with three hypothetical lights X, Y, and Z with these spectra: Idea: any wavelength can be matched perceptually by positive combinations of X,Y,Z Note that: X ~ R Y ~ G Z ~ B

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

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’

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

RGB Color Space Define colors with (r, g, b) amounts of red, green, and blue

Device Color Gamuts The RGB color cube sits within CIE color space something like this:

Device Color Gamuts We can use the CIE chromaticity diagram to compare the gamuts of various devices: Note, for example, that a color printer cannot reproduce all shades available on a color monitor

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

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 YIQ is the color model used for color TV in America. Y is luminance, I & Q are color –Note: Y is the same as CIE’s Y –Result: backwards compatibility with B/W TV!

HSV Color Space A more intuitive color space –H = Hue –S = Saturation –V = Value (or brightness) Value Saturation Hue