Color. Phillip Otto Runge ( )

Similar documents
Colour Reading: Chapter 6. Black body radiators

Lecture #2: Color and Linear Algebra pt.1

1. Final Projects 2. Radiometry 3. Color. Outline

Introduction to color science

Color. Reading: Optional reading: Chapter 6, Forsyth & Ponce. Chapter 4 of Wandell, Foundations of Vision, Sinauer, 1995 has a good treatment of this.

Lecture 1 Image Formation.

Color Vision. Spectral Distributions Various Light Sources

Why does a visual system need color? Color. Why does a visual system need color? (an incomplete list ) Lecture outline. Reading: Optional reading:

(0, 1, 1) (0, 1, 1) (0, 1, 0) What is light? What is color? Terminology

Lenses: Focus and Defocus

Light. Properties of light. What is light? Today What is light? How do we measure it? How does light propagate? How does light interact with matter?

Reading. 2. Color. Emission spectra. The radiant energy spectrum. Watt, Chapter 15.

Light. Computer Vision. James Hays

Color. Computational Photography MIT Feb. 14, 2006 Bill Freeman and Fredo Durand

Image Formation. Camera trial #1. Pinhole camera. What is an Image? Light and the EM spectrum The H.V.S. and Color Perception

Digital Image Processing COSC 6380/4393. Lecture 19 Mar 26 th, 2019 Pranav Mantini

CS4670: Computer Vision

Computer Vision Course Lecture 02. Image Formation Light and Color. Ceyhun Burak Akgül, PhD cba-research.com. Spring 2015 Last updated 04/03/2015

CS635 Spring Department of Computer Science Purdue University

CSE 167: Lecture #6: Color. Jürgen P. Schulze, Ph.D. University of California, San Diego Fall Quarter 2011

CS6670: Computer Vision

The Elements of Colour

CSE 167: Lecture #6: Color. Jürgen P. Schulze, Ph.D. University of California, San Diego Fall Quarter 2012

Lighting. Camera s sensor. Lambertian Surface BRDF

Color to Binary Vision. The assignment Irfanview: A good utility Two parts: More challenging (Extra Credit) Lighting.

Announcements. Light. Properties of light. Light. Project status reports on Wednesday. Readings. Today. Readings Szeliski, 2.2, 2.3.

CS5670: Computer Vision

Lecture 11. Color. UW CSE vision faculty

CS6670: Computer Vision

The Display pipeline. The fast forward version. The Display Pipeline The order may vary somewhat. The Graphics Pipeline. To draw images.

Announcements. Lighting. Camera s sensor. HW1 has been posted See links on web page for readings on color. Intro Computer Vision.

Physics-based Methods in Vision

CS 4495 Computer Vision. Segmentation. Aaron Bobick (slides by Tucker Hermans) School of Interactive Computing. Segmentation

Announcements. Camera Calibration. Thin Lens: Image of Point. Limits for pinhole cameras. f O Z

CSE 167: Introduction to Computer Graphics Lecture #6: Colors. Jürgen P. Schulze, Ph.D. University of California, San Diego Fall Quarter 2013

this is processed giving us: perceived color that we actually experience and base judgments upon.

Reading. 4. Color. Outline. The radiant energy spectrum. Suggested: w Watt (2 nd ed.), Chapter 14. Further reading:

Chapter 5 Extraction of color and texture Comunicação Visual Interactiva. image labeled by cluster index

Global Illumination. Frank Dellaert Some slides by Jim Rehg, Philip Dutre

Digital Image Processing

ECE-161C Color. Nuno Vasconcelos ECE Department, UCSD (with thanks to David Forsyth)

Spectral Color and Radiometry

Colour computer vision: fundamentals, applications and challenges. Dr. Ignacio Molina-Conde Depto. Tecnología Electrónica Univ.

2003 Steve Marschner 7 Light detection discrete approx. Cone Responses S,M,L cones have broadband spectral sensitivity This sum is very clearly a dot

Illumination and Shading

COSC579: Scene Geometry. Jeremy Bolton, PhD Assistant Teaching Professor

Chapter 1. Light and color

VISUAL SIMULATING DICHROMATIC VISION IN CIE SPACE

Color and Shading. Color. Shapiro and Stockman, Chapter 6. Color and Machine Vision. Color and Perception

CSE 167: Lecture #7: Color and Shading. Jürgen P. Schulze, Ph.D. University of California, San Diego Fall Quarter 2011

What is color? What do we mean by: Color of an object Color of a light Subjective color impression. Are all these notions the same?

Analysis of Binary Images

CHAPTER 3 COLOR MEASUREMENT USING CHROMATICITY DIAGRAM - SOFTWARE

Lecture 16 Color. October 20, 2016

Estimating the wavelength composition of scene illumination from image data is an

Illumination and Reflectance

Fall 2015 Dr. Michael J. Reale

Computational Perception. Visual Coding 3

Color. making some recognition problems easy. is 400nm (blue) to 700 nm (red) more; ex. X-rays, infrared, radio waves. n Used heavily in human vision

Image Formation. Ed Angel Professor of Computer Science, Electrical and Computer Engineering, and Media Arts University of New Mexico

COLOR FIDELITY OF CHROMATIC DISTRIBUTIONS BY TRIAD ILLUMINANT COMPARISON. Marcel P. Lucassen, Theo Gevers, Arjan Gijsenij

Visual areas in the brain. Image removed for copyright reasons.

Causes of color. Radiometry for color

Image Analysis and Formation (Formation et Analyse d'images)

INTRODUCTION. Slides modified from Angel book 6e

Mech 296: Vision for Robotic Applications

Lecture 2 5 Aug 2004

Image Processing. Color

MITPress NewMath.cls LAT E X Book Style Size: 7x9 September 12, :37pm. Contents

Modeling Light. On Simulating the Visual Experience

Introduction to Computer Graphics with WebGL

CS681 Computational Colorimetry

CS452/552; EE465/505. Color Display Issues

Computer Vision. The image formation process

MODELING LED LIGHTING COLOR EFFECTS IN MODERN OPTICAL ANALYSIS SOFTWARE LED Professional Magazine Webinar 10/27/2015

2%34 #5 +,,% ! # %& ()% #% +,,%. & /%0%)( 1 ! # %&# (&)# +, %& ./01 /1&2% # /&

Digital Image Processing. Introduction

A New Time-Dependent Tone Mapping Model

Announcements. Analysis of Binary Images. Color Reflectance

Local Linear Models for Improved von Kries Adaptation

Chapter 4 Color in Image and Video

Visualisatie BMT. Rendering. Arjan Kok

ELEC Dr Reji Mathew Electrical Engineering UNSW

Physical Color. Color Theory - Center for Graphics and Geometric Computing, Technion 2

3D graphics, raster and colors CS312 Fall 2010

Computer Graphics. Bing-Yu Chen National Taiwan University The University of Tokyo

Physics-based Vision: an Introduction

Lecture #13. Point (pixel) transformations. Neighborhood processing. Color segmentation

Mu lt i s p e c t r a l

Low-level Vision Processing Algorithms Speaker: Ito, Dang Supporter: Ishii, Toyama and Y. Murakami

Lecture 1. Computer Graphics and Systems. Tuesday, January 15, 13

Introduction to Computer Vision. Week 8, Fall 2010 Instructor: Prof. Ko Nishino

Visible Color. 700 (red) 580 (yellow) 520 (green)

Lecture 12 Color model and color image processing

An Algorithm to Determine the Chromaticity Under Non-uniform Illuminant

Color Appearance in Image Displays. O Canada!

S U N G - E U I YO O N, K A I S T R E N D E R I N G F R E E LY A VA I L A B L E O N T H E I N T E R N E T

The exam begins at 2:40pm and ends at 4:00pm. You must turn your exam in when time is announced or risk not having it accepted.

CS770/870 Spring 2017 Color and Shading

When this experiment is performed, subjects find that they can always. test field. adjustable field

Transcription:

Color Phillip Otto Runge (1777-1810)

Overview The nature of color Color processing in the human visual system Color spaces Adaptation and constancy White balance Uses of color in computer vision

What is color? Color is a psychological property of our visual experiences when we look at objects and lights, not a physical property of those objects or lights (S. Palmer, Vision Science: Photons to Phenomenology) Color is the result of interaction between physical light in the environment and our visual system Wassily Kandinsky (1866-1944), Murnau Street with Women, 1908

Electromagnetic spectrum Human Luminance Sensitivity Function Why do we see light at these wavelengths? Because that s where the sun radiates electromagnetic energy

The Physics of Light Any source of light can be completely described physically by its spectrum: the amount of energy emitted (per time unit) at each wavelength 400-700 nm. Relative spectral power Stephen E. Palmer, 2002

The Physics of Light Some examples of the spectra of light sources A. Ruby Laser B. Gallium Phosphide Crystal 400 500 600 700 Wavelength (nm.) D. Normal Daylight # Rel. Photons power Rel. # Photons power Wavelength (nm.) 400 500 600 700 C. Tungsten Lightbulb Rel. # Photons power Rel. # Photons power 400 500 600 700 400 500 600 700 Stephen E. Palmer, 2002

The Physics of Light Some examples of the reflectance spectra of surfaces % Light Reflected Red Yellow Blue Purple 400 700 400 700 400 700 400 700 Wavelength (nm) Stephen E. Palmer, 2002

Interaction of light and surfaces Observed color is the result of interaction of light source spectrum with surface reflectance Spectral radiometry All definitions and units are now per unit wavelength All terms are now spectral

The Eye The human eye is a camera! Iris - colored annulus with radial muscles Pupil - the hole (aperture) whose size is controlled by the iris Lens - changes shape by using ciliary muscles (to focus on objects at different distances) What s the film? photoreceptor cells (rods and cones) in the retina Slide by Steve Seitz

Density of rods and cones pigment molecules Rods and cones are non-uniformly distributed on the retina Rods responsible for intensity, cones responsible for color Fovea - Small region (1 or 2 ) at the center of the visual field containing the highest density of cones (and no rods). Less visual acuity in the periphery many rods wired to the same neuron Slide by Steve Seitz

Rod / Cone sensitivity Why can t we read in the dark? Slide by A. Efros

Physiology of Color Vision Three kinds of cones: Ratio of L to M to S cones: approx. 10:5:1 Almost no S cones in the center of the fovea Stephen E. Palmer, 2002

Color interpolation in human visual system Brewster s colors: evidence of interpolation from spatially offset color samples Scale relative to human photoreceptor size: each line covers about 7 photoreceptors Source: F. Durand

Color perception M L Power S Rods and cones act as filters on the spectrum To get the output of a filter, multiply its response curve by the spectrum, integrate over all wavelengths Each cone yields one number Wavelength Q: How can we represent an entire spectrum with 3 numbers? A: We can t! Most of the information is lost. As a result, two different spectra may appear indistinguishable» such spectra are known as metamers Slide by Steve Seitz

Spectra of some real-world surfaces metamers

Metamers

Standardizing color experience We would like to understand which spectra produce the same color sensation from people under similar viewing conditions Color matching experiments Foundations of Vision, by Brian Wandell, Sinauer Assoc., 1995

Color matching experiment 1 Source: W. Freeman

Color matching experiment 1 p 1 p 2 p 3 Source: W. Freeman

Color matching experiment 1 p 1 p 2 p 3 Source: W. Freeman

Color matching experiment 1 The primary color amounts needed for a match p 1 p 2 p 3 Source: W. Freeman

Color matching experiment 2 Source: W. Freeman

Color matching experiment 2 p 1 p 2 p 3 Source: W. Freeman

Color matching experiment 2 p 1 p 2 p 3 Source: W. Freeman

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

Trichromacy In color matching experiments, most people can match any given light with three primaries Primaries must be independent For the same light and same primaries, most people select the same weights Exception: color blindness Trichromatic color theory Three numbers seem to be sufficient for encoding color Dates back to 18 th century (Thomas Young)

Grassman s Laws Color matching appears to be linear If two test lights can be matched with the same set of weights, then they match each other: Suppose A = u 1 P 1 + u 2 P 2 + u 3 P 3 and B = u 1 P 1 + u 2 P 2 + u 3 P 3. Then A = B. If we mix two test lights, then mixing the matches will match the result: Suppose A = u 1 P 1 + u 2 P 2 + u 3 P 3 and B = v 1 P 1 + v 2 P 2 + v 3 P 3. Then A+B = (u 1 +v 1 ) P 1 + (u 2 +v 2 ) P 2 + (u 3 +v 3 ) P 3. If we scale the test light, then the matches get scaled by the same amount: Suppose A = u 1 P 1 + u 2 P 2 + u 3 P 3. Then ka = (ku 1 ) P 1 + (ku 2 ) P 2 + (ku 3 ) P 3.

Linear color spaces Defined by a choice of three primaries The coordinates of a color are given by the weights of the primaries used to match it Matching functions: weights required to match single-wavelength light sources mixing two lights produces colors that lie along a straight line in color space mixing three lights produces colors that lie within the triangle they define in color space

How to compute the color match for any color signal for any set of primary colors p 1 p 2 p 3 Pick a set of primaries, p1( λ ), p2( λ ), p3( λ ) c λ ), c ( ( λ ), c 3 ( 0 Measure the amount of each primary, 0 2 0 needed to match a monochromatic light, t ( λ 0 ) at each spectral wavelength λ 0 (pick some spectral step size). These are the color matching functions. 1 λ ) Source: W. Freeman

Using color matching functions to predict the matches for a new spectral signal We know that a monochromatic light of wavelength λ i will be matched by the amounts c1 ( λi ), c2( λi ), c3( λi ) of each primary. And any spectral signal can be thought of as a linear combination of very many monochromatic lights, with the linear coefficient given by the spectral power at each wavelength. r t t( λ 1 ) = M t( λn ) Source: W. Freeman

Using color matching functions to predict the primary match to a new spectral signal = ) ( ) ( ) ( ) ( ) ( ) ( 3 1 3 2 1 2 1 1 1 N N N c c c c c c C λ λ λ λ λ λ L L L Store the color matching functions in the rows of the matrix, C = ) ( ( 1 ) N t t t λ λ M r Let the new spectral signal be described by the vector t. Then the amounts of each primary needed to match t are: t C e r r = The components 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 (by Grassman s Laws) Source: W. Freeman

Linear color spaces: RGB Primaries are monochromatic lights (for monitors, they correspond to the three types of phosphors) Subtractive matching required for some wavelengths RGB matching functions

Comparison of color matching functions with best 3x3 transformation of cone responses Foundations of Vision, by Brian Wandell, Sinauer Assoc., 1995

Linear color spaces: CIE XYZ Established in 1931 by the International Commission on Illumination Primaries are imaginary, but matching functions are everywhere positive 2D visualization: draw (x,y), where x = X/(X+Y+Z), y = Y/(X+Y+Z) Matching functions http://en.wikipedia.org/wiki/cie_1931_color_space

Uniform color spaces Unfortunately, differences in x,y coordinates do not reflect perceptual color differences CIE u v is a projective transform of x,y to make the ellipses more uniform McAdam ellipses: Just noticeable differences in color

Uniform color spaces Unfortunately, differences in x,y coordinates do not reflect perceptual color differences CIE u v is a projective transform of x,y to make the ellipses more uniform Next generation: CIE L*a*b* (Koenderink: an awful mix of magical numbers and arbitrary functions that somehow fit the eye measure )

Nonlinear color spaces: HSV Perceptually meaningful dimensions: Hue, Saturation, Value (Intensity) RGB cube on its vertex

Color perception Color/lightness constancy The ability of the human visual system to perceive the intrinsic reflectance properties of the surfaces despite changes in illumination conditions Instantaneous effects Simultaneous contrast: background color affects perceived color of the target Mach bands Gradual effects Light/dark adaptation Chromatic adaptation Afterimages

Lightness constancy White in light and in shadow J. S. Sargent, The Daughters of Edward D. Boit, 1882 Slide by F. Durand

Lightness constancy http://web.mit.edu/persci/people/adelson/checkershadow_illusion.html

Lightness constancy Possible explanations Simultaneous contrast Reflectance edges vs. illumination edges http://web.mit.edu/persci/people/adelson/checkershadow_illusion.html

Simultaneous contrast/mach bands Source: D. Forsyth

Chromatic adaptation The visual system changes its sensitivity depending on the luminances prevailing in the visual field The exact mechanism is poorly understood Adapting to different brightness levels Changing the size of the iris opening (i.e., the aperture) changes the amount of light that can enter the eye Think of walking into a building from full sunshine Adapting to different color temperature The receptive cells on the retina change their sensitivity For example: if there is an increased amount of red light, the cells receptive to red decrease their sensitivity until the scene looks white again We actually adapt better in brighter scenes: This is why candlelit scenes still look yellow http://www.schorsch.com/kbase/glossary/adaptation.html

Chromatic adaptation

Useful reference Stephen E. Palmer, Vision Science: Photons to Phenomenology, MIT Press, 1999

White balance When looking at a picture on screen or print, we adapt to the illuminant of the room, not to that of the scene in the picture When the white balance is not correct, the picture will have an unnatural color cast incorrect white balance correct white balance http://www.cambridgeincolour.com/tutorials/white-balance.htm

White balance Film cameras: Different types of film or different filters for different illumination conditions Digital cameras: Automatic white balance White balance settings corresponding to several common illuminants Custom white balance using a reference object http://www.cambridgeincolour.com/tutorials/white-balance.htm

White balance Von Kries adaptation Multiply each channel by a gain factor Note that the light source could have a more complex effect, corresponding to an arbitrary 3x3 matrix

White balance Von Kries adaptation Multiply each channel by a gain factor Note that the light source could have a more complex effect, corresponding to an arbitrary 3x3 matrix Best way: gray card Take a picture of a neutral object (white or gray) Deduce the weight of each channel If the object is recoded as r w, g w, b w use weights 1/r w, 1/g w, 1/b w

White balance Without gray cards: we need to guess which pixels correspond to white objects Gray world assumption The image average r ave, g ave, b ave is gray Use weights 1/r ave, 1/g ave, 1/b ave Brightest pixel assumption Highlights usually have the color of the light source Use weights inversely proportional to the values of the brightest pixels Gamut mapping Gamut: convex hull of all pixel colors in an image Find the transformation that matches the gamut of the image to the gamut of a typical image under white light Use image statistics, learning techniques

White balance by recognition Key idea: For each of the semantic classes present in the image, compute the illuminant that transforms the pixels assigned to that class so that the average color of that class matches the average color of the same class in a database of typical images J. Van de Weijer, C. Schmid and J. Verbeek, Using High-Level Visual Information for Color Constancy, ICCV 2007.

Mixed illumination When there are several types of illuminants in the scene, different reference points will yield different results Reference: moon Reference: stone http://www.cambridgeincolour.com/tutorials/white-balance.htm

Spatially varying white balance Input Alpha map Output E. Hsu, T. Mertens, S. Paris, S. Avidan, and F. Durand, Light Mixture Estimation for Spatially Varying White Balance, SIGGRAPH 2008

Uses of color in computer vision Color histograms for indexing and retrieval Swain and Ballard, Color Indexing, IJCV 1991.

Uses of color in computer vision Skin detection M. Jones and J. Rehg, Statistical Color Models with Application to Skin Detection, IJCV 2002.

Uses of color in computer vision Image segmentation and retrieval C. Carson, S. Belongie, H. Greenspan, and Ji. Malik, Blobworld: Image segmentation using Expectation-Maximization and its application to image querying, ICVIS 1999.

Uses of color in computer vision Robot soccer M. Sridharan and P. Stone, Towards Eliminating Manual Color Calibration at RoboCup. RoboCup-2005: Robot Soccer World Cup IX, Springer Verlag, 2006 Source: K. Grauman

Uses of color in computer vision Building appearance models for tracking D. Ramanan, D. Forsyth, and A. Zisserman. Tracking People by Learning their Appearance. PAMI 2007.

Uses of color in computer vision Judging visual realism J.-F. Lalonde and A. Efros. Using Color Compatibility for Assessing Image Realism. ICCV 2007.