EECS 274 Computer Vision Light and Shading. Radiometry – measuring light Relationship between light source, surface geometry, surface properties, and.

Slides:



Advertisements
Similar presentations
The Radiance Equation.
Advertisements

Computer Vision Radiometry. Bahadir K. Gunturk2 Radiometry Radiometry is the part of image formation concerned with the relation among the amounts of.
Lecture 35: Photometric stereo CS4670 / 5670 : Computer Vision Noah Snavely.
Capturing light Source: A. Efros. Image formation How bright is the image of a scene point?
The Radiance Equation Mel Slater. Outline Introduction Light Simplifying Assumptions Radiance Reflectance The Radiance Equation Traditional Rendering.
Foundations of Computer Graphics (Spring 2012) CS 184, Lecture 21: Radiometry Many slides courtesy Pat Hanrahan.
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.
Physically Based Illumination Models
Photo-realistic Rendering and Global Illumination in Computer Graphics Spring 2012 Material Representation K. H. Ko School of Mechatronics Gwangju Institute.
Graphics Graphics Korea University cgvr.korea.ac.kr Illumination Model 고려대학교 컴퓨터 그래픽스 연구실.
Advanced Computer Graphics (Spring 2013) CS 283, Lecture 8: Illumination and Reflection Many slides courtesy.
Computer Vision - A Modern Approach Set: Radiometry Slides by D.A. Forsyth Radiometry Questions: –how “bright” will surfaces be? –what is “brightness”?
Torrance Sparrow Model of Reflectance + Oren Nayar Model of Reflectance.
Capturing light Source: A. Efros. Review Pinhole projection models What are vanishing points and vanishing lines? What is orthographic projection? How.
Image Formation (approximately) Vision infers world properties form images. So we need to understand how images depend on these properties. Two key elements.
Representations of Visual Appearance COMS 6160 [Fall 2006], Lecture 2 Ravi Ramamoorthi
3-D Computer Vision CSc83029 / Ioannis Stamos 3-D Computer Vision CSc Radiometry and Reflectance.
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:
Image Formation (approximately) Vision infers world properties form images. So we need to understand how images depend on these properties. Two key elements.
Radiometry, lights and surfaces
© 2002 by Davi GeigerComputer Vision January 2002 L1.1 Image Formation Light can change the image (and appearances). What is the relation between pixel.
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
© 2004 by Davi GeigerComputer Vision February 2004 L1.1 Image Formation Light can change the image and appearances (images from D. Jacobs) What is the.
Image formation 2. Blur circle A point at distance is imaged at point from the lens and so Points a t distance are brought into focus at distance Thus.
© 2003 by Davi GeigerComputer Vision September 2003 L1.1 Image Formation Light can change the image and appearances (images from D. Jacobs) What is the.
Basic Principles of Surface Reflectance Lecture #3 Thanks to Shree Nayar, Ravi Ramamoorthi, Pat Hanrahan.
Computer Graphics (Fall 2004) COMS 4160, Lecture 16: Illumination and Shading 2 Lecture includes number of slides from.
Lighting affects appearance. Light Source emits photons Photons travel in a straight line When they hit an object they: bounce off in a new direction.
Light and shading Source: A. Efros.
CS 445 / 645: Introductory Computer Graphics
Reflectance Map: Photometric Stereo and Shape from Shading
Computer Vision CS 776 Spring 2014 Cameras & Photogrammetry 3 Prof. Alex Berg (Slide credits to many folks on individual slides)
Image formation ECE 847: Digital Image Processing Stan Birchfield Clemson University.
MIT EECS 6.837, Durand and Cutler Local Illumination.
Capturing light Source: A. Efros.
Sources, Shadows, and Shading
111/17/ :21 Graphics II Global Rendering and Radiosity Session 9.
Announcements Office hours today 2:30-3:30 Graded midterms will be returned at the end of the class.
04/30/02(c) 2002 University of Wisconsin Last Time Subdivision techniques for modeling We are now all done with modeling, the standard hardware pipeline.
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.
Shape from Shading Course web page: vision.cis.udel.edu/cv February 26, 2003  Lecture 6.
In the name of God Computer Graphics. Last Time Some techniques for modeling Today Global illumination and raytracing.
1Ellen L. Walker 3D Vision Why? The world is 3D Not all useful information is readily available in 2D Why so hard? “Inverse problem”: one image = many.
Radiometry of Image Formation Jitendra Malik. A camera creates an image … The image I(x,y) measures how much light is captured at pixel (x,y) We want.
01/27/03© 2002 University of Wisconsin Last Time Radiometry A lot of confusion about Irradiance and BRDFs –Clarrified (I hope) today Radiance.
Illumination Study of how different materials reflect light Definition of radiance, the fundamental unit of light transfer in computer graphics How the.
CS552: Computer Graphics Lecture 33: Illumination and Shading.
Radiometry of Image Formation Jitendra Malik. What is in an image? The image is an array of brightness values (three arrays for RGB images)
EECS 274 Computer Vision Sources, Shadows, and Shading.
1 Ch. 4: Radiometry–Measuring Light Preview 。 The intensity of an image reflects the brightness of a scene, which in turn is determined by (a) the amount.
Computer vision: geometric models Md. Atiqur Rahman Ahad Based on: Computer vision: models, learning and inference. ©2011 Simon J.D. Prince.
Announcements Project 3a due today Project 3b due next Friday.
CS580: Radiometry Sung-Eui Yoon ( 윤성의 ) Course URL:
CS262 – Computer Vision Lect 4 - Image Formation
Shading Revisited Some applications are intended to produce pictures that look photorealistic, or close to it The image should look like a photograph A.
Advanced Computer Graphics
BRDFs Randy Rauwendaal.
Radiometry (Chapter 4).
© 2002 University of Wisconsin
Terminology.
Capturing light Source: A. Efros.
Part One: Acquisition of 3-D Data 2019/1/2 3DVIP-01.
Lecture 28: Photometric Stereo
Computer Graphics (Fall 2003)
Presentation transcript:

EECS 274 Computer Vision Light and Shading

Radiometry – measuring light Relationship between light source, surface geometry, surface properties, and receiving end (camera) Inferring shape from surface reflectance –Photometric stereo –Shape from shading Reading: FP Chapter 2, S Chapter 2, H Chapter 10

Radiometry Questions: –how “bright” will surfaces be? –what is “brightness”? measuring light interactions between light and surfaces Core idea - think about light arriving at a surface Around any point is a hemisphere of directions Simplest problems can be dealt with by reasoning about this hemisphere (summing effects due to all incoming directions)

Shape, illumination and reflectance Estimating shape and surface reflectance properties from its images If we know the shape and illumination, can say something about reflectance (e.g., light field rendering in graphics) Usually reflectance and shape are coupled (e.g., inverse problem in vision)

Foreshortening As a source is tiled wrt the direction in which the light is traveling  it looks smaller to a patch of surface viewing the source As a patch is tiled wrt to the direction in which the light is traveling  it looks smaller to the source The effect of a source on a surface depends on how the source looks from the point of view of the surface

Foreshortening Principle: two sources that look the same to a receiver must have the same effect on the receiver Principle: two receivers that look the same to a source must receive the same amount of energy “look the same” means produce the same input hemisphere (or output hemisphere) Reason: what else can a receiver know about a source but what appears on its input hemisphere? (ditto, swapping receiver and source) Crucial consequence: a big source (resp. receiver), viewed at a glancing angle, must produce (resp. experience) the same effect as a small source (resp. receiver) viewed frontally

Solid angle The pattern a source generates on an input hemisphere is described by the solid angle In a plane, an infinitesimally short line segment subtends an infinitesimally small angle

Solid angle By analogy with angle (in radians), the solid angle subtended by a region at a point is the area projected on a unit sphere centered at that point The solid angle subtended by a patch area dA is given by Another useful expression in angular coordinate: unit: steradians (sr)

Measuring light in free space The distribution of light in space is a function of position and direction Think about the power transferred from an infinitesimal source to an infinitesimal receiver We have total power leaving s to r = total power arriving at r from s Also: Power arriving at r is proportional to: –solid angle subtended by s at r (because if s looked bigger from r, there’d be more) –foreshortened area of r (because a bigger r will collect more power)

Radiance Amount of energy (power) traveling at some point in a specified direction, per unit area perpendicular to the direction of travel (foreshortened area), per unit solid angle (w × m -2 × sr -1 ) Small surface patch viewing a source frontally collect more energy than the same patch viewing along a nearly tangent direction The amount of received energy depends on –How large the source looks from the patch, and –How large the patch looks from the source A function of position and direction:

Radiance (cont’d) The square meters in the units are foreshortened (i.e., perpendicular to the direction of travel) Crucial property: In a vacuum, radiance leaving p in the direction of q is the same as radiance arriving at q from p –which was how we got to the unit

Radiance is constant along straight lines Power 1->2, leaving 1: Power 1->2, arriving at 2: But these must be the same, so that the two radiances are equal Energy emitted by the patch Radiance leaving P 1 in the direction of P 2 is Radiance arriving at P 2 from the direction of P 1 is Solid angle subtended by patch 2 at patch 1 Radiance × foreshortened area × solid angle × time

Radiance is constant along straight lines Power 1->2, arriving 2: Power 1->2, arriving at 2: But these must be the same, so that the two radiances are equal which means that so that radiance is constant along straight lines

Light at surfaces Many effects when light strikes a surface -- could be: –absorbed –transmitted skin –reflected mirror –scattered milk –travel along the surface and leave at some other point sweaty skin Fluorescence: Some surfaces absorb light at one wavelength and radiate light at a different wavelength Assume that –all the light leaving a point is due to that arriving at that point –surfaces don’t fluoresce (light leaving a surface at a given wavelength is due to light arriving at that wavelength) –surfaces don’t emit light (i.e. are cool)

Irradiance Describe the relationship between –incoming illumination, and –reflected light A function of both –the direction in which light arrives at a surface –and the direction in which it leaves

Irradiance (cont’d) How much light is arriving at a surface? Sensible unit is irradiance Incident power per unit area not foreshortened A surface experiencing radiance L(x  ) coming in from d  experiences irradiance Crucial property: Total power arriving at the surface is given by adding irradiance over all incoming angles --- this is why it’s a natural unit Total power is Irradiance = radiance × foreshortening factor × solid angle

The BRDF Can model this situation with the Bidirectional Reflectance Distribution Function (BRDF) The most general model of local reflection A surface illuminated by radiance coming in from a region of solid angle dω at angle to emit radiance

BRDF Units: inverse steradians (sr -1 ) Symmetric in incoming and outgoing directions –this is the Helmholtz reciprocity principle Radiance leaving a surface in a particular direction: Add contributions from every incoming direction of a hemisphere Ω (whatever the direction of irradiance)

Helmholtz stereopsis Exploit the symmetry of surface reflectance For corresponding pixels, the ratio of incident radiance to emitted radiance is the same Derive a relationship between the intensities of corresponding pixels that does not depend on the BRDF of the surface

Suppressing angles - Radiosity In many situations, we do not really need angle coordinates –e.g. cotton cloth, where the reflected light is not dependent on angle If the radiance leaving the surface is independent of exit angle, no need describing a unit that depends on direction Appropriate unit is radiosity –total power leaving a point on the surface, per unit area on the surface (Wm -2 ) –note that this is independent of the exit direction Radiosity B(P) from radiance? –sum radiance leaving surface over all exit directions, multiplying by a cosine because this is per unit area not per unit foreshortened area

Radiosity Important relationship: –radiosity of a surface whose radiance is independent of angle (e.g. that cotton cloth)

Radiosity Radiosity used in rendering surfaces reflect light diffusely viewpoint independent

Suppressing angles: BRDF BRDF is a very general notion –some surfaces need it –very hard to measure illuminate from one direction, view from another, repeat –very unstable minor surface damage can change the BRDF e.g. ridges of oil left by contact with the skin can act as lenses For many surfaces, light leaving the surface is largely independent of exit angle – surface roughness is one source of this property

Directional hemispheric reflectance The light leaving a surface is largely independent of exit angle Directional hemispheric reflectance (DHR): –The fraction of the incident irradiance in a given direction that is reflected by the surface (whatever the direction of reflection) –Summing the radiance leaving the surface over all directions and dividing it by the irradiance in the direction of illumination –unitless, range is 0 to 1 Note that DHR varies with incoming direction –e.g. a ridged surface, where left facing ridges are absorbent and right facing ridges reflect

Lambertian surfaces and albedo For some surfaces, the DHR is independent of illumination direction too –cotton cloth, carpets, matte paper, matte paints, etc. For such surfaces, radiance leaving the surface is independent of angle Called Lambertian surfaces (same Lambert) or ideal diffuse surfaces Use radiosity as a unit to describe light leaving the surface For a Lambertian surface, BRDF is independent of angle, too For Lambertian surfaces, DHR is often called diffuse reflectance, or albedo, ρ d Useful fact:

Lambertian objects

Non-Lambertian objects

Specular surfaces Another important class of surfaces is specular, or mirror- like –radiation arriving along a direction leaves along the specular direction –reflect about normal –some fraction is absorbed, some reflected –on real surfaces, energy usually goes into a lobe of directions –can write a BRDF, but requires the use of funny functions

Phong’s model There are very few cases where the exact shape of the specular lobe matters Typically –very, very small --- mirror –small -- blurry mirror –bigger -- see only light sources as “specularities” –very big -- faint specularities Phong’s model –reflected energy falls off with

Lambertian + specular Widely used model –all surfaces are Lambertian plus specular component Advantages –easy to manipulate –very often quite close true Disadvantages –some surfaces are not e.g. underside of CD’s, feathers of many birds, blue spots on many marine crustaceans and fish, most rough surfaces, oil films (skin!), wet surfaces –Generally, very little advantage in modeling behavior of light at a surface in more detail -- it is quite difficult to understand behavior of L+S surfaces