Color. April 16 th, Yong Jae Lee UC Davis

Similar documents
Color April 16 th, 2015

Today. Color. Color and light. Color and light. Electromagnetic spectrum 2/7/2011. CS376 Lecture 6: Color 1. What is color?

Announcements. Color. Last time. Today: Color. Color and light. Review questions

CS 1699: Intro to Computer Vision. Color. Prof. Adriana Kovashka University of Pittsburgh September 22, 2015

Lecture: Color. Juan Carlos Niebles and Ranjay Krishna Stanford AI Lab. Lecture 1 - Stanford University

CMPSCI 670: Computer Vision! Color. University of Massachusetts, Amherst September 15, 2014 Instructor: Subhransu Maji

Color. Phillip Otto Runge ( )

Capturing Light in man and machine

Capturing Light in man and machine

Capturing Light in man and machine

Capturing Light in man and machine

Capturing Light in man and machine. Some figures from Steve Seitz, Steve Palmer, Paul Debevec, and Gonzalez et al.

Capturing Light in man and machine

Lecture 2: Color, Filtering & Edges. Slides: S. Lazebnik, S. Seitz, W. Freeman, F. Durand, D. Forsyth, D. Lowe, B. Wandell, S.Palmer, K.

Frequencies and Color

Waitlist. We ll let you know as soon as we can. Biggest issue is TAs

Motion illusion, rotating snakes

Oversubscription. Sorry, not fixed yet. We ll let you know as soon as we can.

Light and Color. Computer Vision Jia-Bin Huang, Virginia Tech. Empire of Light, 1950 by Rene Magritte

Capturing light and color

Light. intensity wavelength. Light is electromagnetic waves Laser is light that contains only a narrow spectrum of frequencies

Color and Color Model. Chap. 12 Intro. to Computer Graphics, Spring 2009, Y. G. Shin

Image and video processing (EBU723U) Colour Images. Dr. Yi-Zhe Song

Computer Graphics Si Lu Fall /27/2016

Color. Bilkent University. CS554 Computer Vision Pinar Duygulu

Color Science. What light is. Measuring light. CS 4620 Lecture 15. Salient property is the spectral power distribution (SPD)

Prof. Feng Liu. Winter /09/2017

19. Vision and color

Introduction to Color Science (Cont)

Comparing Sound and Light. Light and Color. More complicated light. Seeing colors. Rods and cones

Digital Image Processing

Vision and Color. Reading. Optics, cont d. Lenses. d d f. Brian Curless CSE 557 Autumn Good resources:

Vision and Color. Brian Curless CSE 557 Autumn 2015

Color & Graphics. Color & Vision. The complete display system is: We'll talk about: Model Frame Buffer Screen Eye Brain

Reading. Lenses, cont d. Lenses. Vision and color. d d f. Good resources: Glassner, Principles of Digital Image Synthesis, pp

Color Perception. Color, What is It Good For? G Perception October 5, 2009 Maloney. perceptual organization. perceptual organization

Vision and color. University of Texas at Austin CS384G - Computer Graphics Fall 2010 Don Fussell

Vision and Color. Reading. The lensmaker s formula. Lenses. Brian Curless CSEP 557 Autumn Good resources:

PERCEIVING COLOR. Functions of Color Vision

Color. Homework 1 is out. Overview of today. color. Why is color useful 2/11/2008. Due on Mon 25 th Feb. Also start looking at ideas for projects

CSCI 1290: Comp Photo

Vision and Color. Reading. Optics, cont d. Lenses. d d f. Brian Curless CSEP 557 Fall Good resources:

Vision and Color. Brian Curless CSEP 557 Fall 2016

Color Science. CS 4620 Lecture 15

CS6640 Computational Photography. 6. Color science for digital photography Steve Marschner

Color Image Processing

COLOR and the human response to light

excite the cones in the same way.

Color. Some slides are adopted from William T. Freeman

Multimedia Systems Color Space Mahdi Amiri March 2012 Sharif University of Technology

COLOR. and the human response to light

University of British Columbia CPSC 314 Computer Graphics Jan-Apr Tamara Munzner. Color.

Question From Last Class

Multimedia Systems and Technologies

Color vision and representation

Announcements. The appearance of colors

Reading for Color. Vision/Color. RGB Color. Vision/Color. University of British Columbia CPSC 314 Computer Graphics Jan-Apr 2013.

Continued. Introduction to Computer Vision CSE 252a Lecture 11

Color Computer Vision Spring 2018, Lecture 15

Slide 1. Slide 2. Slide 3. Light and Colour. Sir Isaac Newton The Founder of Colour Science

Bettina Selig. Centre for Image Analysis. Swedish University of Agricultural Sciences Uppsala University

Mahdi Amiri. March Sharif University of Technology

CS 565 Computer Vision. Nazar Khan PUCIT Lecture 4: Colour

Color and color constancy

Visual Imaging and the Electronic Age Color Science

Announcements. Electromagnetic Spectrum. The appearance of colors. Homework 4 is due Tue, Dec 6, 11:59 PM Reading:

Reading. 1. Visual perception. Outline. Forming an image. Optional: Glassner, Principles of Digital Image Synthesis, sections

IFT3355: Infographie Couleur. Victor Ostromoukhov, Pierre Poulin Dép. I.R.O. Université de Montréal

Introduction to Computer Vision CSE 152 Lecture 18

Understand brightness, intensity, eye characteristics, and gamma correction, halftone technology, Understand general usage of color

Reading. Foley, Computer graphics, Chapter 13. Optional. Color. Brian Wandell. Foundations of Vision. Sinauer Associates, Sunderland, MA 1995.

Digital Image Processing

Color and color constancy

Color and Perception. CS535 Fall Daniel G. Aliaga Department of Computer Science Purdue University

Additive. Subtractive

What is Color. Color is a fundamental attribute of human visual perception.

Colors in Images & Video

Histograms and Color Balancing

Color , , Computational Photography Fall 2018, Lecture 7

Digital Image Processing COSC 6380/4393. Lecture 20 Oct 25 th, 2018 Pranav Mantini

Colour. Why/How do we perceive colours? Electromagnetic Spectrum (1: visible is very small part 2: not all colours are present in the rainbow!

Figure 1: Energy Distributions for light

The Principles of Chromatics

COLOR. Elements of color. Visible spectrum. The Fovea. Lecture 3 October 30, Ingela Nyström 1. There are three types of cones, S, M and L

skip chap. 8 for now Chap. 9 Color (continued) Lecture 19 Tuesday, October 26

12/02/2017. From light to colour spaces. Electromagnetic spectrum. Colour. Correlated colour temperature. Black body radiation.

Color , , Computational Photography Fall 2017, Lecture 11

Colour. Cunliffe & Elliott, Chapter 8 Chapman & Chapman, Digital Multimedia, Chapter 5. Autumn 2016 University of Stirling

Colour. Electromagnetic Spectrum (1: visible is very small part 2: not all colours are present in the rainbow!) Colour Lecture!

Color Cameras: Three kinds of pixels

The human visual system

Color Image Processing. Gonzales & Woods: Chapter 6

Color. Fredo Durand Many slides by Victor Ostromoukhov. Color Vision 1

Color. Computer Graphics CMU /15-662

Overview. Pinhole camera model Projective geometry Vanishing points and lines Projection matrix Cameras with Lenses Color Digital image

University of British Columbia CPSC 414 Computer Graphics

Vision IV. Overview of Topics. Overview of Topics. Colour Vision

LECTURE 07 COLORS IN IMAGES & VIDEO

Digital Image Processing. Lecture # 8 Color Processing

Color and perception Christian Miller CS Fall 2011

Transcription:

Color April 16 th, 2015 Yong Jae Lee UC Davis

Measuring color Today Spectral power distributions Color mixing Color matching experiments Color spaces Uniform color spaces Perception of color Human photoreceptors Environmental effects, adaptation Using color in computer vision systems 2

What is color? The result of interaction between physical light in the environment and our visual system. A psychological property of our visual experiences when we look at objects and lights, not a physical property of those objects or lights. Slide credit: Lana Lazebnik 3

Color and light Color of light arriving at camera depends on Spectral reflectance of the surface light is leaving Spectral radiance of light falling on that patch 4 Slide credit adapted from Kristen Grauman Image from Foundations of Vision, B. Wandell

Color and light White light: composed of about equal energy in all wavelengths of the visible spectrum Newton 1665 5 Image from http://micro.magnet.fsu.edu/

Electromagnetic spectrum Human Luminance Sensitivity Function Image credit: nasa.gov 6

Measuring spectra Spectroradiometer: separate input light into its different wavelengths, and measure the energy at each. Slide adapted from Kristen Grauman 7 Foundations of Vision, B. Wandell

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 # Photons (per ms.) 400 500 600 700 Wavelength (nm.) 8 Stephen E. Palmer, 2002

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

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

Color mixing Cartoon spectra for color names: 11 Slide credit: Bill Freeman

Additive color mixing Colors combine by adding color spectra Light adds to black. 12 Slide credit: Bill Freeman

Examples of additive color systems CRT phosphors multiple projectors 13

Superposition Additive color mixing: The spectral power distribution of the mixture is the sum of the spectral power distributions of the components. 14 Figure from B. Wandell, 1996

Subtractive color mixing Colors combine by multiplying color spectra. Pigments remove color from incident light (white). 15 Slide credit: Bill Freeman

Examples of subtractive color systems Printing on paper Crayons Photographic film An 1877 color photo by Louis Ducos du Hauron, a French pioneer of color photography 16

Measuring color Today: Color Spectral power distributions Color mixing Color matching experiments Color spaces Uniform color spaces Perception of color Human photoreceptors Environmental effects, adaptation Using color in computer vision systems 17

How to know if people perceive the same color? Important to reproduce color reliably Commercial products, digital imaging/art Only a few color names recognized widely English ~11: black, blue, brown, grey, green, orange, pink, purple, red, white, and yellow We need to specify numerically Question: What spectral radiances produce the same response from people under simple viewing conditions? 18

Color matching experiments Goal: find out what spectral radiances produce same response in human observers. 19

Color matching experiments Observer adjusts weight (intensity) for primary lights (fixed SPD s) to match appearance of test light. Foundations of Vision, by Brian Wandell, Sinauer Assoc., 1995 20 After Judd & Wyszecki.

Color matching experiments Goal: find out what spectral radiances produce same response in human observers. Assumption: simple viewing conditions, where we say test light alone affects perception Ignoring additional factors for now like adaptation, complex surrounding scenes, etc. 21

Color matching experiment 1 22 Slide credit: Bill Freeman

Color matching experiment 1 Slide credit: Bill Freeman p 1 p 2 p 3 23

Color matching experiment 1 Slide credit: Bill Freeman p 1 p 2 p 3 24

Color matching experiment 1 The primary color amounts needed for a match Slide credit: Bill Freeman p 1 p 2 p 3 25

Color matching experiment 2 26 Slide credit: Bill Freeman

Color matching experiment 2 Slide credit: Bill Freeman p 1 p 2 p 3 27

Color matching experiment 2 p 1 p 2 p 3 Slide credit: Bill Freeman 28

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 29

Color matching What must we require of the primary lights chosen? How are three numbers enough to represent entire spectrum? 30

Metamers If observer says a mixture is a match receptor excitations of both stimuli must be equal. But lights forming a perceptual match still may be physically different Match light: must be combination of primaries Test light: any light Metamers: pairs of lights that match perceptually but not physically 31

Metamers 32 Slide credit: Devi Parikh

Grassman s laws 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 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. If we mix two test lights, then mixing the matches will match the result (superposition): 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. Here = means matches. 34

How to compute the weights of the primaries to match any new spectral signal? Given: a choice of three primaries and a target color signal? Find: weights of the primaries needed to match the color signal p 1 p 2 p 3 p 1 p 2 p 3 35

Computing color matches 1. Given primaries 2. Estimate their color matching functions: observer matches series of monochromatic lights, one at each wavelength. 3. To compute weights for new test light, multiply with matching functions. C = c c c 1 2 3 ( λ ) 1 ( λ ) 1 ( λ ) 1 c c c 1 2 3 ( λ ) N ( λn ) ( λn ) 36

Foundations of Vision, by Brian Wandell, Sinauer Assoc., 1995 p 1 = 645.2 nm p 2 = 525.3 nm p 3 = 444.4 nm Rows of matrix C Computing color matches Example: color matching functions for RGB = ) ( ) ( ) ( ) ( ) ( ) ( 3 1 3 2 1 2 1 1 1 N N N c c c c c c λ λ λ λ λ λ C Slide credit: Bill Freeman 37

= ) ( ( 1 ) N t t t λ λ Arbitrary new spectral signal is linear combination of the monochromatic sources. t Computing color matches e = Ct Color matching functions specify how to match a unit of each wavelength, so: = ) ( ) ( ) ( ) ( ) ( ) ( ) ( ) ( ) ( 2 1 3 1 3 2 1 2 1 1 1 3 2 1 N N N N t t t c c c c c c e e e λ λ λ λ λ λ λ λ λ 38

Computing color matches Why is computing the color match for any color signal for a given set of primaries useful? Want to paint a carton of Kodak film with the Kodak yellow color. Want to match skin color of a person in a photograph printed on an ink jet printer to their true skin color. Want the colors in the world, on a monitor, and in a print format to all look the same. Slide credit: Adapted from Bill Freeman by Kristen Grauman 39 Image credit: pbs.org

Measuring color Today: Color Spectral power distributions Color mixing Color matching experiments Color spaces Uniform color spaces Perception of color Human photoreceptors Environmental effects, adaptation Using color in computer vision systems 40

Standard color spaces Use a common set of primaries/color matching functions Linear color space examples RGB CIE XYZ Non-linear color space HSV 41

RGB color space Single wavelength primaries Good for devices (e.g., phosphors for monitor), but not for perception RGB color matching functions 42

CIE XYZ color space Established by the commission international d eclairage (CIE), 1931 Y value approximates brightness Usually projected to display: (x,y) = (X/(X+Y+Z), Y/(X+Y+Z)) CIE XYZ Color matching functions 43

HSV color space Hue, Saturation, Value Nonlinear reflects topology of colors by coding hue as an angle Matlab: hsv2rgb, rgb2hsv. 44 Image from mathworks.com

Distances in color space Are distances between points in a color space perceptually meaningful? 45

Distances in color space Not necessarily: CIE XYZ is not a uniform color space, so magnitude of differences in coordinates are poor indicator of color distance. McAdam ellipses: Just noticeable differences in color 46

Uniform color spaces Attempt to correct this limitation by remapping color space so that justnoticeable differences are contained by circles distances more perceptually meaningful. CIE XYZ Examples: CIE u v CIE Lab CIE u v 47

Measuring color Today: Color Spectral power distributions Color mixing Color matching experiments Color spaces Uniform color spaces Perception of color Human photoreceptors Environmental effects, adaptation Using color in computer vision systems 48

Color and light Color of light arriving at camera depends on Spectral reflectance of the surface light is leaving Spectral radiance of light falling on that patch Color perceived depends on Physics of light Visual system receptors Brain processing, environment 49

The Eye Slide credit: Steve Seitz 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) Retina - photoreceptor cells 50

Types of light-sensitive receptors Cones cone-shaped less sensitive operate in high light color vision Rods rod-shaped highly sensitive operate at night gray-scale vision Slide credit: Alyosha Efros 51 Stephen E. Palmer, 2002

Types of cones React only to some wavelengths, with different sensitivity (light fraction absorbed) Brain fuses responses from local neighborhood of several cones for perceived color Sensitivities vary per person, and with age Color blindness: deficiency in at least one type of cone RELATIVE ABSORBANCE (%) Three kinds of cones 440 530 560 nm. 100 S M L 50 400 450 500 550 600 6 W AVELENGTH (nm.) 52

Physiology of Color Vision: Fun facts M and L pigments are encoded on the X-chromosome That s why men are more likely to be color blind http://www.vischeck.com/vischeck/vischeckurl.php Some animals have one (night animals), two (e.g., dogs), four (fish, birds), five (pigeons, some reptiles/amphibians), or even 12 (mantis shrimp) types of cones http://www.mezzmer.com/blog/how-animals-see-theworld/ http://en.wikipedia.org/wiki/color_vision Slide by D. Hoiem

54

Types of cones Possible evolutionary pressure for developing receptors for different wavelengths in primates Osorio & Vorobyev, 1996 Slide adapted from Kristen Grauman 55

Experimental facts: Trichromacy Three primaries will work for most people if we allow subtractive matching; trichromatic nature of the human visual system Most people make the same matches for a given set of primaries (i.e., select the same mixtures) 56

Environmental effects & adaptation Chromatic adaptation: We adapt to a particular illuminant Assimilation, contrast effects, chromatic induction: Nearby colors affect what is perceived; receptor excitations interact across image and time Afterimages 57

Chromatic adaptation If the visual system is exposed to a certain illuminant for a while, color system starts to adapt / skew Adapting to different brightness levels Changing the size of the iris opening changes the amount of light that can enter the eye Adapting to different color temperature 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 58

Chromatic adaptation http://www.planetperplex.com/en/color_illusions.html 59

Brightness perception Edward Adelson http://web.mit.edu/persci/people/adelson/illusions_demos.html 60

Edward Adelson http://web.mit.edu/persci/people/adelson/illusions_demos.html 61

Edward Adelson http://web.mit.edu/persci/people/adelson/illusions_demos.html 62

Look at blue squares Look at yellow squares Content 2008 R.Beau Lotto http://www.lottolab.org/articles/illusionsoflight.asp 63

Content 2008 R.Beau Lotto http://www.lottolab.org/articles/illusionsoflight.asp 64

Content 2008 R.Beau Lotto http://www.lottolab.org/articles/illusionsoflight.asp 65

Content 2008 R.Beau Lotto http://www.lottolab.org/articles/illusionsoflight.asp 66

Content 2008 R.Beau Lotto http://www.lottolab.org/articles/illusionsoflight.asp 67

Content 2008 R.Beau Lotto http://www.lottolab.org/articles/illusionsoflight.asp 68

Contrast effects 69

After images Tired photoreceptors send out negative response after a strong stimulus http://www.sandlotscience.com/aftereffects/andrus_spiral.htm http://www.michaelbach.de/ot/mot_adaptspiral/index.html Slide credit: Steve Seitz 70

Name that color High level interactions affect perception and processing. 71

Measuring color Today: Color Spectral power distributions Color mixing Color matching experiments Color spaces Uniform color spaces Perception of color Human photoreceptors Environmental effects, adaptation Using color in computer vision systems 72

Color as a low-level cue for CBIR Swain and Ballard, Color Indexing, IJCV 1991 Blobworld system Carson et al, 1999 73

Color as a low-level cue for CBIR Pixel counts R G B Color intensity Color histograms: Use distribution of colors to describe image No spatial info invariant to translation, rotation, scale 74

Color-based image retrieval Example database 75

Color-based image retrieval Example retrievals 76

Color-based image retrieval Example retrievals 77

Color-based image retrieval Given collection (database) of images: Extract and store one color histogram per image Given new query image: Extract its color histogram For each database image: Compute intersection between query histogram and database histogram Sort intersection values (highest score = most similar) Rank database items relative to query based on this sorted order 78

79

Color-based skin detection M. Jones and J. Rehg, Statistical Color Models with Application to Skin Detection, IJCV 2002. 80

Color-based segmentation for robot soccer Towards Eliminating Manual Color Calibration at RoboCup. Mohan Sridharan and Peter Stone. RoboCup-2005: Robot Soccer World Cup IX, Springer Verlag, 2006

Questions? See you Tuesday! 82