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

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

Color April 16 th, 2015

Color. April 16 th, Yong Jae Lee UC Davis

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

Color. Phillip Otto Runge ( )

Capturing Light in man and machine

Capturing Light in man and machine

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

Capturing Light in man and machine

Capturing Light in man and machine

Frequencies and Color

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.

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

Color. Bilkent University. CS554 Computer Vision Pinar Duygulu

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

Computer Graphics Si Lu Fall /27/2016

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

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

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

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

Color. Some slides are adopted from William T. Freeman

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

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

Color and color constancy

Introduction to Color Science (Cont)

Motion illusion, rotating snakes

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

19. Vision and color

Color and color constancy

Digital Image Processing

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

excite the cones in the same way.

Capturing light and color

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

COLOR and the human response to light

Color Science. CS 4620 Lecture 15

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

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

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. and the human response to light

PERCEIVING COLOR. Functions of Color Vision

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:

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

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

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

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

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

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

Mahdi Amiri. March Sharif University of Technology

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

Visual Imaging and the Electronic Age Color Science

Prof. Feng Liu. Winter /09/2017

Color Image Processing

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

Color Computer Vision Spring 2018, Lecture 15

CSCI 1290: Comp Photo

Introduction to Computer Vision CSE 152 Lecture 18

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

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

Announcements. The appearance of colors

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

Color vision and representation

Figure 1: Energy Distributions for light

Digital Image Processing

To discuss. Color Science Color Models in image. Computer Graphics 2

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

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

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

Color , , Computational Photography Fall 2018, Lecture 7

University of British Columbia CPSC 414 Computer Graphics

The human visual system

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

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

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

Continued. Introduction to Computer Vision CSE 252a Lecture 11

For a long time I limited myself to one color as a form of discipline. Pablo Picasso. Color Image Processing

Color Image Processing. Gonzales & Woods: Chapter 6

Color. Computer Graphics CMU /15-662

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

Images. CS 4620 Lecture Kavita Bala w/ prior instructor Steve Marschner. Cornell CS4620 Fall 2015 Lecture 38

Additive. Subtractive

INSTITUTIONEN FÖR SYSTEMTEKNIK LULEÅ TEKNISKA UNIVERSITET

Color. Used heavily in human vision. Color is a pixel property, making some recognition problems easy

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

Color , , Computational Photography Fall 2017, Lecture 11

Question From Last Class

Color Cameras: Three kinds of pixels

Multimedia Systems and Technologies

COLOR. Elements of color. Visible spectrum. The Human Visual System. The Fovea. There are three types of cones, S, M and L. r( λ)

Color. Maneesh Agrawala Jessica Hullman. CS : Visualization Fall Assignment 3: Visualization Software

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

LECTURE 07 COLORS IN IMAGES & VIDEO

Fig Color spectrum seen by passing white light through a prism.

The Principles of Chromatics

Achim J. Lilienthal Mobile Robotics and Olfaction Lab, AASS, Örebro University

Transcription:

Announcements Color Thursday, Sept 4 Class website reminder http://www.cs.utexas.edu/~grauman/cours es/fall2008/main.htm Pset 1 out today Last time Image formation: Projection equations Homogeneous coordinates Lenses Camera parameters affect on images Review questions Why does the ideal pinhole camera model imply an infinite depth of field? Use the perspective projection equations to explain these: http://www.mzephotos.com/gallery/mammals/rabbit-nose.html flickr.com/photos/lungstruck/434631076/ Today: Color Measuring color Spectral power distributions Color mixing Color matching experiments Color spaces Uniform color spaces Perception of color Human photoreceptors Environmental effects, adaptation 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 Using color in machine vision systems

Color and light Electromagnetic spectrum White light: composed of about equal energy in all wavelengths of the visible spectrum Newton 1665 Human Luminance Sensitivity Function Image from http://micro.magnet.fsu.edu/ Image credit: nasa.gov Measuring spectra Spectral power distribution The power per unit area at each wavelength of a radiant object (per ms.) Spectroradiometer: separate input light into its different wavelengths, and measure the energy at each. 400 500 600 700 Wavelength (nm.) Foundations of Vision, B. Wandell Figure 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 400 500 600 700 Wavelength (nm.) Wavelength (nm.) C. Tungsten Lightbulb D. Normal Daylight The color viewed is also affected by the surface s spectral reflectance properties. Spectral reflectances for some natural objects: how much of each wavelength is reflected for that surface 400 500 600 700 400 500 600 700 Stephen E. Palmer, 2002 Forsyth & Ponce, measurements by E. Koivisto

Surface reflectance spectra The Psychophysical Correspondence % Photons Reflected Some examples of the reflectance spectra of surfaces Red Yellow Blue Purple 400 700 400 700 400 700 400 700 Wavelength (nm) Stephen E. Palmer, 2002 There is no simple functional description for the perceived color of all lights under all viewing conditions, but... A helpful constraint: Consider only physical spectra with normal distributions area mean variance 400 500 600 700 Wavelength (nm.) Stephen E. Palmer, 2002 The Psychophysical Correspondence The Psychophysical Correspondence Mean Hue Variance Saturation blue green yellow hi. high med. medium low low Wavelength Wavelength Stephen E. Palmer, 2002 Stephen E. Palmer, 2002 The Psychophysical Correspondence Area Brightness Color mixing Cartoon spectra for color names: B. Area Lightness bright dark Wavelength Stephen E. Palmer, 2002 Source: W. Freeman

Additive color mixing Examples of additive color systems Colors combine by adding color spectra Light adds to black. CRT phosphors multiple projectors Source: W. Freeman http://www.jegsworks.com http://www.crtprojectors.co.uk/ Superposition Additive mixing: The spectral power distribution of the mixture is the sum of the spectral power distributions of the components. Subtractive color mixing Colors combine by multiplying color spectra. Pigments remove color from incident light (white). Figure from B. Wandell, 1996 Source: W. Freeman Examples of subtractive color systems Printing on paper Crayons Most photographic film Today: Color Measuring 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 machine vision systems

Why specify color numerically? Accurate color reproduction is commercially valuable Many products are identified by color ( golden arches) Few color names are widely recognized by English speakers 11: black, blue, brown, grey, green, orange, pink, purple, red, white, and yellow. Other languages have fewer/more. Common to disagree on appropriate color names. Color reproduction problems increased by prevalence of digital imaging e.g. digital libraries of art. How to ensure that everyone perceives the same color? What spectral radiances produce the same response from people under simple viewing conditions? Color matching experiments Goal: find out what spectral radiances produce same response in human observers Forsyth & Ponce Color matching experiments Color matching experiments Observer adjusts weight (intensity) for primary lights (fixed SPD s) to match appearance of test light. 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. Foundations of Vision, by Brian Wandell, Sinauer Assoc., 1995 After Judd & Wyszecki. Color matching experiment 1 Color matching experiment 1 W. Freeman W. Freeman

Color matching experiment 1 Color matching experiment 1 The primary color amounts needed for a match W. Freeman W. Freeman Color matching experiment 2 Color matching experiment 2 W. Freeman W. Freeman Color matching experiment 2 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: W. Freeman

Color matching What must we require of the primary lights chosen? How are three numbers enough to represent entire spectrum? 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 Metameric spectral power distributions Fig from B. Wandell, 1996 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. Computing color matches How do we compute the weights that will yield a perceptual match for any test light using a given set of primaries? 1. Select primaries 2. Estimate their color matching functions: observer matches series of monochromatic lights, one at each wavelength 3. Multiply matching functions and test light c1 ( λ1 ) L C = c2( λ1 ) L c3( λ1 ) L c1 ( λn ) c2( λn ) c ( ) 3 λn Computing color matches Color matching functions for a particular set of primaries Computing color matches λi matches c1( λi ), c2 ( λi ), c3( λi ) 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 W. Freeman Now have matching functions for all monochromatic light sources, so we know how to match a unit of each wavelength. Arbitrary new spectral signal is a linear combination of the monochromatic sources. t( λ 1 ) r t = M t( λn )

Computing color matches So, given any set of primaries and their associated matching functions (C), we can compute weights (e) needed on each primary to give a perceptual match to any test light t (spectral signal). 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. Fig from B. Wandell, 1996 Adapted from W. Freeman Image credit: pbs.org Today: Color Measuring color Spectral power distributions Color mixing Color matching experiments Color spaces Uniform color spaces Perception of color Human photoreceptors Environmental effects, adaptation Standard color spaces Use a common set of primaries/color matching functions Linear color space examples RGB CIE XYZ Non-linear color space HSV Using color in machine vision systems RGB color space Single wavelength primaries Good for devices (e.g., phosphors for monitor), but not for perception RGB color matching functions CIE XYZ color space Established by the commission international d eclairage (CIE), 1931 Usually projected to display: (x,y) = (X/(X+Y+Z), Y/(X+Y+Z)) CIE XYZ Color matching functions

HSV color space Hue, Saturation, Value (Brightness) Nonlinear reflects topology of colors by coding hue as an angle Matlab: hsv2rgb, rgb2hsv. Distances in color space Are distances between points in a color space perceptually meaningful? Image from mathworks.com 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. 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 McAdam ellipses: Just noticeable differences in color Examples: CIE u v CIE Lab CIE u v Today: Color Measuring color Spectral power distributions Color mixing Color matching experiments Color spaces Uniform color spaces Perception of color Human photoreceptors Environmental effects, adaptation Color 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 Using color in machine vision systems

Human photoreceptors Two types of light-sensitive receptors -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 Cones cone-shaped less sensitive operate in high light color vision Rods rod-shaped highly sensitive operate at night gray-scale vision cone rod Adapted from Seitz, Duygulu Stephen E. Palmer, 2002 Alyosha Efros Human photoreceptors 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 from person to person, and with age Color blindness: deficiency in at least one type of cone Sensitivity Three kinds of cones Wavelength (nm) Human photoreceptors Possible evolutionary pressure for developing receptors for different wavelengths in primates Osorio & Vorobyev, 1996 Trichromacy Experimental facts: 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) 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 Color matching ~= color appearance Physics of light ~= perception of light

Chromatic adaptation Chromatic adaptation If the visual system is exposed to a certain illuminant for a while, color system starts to adapt / skew. http://www.planetperplex.com/en/color_illusions.html Brightness perception Edward Adelson Edward Adelson http://web.mit.edu/persci/people/adelson/illusions_demos.html http://web.mit.edu/persci/people/adelson/illusions_demos.html Edward Adelson http://web.mit.edu/persci/people/adelson/illusions_demos.html Look at blue squares Look at yellow squares Content 2008 R.Beau Lotto http://www.lottolab.org/articles/illusionsoflight.asp

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

After images Tired photoreceptors send out negative response after a strong stimulus Name that color http://www.sandlotscience.com/aftereffects/andrus_spiral.htm High level interactions affect perception and processing. Source: Steve Seitz Today: Color Measuring color Spectral power distributions Color mixing Color matching experiments Color spaces Uniform color spaces Color as a low-level cue for CBIR Perception of color Human photoreceptors Environmental effects, adaptation Swain and Ballard, Color Indexing, IJCV 1991 Blobworld system Carson et al, 1999 Using color in machine vision systems 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 Color as a low-level cue for CBIR R G B Given two histogram vectors, sum the minimum counts per bin: I( x, y) = n i= 1 min = [1, 3, 5] = [2, 0, 3] ( xi, yi) [ 1, 0, 3 ]

Color-based image retrieval 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 Example database Color-based image retrieval Color-based image retrieval Example retrievals Example retrievals Color-based skin detection Color-based segmentation for robot soccer M. Jones and J. Rehg, Statistical Color Models with Application to Skin Detection, IJCV 2002. Towards Eliminating Manual Color Calibration at RoboCup. Mohan Sridharan and Peter Stone. RoboCup-2005: Robot Soccer World Cup IX, Springer Verlag, 2006 http://www.cs.utexas.edu/users/austinvilla/?p=research/auto_vis

Color-based appearance models for body tracking Coming up Next time: linear filters Read F&P Chapter 7, sections 7.1, 7.2, 7.5, 7.6 See Blackboard for additional reading excerpts on filters Pset 1 is out, due Sept 18. D. Ramanan, D. Forsyth, and A. Zisserman. Tracking People by Learning their Appearance. PAMI 2007. L. Lazebnik