Color and Radiometry Digital Image Synthesis Yung-Yu Chuang with slides by Svetlana Lazebnik, Pat Hanrahan and Matt Pharr.

Slides:



Advertisements
Similar presentations
Electromagnetic Spectrum
Advertisements

Technische Universität München Fakultät für Informatik Computer Graphics SS 2014 Lighting Rüdiger Westermann Lehrstuhl für Computer Graphik und Visualisierung.
Computer Vision Radiometry. Bahadir K. Gunturk2 Radiometry Radiometry is the part of image formation concerned with the relation among the amounts of.
1 Color Kyongil Yoon VISA Color Chapter 6, “Computer Vision: A Modern Approach” The experience of colour Caused by the vision system responding.
Chapter 33 - Light and Illumination
Color & Light, Digitalization, Storage. Vision Rods work at low light levels and do not see color –That is, their response depends only on how many photons,
Foundations of Computer Graphics (Spring 2012) CS 184, Lecture 21: Radiometry Many slides courtesy Pat Hanrahan.
Light Visible electromagnetic radiation Power spectrum Polarization Photon (quantum effects) Wave (interference, diffraction) From London and Upton.
CPSC 641 Computer Graphics: Radiometry and Illumination Jinxiang Chai Many slides from Pat Haranhan.
RADIOSITY Submitted by CASULA, BABUPRIYANK. N. Computer Graphics Computer Graphics Application Image Synthesis Animation Hardware & Architecture.
Radiometry. Outline What is Radiometry? Quantities Radiant energy, flux density Irradiance, Radiance Spherical coordinates, foreshortening Modeling surface.
Radiometry and the Radiometer
Photo-realistic Rendering and Global Illumination in Computer Graphics Spring 2012 Material Representation K. H. Ko School of Mechatronics Gwangju Institute.
Lesson 3 METO 621. Basic state variables and the Radiative Transfer Equation In this course we are mostly concerned with the flow of radiative energy.
Light, Color & Perception CMSC 435/634. Light Electromagnetic wave – E & M perpendicular to each other & direction Photon wavelength, frequency f = c/
776 Computer Vision Jan-Michael Frahm, Enrique Dunn Fall 2014.
Chapter Twenty-Five: Light 25.1 Properties of Light 25.2 Color and Vision 25.3 Optics.
Announcements Midterm out today due in a week Project2 no demo session artifact voting TBA.
Light Readings Forsyth, Chapters 4, 6 (through 6.2) by Ted Adelson.
Lecture 30: Light, color, and reflectance CS4670: Computer Vision Noah Snavely.
Appearance Models for Graphics COMS , Lecture 2 BRDFs and Radiometry Many slides courtesy Pat Hanrahan:
What is color for?.
Display Issues Ed Angel Professor of Computer Science, Electrical and Computer Engineering, and Media Arts University of New Mexico.
Lecture 4: The spectrum, color theory and absorption and photogrammetry Thursday, 14 January Ch 2.3 (color film)
Lecture 20: Light, reflectance and photometric stereo
Why Care About Color? Accurate color reproduction is commercially valuable - e.g. Kodak yellow, painting a house Color reproduction problems increased.
Colour in Computer Graphics Mel Slater. Outline: This time Introduction Spectral distributions Simple Model for the Visual System Simple Model for an.
Basic Principles of Imaging and Photometry Lecture #2 Thanks to Shree Nayar, Ravi Ramamoorthi, Pat Hanrahan.
Ch. 5 - Basic Definitions Specific intensity/mean intensity Flux
Chapter 2: Origin of Color What produces the color sensation?
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.
Color Computational Photography MIT Feb. 14, 2006 Bill Freeman and Fredo Durand.
CS348B Lecture 4Pat Hanrahan, 2005 Light Visible electromagnetic radiation Power spectrum Polarization Photon (quantum effects) Wave (interference, diffraction)
Radiation: Processes and Properties -Basic Principles and Definitions- Chapter 12 Sections 12.1 through 12.3.
Any questions about the current assignment? (I’ll do my best to help!)
25.2 The human eye The eye is the sensory organ used for vision.
01/21/05© 2005 University of Wisconsin Last Time Course introduction A simple physically-based rendering example.
Color Theory ‣ What is color? ‣ How do we perceive it? ‣ How do we describe and match colors? ‣ Color spaces.
1 Introduction to Computer Graphics with WebGL Ed Angel Professor Emeritus of Computer Science Founding Director, Arts, Research, Technology and Science.
1 Chapter 2: Color Basics. 2 What is light?  EM wave, radiation  Visible light has a spectrum wavelength from 400 – 780 nm.  Light can be composed.
BPC: Art and Computation – Summer 2007 Digital Media - Images Glenn Bresnahan
© Lastra/Machiraju/Möller Fundametals of Rendering - Radiometry / Photometry CIS 782 Advanced Computer Graphics Raghu Machiraju.
Chapter 22 Physics A First Course Light and Optics.
Panorama artifacts online –send your votes to Li Announcements.
CSCE 641 Computer Graphics: Reflection Models Jinxiang Chai.
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.
Lecture 34: Light, color, and reflectance CS4670 / 5670: Computer Vision Noah Snavely.
Computer Graphics III – Radiometry
David Luebke 1 2/5/2016 Color CS 445/645 Introduction to Computer Graphics David Luebke, Spring 2003.
ECE 638: Principles of Digital Color Imaging Systems Lecture 12: Characterization of Illuminants and Nonlinear Response of Human Visual System.
Color and Radiometry Digital Image Synthesis Yung-Yu Chuang 10/25/2007 with slides by Pat Hanrahan and Matt Pharr.
09/10/02(c) University of Wisconsin, CS559 Fall 2002 Last Time Digital Images –Spatial and Color resolution Color –The physics of color.
Physics: light waves. Properties and Sources of Light Key Question: What are some useful properties of light?
Chapter 1: Nature of light. waveparticle Wave-particle duality However strange, it correctly describes known phenomena connected with light. E = h.
CS580: Radiometry Sung-Eui Yoon ( 윤성의 ) Course URL:
Color Image Processing
Capturing Light… in man and machine
Introduction to Electromagnetic waves, Light, and color
Radiation Process and Properties
© 2002 University of Wisconsin
Color & Light CMSC 435/634.
© University of Wisconsin, CS559 Spring 2004
Computer Vision Lecture 4: Color
Light Waves Day 1.
Digital Image Synthesis Yung-Yu Chuang 10/19/2006
Announcements Midterm Project2 Project3
Digital Image Synthesis Yung-Yu Chuang 10/22/2009
Electromagnetic Waves
Presentation transcript:

Color and Radiometry Digital Image Synthesis Yung-Yu Chuang with slides by Svetlana Lazebnik, Pat Hanrahan and Matt Pharr

Radiometry Radiometry: study of the propagation of electromagnetic radiation in an environment Four key quantities: flux, intensity, irradiance and radiance These radiometric quantities are described by their spectral power distribution (SPD) Human visible light ranges from 370nm to 730nm

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

Basic radiometry pbrt is based on radiative transfer: study of the transfer of radiant energy based on radiometric principles and operates at the geometric optics level (light interacts with objects much larger than the light’s wavelength) It is based on the particle model. Hence, diffraction and interference can’t be easily accounted for.

Basic assumptions about light behavior Linearity: the combined effect of two inputs is equal to the sum of effects Energy conservation: scattering event can’t produce more energy than they started with Steady state: light is assumed to have reached equilibrium, so its radiance distribution isn’t changing over time. No polarization: we only care the frequency of light but not other properties (such as phases) No fluorescence or phosphorescence: behavior of light at a wavelength or time doesn’t affect the behavior of light at other wavelengths or time

Fluorescent materials

Color

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”

Why reflecting different colors low high heat/ chemical Light with specific wavelengths are absorbed. Fluorescent light

Primary colors Primary colors for addition (light sources) Primary colors for subtraction (reflection)

Heat generates light Vibration of atoms or electrons due to heat generates electromagnetic radiation as well. If its wavelength is within visible light (>1000K), it generates color as well. Color only depends on temperature, but not property of the object. Human body radiates IR light under room temperature K: color temperature of incandescent light bulb

Spectral power distribution fluorescent light ( 日光燈 ) 400nm (bluish) 650nm (red) 550nm (green)

Spectral power distribution lemmon skin 400nm (bluish) 650nm (red) 550nm (green)

Color Need a compact, efficient and accurate way to represent functions like these Find proper basis functions to map the infinite- dimensional space of all possible SPD functions to a low-dimensional space of coefficients For example, B(λ)=1 is a trivial but bad approximation Fortunately, according to tristimulus theory, all visible SPDs can be accurately represented with three values.

The Eye Slide by Steve Seitz

Density of rods and cones 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 pigment molecules

Human Photoreceptors

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

Metamers tungsten ( 鎢絲 ) bulb television monitor different spectrum, same perception

Color matching experiment Foundations of Vision, by Brian Wandell, Sinauer Assoc., 1995 p 1 p 2 p 3 p 1 = nm p 2 = nm p 3 = nm

Color matching experiment

To avoid negative parameters

Spectrum In core/spectrum.* Two representations: RGBSpectrum (default) and SampledSpectrum The selection is done at compile time with a typedef in core/pbrt.h typedef RGBSpectrum Spectrum; Both stores a fixed number of samples at a fixed set of wavelengths.

CoefficientSpectrum template class CoefficientSpectrum { +=, +, -, /, *, *= (CoefficientSpectrum) ==, != (CoefficientSpectrum) IsBlack, Clamp *, *=, /, /= (float) protected: float c[nSamples]; } Sqrt, Pow, Exp

SampledSpectrum Represents a SPD with uniformly spaced samples between a starting and an ending wavelength (400 to 700 nm for HVS). The number of samples, 30, is generally more than enough. static const int sampledLambdaStart = 400; static const int sampledLambdaEnd = 700; static const int nSpectralSamples = 30;

SampledSpectrum class SampledSpectrum : public CoefficientSpectrum { … } It is possible to convert SPD with irregular spaced samples and more or fewer samples into a SampledSpectrum. For example, sampled BRDF.

SampledSpectrum static SampledSpectrum FromSampled( float *lambda, float *v, int n) { SampledSpectrum r; for (int i = 0; i<nSpectralSamples; ++i) { lambda0=Lerp(i/float(nSpectralSamples), sampledLambdaStart, sampledLambdaEnd); lambda1=Lerp((i+1)/float(nSpectralSamples), sampledLambdaStart, sampledLambdaEnd); r.c[i]=AverageSpectrumSamples(lambda, v, n, lambda0, lambda1); } return r; }

AverageSpectrumSamples

Human visual system Tristimulus theory: all visible SPDs S can be accurately represented for human observers with three values, x λ, y λ and z λ. The basis are the spectral matching curves, X(λ), Y(λ) and Z(λ) determined by CIE ( 國際照明委員 會 ).

XYZ basis pbrt has discrete versions (sampled every 1nm) of these bases in core/color.cpp

XYZ color Good for representing visible SPD to human observer, but not good for spectral computation. A product of two SPD’s XYZ values is likely different from the XYZ values of the SPD which is the product of the two original SPDs. It is frequent to convert our samples into XYZ In Init(), we initialize the following static SampledSpectrum X, Y, Z; static float yint; X.c[i] stores the sum of X function within the ith wavelength interval using AverageSpectrumSamples yint stores the sum of Y.c[i]

XYZ color void ToXYZ(float xyz[3]) const { xyz[0] = xyz[1] = xyz[2] = 0.; for (int i = 0; i < nSpectralSamples; ++i) { xyz[0] += X.c[i] * c[i]; xyz[1] += Y.c[i] * c[i]; xyz[2] += Z.c[i] * c[i]; } xyz[0] /= yint; }

RGB color SPD for LCD displaysSPD for LED displays

RGB color SPDs when (0.6, 0.3, 0.2) is displayed on LED and LCD displays We need to know display characteristics to display the color described by RGB values correctly.

Conversions (R,G,B) x λ, y λ, z λ (R,G,B) device dependent Here, we use the one for HDTV ToXYZ spectrum (eg. SampledSpectrum ) XYZToRGB FromRGB A heuristic process which satisfies some criteria

RGBSpectrum Note that RGB representation is ill-defined. Same RGB values display different SPDs on different displays. To use RGB to display a specific SPD, we need to know display characteristics first. But, it is convenient, computation and storage efficient. class RGBSpectrum : public CoefficientSpectrum { using CoefficientSpectrum ::c; … }

Radiometry

Photometry Luminance

Basic quantities Flux: power, (W) Irradiance: flux density per area, (W/m 2 ) Intensity: flux density per solid angle Radiance: flux density per solid angle per area non-directional directional

Flux (Φ) Radiant flux, power Total amount of energy passing through a surface per unit of time (J/s,W)

Irradiance (E) Area density of flux (W/m 2 ) Lambert’s lawInverse square law

Angles and solid angles Angle Solid angle The solid angle subtended by a surface is defined as the surface area of a unit sphere covered by the surface's projection onto the sphere.  circle has 2  radians  sphere has 4  steradians

Intensity (I) Flux density per solid angle Intensity describes the directional distribution of light

Radiance (L) Flux density per unit area per solid angle Most frequently used, remains constant along ray. All other quantities can be derived from radiance

Calculate irradiance from radiance Light meter

Irradiance Environment Maps Radiance Environment Map Irradiance Environment Map R N

Differential solid angles Goal: find out the relationship between d  and dθ, d  Why? In the integral, d ω is uniformly divided. To convert the integral to We have to find the relationship between d  and uniformly divided dθ and d .

Differential solid angles Can we find the surface area of a unit sphere by ?

Differential solid angles Goal: find out the relationship between d  and dθ, d  By definition, we know that

Differential solid angles We can prove that

Differential solid angles We can prove that

Isotropic point source If the total flux of the light source is Φ, what is the intensity?

Warn ’ s spotlight If the total flux is Φ, what is the intensity?

Warn ’ s spotlight If the total flux is Φ, what is the intensity?