color
play

Color Reading: Chapter 6, Forsyth & Ponce Optional reading: - PowerPoint PPT Presentation

Color Reading: Chapter 6, Forsyth & Ponce Optional reading: Chapter 4 of Wandell, Foundations of Vision, Sinauer, 1995 has a good treatment of this. Feb. 19, 2004 MIT 6.891 Prof. Freeman for Prof. Darrell Why does a


  1. Color • Reading: – Chapter 6, Forsyth & Ponce • Optional reading: – Chapter 4 of Wandell, Foundations of Vision, Sinauer, 1995 has a good treatment of this. Feb. 19, 2004 MIT 6.891 Prof. Freeman for Prof. Darrell

  2. Why does a visual system need color? http://www.hobbylinc.com/gr/pll/pll5019.jpg

  3. Why does a visual system need color? (an incomplete list…) • To tell what food is edible. • To distinguish material changes from shading changes. • To group parts of one object together in a scene. • To find people’s skin. • Check whether a person’s appearance looks normal/healthy. • To compress images

  4. Lecture outline • Color physics. • Color physics. • Color perception and color matching. • Color perception and color matching..

  5. color

  6. Spectral colors http://hyperphysics.phy-astr.gsu.edu/hbase/vision/specol.html#c2

  7. Radiometry (review) θ , i φ i θ , e φ e Horn, 1986 radiance θ φ L ( , ) = θ φ θ φ = BRDF f ( , , , ) e e i i e e θ φ E ( , ) i i irradiance

  8. Radiometry for colour • All definitions are now “per unit wavelength” • All units are now “per unit wavelength” • All terms are now “spectral” • Radiance becomes spectral radiance – watts per square meter per steradian per unit wavelength • Irradiance becomes spectral irradiance – watts per square meter per unit wavelength

  9. θ φ λ , , i i Radiometry θ φ λ , , for color e e Horn, 1986 Spectral radiance θ φ λ L ( , , ) = θ φ θ φ λ = BRDF f ( , , , , ) e e i i e e θ φ λ E ( , , ) i i Spectral irradiance

  10. Simplified rendering models: reflectance Often are more interested in relative spectral composition than in overall intensity, so the spectral BRDF computation simplifies a wavelength-by-wavelength multiplication of relative energies. = .* Foundations of Vision, by Brian Wandell, Sinauer Assoc., 1995

  11. Simplified rendering models: transmittance = .* Foundations of Vision, by Brian Wandell, Sinauer Assoc., 1995

  12. How measure those spectra: Spectrophotometer (just like Newton’s diagram…) Foundations of Vision, by Brian Wandell, Sinauer Assoc., 1995

  13. Two illumination spectra Blue sky Tungsten light bulb Foundations of Vision, by Brian Wandell, Sinauer Assoc., 1995

  14. Some reflectance spectra Spectral albedoes for several different leaves, with color names attached. Notice that different colours typically have different spectral albedo, but that different spectral albedoes may result in the same perceived color (compare the two whites). Spectral albedoes are typically quite smooth functions. Measurements by E.Koivisto. Forsyth, 2002

  15. Color names for cartoon spectra cyan red 400 500 600 700 nm 400 500 600 700 nm magenta green 400 500 600 700 nm 400 500 600 700 nm yellow blue 400 500 600 700 nm 400 500 600 700 nm

  16. Additive color mixing When colors combine by red adding the color spectra. Examples that follow this 400 500 600 700 nm mixing rule: CRT phosphors, multiple projectors aimed at a screen, Polachrome slide film. green Red and green make… 400 500 600 700 nm yellow Yellow! 400 500 600 700 nm

  17. Subtractive color mixing When colors combine by cyan multiplying the color spectra. Examples that follow this mixing rule: most photographic 400 500 600 700 nm films, paint, cascaded optical yellow filters, crayons. Cyan and yellow (in crayons, called “blue” and yellow) 400 500 600 700 nm make… green Green! 400 500 600 700 nm

  18. demos • Additive color • Subtractive color

  19. Low-dimensional models for color spectra ω       M M M M       1 λ = λ λ λ ω e ( ) E ( ) E ( ) E ( )       1 2 3 2       ω M M M M       3 How to find a linear model for color spectra: --form a matrix, D, of measured spectra, 1 spectrum per column. --[u, s, v] = svd(D) satisfies D = u*s*v‘ --the first n columns of u give the best (least-squares optimal) n-dimensional linear bases for the data, D: D ≈ u (:, 1 : n ) * s ( 1 : n , 1 : n ) * v ( 1 : n , :)'

  20. Basis functions for Macbeth color checker Foundations of Vision, by Brian Wandell, Sinauer Assoc., 1995

  21. n-dimensional linear models for color spectra n = 3 n = 2 n = 1 Foundations of Vision, by Brian Wandell, Sinauer Assoc., 1995

  22. Outline • Color physics. • Color perception and color matching.

  23. Why specify color numerically? • Accurate color reproduction is • Color reproduction commercially valuable problems increased by – Many products are identified prevalence of digital by color (“golden” arches); imaging - eg. digital • Few color names are widely libraries of art. recognized by English speakers - – How do we ensure that everyone sees the same – About 10; other languages color? have fewer/more, but not many more. – It’s common to disagree on appropriate color names. Forsyth & Ponce

  24. Color standards are important in industry

  25. An assumption that sneaks in here • We know color appearance really depends on: – The illumination – Your eye’s adaptation level – The colors and scene interpretation surrounding the observed color. • But for now we will assume that the spectrum of the light arriving at your eye completely determines the perceived color.

  26. Color matching experiment Foundations of Vision, by Brian Wandell, Sinauer Assoc., 1995

  27. Color matching experiment 1

  28. Color matching experiment 1 p 1 p 2 p 3

  29. Color matching experiment 1 p 1 p 2 p 3

  30. Color matching experiment 1 The primary color amounts needed for a match p 1 p 2 p 3

  31. Color matching experiment 2

  32. Color matching experiment 2 p 1 p 2 p 3

  33. Color matching experiment 2 p 1 p 2 p 3

  34. Color matching experiment 2 The primary color We say a amounts needed “negative” for a match: amount of p 2 was needed to make the match, because we p 1 p 2 p 3 added it to the test color’s side. p 1 p 2 p 3 p 1 p 2 p 3

  35. Foundations of Vision, by Brian Wandell, Sinauer Assoc., 1995

  36. Grassman’s Laws • For color matches: – symmetry: U=V <=>V=U – transitivity: U=V and V=W => U=W – proportionality: U=V <=> tU=tV – additivity: if any two (or more) of the statements U=V, W=X, (U+W)=(V+X) are true, then so is the third • These statements are as true as any biological law. They mean that additive color matching is linear. Forsyth & Ponce

  37. Measure color by color-matching paradigm • Pick a set of 3 primary color lights. • Find the amounts of each primary, e 1 , e 2 , e 3 , needed to match some spectral signal, t. • Those amounts, e 1 , e 2 , e 3, describe the color of t. If you have some other spectral signal, s, and s matches t perceptually, then e 1 , e 2 , e 3 will also match s. • Why this is useful—it lets us: – Predict the color of a new spectral signal – Translate to representations using other primary lights.

  38. How to do this, mathematically λ λ λ p ( ), p ( ), p ( ) • Pick a set of primaries, 1 2 3 λ λ 3 λ c ( ), c ( ), c ( ) • Measure the amount of each primary, 1 2 ( λ t ) needed to match a monochromatic light, λ at each spectral wavelength (pick some spectral step size).

  39. Color matching functions for a particular set of monochromatic primaries p 1 = 645.2 nm p 2 = 525.3 nm p 3 = 444.4 nm Foundations of Vision, by Brian Wandell, Sinauer Assoc., 1995

  40. Using the color matching functions to predict the primary match to a new spectral signal Store the color matching functions in the rows of the matrix, C λ λ   c ( ) c ( ) L   1 1 1 N = λ λ C c ( ) c ( )   L 2 1 2 N   λ λ c ( ) c ( ) L   3 1 3 N Let the new spectral signal to be characterized be the vector t. λ   t ( )   1 r Then the amounts of each primary needed to = t   M match t are: C r   t λ t ( )   N

  41. How do you translate colors between different systems of primaries? p 1 = (0 0 0 0 0… 0 1 0) T p’ 1 = (0 0.2 0.3 4.5 7 …. 2.1) T p 2 = (0 0 … 0 1 0 ...0 0) T p’ 2 = (0.1 0.44 2.1 … 0.3 0) T p 3 = (0 1 0 0 … 0 0 0 0) T p’ 3 = (1.2 1.7 1.6 …. 0 0) T Primary spectra, P Primary spectra, P’ Color matching functions, C Color matching functions, C’ Any input spectrum, t C r r The color of t, as = t CP ' C ' t described by the primaries, P. A perceptual match to t, made using the primaries P’ The color of that match to t, described by the primaries, P.

  42. So color matching functions translate like this: r r But this holds for any = C t CP ' C ' t From previous slide input spectrum, t, so… C = CP ' C ' C P’ a 3x3 matrix P’ are the old primaries C are the new primaries’ color matching functions

Recommend


More recommend