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

Similar documents
Color. Phillip Otto Runge ( )

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

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

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

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

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

Frequencies and Color

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

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

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

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

Introduction to Computer Vision CSE 152 Lecture 18

Introduction to Color Science (Cont)

Motion illusion, rotating snakes

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

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

Computer Graphics Si Lu Fall /27/2016

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

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

Color Science. CS 4620 Lecture 15

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

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

PERCEIVING COLOR. Functions of Color Vision

COLOR. and the human response to light

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

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

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

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

COLOR and the human response to light

University of British Columbia CPSC 414 Computer Graphics

Announcements. The appearance of colors

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

Prof. Feng Liu. Winter /09/2017

Color Image Processing

Color , , Computational Photography Fall 2018, Lecture 7

Digital Image Processing

Color. Some slides are adopted from William T. Freeman

CS 89.15/189.5, Fall 2015 ASPECTS OF DIGITAL PHOTOGRAPHY COMPUTATIONAL. Image Processing Basics. Wojciech Jarosz

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

Capturing light and color

Color Computer Vision Spring 2018, Lecture 15

Color , , Computational Photography Fall 2017, Lecture 11

CSCI 1290: Comp Photo

Color vision and representation

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

Additive. Subtractive

19. Vision and color

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

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

The Principles of Chromatics

Color and color constancy

Digital Image Processing

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

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

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

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

Continued. Introduction to Computer Vision CSE 252a Lecture 11

Color. Computer Graphics CMU /15-662

Color Image Processing. Gonzales & Woods: Chapter 6

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

Colors in Images & Video

Color Cameras: Three kinds of pixels

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

Chapter 3 Part 2 Color image processing

A World of Color. Session 4 Color Spaces. OLLI at Illinois Spring D. H. Tracy

Color. Bilkent University. CS554 Computer Vision Pinar Duygulu

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

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

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

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

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

Imaging Process (review)

Color II: applications in photography

Color and color constancy

LECTURE III: COLOR IN IMAGE & VIDEO DR. OUIEM BCHIR

CIE tri-stimulus experiment. Color Value Functions. CIE 1931 Standard. Color. Diagram. Color light intensity for visual color match

Mahdi Amiri. March Sharif University of Technology

Andrea Torsello DAIS Università Ca Foscari via Torino 155, Mestre (VE) Color Vision

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

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

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

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

Interactive Computer Graphics

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

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

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

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

Color II: applications in photography

Digital Image Processing. Lecture # 8 Color Processing

Color Reproduction. Chapter 6

LECTURE 07 COLORS IN IMAGES & VIDEO

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

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

Visual Imaging and the Electronic Age Color Science

Transcription:

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

Overview of Color Physics of color Human encoding of color Color spaces White balancing Stanford University Lecture 1 -

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 Stanford University Lecture 1 -

Color and light White light: composed of almost equal energy in all wavelengths of the visible spectrum Newton 1665 Stanford University Lecture 1 - Image from http://micro.magnet.fsu.edu/

Electromagnetic Spectrum Human Luminance Sensitivity Function Stanford University Lecture 1 - http://www.yorku.ca/eye/photopik.htm

Sun temperature makes it emit yellow light more than any other color. Stanford University Lecture 1 -

Visible Light Plank s law for Blackbody radiation Surface of the sun: ~5800K Why do we see light of these wavelengths? because that s where the Sun radiates EM energy Stephen E. Palmer, 2002 Stanford University Lecture 1 -

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.) 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 Reflected 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 From Stanford Foundation University of Vision by Brian Wandell, Sinauer Lecture Associates, 1-1995

Interaction of light and surfaces What is the observed color of any surface under monochromatic light? Olafur Eliasson, Room for one color Stanford University Lecture 1 - Slide by S. Lazebnik

Stanford University Lecture 1 -

Stanford University Lecture 1 -

James Turrell, Breathing Light Stanford University Lecture 1 -

Inspired Drake in Hotline Bling Stanford University Lecture 1 -

Overview of Color Physics of color Human encoding of color Color spaces White balancing Stanford University Lecture 1 -

Two 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 Stephen E. Palmer, 2002

Rod / Cone sensitivity The famous sock-matching problem

Physiology of Color Vision Three kinds of cones: 440 530 560 nm. RELATIVE ABSORBANCE (%) 100 S M L 50 400 450 500 550 600 650 WAVELENGTH (nm.) Stephen E. Palmer, 2002

Color perception M L Power S Wavelength 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 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

Standardizing color experience We would like to understand which spectra produce the same color sensation in 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) Stanford University Lecture 1 -

Overview of Color Physics of color Human encoding of color Color spaces White balancing Stanford University Lecture 1 -

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 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 Stanford University Lecture 1 -

How to compute the weights of the primaries to match any spectral signal p 1 p 2 p 3 Matching functions: the amount of each primary needed to match a monochromatic light source at each wavelength Source: W. Freeman

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

Linear color spaces: CIE XYZ Primaries are imaginary, but matching functions are everywhere positive The Y parameter corresponds to brightness or luminance of a color 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

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

Overview of Color Physics of color Human encoding of color Color spaces White balancing Stanford University Lecture 1 -

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 Slide: F. Durand

White balance Von Kries adaptation Multiply each channel by a gain factor A more general transformation would correspond to an arbitrary 3x3 matrix Slide: F. Durand

White balance Von Kries adaptation Multiply each channel by a gain factor A more general transformation would correspond 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 Slide: F. Durand

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 (non-staurated) 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 Slide: F. Durand

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

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

Forsyth, D.A. and Fleck, M. M., ``Automatic Detection of Human Nudes,'' International Journal of Computer Vision, 32, 1, 63-77, August, 1999 Uses of color in computer vision Nude people detection

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

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. Source: S. Lazebnik