Color! Main Goals: Understand this thing: “Chromaticity diagram”

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

Fundamentals of Digital Imaging
School of Computing Science Simon Fraser University
CS 4731: Computer Graphics Lecture 24: Color Science
© 2002 by Yu Hen Hu 1 ECE533 Digital Image Processing Color Imaging.
Color.
Color Representation Lecture 3 CIEXYZ Color Space CIE Chromaticity Space HSL,HSV,LUV,CIELab X Z Y.
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.
Light, Color and Imaging. Light The Electromagnetic Spectrum: E = h.
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.
Understanding Colour Colour Models Dr Jimmy Lam Tutorial from Adobe Photoshop CS.
1 Perception and VR MONT 104S, Fall 2008 Lecture 7 Seeing Color.
Color Image Processing A spectrum of possibilities…
1 Color vision and representation S M L.
PHYSIOLOGY OF COLOR VISION
Chapter 3: Colorimetry How to measure or specify color? Color dictionary?
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.
Color Theory ‣ What is color? ‣ How do we perceive it? ‣ How do we describe and match colors? ‣ Color spaces.
Color. Understanding Color ● What is a color? ● How is color perceived? ● How can color be represented?
Announcements 4/9/12 Prayer HW 25 due on Tuesday HW 26 due on Wednesday (but it’s very likely Claira won’t pick it up until Thursday night. Shhh!) Frank.
Importance of Color Painters first used charcoal Early artists used ochre to add red Colors are not always the same from culture to culture.
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.
Mixing the broad distributions of green and red yields yellow. Although the resulting spectral distribution is very different from spectral yellow. If.
CS5600 Computer Graphics by Rich Riesenfeld Spring 2006 Lecture Set 11.
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
1 CSCE441: Computer Graphics: Color Models Jinxiang Chai.
Announcements 4/9/12 Prayer Roy G. Biv - (2:41) HW 26 due today (but.
Precautions for TAs Take control of the projector fan –Turn on the fan – don’t let students do this! –Turn off the fan only after the projectors cooled.
CS-321 Dr. Mark L. Hornick 1 Color Perception. CS-321 Dr. Mark L. Hornick 2 Color Perception.
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.
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.
COMPUTER GRAPHICS CS 482 – FALL 2016 CHAPTER 28 COLOR COLOR PERCEPTION CHROMATICITY COLOR MODELS COLOR INTERPOLATION.
Color Huamin Qu Hong Kong University of Science and Technology.
Color Models Light property Color models.
ITEC2110, Digital Media Chapter 2 Fundamentals of Digital Imaging
© 2016 Pearson Education, Inc., Hoboken, NJ. All rights reserved.
WHITE LIGHT?  The white light from the sun is made up of different colors.  White light contains all the colors of the visible spectrum. 
Chapter 27 Color 29-Apr-18 Physics 1 (Garcia) SJSU.
Display Issues Ed Angel
Color Image Processing
Color Image Processing
(c) University of Wisconsin, CS559 Spring 2002
COLOR space Mohiuddin Ahmad.
Color 2017, Fall.
Chapter 6: Color Image Processing
Color Image Processing
Color 2015, Fall.
Chapter II Color Theory.
Color Blindness.
Color Vision by King Saud University Physiology Dept
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.
Color Image Processing
Digital Image Processing
Digital 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:

Color! Main Goals: Understand this thing: “Chromaticity diagram” Given a spectrum, how to predict what color the spectrum will seem to you

From Wikipedia, “Visible Spectrum” “All the colors of the rainbow…”  Where is brown?? Where is pink?? Where is turquoise??

Cone cells From Wikipedia, “Color Vision” “Short” “Medium” “Long”

From Wikipedia, “Ishihara test” Color blindness From Wikipedia, “Ishihara test” tritanopia – lacks S cones, <1% of males and females tritanomaly – S cones mutated, ~0.01% of males and females deuteranopia – lacks M cones, ~1% of males deuteranomaly – M cones mutated, standard “red-green color blindness”, ~5% of European males; far fewer females protanopia – lacks L cones, ~1% of males protanomaly – L cones mutated, ~3% of European males, far fewer females achromatopsia – total color blindness, 0.003% of males and females

Cone cell response, again Primary Colors Cone cell response, again From Wikipedia, “RGB Color Model” How the primary song should go “Additive color mixing” (Pigments: “subtractive color mixing”)

Components of R, G, B: Plot in 3D “color space” From Wikipedia, “RGB Color Model” (old version) Viewing slices of the cube: https://programmingdesignsystems.com/color/color-models-and-color-spaces/index.html

“RGB Color Model” (old version) Components of R, G, B From Wikipedia, “RGB Color Model” (old version)

From Wikipedia, “Primary Color” How to Display Colors From Wikipedia, “Primary Color”

1920’s Color Matching Experiments Using combinations of these three: Narrow red source at 700 nm Narrow green source at 546.1 nm Narrow blue source at 435.8 nm How much of each is required to match the wavelengths in the visible spectrum (“pure colors”)? Cone cell response, again

Cone cell response, again A Concern Cone cell response, again Say you want to mix the dashed lines to look the same as 580 nm orange line. You may start by turning up the red light. But soon you also need to turn up the green light. However… Green light will excite some S! (a small amount, but nonzero) 580 nm alone will never excite S! Therefore 580 nm cannot be matched. You need some “negative blue” to counteract

Results: r , g , b functions red source = 700 nm green source = 546.1 nm blue source at 435.8 nm to get 700 nm, only need red; g , b are 0 to get 435.8 nm, only need blue; r , g are 0 to get 546.1 nm, only need green; r , b are 0 to get 580 nm orange, need some “negative” blue From Wikipedia, “1931 Color Space” (also in P&W)

x , y , z functions vs. r , g , b functions From Wikipedia, “CIE 1931 Color Space” (Very Important, but not in Peatross & Ware) Cone cell response again all are positive z = close to S cones, close to b y = matches intensity response of eye, close to M cones x = chosen so that white is equal parts of all three

Projections 𝑋= 𝐼 𝜆 x 𝜆 𝑑𝜆 𝑌= 𝐼 𝜆 y 𝜆 𝑑𝜆 𝑍= 𝐼 𝜆 z 𝜆 𝑑𝜆 Given a spectrum I(l), how much x , y , and z does it have? 𝑋= 𝐼 𝜆 x 𝜆 𝑑𝜆 𝑌= 𝐼 𝜆 y 𝜆 𝑑𝜆 𝑍= 𝐼 𝜆 z 𝜆 𝑑𝜆

Example from homework (P2.13 part b) Calculate the areas: X, Y, Z  Then normalize so they add up to 1 (call them x, y, z)

Side Note: Linear Transformations of Projection coordinates (X,Y,Z) and (R,G,B) From P&W Example 2.4

Worked Example X = Y = Z = Normalize so they add up to 1 (“color” should not depend on overall intensity) x = y = z = 1 – x – y =

Another Worked Example What is (x,y) for a delta function at 560 nm? My estimates: X = 0.59 Y = 0.98 Z = 0 x = 0.38 y = 0.62 Do that for every wavelength  the “locus” curve

Chromaticity Diagram Things to observe The locus curve Example: 560 nm = (0.38, 0.62) The white point = (0.33, 0.33) “Line of purples” Linear effects Color mixing along line connecting two points “Complementary colors”: can mix to get white

Chromaticity Diagram Hue Draw the line connecting the white point to P, what l does it hit? (Example: 593 nm) Saturation How far along that line is the point? (Example: 65%) Brightness Overall intensity, Not on this diagram P

Remember this?

sRGB: three specific color sources Standard created in 1996 by HP and Microsoft to help the internet “blue” = (0.15, 0.06) “red” = (0.65, 0.33) “green” = (0.30, 0.60) Mixing three sources: triangle called the “gamut”

Review (end of Monday’s class?) Three types of cones responsive to three different wavelength ranges (short, medium, long, aka SML) Three dimensional color space (RGB) Color matching experiments produced r , g , b “color matching functions” Alternate set developed with better properties, x , y , z X,Y,Z are the projections of a given spectrum on to the x , y , z functions x,y,z are the normalized X,Y,Z values x,y are the chromaticity coordinates (z is superfluous), can be plotted on the chromaticity diagram Colors on the chromaticity diagram combine linearly Actual RGB sources fall on the chromaticity diagram, their enclosed triangle is the gamut of possible colors they can display

What’s the Color of Blackbody Radiation? From Wikipedia “Color Temperature”

Color of the Sun? T = 5778K

Complementary colors What is the hue of this point P? Complementary color, lC P

XYZ to sRGB Step 1: linear transformation From P&W P2.14 “blue” = (0.15, 0.06) “red” = (0.65, 0.33) “green” = (0.30, 0.60) Step 1: linear transformation Step 2: nonlinear (function given in P2.14) Normalize R,G,B values to be integers from 0 to 255 256256256 = 16,777,216 possible colors

xyY Reminder: what was Y? all are positive z = close to S cones, close to b y = matches intensity response of eye, close to M cones x = chosen so that white is equal parts of all three

XYZ  xyY Transformations (Nonlinear) 𝑥 𝑦 𝑌 = 𝑋 𝑋+𝑌+𝑍 𝑌 𝑋+𝑌+𝑍 𝑌    𝑋 𝑌 𝑍 = 𝑥 𝑦 𝑌 𝑌 1−𝑥−𝑦 𝑦 𝑌

“Hue, brightness, saturation” Hue – use RGB values to turn locus into a hexagon, then written as 0 to 360 Saturation called “chroma”, as before Brightness from Y, scaled as 0 to 1 From Wikipedia “HSL and HSV”

sRGB gamut, again What would be the ideal set of three light sources for your monitor? “green” = (0.30, 0.60) “red” = (0.65, 0.33) “blue” = (0.15, 0.06)

Adobe RGB Better than sRGB? Only if your camera/display/ printer are all calibrated for it Not for use on internet Also: there’s a wider range of possible colors, but the difference between individual colors is bigger than in sRGB (still 256256256) P From Wikipedia, “Adobe RGB color space”

ProPhoto RGB “One of the downsides to this color space is that approximately 13% of the representable colors are imaginary colors that do not exist and are not visible colors.” P From Wikipedia, “ProPhoto RGB color space”

Summary: Many Ways to Specify Color R,G,B (original color matching functions) X,Y,Z x,y,Y hue, saturation, Y  Complementary hue if needed hue, brightness, saturation sRGB R,G,B coordinates (if in sRGB color space) R,G,B coordinates of other color spaces That’s All, Folks