Color Based on Kristen Grauman's Slides for Computer Vision.

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

Color Phillip Otto Runge ( ). Overview The nature of color Color processing in the human visual system Color spaces Adaptation and constancy White.
Computational Photography: Color perception, light spectra, contrast Connelly Barnes.
Computer Vision CS 776 Spring 2014 Color Prof. Alex Berg (Slide credits to many folks on individual slides)
CS324e - Elements of Graphics and Visualization Color Histograms.
Color Image Processing
Achromatic and Colored Light CS 288 9/17/1998 Vic.
776 Computer Vision Jan-Michael Frahm, Enrique Dunn Fall 2014.
The eyes have three different kinds of color receptors; One kind is most sensitive to short wavelengths, one to middle wavelengths, and one to long wavelengths.
School of Computing Science Simon Fraser University
Lecture 6 Color and Texture
Algorithms and Applications in Computer Vision Lihi Zelnik-Manor
Review: Image formation
Lecture 30: Light, color, and reflectance CS4670: Computer Vision Noah Snavely.
Capturing Light… in man and machine : Computational Photography Alexei Efros, CMU, Fall 2006 Some figures from Steve Seitz, Steve Palmer, Paul Debevec,
Capturing Light… in man and machine : Computational Photography Alexei Efros, CMU, Fall 2010.
Capturing Light… in man and machine : Computational Photography Alexei Efros, CMU, Fall 2008.
Colors and sensors Slides from Bill Freeman, Fredo Durand, Rob Fergus, and David Forsyth, Alyosha Efros.
Image Formation Mohan Sridharan Based on slides created by Edward Angel CS4395: Computer Graphics 1.
Recap from Friday Pinhole camera model Perspective projections Lenses and their flaws Focus Depth of field Focal length and field of view.
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.
Color Monday, Feb 7 Prof. Kristen Grauman UT-Austin.
Light and Color Computational Photography Derek Hoiem, University of Illinois 09/08/11 “Empire of Light”, Magritte.
CSE 473/573 Computer Vision and Image Processing (CVIP) Ifeoma Nwogu Lecture 6 – Color.
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.
Light and Color. Light is a form of energy light travels extremely fast and over long distances light carries energy and information light travels in.
Computer Graphics I, Fall 2008 Image Formation.
Human Eye and Color Rays of light enter the pupil and strike the back of the eye (retina) – signals go to the optic nerve and eventually to the brain Retina.
Physiology of Vision: a swift overview Pixels to Percepts A. Efros, CMU, Spring 2011 Some figures from Steve Palmer.
Computational Photography Derek Hoiem, University of Illinois
Color Phillip Otto Runge ( ). What is color? Color is the result of interaction between physical light in the environment and our visual system.
Physiology of Vision: a swift overview : Learning-Based Methods in Vision A. Efros, CMU, Spring 2009 Some figures from Steve Palmer.
Light and Color Jehee Lee Seoul National University With a lot of slides stolen from Alexei Efros, Stephen Palmer, Fredo Durand and others.
Color in image and video Mr.Nael Aburas. outline  Color Science  Color Models in Images  Color Models in Video.
Physiology of Vision: a swift overview : Advanced Machine Perception A. Efros, CMU, Spring 2006 Some figures from Steve Palmer.
Do Now Try to label the diagram of the eye Use your textbook and the terms on the right to help you Optic nerve Pupil Lens Retina Vitreous Iris Cornea.
Week 6 Colour. 2 Overview By the end of this lecture you will be familiar with: –Human visual system –Foundations of light and colour –HSV and user-oriented.
Color Theory ‣ What is color? ‣ How do we perceive it? ‣ How do we describe and match colors? ‣ Color spaces.
Digital Image Processing Part 1 Introduction. The eye.
CSC361/ Digital Media Burg/Wong
COLORCOLOR Angel 1.4 and 2.4 J. Lindblad
CS6825: Color 2 Light and Color Light is electromagnetic radiation Light is electromagnetic radiation Visible light: nm. range Visible light:
CS654: Digital Image Analysis Lecture 29: Color Image Processing.
Three-Receptor Model Designing a system that can individually display thousands of colors is very difficult Instead, colors can be reproduced by mixing.
1 CSCE441: Computer Graphics: Color Models Jinxiang Chai.
Introduction to Computer Graphics
Color Models. Color models,cont’d Different meanings of color: painting wavelength of visible light human eye perception.
Intelligent Robotics Today: Vision & Time & Space Complexity.
Capturing Light… in man and machine CS194: Image Manipulation & Computational Photography Alexei Efros, UC Berkeley, Fall 2015.
© 2011 South-Western | Cengage Learning A Discovery Experience PSYCHOLOGY Chapter 4Slide 1 LESSON 4.2 Vision OBJECTIVES Identify and illustrate the structures.
Image credit: Wikipedia (Fovea) Human Eye Some interesting facts – Rod cells: requires only low light b/w vision blur, all over retina EXCEPT fovea – Cone.
Color Phillip Otto Runge ( ). What is color? Color is a psychological property of our visual experiences when we look at objects and lights, not.
Chapter 9: Perceiving Color. Figure 9-1 p200 Figure 9-2 p201.
09/10/02(c) University of Wisconsin, CS559 Fall 2002 Last Time Digital Images –Spatial and Color resolution Color –The physics of color.
1 Computational Vision CSCI 363, Fall 2012 Lecture 32 Biological Heading, Color.
Color Computer Vision Martin Jagersand Readings: – Szeliski, – Forsyth and Ponce, Chapter 6 What is the physics of color? How is color sensed? How.
Capturing Light… in man and machine
Color Image Processing
Color Image Processing
Physiology of Vision: a swift overview
Capturing Light… in man and machine
Color Image Processing
Color April 16th, 2015 Yong Jae Lee UC Davis.
© University of Wisconsin, CS559 Spring 2004
Color Representation Although we can differentiate a hundred different grey-levels, we can easily differentiate thousands of colors.
Color Image Processing
Capturing Light… in man and machine
Color Image Processing
Color Phillip Otto Runge ( ).
Presentation transcript:

Color Based on Kristen Grauman's Slides for Computer Vision

Today Color Spaces Perception of color –Human photoreceptors –Environmental effects, adaptation Color in Graphics and Programming

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

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

Color and light Newton 1665 Image from White light: composed of almost equal energy in all wavelengths of the visible spectrum

Image credit: nasa.gov Electromagnetic spectrum Human Luminance Sensitivity Function Typical Grayscale conversion: Gray = 0.3 * R * G +.11 * B NOT Gray = R / 3 + G / 3 + B / 3

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

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 nm. © Stephen E. Palmer, 2002 Relative spectral power

Spectral power distributions Some examples of the spectra of light sources © Stephen E. Palmer, 2002

Spectral power distributions More examples of the spectra of light sources © Stephen E. Palmer, 2002 fluorescent bulb incandescent bulb

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

Color mixing Source: W. Freeman

Additive color mixing Colors combine by adding color spectra Light adds to existing black. Source: W. Freeman

Examples of additive color systems CRT phosphors multiple projectors

Subtractive color mixing Colors combine by multiplying color spectra. Pigments remove color from incident light (white). Source: W. Freeman

Examples of subtractive color systems Printing on paper Crayons Photographic film

STANDARD COLOR SPACES

Standard Color Spaces Named Colors –Hundreds –About 800 on Wikipedia "List of Colors" Model or Color Space exists to handle the large number of colors possible

Standard color spaces Linear color space –RGB (RED - GREEN - BLUE) Non-linear color space –HSV (HUE - SATURATION - VALUE)

HSV color space Hue, Saturation, Value Nonlinear – reflects topology of colors by coding hue as an angle Java: –public static Color getHSBColor(float h, float s, float b)Color –public static float[] RGBtoHSB(int r, int g, int b, float[] hsbvals) –public Color(int r, int g, int b) Kristen Grauman

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

Defining RGB Colors for Computing specify intensity of red, green, and blue components typical range of intensity * 256 * 256 = 16,777,216 potential colors, 24 bit color Additive color –(0, 0, 0) = Black –(255, 255, 255) = White –(255, 0, 255) = ?(255, 140, 0) = ?

RGB Colors RGB values in a Color Picker Colors often expressed in hexadecimal base 16 –digits, 0 - 9, A - F –2 digits per color –Cardinal = C41E3A = (196, 30, 58) –1E = 1 * * 1 = 30

Color In Java java.awt.Color RGBa color model 13 named constants Multiple constructors Also an alpha value –Introduced by Alvy Ray Smith (member of LucasArts computer group) –express level of transparency / opacity –0 = transparent, 255 = fully opaque

Color in Java for intensity of RGB and Alpha additive color model bit packing, bitwise operators

Sample Programs ColorExample –ColorPanel –AlphaColorPanel ColorChooserMain –Main - Frame - 2 Panels –JColorChooser class built in to JavaJColorChooser – components/colorchooser.htmlhttp://docs.oracle.com/javase/tutorial/uiswing/ components/colorchooser.html

COLOR PERCEPTION

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

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) Retina - photoreceptor cells Slide by Steve Seitz

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

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 Wavelength (nm) Sensitivity Three kinds of cones Types of cones

Possible evolutionary pressure for developing receptors for different wavelengths in primates Osorio & Vorobyev, 1996 Types of cones

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 If the visual system is exposed to a certain illuminant for a while, color system starts to adapt / skew.

Chromatic adaptation

Brightness perception Edward Adelson

Edward Adelson

Edward Adelson

Content © 2008 R.Beau Lotto Look at blue squares Look at yellow squares

Content © 2008 R.Beau Lotto

Content © 2008 R.Beau Lotto

Content © 2008 R.Beau Lotto

Content © 2008 R.Beau Lotto

Content © 2008 R.Beau Lotto

After images Tired photoreceptors send out negative response after a strong stimulus Source: Steve Seitz

Name that color High level interactions affect perception and processing.

COLOR IN COMPUTER VISION

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

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

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 Kristen Grauman

Color-based image retrieval Example database Kristen Grauman

Example retrievals Color-based image retrieval Kristen Grauman

Example retrievals Color-based image retrieval Kristen Grauman

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

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, Kristen Grauman