CS 4731: Computer Graphics Lecture 24: Color Science

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 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.
School of Computing Science Simon Fraser University
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?.
University of British Columbia CPSC 414 Computer Graphics © Tamara Munzner 1 Color 2 Week 10, Fri 7 Nov 2003.
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.
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.
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.
Color Theory What is color? How do we describe and match colors? Color spaces.
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?
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 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.
CSC361/ Digital Media Burg/Wong
COLORCOLOR Angel 1.4 and 2.4 J. Lindblad
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.
CS5600 Computer Graphics by Rich Riesenfeld Spring 2006 Lecture Set 11.
CS 551 / 645: Introductory Computer Graphics Color.
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.
COLOR THEORY Presented by : Md Ashequr Rahman COSC 5335 – Computer Graphics Date : Oct 29, 2002.
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.
Chapter 4: Color in Image and Video
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.
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
CS 551 / 645: Introductory Computer Graphics
Display Issues Ed Angel
Color Image Processing
COLOR space Mohiuddin Ahmad.
Color 2017, Fall.
Color Image Processing
Color 2015, Fall.
Introduction to Computer Graphics with WebGL
Color Image Processing
Slides taken from Scott Schaefer
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:

CS 4731: Computer Graphics Lecture 24: Color Science Emmanuel Agu

Basics Of Color Elements of color:

What is color? Color is defined many ways Physical definition Wavelength of photons Electromagnetic spectrum: infra-red to ultra-violet But so much more than that… Excitation of photosensitive molecules in eye Electrical impulses through optical nerves Interpretation by brain

Introduction Color description: Red, greyish blue, white, dark green… Computer Scientist: Hue: dominant wavelength, color we see Saturation how pure the mixture of wavelength is How far is the color from gray (pink is less saturated than red, sky blue is less saturated than royal blue) Lightness/brightness: how intense/bright is the light

The Human Eye The eye: The retina Rods Cones Color!

The Human Eye The center of the retina is a densely packed region called the fovea. Eye has about 6- 7 million cones Cones much denser here than the periphery

The Human Eye Rods: Human eye can distinguish relatively insensitive to color, detail Good at seeing in dim light, general object form Human eye can distinguish 128 different hues of color 20 different saturations of a given hue Visible spectrum: about 380nm to 720nm Hue, luminance, saturation useful for describing color Given a color, tough to derive HSL though

Tristimulus theory 3 types of cones Loosely identify as R, G, and B cones Each is sensitive to its own spectrum of wavelengths Combination of cone cell stimulations give perception of COLOR

The Human Eye: 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)

The Human Eye: Seeing Color The tristimulus curve shows overlaps, and different levels of responses Eyes more sensitive around 550nm, can distinquish smaller differences What color do we see the best? Yellow-green at 550 nm What color do we see the worst? Blue at 440 nm

Color Spaces Three types of cones suggests color is a 3D quantity. How to define 3D color space? Color matching idea: shine given wavelength () on a screen Mix three other wavelengths (R,G,B) on same screen. Have user adjust intensity of RGB until colors are identical:

CIE Color Space Note that: X ~ R Y ~ G Z ~ B 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 CIE created table of XYZ values for all visible colors 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 Also normalize X’+Y’+Z’=1 X’’ = X’ / (X’+Y’+Z’) Y’’ = Y’ / (X’+Y’+Z’) Z’’ = 1 – X’’ – Y’’ Note: Inside horseshoe visible, outside invisible to eye

CIE uses Find complementary colors: Measure hue and saturation: equal linear distances from white in opposite directions Measure hue and saturation: extend line from color to white till it cuts horseshoe (hue) Saturation is ratio of distances color-to-white/hue-to-white Define and compare device color gamut (color ranges) Problem: not perceptually uniform: Same amount of changes in different directions generate perceived difference that are not equal CIE LUV - uniform

Color Spaces CIE very exact, defined Alternate lingo may be better for other domains Artists: tint, tone shade CG: Hue, saturation, luminance Many different color spaces RGB CMY HLS HSV Color Model And more…..

Combining Colors: Additive and Subtractive Remove components from white Add components Additive (RGB) Subtractive (CMYK) Some color spaces are additive, others are subtractive Examples: Additive (light) and subtractive (paint)

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

CMY Subtractive For printing Cyan, Magenta, Yellow Sometimes black (K) is also used for richer black (c, m, y) means subtract the c, m, y of the compliments of C (red) M (green) and Y (blue)

HLS Hue, Lightness, Saturation Based on warped RGB cube Look from (1,1,1) to (0,0,0) or RGB cube All hues then lie on hexagon Express hue as angle in degrees 0 degrees: red

HSV Color Space Value Saturation Hue A more intuitive color space H = Hue S = Saturation V = Value (or brightness) Based on artist Tint, Shade, Tone Similar to HLS in concept Value Saturation Hue

Converting Color Spaces Converting between color models can also be expressed as such a matrix transform:

Color Quantization True color can be quite large in actual description Sometimes need to reduce size Example: take a true-color description from database and convert to web image format Replace true-color with “best match” from smaller subset Quantization algorithms: Uniform quantization Popularity algorithm Median-cut algorithm Octree algorithm

Gamma Correction Color spaces, RGB, HLS, etc are all linear. E.g. (0.1,0.1,0.1) in RGB is half the intensity of (0.2,0.2,0.2) However, CRT Intensity: I=kN N is no. of electrons hitting screen (voltage), related to pixel value k and  are constants for each monitor Intensity-voltage relationship is non-linear, different min/max N for different devices Gamma correction: make relationship linear, match up intensity on different devices How? Invert above equation so that N = (I/k)1/ Choose k and  so that I becomes linearly related to N

Gamma Correction Typical gamma values in range [1.7 – 2.3] E.g. NTSC TV standard in US defines gamma = 2.2 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)

Device Color Gamuts Since X, Y, and Z are hypothetical light sources, no real device can produce the entire gamut of perceivable color Depends on physical means of producing color on device Example: R,G,B phosphors on CRT monitor

Device Color Gamuts The RGB color cube sits within CIE color space We can use the CIE chromaticity diagram to compare the gamuts of various devices E.g. compare color printer and monitor color gamuts

References Hill, chapter 12