SCI 200 Physical Science Lecture 9 Color Mixing Rob Daniell July 28, 2011.

Slides:



Advertisements
Similar presentations
What is Color? Color is related to the wavelength of light. If a color corresponds to one particular wavelength, this is called spectral color. =600 nm.
Advertisements

Introduction to Computer Graphics ColorColor. Specifying Color Color perception usually involves three quantities: Hue: Distinguishes between colors like.
ECE 472/572 - Digital Image Processing Lecture 10 - Color Image Processing 10/25/11.
Classroom Change This Friday’s class will be at Physics 1201.
COLOUR YEAR 11 - UNIT ONE PHYSICS
2002 by Jim X. Chen: 1 Understand brightness, intensity, eye characteristics, and gamma correction, halftone technology,
Achromatic and Colored Light CS 288 9/17/1998 Vic.
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.
Physics 1230: Light and Color Ivan I. Smalyukh, Instructor Office: Gamow Tower, F Phone: Lectures: Tuesdays.
AA&A spring Today Atomic absorption and emission Quantifying a spectrum What does a filter (colored glass) do? Combining filters Color matching.
Display Issues Ed Angel Professor of Computer Science, Electrical and Computer Engineering, and Media Arts University of New Mexico.
CSC 461: Lecture 2 1 CSC461 Lecture 2: Image Formation Objectives Fundamental imaging notions Fundamental imaging notions Physical basis for image formation.
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.
Chapter 9: Color Color mixtures –Additive Mixing –Partitive Mixing –Subtractive Mixing Colored Inks and Paint –Watercolors –CMYK Printing –Halftones.
Exam 2: November 8 th –If you will need accommodations, please make sure you have documentation from the University Office of Disability Services –It will.
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.
Color Systems. Subtractive Color The removal of light waves to perceive color: –Local or physical attributes of pigments, dyes, or inks reflect certain.
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.
Guilford County SciVis V104.02
Course Website: Digital Image Processing Colour Image Processing.
Digital Image Processing Colour Image Processing.
CS 376 Introduction to Computer Graphics 01 / 26 / 2007 Instructor: Michael Eckmann.
Chapter 6: Color Image Processing Digital Image Processing.
Color Management. How does the color work?  Spectrum Spectrum is a contiguous band of wavelengths, which is emitted, reflected or transmitted by different.
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?
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 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.
Red, green and blue (RGB): RGB is another way to use 3 numbers to specify a color instead of using an intensity-distribution curve or HSB In addition.
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
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.
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.
1 CSCE441: Computer Graphics: Color Models Jinxiang Chai.
Introduction to Computer Graphics
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.
The Science of Color The How and Why of Color. Color Basics Sir Isaac Newton discovered that white light breaks into a rainbow of colors in 1666 by passing.
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.
Color.
Chapter 4: Color in Image and Video
09/10/02(c) University of Wisconsin, CS559 Fall 2002 Last Time Digital Images –Spatial and Color resolution Color –The physics of color.
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.
Color theory.
Half Toning Dithering RGB CMYK Models
Color 2017, Fall.
Chapter 6: Color Image Processing
Color 2015, Fall.
Colour Theory Fundamentals
Color Representation Although we can differentiate a hundred different grey-levels, we can easily differentiate thousands of colors.
Investigating Color In the Classroom
Slides taken from Scott Schaefer
Color Model By : Mustafa Salam.
Color Models l Ultraviolet Infrared 10 Microwave 10
Presentation transcript:

SCI 200 Physical Science Lecture 9 Color Mixing Rob Daniell July 28, 2011

revised SCI200 - Lecture 102 Color Mixing  Gilbert & Haeberli: Physics in the Arts  Chapter 7 Additive color mixing  Chapter 8 Subtractive color mixing  Supplementary materials:  Malacara, Daniel: Color Vision and Colorimetry: Theory and Applications,SPIE Press, Bellingham, 2001  Wikipedia articles on Hue, sRGB, & ITU Recommendation 709 (Rec. 709)

revised SCI200 - Lecture 103 Color Mixing  Trichromacy allows fairly strong hue discrimination  Nevertheless:  The same hue can be produced by different spectral distributions  Response of cones to any particular spectral distribution of light is complex  Is there a (relatively) simple way to describe or specify a particular hue?

revised SCI200 - Lecture 104 Spectral Response of Cones  Two laser pointers (left) at 532 nm and 633 nm give the same hue as a single laser pointer (right) at 570 nm  Note that the authors seem to ignore the 2 pulses in the Type II cone produced by the 633 nm light  Gilbert & Haeberli, Physics in the Arts, pp

revised SCI200 - Lecture 105 Idealized Color Wavelength Ranges  Gilbert & Haeberli, Physics in the Arts, p nm nm nm

revised SCI200 - Lecture 106 Color Mixing  Additive mixing  Two light sources  Combined by adding the intensity at each wavelength  Subtractive mixing  Filters, paints, dyes  Combined effect is produced by subtracting colors  Also depends on the light source

revised SCI200 - Lecture 107 Additive Color Mixing  (a), (b), & (c): three non- monochromatic light sources  (d), (e), & (f): three two- color mixtures, each producing a third color  (g): spectral yellow  (h): unsaturated yellow produced by combining spectral green and spectral red  (i): the three non-spectral light sources mixed to produce white

revised SCI200 - Lecture 108 Additive Color Mixing  (a): spectral blue + spectral yellow = white  Complementary colors  (b): broad band white  Mixture of many colors  metamers: Two different intensity distributions that appear the same to your eye

revised SCI200 - Lecture 109 Additive Color Mixing Additive color rules: R + G + B = W R + G = Y G + B = C R + B = M Complementary colors: R + C = W G + M = W B + Y = W Can 3 colors be combined to produce any other color? C = Cyan, M = Magenta, Y = Yellow W = White

revised SCI200 - Lecture 1010 Additive Color Mixing Red, Green, & Blue can be combined to produce most colors, but some saturated colors cannot be reproduced. Red, Green, & Blue can be combined to produce more colors than any other choice of primary colors C = Cyan, M = Magenta, Y = Yellow W = White

revised SCI200 - Lecture 1011 Additive Color Mixing  CIE Color Matching experiments in 1922  Illuminated region subtended a visual angle of 2°  Only the viewer’s fovea is illuminated  Matching field produced by 700 nm, nm, nm  Three spectral lines in mercury vapor

revised SCI200 - Lecture 1012 Additive Color Mixing  Hue, Saturation, and Luminance of the reference field were to be matched as closely as possible.  For some wavelengths (in fact, nearly all wavelengths) of the monochromatic source, a perfect match was impossible.  Except by adding one of the red, green, or blue matching colors to the reference field.

revised SCI200 - Lecture 1013 Additive Color Mixing Suppose you attempt to match spectral cyan (490 nm) using spectral red (650 nm) spectral green (530 nm) spectral blue (460 nm) Spectral cyan produces I: 1 pulse II: 7 pulses III: 2.5 pulses spectral blue + spectral green produce I: = 2  1 II: = 19  9.5 III: = 10  5

revised SCI200 - Lecture 1014 Additive Color Mixing Spectral cyan: I: 1 pulse II: 7 pulses III: 2.5 pulses 50% blue + 36% green: I: = 1 II: = 7 III: = 3.5 Spectral cyan + 33% red: I: = 1 II: = 7 III: = % blue + 36% green matches spectral cyan + 33% red

revised SCI200 - Lecture 1015 Additive Color Mixing 50% blue + 36% green matches spectral cyan + 33% red But spectral cyan + spectral red yields white: So spectral cyan + 33% red is the same as 67% cyan + 33% white That is, unsaturated cyan

revised SCI200 - Lecture 1016 Additive Color Mixing Above: Spectral cyan on left; unsaturated cyan on the right 50% blue + 36% green matches spectral cyan + 33% red But spectral cyan + spectral red yields white: So spectral cyan + 33% red is the same as 67% cyan + 33% white That is, unsaturated cyan

revised SCI200 - Lecture 1017 Additive Color Mixing Combine 460 nm (blue), 530 nm (green), and 650 nm (red) To match the wavelength on the horizontal axis Negative fractions mean you must ‘unsaturate’ the color you are trying to match Standard observer: Based on data from 1931

revised SCI200 - Lecture 1018 Additive Color Mixing Previous figure redrawn so that complementary spectral colors lie opposite each other. Saturated colors lie along the outside Mixtures of two colors are proportional to the distance between them along the line joining them A line from one spectral color through the white point ends at the complementary color White point depends on the precise standard used The hue of the color at F is found by extending a line from white through F to the edge

revised SCI200 - Lecture 1019 Additive Color Mixing International Commission for Illumination (CIE) Did not want to use ‘negative colors’ to match saturated colors Defined ‘imaginary colors’ [X], [Y], and [Z] Not physical colors, but related Defined ‘color matching functions’ x, y, and z Relative amounts of [X], [Y], and [Z] needed to match a given spectral color (wavelength) Results in “tristimulus” values x, y, and z z = 1 - x - y x and y together are called the ‘chromaticity’ of a color

revised SCI200 - Lecture 1020 Additive Color Mixing CIE Chromaticity Diagram: Horseshoe shaped curve represents saturated monochromatic colors 380 nm nm ‘purples’ (mixtures of blue and red) lie along bottom edge z = 1 - x - y Interior of horseshoe represents unsaturated colors

revised SCI200 - Lecture 1021 Additive Color Mixing CIE Chromaticity Diagram: Specify a color by three values Chromaticity (x and y) Lightness (or Brightness) No representation is perfect None can reproduce the precise color sensitivity of the human eye Individual differences

revised SCI200 - Lecture 1022 Additive Color Mixing RGB example: 3 standard wavelengths: 700 nm (red) nm (green) nm (blue) These three colors can only reproduce colors in the interior of the triangle

revised SCI200 - Lecture 1023 Additive Color Mixing CIE chromaticity diagram: Three “primary” colors can only produce the colors inside the triangle - the “gamut” of the color set. This triangle corresponds to the three colors used in a typical color monitor.

revised SCI200 - Lecture 1024 Additive Color Mixing Monochromatic complementary pairs 700 nm nm 600 nm nm 571 nm nm No complementary pairs between 494 nm & 571 nm

revised SCI200 - Lecture 1025 Additive Color Mixing Color Triangle (Fig. 7.4) from textbook Doesn’t cover gamut of the human eye Does not conform to the sRGB standard used for color televisions and computer monitors Does come close to maximizing the gamut of representable colors

revised SCI200 - Lecture 1026 Additive Color Mixing Color Triangle inside a chromaticity diagram (Fig. 7.15) It appears that the text uses Red = 700 nm Green = 530 nm Blue = 440 nm Does not conform to the “sRGB” standard for color television and computer monitors

revised SCI200 - Lecture 1027 Additive Color Mixing sRGB standard Based on 1931 CIE chromaticity Red: x = 0.64, y = 0.33 Green: x = 0.30, y = 0.60 Blue: x = 0.15, y = 0.06 White point: x = , y =  From the diagram, the dominant wavelengths are  Red: 611 nm  Green: 549 nm  Blue: 464 nm From Wikipedia

revised SCI200 - Lecture 1028 Additive Color Mixing AdobeRGB standard Based on 1931 CIE chromaticity Red: x = 0.64, y = 0.33 Green: x = 0.21, y = 0.71 Blue: x = 0.15, y = 0.06 White point: x = , y =  From the diagram, the dominant wavelengths are  Red: 611 nm  Green: 535 nm  Blue: 464 nm  Green point is main difference with sRGB From Wikipedia

revised SCI200 - Lecture 1029 Additive Color Mixing Complementary Colors to the “line of purples” appear to range from c491 nm to c579 nm

revised SCI200 - Lecture 1030 Additive Color Mixing correspondence between wavelength and hue (angle): –complicated

revised SCI200 - Lecture 1031 Additive Color Mixing correspondence between RGB and hue (angle):

revised SCI200 - Lecture 1032 Additive Color Mixing LEDs approximate monochromatic red, green and blue: Red = 645 nm Green = 510 nm Blue = 465 nm

revised SCI200 - Lecture 1033 Additive Color Mixing LEDs approximate monochromatic red, green and blue: Red = 645 nm Green = 510 nm Blue = 465 nm

revised SCI200 - Lecture 1034 Additive Color Mixing Methods  Methods and Techniques  Simple addition  Two or more light sources  Stage lights  Partitive mixing  Separate sources close to each other  Television screens & CRT displays  LCD displays  Rapid succession  Uses persistence of vision

revised SCI200 - Lecture 1035 Subtractive Color Mixing Subtractive color combination: Filters that absorb or block light of certain colors Ink or pigments that reflect only certain colors and absorb the others Primary Subtractive Colors: Cyan, Magenta, Yellow Supplemented by Black in “four color printing” C = Cyan, M = Magenta, Y = Yellow

revised SCI200 - Lecture 1036 Subtractive Color Mixing: Idealized Filters Idealized Red Filter Idealized Green Filter Idealized Blue Filter

revised SCI200 - Lecture 1037 Subtractive Color Mixing: Idealized Filters Idealized Red Filter + Idealized Green Filter = “black” (no transmission)

revised SCI200 - Lecture 1038 Subtractive Color Mixing: Idealized Filters Idealized Cyan Filter (blocks Red) Idealized Magenta Filter (blocks Green) Idealized Yellow Filter (blocks Blue)

revised SCI200 - Lecture 1039 Subtractive Color Mixing: Idealized Filters Idealized Cyan Filter + Idealized Magenta Filter = Blue filter

revised SCI200 - Lecture 1040 Subtractive Color Mixing: Block Diagrams Subtractive Primaries: C = B + G = W - R M = B + R = W - G Y = G + R = W - B -G-R-B

revised SCI200 - Lecture 1041 Subtractive Color Mixing: Block Diagrams Basic Subtractive Rules: C + M = B C + Y = G M + Y = R C + M + Y = Bk (Black) -R -G-G -B -G -B -R -G-G -B

revised SCI200 - Lecture 1042 Subtractive Color Mixing Dyes & Pigments: Chemicals that absorb and/or reflect selective parts of the visible spectrum Ideal dyes & pigments follow the same rules as ideal filters (i.e., subtractive color mixtures) Real filters, dyes, and pigments often behave in complicated and (almost) unpredictable ways.

revised SCI200 - Lecture 1043 Subtractive Color Mixing Real filters, dyes & pigments: Usually smooth “corners” Sometimes complicated structure Rarely achieve trans- missions and reflectances of 100%

revised SCI200 - Lecture 1044 Subtractive Color Mixing Real filters, dyes & pigments: Can produce unexpected results The transmission of two or more filters in series is the product of the transmissions of each individual filter. For example: one filter with 70% transmission combined with another filter with 50% transmission produces a combined transmission of 35% 1 filter 2 identical filters 10 identical filters

revised SCI200 - Lecture 1045 Subtractive Color Mixing Real filters, dyes & pigments: Can produce unexpected results Combining filters or dyes with different transmittance functions can result in startling color shifts. blue dye yellow dye one-to-one mixture

revised SCI200 - Lecture 1046 Subtractive Color Mixing With subtractive colors the perceived color depends on the light source cool white flourescent bulb reflectance of a magenta object resulting intensity distribution, the product of (a) and (b).

revised SCI200 - Lecture 1047 Subtractive Color Mixing With subtractive colors the perceived color depends on the light source (example 2) a gray object a brown object In sunlight, the two objects at right have very different colors. Under an incandescent bulb, which emits much less blue light, the objects have very similar colors.

revised SCI200 - Lecture 1048 Subtractive Color Mixing Different light sources have different intensity distributions: Incandescent light bulb Deluxe Warm White Fluorescent bulb High Pressure Sodium Lamp

revised SCI200 - Lecture 1049 Subtractive Color Mixing Gamut of subtractive primaries: Gamut of color TV or computer monitor: Gamut of color slides:

revised SCI200 - Lecture 1050 Subtractive Color Mixing Printing inks: color is due to a combination of reflection and transmission:

revised SCI200 - Lecture 1051 Homework Discussion Translation between Textbook color triangle and 8 bit RGB Hue, especially “purples”

revised SCI200 - Lecture 1052 Homework Discussion  Translation between Textbook color triangle and 8 bit RGB  8 bit RGB is the color representation system used on most computer monitors and other LCD graphic displays  1 byte = 8 bits: =  Smallest number = 0 10  Largest number = 2 8 – 1 = 255  Each pixel is represented by 3 bytes  1 each for red (R), green (G), and blue (B)

revised SCI200 - Lecture 1053 Homework Discussion Translation between color triangle and 8 bit RGB r, g are “given” b = 1 – r – g Example: The point indicated r = 0.55, g = 0.2, b = = 0.25 Problem: Find the equivalent RGB representation

revised SCI200 - Lecture 1054 Homework Discussion Translation between color triangle and 8 bit RGB Point: r = 0.55, g = 0.2, b = = st Step: Identify brightest component r = 0.55  R = nd Step: Calculate the other two components: G = (g/r) × 255 = (0.2/0.55) × 255 = 93 B = (b/r) × 255 = (0.25/0.55) x 255 = bit representation: R = 255 G = 93 B = 116

revised SCI200 - Lecture 1055 Homework Discussion Translation between color triangle and 8 bit RGB Practice Problem #1: Locate this point on your color triangle r = 0.15, g = 0.25, b = 1 – r – g = ___________ 1 st Step: Identify brightest component 2 nd Step: Calculate the other two components: 8 bit representation: R = ____ G = ____ B = ____

revised SCI200 - Lecture 1056 Homework Discussion Translation between color triangle and 8 bit RGB Practice Problem #2: Determinre r, g, b from the indicated point: r = _______, g = _______, b = 1 – r – g = ___________ 1 st Step: Identify brightest component 2 nd Step: Calculate the other two components: 8 bit representation: R = ____ G = ____ B = ____

revised SCI200 - Lecture 1057 Homework Discussion Hue Color: r = 0.35, g = 0.55 b = 0.1 Dominant wavelength = 575 nm RGB: R = 162 G = 255 B = 46 G > R > B

revised SCI200 - Lecture 1058 Homework Discussion Hue Color: r = 0.35, g = 0.55, b = 0.1 RGB: R = 162 G = 255 B = 46 Lab: L = luminance a = red vs. green b = blue vs. yellow

revised SCI200 - Lecture 1059 Homework Discussion Hue Color: r = 0.40, g = 0.15, b = 0.45 Dominant wavelength = c545 nm

revised SCI200 - Lecture 1060 Homework Assignment Read Chapters 7 & 8 Homework Packet 10 –Due August 4 Lab on Thursday, July 28 (today) –Color Addition

revised SCI200 - Lecture 1061 Upcoming Labs Lab 7: Color Addition –July 28 Lab 8: Color Subtraction –August 4 Reminder: Last Exam –August 11