Shape and Reflectance Estimation Techniques Dana Cobzas PIMS postdoc.

Slides:



Advertisements
Similar presentations
Computer Vision Radiometry. Bahadir K. Gunturk2 Radiometry Radiometry is the part of image formation concerned with the relation among the amounts of.
Advertisements

Computer Vision Spring ,-685 Instructor: S. Narasimhan Wean 5403 T-R 3:00pm – 4:20pm Lecture #12.
Environment Mapping CSE 781 – Roger Crawfis
Spherical Convolution in Computer Graphics and Vision Ravi Ramamoorthi Columbia Vision and Graphics Center Columbia University SIAM Imaging Science Conference:
Capturing light Source: A. Efros. Image formation How bright is the image of a scene point?
Measuring BRDFs. Why bother modeling BRDFs? Why not directly measure BRDFs? True knowledge of surface properties Accurate models for graphics.
Advanced Computer Graphics
Foundations of Computer Graphics (Spring 2012) CS 184, Lecture 21: Radiometry Many slides courtesy Pat Hanrahan.
Basic Principles of Surface Reflectance
Radiometry. Outline What is Radiometry? Quantities Radiant energy, flux density Irradiance, Radiance Spherical coordinates, foreshortening Modeling surface.
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.
Computer Vision - A Modern Approach Set: Radiometry Slides by D.A. Forsyth Radiometry Questions: –how “bright” will surfaces be? –what is “brightness”?
A Signal-Processing Framework for Inverse Rendering Ravi Ramamoorthi Pat Hanrahan Stanford University.
Lecture 23: Photometric Stereo CS4670/5760: Computer Vision Kavita Bala Scott Wehrwein.
A Signal-Processing Framework for Forward and Inverse Rendering COMS , Lecture 8.
AA II z f Surface Radiance and Image Irradiance Same solid angle Pinhole Camera Model.
Capturing light Source: A. Efros. Review Pinhole projection models What are vanishing points and vanishing lines? What is orthographic projection? How.
An Efficient Representation for Irradiance Environment Maps Ravi Ramamoorthi Pat Hanrahan Stanford University.
Computer Graphics (Spring 2008) COMS 4160, Lecture 20: Illumination and Shading 2
3-D Computer Vision CSc83029 / Ioannis Stamos 3-D Computer Vision CSc Radiometry and Reflectance.
Radiometry, lights and surfaces
Advanced Computer Graphics (Fall 2010) CS 283, Lecture 10: Global Illumination Ravi Ramamoorthi Some images courtesy.
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
Computer Vision Sources, shading and photometric stereo Marc Pollefeys COMP 256.
Lecture 2 Image cues Shading, Stereo, Specularities Dana Cobzas PIMS Postdoc.
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.
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.
1 Dr. Scott Schaefer Radiosity. 2/38 Radiosity 3/38 Radiosity Physically based model for light interaction View independent lighting Accounts for indirect.
Measure, measure, measure: BRDF, BTF, Light Fields Lecture #6
Light and shading Source: A. Efros.
Computer Vision Spring ,-685 Instructor: S. Narasimhan PH A18B T-R 10:30am – 11:50am Lecture #13.
Titre.
EECS 274 Computer Vision Light and Shading. Radiometry – measuring light Relationship between light source, surface geometry, surface properties, and.
Projects  Any Q/A or any help TA and I can provide?  Read most proposals and ed feedback. Feel free to engage in dialogue with TA/me on how to proceed/
Computer Vision - A Modern Approach Set: Sources, shadows and shading Slides by D.A. Forsyth Sources and shading How bright (or what colour) are objects?
MIT EECS 6.837, Durand and Cutler Local Illumination.
-Global Illumination Techniques
Real-Time Rendering Digital Image Synthesis Yung-Yu Chuang 01/03/2006 with slides by Ravi Ramamoorthi and Robin Green.
Capturing light Source: A. Efros.
Sources, Shadows, and Shading
EECS 274 Computer Vision Sources, Shadows, and Shading.
Lighting affects appearance. How do we represent light? (1) Ideal distant point source: - No cast shadows - Light distant - Three parameters - Example:
Radiometry and Photometric Stereo 1. Estimate the 3D shape from shading information Can you tell the shape of an object from these photos ? 2.
111/17/ :21 Graphics II Global Rendering and Radiosity Session 9.
776 Computer Vision Jan-Michael Frahm, Enrique Dunn Spring 2012.
Announcements Office hours today 2:30-3:30 Graded midterms will be returned at the end of the class.
Global Illumination: Radiosity, Photon Mapping & Path Tracing Rama Hoetzlein, 2009 Lecture Notes Cornell University.
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.
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.
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.
Advanced Computer Graphics
MAN-522 Computer Vision Spring
Advanced Computer Graphics
Advanced Computer Graphics
Radiometry (Chapter 4).
Capturing light Source: A. Efros.
Radiosity Dr. Scott Schaefer.
Part One: Acquisition of 3-D Data 2019/1/2 3DVIP-01.
Lecture 28: Photometric Stereo
Presentation transcript:

Shape and Reflectance Estimation Techniques Dana Cobzas PIMS postdoc

Until now …  SFM to reconstruct points from feature points (camera geometry, projective spaces …)  Feature correspondence : correlation, tracking assumes image constancy – constant illumination, no specularities, complex material  No notion of object surface  No notion of surface properties (reflectance) Tracked features Structure from motion poses structure

Now …  View surface as a whole – different surface representations  Consider interaction of surface with light – explicitly model light, reflectance, material properties Reconstruct whole objects = surface Reconstruct material properties = reflectance SFMSurface estimationReflectance estimation

Brief outline  Image formation - camera, light,reflectance  Radiometry and reflectance equation  BRDF  Light models and inverse light  Shading, Interreflections  Image cues – shading  Photometric stereo  Shape from shading  Image cues – stereo  Image cues – general reflectance  Multi-view methods  Volumetric – space carving  Graph cuts  Variational stereo  Level sets  Mesh Lec 1 Lec 2 Lec 3,4

Radiometry Light and Reflectance Lecture 1

Image formation Image Shading Shadows Specular highlights [Intereflections] [Transparency] Images 2D + [3D shape] Light [+ Reflectance+Texture] Light Shape Camera Reflectance Texture

Summary 1. Cameras 2. Radiometry and reflectance equation 3. BRDF – surface reflectance 4. Light representation – 5. Image cues: shading, shadows, interreflections 6. Recovering Light (Inverse Light)

1. Projective camera model Camera matrix (internal params) Rotation, translation (ext. params) [Dürer] Projection matrix

Orthographic camera model Infinite Projection matrix - last row is (0,0,0,1) Good Approximations – object is far from the camera (relative to its size) P p Image plane Direction of projection

2. Radiometry  Foreshortening and Solid angle  Measuring light : radiance  Light at surface : interaction between light and surface  irradiance = light arriving at surface  BRDF  outgoing radiance  Special cases and simplifications : Lambertain, specular, parametric and non-parametric models Incoming Outgoing

Foreshortening Two sources that look the same to a receiver must have same effect on the receiver; Two receivers that look the same to a source must receive the same energy.

Solid angle [Forsyth and Ponce] The solid angle subtended by a region at a point is the area projected on a unit sphere centered at the point  Measured in steradians (sr)  Foreshortening : patches that look the same, same solid angle.

Radiance – emitted light  unit = watts/(m 2 sr)  constant along a ray Radiance = power traveling at some point in a direction per unit area perp to direction of travel, per solid angle Radiance transfer : Power received at dA 2 at dist r from emitting area dA 1

Light at surface : irradiance Irradiance = unit for light arriving at the surface Total power = integrate irradiance over all incoming angles

Light leaving the surface and BRDF ? many effects :  transmitted - glass  reflected - mirror  scattered – marble, skin  travel along a surface, leave some other  absorbed - sweaty skin BRDF = Bi-directional reflectance distribution function Measures, for a given wavelength, the fraction of incoming irradiance from a direction  i in the outgoing direction  o [Nicodemus 70] Reflectance equation : measured radiance (radiosity = power/unit area leaving surface Assume: surfaces don’t fluorescent cool surfaces light leaving a surface due to light arriving

Reflection as convolution Reflectance equation [Ramamoorthi and Hanharan] Reflection behaves like a convolution in the angular domain BRDF – filter Light - signal

Radiosity - summary RadianceLight energy IrradianceUnit incoming light Total Energy incoming Energy at surface RadiosityUnit outgoing radiance Total energy leaving Energy leaving the surface

3. BRDF properties Properties :  Non-negative  Helmholtz reciprocity  Linear  Total energy leaving a surface less than total energy arriving at surface BRDF = Bi-directional reflectance distribution function Measures, for a given wavelength, the fraction of incoming irradiance from a direction  i in the outgoing direction  o [Nicodemus 70]

BRDF properties anisotropic (4 DOF) [Hertzmann&Seitz CVPR03] isotropic (3DOF) =

Lambertian BRDF  Emitted radiance constant in all directions  Models – perfect diffuse surfaces : clay, mate paper, …  BRDF = constant = albedo  One light source = dot product normal and light direction albedo normal light dir Diffuse reflectance acts like a low pass filter on the incident illumination.

Specular reflection Smooth specular surfaces  Mirror like surfaces  Light reflected along specular direction  Some part absorbed Rough specular surfaces  Lobe of directions around the specular direction  Microfacets Lobe  Very small – mirror  Small – blurry mirror  Bigger – see only light sources  Very big – fait specularities

Phong model Symmetric V shaped microfacets Specular dir

Modeling BRDF Parametric model:  Lambertian, Phong  Physically based:  Specular [Blinn 1977] [Cook-Torrace 1982][Ward 1992]  Diffuse [Hanharan, Kreuger 1993]  Generalized Lambertian [ Oren, Nayar 1995]  Throughly Pitted surfaces [Koenderink et al 1999]  Phenomenological:  [Koenderink, Van Doorn 1996] summarize empirical data orthonormal functions on the ( hemisphere) same topol. as unit disk (Zernike Polynomials) K 00 K -11 K 11 K -22 K 20 K 22

Measuring BRDF Gonioreflectometers  Anisotropic 4 DOF  Non-uniform [Müller 04] BTF [Dana et al 1999] More than BRDF – BSSRDF (bidirectional surface scattering distribution) BRDFBSSRDF [Jensen, Marschner, Leveoy, Hanharan 01]

4. Light representations  Infinite  Nearby Choosing a model  infinite - sun  finite - distance to source is similar in magnitude with object size and distance between objects - indoor lights Point light sources Light source – theoretical framework [Langer, Zucker-What is a light source]

Area sources Examples : white walls, diffuse boxes Radiosity : adding up contributions over the section of the view hemisphere subtended by the source

Enviromental map [Debevec] Illumination hemisphere Large number of infinite point light sources

Lambertian reflectance Shading = observed smooth color variation due to Lambertian reflectance 5. Image cues shading, shadows, specularities … Shading

Specular highlights High frequency changes in observed radiance due to general BRDF (shiny material)

Shadows (local) 1.Point light sources Points that cannot see the source – modeled by a visibility binary value attached shadows = due to object geometry (self-shadows) cast shadows = due to other objects Cast shadow Attached shadow 2. Area light sources Soft shadows – partial occlusion illuminated umbra penumbra

White room under bright light. Below cross-section of image intensity [Forsyth, Zisserman CVPR89] Interreflections Local shading – radiosity only due to light sources [computer vision, real-time graphics] Global illumination – radiosity due to radiance reflected from light sources as well as surfaces [computer graphics]

Transparency Special setups for image aquisition Enviroment mating [Matusik et al Eurographics 2002] [Szeliski et al Siggraph 2000]

6. Inverse light Deconvolution of light from observed radiance Assumptions:  known camera position  known object geometry  [known or constant BRDF]  [uniform or given texture] Estimating multiple point light sources Estimating complex light : light basis

Estimating point light sources Infinite single light source Lambertian reflectance – light from shading  known or constant albedo ρ  known N(x)  recover L (light color) and L (direction) from >= 4 points. Multiple light sources Calibration sphere Critical points/curves - Sensitive to noise [Yang Yuille 91] [Bouganis 03]

Estimating complex light Light from specular reflections [Nishimo,Ikeuchi ICCV 2001]  Recover a discrete illumination hemisphere  Specular highlights appear approximately at mirror directions between light and camera rays  Trace back and compute intersection with hemisphere Recovered hemisphere Diffuse reflectance acts like a low pass filter on the incident illumination. Can only recover low frequency components. Use other image cues ! Capture light direcly using a mirror sphere Specular dir

Estimating complex light Light from cast shadows [Li Lin Shun 03] [Sato 03]  Shadows are caused by light being occluded by the scene.  The measured radiance has high frequency components introduced by the shadows. Shadow indicator

Light basis representation  Analog on the sphere to the Fourier basis on the line or circle  Angular portion of the solution to Laplace equation in spherical coordinates  Orthonormal basis for the set of all functions on the surface of the sphere Normalization factor Legendre functions Fourier basis Spherical harmonics basis

Illustration of SH odd components even components Positive Negative x,y,z space coordinates; polar coordinates

Properties of SH Function decomposition f piecewise continuous function on the surface of the sphere where Rotational convolution on the sphere Funk-Hecke theorem: k circularly symmetric bounded integrable function on [-1,1] convolution of a (circularly symmetric) function k with a spherical harmonic Y lm results in the same harmonic, scaled by a scalar α l

Reflectance as convolution Lambertian reflectance One light Lambertian kernel Integrated light SH representation Lambertian kernel light Lambertian reflectance (convolution theorem)

Convolution kernel Lambertian kernel [Basri & Jacobs 01] [Ramamoorthi & Hanrahan 01]  Second order approximation accounts for 99% variability  k like a low-pass filter Asymptotic behavior of k l for large l

From reflectance to images Unit sphere  general shape Rearrange normals on the sphere Reflectance on a sphere Image point with normal

Example of approximation Exact image 9 terms approximation [Ramamoorthi and Hanharan: An efficient representation for irradiance enviromental map Siggraph 01] Efficient rendering  known shape  complex illumination (compressed)

SH light basis limitations:  Not good representation for high frequency (sharp) effects ! (specularities)  Can efficiently represent illumination distribution localized in the frequency domain  BUT a large number of basis functions are required for representing illumination localized in the angular domain. Basis that has both frequency and spatial support Wavelets Spherical distributions Light probe sampling Extensions to other basis [Upright CRV 07] [Okabe Sato CVPR 2004] [Hara, Ikeuchi ICCV 05] [Debevec Siggraph 2005] [Madsen et al. Eurographics 2003]

Basis with local support [Upright Cobzas 07] Wavelet Basis Median cut [Debevec Siggraph 2005] Not localized in frequency!