Color and Radiometry Digital Image Synthesis Yung-Yu Chuang 10/25/2007 with slides by Pat Hanrahan and Matt Pharr.

Slides:



Advertisements
Similar presentations
The Radiance Equation.
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
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.
16421: Vision Sensors Lecture 6: Radiometry and Radiometric Calibration Instructor: S. Narasimhan Wean 5312, T-R 1:30pm – 2:50pm.
Basic Principles of Surface Reflectance
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
Physically Based Illumination Models
Radiometric Concepts Remote Sensing ERAU Dr. Darrel Smith September 30, 2008 Remote Sensing ERAU Dr. Darrel Smith September 30, 2008.
Photo-realistic Rendering and Global Illumination in Computer Graphics Spring 2012 Material Representation K. H. Ko School of Mechatronics Gwangju Institute.
Advanced Computer Graphics (Spring 2013) CS 283, Lecture 8: Illumination and Reflection Many slides courtesy.
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/
Computer graphics & visualization Pre-Computed Radiance Transfer PRT.
Color and Radiometry Digital Image Synthesis Yung-Yu Chuang with slides by Svetlana Lazebnik, Pat Hanrahan and Matt Pharr.
Lecture 30: Light, color, and reflectance CS4670: Computer Vision Noah Snavely.
Stefano Soatto (c) UCLA Vision Lab 1 Homogeneous representation Points Vectors Transformation representation.
Appearance Models for Graphics COMS , Lecture 2 BRDFs and Radiometry Many slides courtesy Pat Hanrahan:
Computer Graphics (Fall 2008) COMS 4160, Lecture 19: Illumination and Shading 2
Introduction to Computer Vision CS / ECE 181B Tues, May 18, 2004 Ack: Matthew Turk (slides)
Basic Principles of Surface Reflectance
What is color for?.
Fiber-Optic Communications James N. Downing. Chapter 2 Principles of Optics.
Computer Graphics (Fall 2004) COMS 4160, Lecture 16: Illumination and Shading 2 Lecture includes number of slides from.
Lecture 4: The spectrum, color theory and absorption and photogrammetry Thursday, 14 January Ch 2.3 (color film)
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
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.
01/24/05© 2005 University of Wisconsin Last Time Raytracing and PBRT Structure Radiometric quantities.
Attenuation by absorption and scattering
02/25/05© 2005 University of Wisconsin Last Time Meshing Volume Scattering Radiometry (Adsorption and Emission)
MIT EECS 6.837, Durand and Cutler Local Illumination.
01/21/05© 2005 University of Wisconsin Last Time Course introduction A simple physically-based rendering example.
Color. Contents Light and color The visible light spectrum Primary and secondary colors Color spaces –RGB, CMY, YIQ, HLS, CIE –CIE XYZ, CIE xyY and CIE.
Color Theory ‣ What is color? ‣ How do we perceive it? ‣ How do we describe and match colors? ‣ Color spaces.
© Lastra/Machiraju/Möller Fundametals of Rendering - Radiometry / Photometry CIS 782 Advanced Computer Graphics Raghu Machiraju.
111/17/ :21 Graphics II Global Rendering and Radiosity Session 9.
Reflection models Digital Image Synthesis Yung-Yu Chuang 11/01/2005 with slides by Pat Hanrahan and Matt Pharr.
Photo-realistic Rendering and Global Illumination in Computer Graphics Spring 2012 Material Representation K. H. Ko School of Mechatronics Gwangju Institute.
CSCE 641 Computer Graphics: Reflection Models Jinxiang Chai.
Introduction to Computer Graphics
Lecture 34: Light, color, and reflectance CS4670 / 5670: Computer Vision Noah Snavely.
Computer Graphics III – Radiometry
ECE 638: Principles of Digital Color Imaging Systems Lecture 3: Trichromatic theory of color.
Jaroslav Křivánek, MFF UK
ECE 638: Principles of Digital Color Imaging Systems Lecture 12: Characterization of Illuminants and Nonlinear Response of Human Visual System.
09/10/02(c) University of Wisconsin, CS559 Fall 2002 Last Time Digital Images –Spatial and Color resolution Color –The physics of color.
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:
Advanced Computer Graphics
Light, Color & Perception
Radiometry (Chapter 4).
© 2002 University of Wisconsin
10: Electromagnetic Radiation
Computer Vision Lecture 4: Color
Chapter 1: Nature of light
Digital Image Synthesis Yung-Yu Chuang 10/19/2006
Digital Image Synthesis Yung-Yu Chuang 10/22/2009
Electromagnetic Waves
Light and Illumination
Presentation transcript:

Color and Radiometry Digital Image Synthesis Yung-Yu Chuang 10/25/2007 with slides by 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

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

Spectrum In core/color.* Not a plug-in, to use inline for performance Spectrum stores a fixed number of samples at a fixed set of wavelengths. Better for smooth functions. #define COLOR_SAMPLE 3 class COREDLL Spectrum { public: private: float c[COLOR_SAMPLES];... } component-wise + - * / comparison… Why is this possible? Human vision system We actually sample RGB

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

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

Metamers tungsten ( 鎢絲 ) bulb television monitor

Human Photoreceptors *=

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. Hence, we often have to convert our samples (RGB) into XYZ void XYZ(float xyz[3]) const { xyz[0] = xyz[1] = xyz[2] = 0.; for (int i = 0; i < COLOR_SAMPLES; ++i) { xyz[0] += XWeight[i] * c[i]; xyz[1] += YWeight[i] * c[i]; xyz[2] += ZWeight[i] * c[i]; }

Conversion between XYZ and RGB float Spectrum::XWeight[COLOR_SAMPLES] = { f, f, f }; float Spectrum::YWeight[COLOR_SAMPLES] = { f, f, f }; float Spectrum::ZWeight[COLOR_SAMPLES] = { f, f, f }; Spectrum FromXYZ(float x, float y, float z) { float c[3]; c[0] = f * x f * y f * z; c[1] = f * x f * y f * z; c[2] = f * x f * y f * z; return Spectrum(c); }

Conversion between XYZ and RGB vector sampled at several wavelengths such as (R,G,B) x λ, y λ, z λ (R,G,B) device dependent

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

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 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?

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?

Irradiance: isotropic point source What is the irradiance for this point?

Irradiance: isotropic point source

Lambert law Inverse square law

Irradiance: isotropic point source