Computer Vision Spring 2006 15-385,-685 Instructor: S. Narasimhan Wean 5403 T-R 3:00pm – 4:20pm Lecture #12.

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

Announcements Project 2 due today Project 3 out today –demo session at the end of class.
Lecture 35: Photometric stereo CS4670 / 5670 : Computer Vision Noah Snavely.
3D Modeling from a photograph
Capturing light Source: A. Efros. Image formation How bright is the image of a scene point?
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
Shadow Scanning [Bouguet 1999] Desk Lamp Camera Stick or pencil Desk The idea [Bouguet and Perona’98] J.-Y. Bouguet and P. Perona, “3D Photography on your.
Torrance Sparrow Model of Reflectance + Oren Nayar Model of Reflectance.
Shape-from-X Class 11 Some slides from Shree Nayar. others.
Lecture 23: Photometric Stereo CS4670/5760: Computer Vision Kavita Bala Scott Wehrwein.
AA II z f Surface Radiance and Image Irradiance Same solid angle Pinhole Camera Model.
Course Review CS/ECE 181b Spring Topics since Midterm Stereo vision Shape from shading Optical flow Face recognition project.
May 2004SFS1 Shape from shading Surface brightness and Surface Orientation --> Reflectance map READING: Nalwa Chapter 5. BKP Horn, Chapter 10.
3-D Computer Vision CSc83029 / Ioannis Stamos 3-D Computer Vision CSc Radiometry and Reflectance.
Visibility Subspaces: Uncalibrated Photometric Stereo with Shadows Kalyan Sunkavalli, Harvard University Joint work with Todd Zickler and Hanspeter Pfister.
1 CSCE 641: Computer Graphics Lighting Jinxiang Chai.
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.
Objectives Learn to shade objects so their images appear three- dimensional Learn to shade objects so their images appear three- dimensional Introduce.
Lecture 32: Photometric stereo, Part 2 CS4670: Computer Vision Noah Snavely.
Basic Principles of Surface Reflectance Lecture #3 Thanks to Shree Nayar, Ravi Ramamoorthi, Pat Hanrahan.
Photometric Stereo Merle Norman Cosmetics, Los Angeles Readings R. Woodham, Photometric Method for Determining Surface Orientation from Multiple Images.
Photometric Stereo & Shape from Shading
Lecture 20: Light, reflectance and photometric stereo
Specular Reflections from Rough Surfaces Lecture #4 Thanks to Shree Nayar, Ravi Ramamoorthi, Pat Hanrahan.
Light and shading Source: A. Efros.
Computer Vision Spring ,-685 Instructor: S. Narasimhan PH A18B T-R 10:30am – 11:50am Lecture #13.
Reflectance Map: Photometric Stereo and Shape from Shading
Shading / Light Thanks to Srinivas Narasimhan, Langer-Zucker, Henrik Wann Jensen, Ravi Ramamoorthi, Hanrahan, Preetham.
Lecture 12 Modules Employing Gradient Descent Computing Optical Flow Shape from Shading.
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?
Analysis of Lighting Effects Outline: The problem Lighting models Shape from shading Photometric stereo Harmonic analysis of lighting.
16421: Vision Sensors Lecture 7: High Dynamic Range Imaging Instructor: S. Narasimhan Wean 5312, T-R 1:30pm – 3:00pm.
Shape from Shading and Texture. Lambertian Reflectance Model Diffuse surfaces appear equally bright from all directionsDiffuse surfaces appear equally.
16421: Vision Sensors Lecture 7: High Dynamic Range Imaging Instructor: S. Narasimhan Wean 5312, T-R 1:30pm – 3:00pm.
Capturing light Source: A. Efros.
Sources, Shadows, and Shading
EECS 274 Computer Vision Sources, Shadows, and Shading.
Radiometry and Photometric Stereo 1. Estimate the 3D shape from shading information Can you tell the shape of an object from these photos ? 2.
Course 10 Shading. 1. Basic Concepts: Light Source: Radiance: the light energy radiated from a unit area of light source (or surface) in a unit solid.
Interreflections : The Inverse Problem Lecture #12 Thanks to Shree Nayar, Seitz et al, Levoy et al, David Kriegman.
Diffuse Reflections from Rough Surfaces Lecture #5
Announcements Office hours today 2:30-3:30 Graded midterms will be returned at the end of the class.
Photo-realistic Rendering and Global Illumination in Computer Graphics Spring 2012 Material Representation K. H. Ko School of Mechatronics Gwangju Institute.
November 4, THE REFLECTANCE MAP AND SHAPE-FROM-SHADING.
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.
Reflectance Function Estimation and Shape Recovery from Image Sequence of a Rotating object Jiping Lu, Jim Little UBC Computer Science ICCV ’ 95.
1 CSCE 441: Computer Graphics Lighting Jinxiang Chai.
OpenGL Shading. 2 Objectives Learn to shade objects so their images appear three-dimensional Introduce the types of light-material interactions Build.
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.
1 CSCE 441: Computer Graphics Lighting Jinxiang Chai.
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 CSCE 441: Computer Graphics Lighting Jinxiang Chai.
Computer Graphics: Illumination
Announcements Project 3a due today Project 3b due next Friday.
MAN-522 Computer Vision Spring
Instructor: S. Narasimhan
Merle Norman Cosmetics, Los Angeles
Announcements Project 3b due Friday.
Part One: Acquisition of 3-D Data 2019/1/2 3DVIP-01.
Depthmap Reconstruction Based on Monocular cues
Announcements Today: evals Monday: project presentations (8 min talks)
Lecture 28: Photometric Stereo
Announcements Project 3 out today demo session at the end of class.
Shape from Shading and Texture
Physical Problem of Simultaneous Linear Equations in Image Processing
Presentation transcript:

Computer Vision Spring ,-685 Instructor: S. Narasimhan Wean 5403 T-R 3:00pm – 4:20pm Lecture #12

Midterm – March 9 Syllabus – until and including Lightness and Retinex Closed book, closed notes exam in class. Time: 3:00pm – 4:20pm Midterm review class next Tuesday (March 7) ( me by March 6 specific questions) If you have read the notes and readings, attended all classes, done assignments well, it should be a walk in the park

Mechanisms of Reflection source surface reflection surface incident direction body reflection Body Reflection: Diffuse Reflection Matte Appearance Non-Homogeneous Medium Clay, paper, etc Surface Reflection: Specular Reflection Glossy Appearance Highlights Dominant for Metals Image Intensity = Body Reflection + Surface Reflection

Example Surfaces Body Reflection: Diffuse Reflection Matte Appearance Non-Homogeneous Medium Clay, paper, etc Surface Reflection: Specular Reflection Glossy Appearance Highlights Dominant for Metals Many materials exhibit both Reflections:

Diffuse Reflection and Lambertian BRDF viewing direction surface element normal incident direction Lambertian BRDF is simply a constant : albedo Surface appears equally bright from ALL directions! (independent of ) Surface Radiance : Commonly used in Vision and Graphics! source intensity source intensity I

Diffuse Reflection and Lambertian BRDF

White-out: Snow and Overcast Skies CAN’T perceive the shape of the snow covered terrain! CAN perceive shape in regions lit by the street lamp!! WHY?

Diffuse Reflection from Uniform Sky Assume Lambertian Surface with Albedo = 1 (no absorption) Assume Sky radiance is constant Substituting in above Equation: Radiance of any patch is the same as Sky radiance !! (white-out condition)

Specular Reflection and Mirror BRDF source intensity I viewing direction surface element normal incident direction specular/mirror direction Mirror BRDF is simply a double-delta function : Valid for very smooth surfaces. All incident light energy reflected in a SINGLE direction (only when = ). Surface Radiance : specular albedo

Combing Specular and Diffuse: Dichromatic Reflection Observed Image Color = a x Body Color + b x Specular Reflection Color R G B Klinker-Shafer-Kanade 1988 Color of Source (Specular reflection) Color of Surface (Diffuse/Body Reflection) Does not specify any specific model for Diffuse/specular reflection

Diffuse and Specular Reflection diffusespeculardiffuse+specular

Photometric Stereo Lecture #12

Image Intensity and 3D Geometry Shading as a cue for shape reconstruction What is the relation between intensity and shape? –Reflectance Map

Surface Normal surface normal Equation of plane or Let Surface normal

Surface Normal

Gradient Space Normal vector Source vector plane is called the Gradient Space (pq plane) Every point on it corresponds to a particular surface orientation

Reflectance Map Relates image irradiance I(x,y) to surface orientation (p,q) for given source direction and surface reflectance Lambertian case: : source brightness : surface albedo (reflectance) : constant (optical system) Image irradiance: Letthen

Lambertian case Reflectance Map (Lambertian) cone of constant Iso-brightness contour Reflectance Map

Lambertian case iso-brightness contour Note: is maximum when Reflectance Map

Glossy surfaces (Torrance-Sparrow reflectance model) diffuse termspecular term Diffuse peak Specular peak Reflectance Map

Shape from a Single Image? Given a single image of an object with known surface reflectance taken under a known light source, can we recover the shape of the object? Given R(p,q) ( (p S,q S ) and surface reflectance) can we determine (p,q) uniquely for each image point? NO

Solution Take more images –Photometric stereo Add more constraints –Shape-from-shading (next class)

Photometric Stereo

We can write this in matrix form: Image irradiance: Lambertian case: Photometric Stereo

Solving the Equations inverse

More than Three Light Sources Get better results by using more lights Least squares solution: Solve for as before Moore-Penrose pseudo inverse

Color Images The case of RGB images –get three sets of equations, one per color channel: –Simple solution: first solve for using one channel –Then substitute known into above equations to get –Or combine three channels and solve for

Computing light source directions Trick: place a chrome sphere in the scene –the location of the highlight tells you the source direction

For a perfect mirror, light is reflected about N Specular Reflection - Recap We see a highlight when Then is given as follows:

Computing the Light Source Direction Can compute N by studying this figure –Hints: use this equation: can measure c, h, and r in the image N rNrN C H c h Chrome sphere that has a highlight at position h in the image image plane sphere in 3D

Depth from Normals Get a similar equation for V 2 –Each normal gives us two linear constraints on z –compute z values by solving a matrix equation V1V1 V2V2 N

Limitations Big problems –Doesn’t work for shiny things, semi-translucent things –Shadows, inter-reflections Smaller problems –Camera and lights have to be distant –Calibration requirements measure light source directions, intensities camera response function

Trick for Handling Shadows Weight each equation by the pixel brightness: Gives weighted least-squares matrix equation: Solve for as before

Original Images

Results - Shape Shallow reconstruction (effect of interreflections) Accurate reconstruction (after removing interreflections)

Results - Albedo No Shading Information

Original Images

Results - Shape

Results - Albedo

Results 1.Estimate light source directions 2.Compute surface normals 3.Compute albedo values 4.Estimate depth from surface normals 5.Relight the object (with original texture and uniform albedo)

Next Class Shape from Shading Reading: Horn, Chapter 11.