Jochen Triesch, UC San Diego, 1 Color Outline: visible light, photoreceptor space psychophysics of color matching color.

Slides:



Advertisements
Similar presentations
1 Color Kyongil Yoon VISA Color Chapter 6, “Computer Vision: A Modern Approach” The experience of colour Caused by the vision system responding.
Advertisements

Computer Vision Spring ,-685 Instructor: S. Narasimhan Wean 5403 T-R 3:00pm – 4:20pm Lecture #12.
Chapter 9: Color Vision. Overview of Questions How do we perceive 200 different colors with only three cones? What does someone who is “color-blind” see?
Computer Vision - A Modern Approach Set: Color Slides by D.A. Forsyth Causes of color The sensation of color is caused by the brain. Some ways to get this.
Color.
Computer Vision CS 776 Spring 2014 Color Prof. Alex Berg (Slide credits to many folks on individual slides)
Colour Reading: Chapter 6 Light is produced in different amounts at different wavelengths by each light source Light is differentially reflected at each.
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,
ECCV 2002 Removing Shadows From Images G. D. Finlayson 1, S.D. Hordley 1 & M.S. Drew 2 1 School of Information Systems, University of East Anglia, UK 2.
ICCV 2003 Colour Workshop 1 Recovery of Chromaticity Image Free from Shadows via Illumination Invariance Mark S. Drew 1, Graham D. Finlayson 2, & Steven.
Why is this hard to read. Unrelated vs. Related Color Unrelated color: color perceived to belong to an area in isolation (CIE 17.4) Related color: color.
School of Computing Science Simon Fraser University
Lecture 6 Color and Texture
HCI 530 – Seminar in Advanced Topics 10/8/2004Damian Schofield1 Assignment 1 Answer the following questions – I am looking for proof that you have understood.
Laurent Itti: CS599 – Computational Architectures in Biological Vision, USC Lecture 10: Color Perception. 1 Computational Architectures in Biological.
SWE 423: Multimedia Systems Chapter 4: Graphics and Images (2)
Computer Vision Color Marc Pollefeys COMP 256. Computer Vision Last class point source model N S N S.
What is color for?.
Capturing Light… in man and machine : Computational Photography Alexei Efros, CMU, Fall 2010.
Colors and sensors Slides from Bill Freeman, Fredo Durand, Rob Fergus, and David Forsyth, Alyosha Efros.
Introduction of the intrinsic image. Intrinsic Images The method of Finlayson & Hordley ( 2001 ) Two assumptions 1. the camera ’ s sensors are sufficiently.
1/22/04© University of Wisconsin, CS559 Spring 2004 Last Time Course introduction Image basics.
CS559-Computer Graphics Copyright Stephen Chenney Color Recap The physical description of color is as a spectrum: the intensity of light at each wavelength.
Why Care About Color? Accurate color reproduction is commercially valuable - e.g. Kodak yellow, painting a house Color reproduction problems increased.
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.
Colour in Computer Graphics Mel Slater. Outline: This time Introduction Spectral distributions Simple Model for the Visual System Simple Model for an.
Light, Color and Imaging. Light The Electromagnetic Spectrum: E = h.
Computer Vision Spring ,-685 Instructor: S. Narasimhan PH A18B T-R 10:30am – 11:50am Lecture #13.
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.
CS 376 Introduction to Computer Graphics 01 / 26 / 2007 Instructor: Michael Eckmann.
Image Processing Lecture 2 - Gaurav Gupta - Shobhit Niranjan.
1 Perception and VR MONT 104S, Fall 2008 Lecture 7 Seeing Color.
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.
Chapter 3: Colorimetry How to measure or specify color? Color dictionary?
Oct 10, Image Formation: Light Sources + Reflectance + Sensors Light is produced in different amounts at different wavelengths by each light source.
Computer Vision - A Modern Approach Set: Sources, shadows and shading Slides by D.A. Forsyth Sources and shading How bright (or what colour) are objects?
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.
03/05/03© 2003 University of Wisconsin Last Time Tone Reproduction If you don’t use perceptual info, some people call it contrast reduction.
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.
Color Processing : Rendering and Image Processing Alexei Efros …with most figures shamelessly stolen from Forsyth & Ponce and Gonzalez & Woods.
1 CSCE441: Computer Graphics: Color Models Jinxiang Chai.
Introduction to Computer Graphics
Color and Brightness Constancy Jim Rehg CS 4495/7495 Computer Vision Lecture 25 & 26 Wed Oct 18, 2002.
1 CSCE441: Computer Graphics: Color Models Jinxiang Chai.
1Ellen L. Walker 3D Vision Why? The world is 3D Not all useful information is readily available in 2D Why so hard? “Inverse problem”: one image = many.
H.-J. Bernhardt 2002 The CIE Standard Observer Early in the last century it became evident, that a way must be found to quantify the color sensation. Basic.
David Luebke 1 2/5/2016 Color CS 445/645 Introduction to Computer Graphics David Luebke, Spring 2003.
Chapter 9: Perceiving Color. Figure 9-1 p200 Figure 9-2 p201.
EECS 274 Computer Vision Sources, Shadows, and Shading.
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.
1 of 32 Computer Graphics Color. 2 of 32 Basics Of Color elements of color:
From local motion estimates to global ones - physiology:
Color Models Light property Color models.
MAN-522 Computer Vision Spring
Color September, 30.
(c) University of Wisconsin, CS559 Spring 2002
COSC579: Color and Perception
Computer Vision - A Modern Approach
© University of Wisconsin, CS559 Spring 2004
Feature description and matching
Color Representation Although we can differentiate a hundred different grey-levels, we can easily differentiate thousands of colors.
Computer Vision Lecture 4: Color
Outline Color perception Introduction Theories of color perception
Capturing Light… in man and machine
Color Model By : Mustafa Salam.
Color! Main Goals: Understand this thing: “Chromaticity diagram”
Presentation transcript:

Jochen Triesch, UC San Diego, 1 Color Outline: visible light, photoreceptor space psychophysics of color matching color spaces color constancy color in object recognition some lightness & color illusions

Jochen Triesch, UC San Diego, 2 Credits: major sources of material, including figures and slides were: Forsyth, D.A. and Ponce, J., Computer Vision: A Modern Approach, Prentice Hall, 2003 Mallot, H.-P., Computational Vision Gegenfurtner, K.R., Cortical Mechanism of Color Vision, Nature Reviews Neuroscience, vol. 4, 2003 Graham D. Finlayson, Steven D. Hordley, and Paul M. Hubel, Color by Correlation: A Simple, Unifying Framework for Color Constancy, IEEE Trans. PATTERN ANALYSIS AND MACHINE INTELLIGENCE, vol. 23, no. 11, November 2001 and various resources on the WWW

Jochen Triesch, UC San Diego, 3 Vision is really, really hard! forward problem (graphics) : from world to images has unique solution inverse problem (vision): from images to description of the world does not have unique solution: infinitely many scenes can give rise to the same image

Jochen Triesch, UC San Diego, 4 Visible Spectrum spectral radiance: radiance emitted in a range of wavelength [lambda, lambda + delta lambda]

Jochen Triesch, UC San Diego, 5 Black body radiators Construct a hot body with near-zero albedo (black body) Easiest way to do this is to build a hollow metal object with a tiny hole in it, and look at the hole. The spectral power distribution of light leaving this object is a simple function of temperature This leads to the notion of color temperature --- the temperature of a black body that would look the same

Jochen Triesch, UC San Diego, 6 Measurements of relative spectral power of sunlight, made by J. Parkkinen and P. Silfsten. Relative spectral power is plotted against wavelength in nm. The visible range is about 400nm to 700nm. The color names on the horizontal axis give the color names used for monochromatic light of the corresponding wavelength --- the “colors of the rainbow”. Mnemonic is “Richard of York got blisters in Venice”. Violet Indigo Blue Green Yellow Orange Red

Jochen Triesch, UC San Diego, 7 Relative spectral power of two standard illuminant models --- D65 models sunlight,and illuminant A models incandescent lamps. Relative spectral power is plotted against wavelength in nm. The visible range is about 400nm to 700nm. The color names on the horizontal axis give the color names used for monochromatic light of the corresponding wavelength --- the “colors of the rainbow”. Violet Indigo Blue Green Yellow Orange Red

Jochen Triesch, UC San Diego, 8 Measurements of relative spectral power of four different artificial illuminants, made by H.Sugiura. Relative spectral power is plotted against wavelength in nm. The visible range is about 400nm to 700nm.

Jochen Triesch, UC San Diego, 9 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.

Jochen Triesch, UC San Diego, 10 Helmholtz Helmholtz: three receptors Vision as unconscious inference

Jochen Triesch, UC San Diego, 11

Jochen Triesch, UC San Diego, 12

Jochen Triesch, UC San Diego, dim. Receptor Space cone excitation/photon catch, assuming linearity metamerism: different spectral distributions that lead to the same receptor activation appear identical

Jochen Triesch, UC San Diego, 14

Jochen Triesch, UC San Diego, 15 Hering: opponent colors

Jochen Triesch, UC San Diego, 16

Jochen Triesch, UC San Diego, 17

Jochen Triesch, UC San Diego, 18

Jochen Triesch, UC San Diego, 19

Jochen Triesch, UC San Diego, 20 Opponent channels and PCA Buchsbaum&Gottschalk (1983): PCA on cone excitations yields the following first three PCs: bright/dark, red/green, blue/yellow the opponent colors are a “natural” basis for representing the signal

Jochen Triesch, UC San Diego, 21 Cortical Representation of Color

Jochen Triesch, UC San Diego, 22 Psychophysical Color Space color matching experiments: “adjust intensities of the three primary sources to match the colors” spectrum of the primaries: Note: primaries must be chosen such that mixing of two of them can’t produce the third 3 stimulus values

Jochen Triesch, UC San Diego, 23 Subtractive matching Some colors can’t be matched like this: instead, must write M+a A = b B+c C This is subtractive matching. Interpret this as (-a, b, c) Problem for building monitors: Choose R, G, B such that positive linear combinations match a large set of colors

Jochen Triesch, UC San Diego, 24 Grassman’s Laws if we mix two testlights, then mixing the matches will match the result lights that are matched by the same set of weights match each other matching is linear: (k>0)

Jochen Triesch, UC San Diego, 25 spectral tri-stimulus values / color-matching function Question: how do you have to mix the three primaries to obtain the color perception produced by monochromatic light of wavelength lambda? If you know how to mix the primaries to obtain the color of light of lambda, under linear assumptions you can mix the primaries to obtain the color of any spectrum by decomposing it into its constituent wavelength:

Jochen Triesch, UC San Diego, 26 Linear color spaces A choice of primaries yields a linear color space --- the coordinates of a color are given by the weights of the primaries used to match it. Choice of primaries is equivalent to choice of color space. RGB: primaries are monochromatic energies are 645.2nm, 526.3nm, 444.4nm. CIE XYZ: Primaries are imaginary, but have other convenient properties. Color coordinates are (X,Y,Z), where X is the amount of the X primary, etc. Usually draw x, y, where x=X/(X+Y+Z) y=Y/(X+Y+Z)

Jochen Triesch, UC San Diego, 27 RGB: primaries are monochromatic, energies are 645.2nm, 526.3nm, 444.4nm. Color matching functions have negative parts -> some colors can be matched only subtractively.

Jochen Triesch, UC San Diego, 28 CIE XYZ: Color matching functions are positive everywhere, but primaries are imaginary. Usually draw x, y, where x=X/(X+Y+Z) y=Y/(X+Y+Z)

Jochen Triesch, UC San Diego, 29 A qualitative rendering of the CIE (x,y) space. The blobby region represents visible colors. There are sets of (x, y) coordinates that don’t represent real colors, because the primaries are not real lights (so that the color matching functions could be positive everywhere).

Jochen Triesch, UC San Diego, 30 A plot of the CIE (x,y) space. We show the spectral locus (the colors of monochromatic lights) and the black-body locus (the colors of heated black-bodies). I have also plotted the range of typical incandescent lighting.

Jochen Triesch, UC San Diego, 31 HSV Color Space

Jochen Triesch, UC San Diego, 32 Human Color Discrimination DimensionHueSaturationIntensity Perceivable steps ca. 200ca. 20ca. 500

Jochen Triesch, UC San Diego, 33 Land’s Famous Experiment

Jochen Triesch, UC San Diego, 34 Lightness Constancy Lightness constancy how light is the surface, independent of the brightness of the illuminant issues spatial variation in illumination absolute standard Human lightness constancy is very good Assume frontal 1D “Surface” slowly varying illumination quickly varying surface reflectance

Jochen Triesch, UC San Diego, 35 Horn’s version of “Retinex”

Jochen Triesch, UC San Diego, 36

Jochen Triesch, UC San Diego, 37 Lightness Constancy in 2D Differentiation, thresholding are easy integration isn’t problem - gradient field may no longer be a gradient field One solution Choose the function whose gradient is “most like” thresholded gradient This yields a minimization problem How do we choose the constant of integration? average lightness is grey lightest object is white ?

Jochen Triesch, UC San Diego, 38 Color Constancy

Jochen Triesch, UC San Diego, 39 the received light depends on both the spectral albedo of the surface and the spectral radiance of the illuminant

Jochen Triesch, UC San Diego, 40 Notice how the color of light at the camera varies with the illuminant color; here we have a uniform reflectance illuminated by five different lights, and the result plotted on CIE x,y

Jochen Triesch, UC San Diego, 41 Notice how the color of light at the camera varies with the illuminant color; here we have the blue flower illuminated by five different lights, and the result plotted on CIE x,y. Notice how it looks significantly more saturated under some lights.

Jochen Triesch, UC San Diego, 42 Notice how the color of light at the camera varies with the illuminant color; here we have a green leaf illuminated by five different lights, and the result plotted on CIE x,y

Jochen Triesch, UC San Diego, 43 Problem Statement You want to know the reflectances of the objects, but all you observe is the light reflected, which depends on the reflectances and the spectrum of the light source(s) the simplest case: flat scene (no shading), uniform illumination, lambertian objects even in this case the problem is underconstrained: more unknowns than equations to estimate them example: consider white surface under red light vs. red surface under white light need to introduce additional assumptions different assumptions give rise to different approaches/algorithms

Jochen Triesch, UC San Diego, 44 Some Assumptions there are surfaces of known reflectance in the environment (carry a color sample with you) the brightest patch in the image is white find specularities, use them to estimate spectrum of light source the average color of the scene is known it is known which lighting can give rise to what colors

Jochen Triesch, UC San Diego, 45 Grey World Assumption I Consider making a scatter plot of the colors of all the pixels in the current scene the grey world assumptions says that the bulk of the distribution should be centered around the black/white axis for a normal (white) illumination Idea: if it doesn’t fall there, find a transform that brings it there; hope for the best For example: extract first PC, shift and rotate cloud

Jochen Triesch, UC San Diego, 46 Grey World Assumption II Problem: the assumption is often violated, consider looking at a green meadow: you don’t want all the nice green to turn to grey! One approach: don’t consider full distribution but only which colors are present at all, i.e. a small patch of red somewhere in the scene gets the same “weight” as many pixels of a particular shade of green. But still: you need a good sampling of maybe 10 or so different surface colors to get good results Idea: accumulate these across time, make adaptation slow (time scale of minutes)

Jochen Triesch, UC San Diego, 47 Normalizing the Gamut Gamut: convex hull of pixel colors in an image assume you know the possible gamuts of scenes under normal (white) illumination Given a scene, look at its gamut. Under varying illumination it will not lie within the standard gamut find a transform that brings the convex hull of the transformed colors back in the standard

Jochen Triesch, UC San Diego, 48 A unifying correlational approach Finlayson, Hordley, Hubel (2001): Basic approach: discretize chromaticity space into NxN bins (ignore brightness) make probabilistic model of which colors can show up under which of a finite set of illuminations, this gives a “correlation matrix” W for new scene: collect all the colors showing up find light source that is most likely to have generated this combination of colors

Jochen Triesch, UC San Diego, 49 Building the correlation matrix W NxN chromaticity space (2d) chromaticity illuminant

Jochen Triesch, UC San Diego, 50 To estimate illuminant in a scene: first, calculate histogram of colors present in image thresholding: which color is present at all

Jochen Triesch, UC San Diego, 51 calculate “likelihood” of each light source w/ dot product estimated light source is the one maximizing likelihood N ill x2 matrix of illuminant chromaticities N ill x1 matrix ill. likelihoods

Jochen Triesch, UC San Diego, 52

Jochen Triesch, UC San Diego, 53 When is this justified? Assume you know. Then use Bayes rule: assume chromaticities independent, ignore denominator If we assume illuminants are equally likely:

Jochen Triesch, UC San Diego, 54 Now define log likelihood: finally, define: Note: we have likelihood of each illuminant, not just max.

Jochen Triesch, UC San Diego, 55 Notes: this method is very simple… … but it generalizes a number of other methods e.g., for M = I, we obtain a grey world method: can be written as: every pixel votes for its color being the ill. color thresholded version (large surfaces don’t dominate):

Jochen Triesch, UC San Diego, 56 Notes, cont’d: e.g., for M For (ij) in (0,1) such that M For (ij) = 1 iff color i can be observed under illumination j, we get a gamut mapping technique likelihood now is: many surfaces will have same (maximal, N surf ) correlation, just take the mean of all of those by calculating can also do a 2d version of Gamut mapping also relations to other methods

Jochen Triesch, UC San Diego, 57 Performance and Examples

Jochen Triesch, UC San Diego, 58

Jochen Triesch, UC San Diego, 59

Jochen Triesch, UC San Diego, 60 Color in Object Recognition Human Vision: color improves object recognition and scene memory object recognition influences color perception: banana- shaped objects look slightly more yellow (?) synesthesia, e.g. color-grapheme Computer Vision: for constant illumination: color very helpful, in fact some researchers try to recognize objects only with color! for varying illumination: even without color constancy mechanisms color can be a helpful additional cue

Jochen Triesch, UC San Diego, 61 Derain

Jochen Triesch, UC San Diego, 62 Example: Cluttered Scenes 11 objects, 70 scenes with 190 placed objects, 50% with complex backgrounds, object models have Gabor and color features which matching is performed in stereo image pairs which gives disparity of object Triesch&Eckes (1998)

Jochen Triesch, UC San Diego, 63

Jochen Triesch, UC San Diego, 64 Example results: Extension with color features and matching in stereo image pairs drastically improves performance

Jochen Triesch, UC San Diego, 65 Example: Hand Postures Why hand postures? sign language gestures (HCI) action recognition very challenging: complex backgrounds, strong deformations Triesch&von der Malsburg (2001)

Jochen Triesch, UC San Diego, 66 train on 72 images, test on 942 images Result: error rates halved by integrating color: simple background: 93% vs. 83% complex background 86% vs. 70% model graphskin color Graphs use texture, color, and color-texture features types test image

Jochen Triesch, UC San Diego, 67 A Robot Vision System

Jochen Triesch, UC San Diego, 68 Lightness & Color Illusions Hermann grid:

Jochen Triesch, UC San Diego, 69 “double” illusion: illusory circle composed of illusory bright patches at the intersections

Jochen Triesch, UC San Diego, 70 Mach bands:

Jochen Triesch, UC San Diego, 71 Discounting slowly varying change: Craik-O’Brian- Cornsweet illusion

Jochen Triesch, UC San Diego, 72 Discounting slowly varying change: Craik-O’Brian- Cornsweet illusion

Jochen Triesch, UC San Diego, 73 Context effects:

Jochen Triesch, UC San Diego, 74 Boynton illusion:

Jochen Triesch, UC San Diego, 75 Bezold illusion & color assimilation: