Lambertian model of reflectance I: shape from shading and photometric stereo. Ronen Basri Weizmann Institute of Science

Similar documents
Radiance. Pixels measure radiance. This pixel Measures radiance along this ray

Ligh%ng and Reflectance

Photometric stereo. Recovering the surface f(x,y) Three Source Photometric stereo: Step1. Reflectance Map of Lambertian Surface

Lambertian model of reflectance II: harmonic analysis. Ronen Basri Weizmann Institute of Science

Epipolar geometry contd.

CS4670/5760: Computer Vision Kavita Bala Scott Wehrwein. Lecture 23: Photometric Stereo

Announcements. Photometric Stereo. Shading reveals 3-D surface geometry. Photometric Stereo Rigs: One viewpoint, changing lighting

Other approaches to obtaining 3D structure

Announcement. Photometric Stereo. Computer Vision I. Shading reveals 3-D surface geometry. Shape-from-X. CSE252A Lecture 8

Photometric Stereo. Photometric Stereo. Shading reveals 3-D surface geometry BRDF. HW3 is assigned. An example of photometric stereo

Some Illumination Models for Industrial Applications of Photometric Stereo

Photometric Stereo.

Capturing light. Source: A. Efros

Photometric Stereo, Shape from Shading SfS Chapter Szelisky

Assignment #2. (Due date: 11/6/2012)

DIFFUSE-SPECULAR SEPARATION OF MULTI-VIEW IMAGES UNDER VARYING ILLUMINATION. Department of Artificial Intelligence Kyushu Institute of Technology

COMP 558 lecture 16 Nov. 8, 2010

Photometric Stereo. Lighting and Photometric Stereo. Computer Vision I. Last lecture in a nutshell BRDF. CSE252A Lecture 7

General Principles of 3D Image Analysis

CS6670: Computer Vision

Image Processing 1 (IP1) Bildverarbeitung 1

Rendering: Reality. Eye acts as pinhole camera. Photons from light hit objects

Specularities Reduce Ambiguity of Uncalibrated Photometric Stereo

CS5620 Intro to Computer Graphics

Using a Raster Display Device for Photometric Stereo

CS6670: Computer Vision

Lighting and Shading Computer Graphics I Lecture 7. Light Sources Phong Illumination Model Normal Vectors [Angel, Ch

CS4670/5760: Computer Vision

A Survey and Tutorial on Shape and Reflectance Estimation Techniques

Lecture 22: Basic Image Formation CAP 5415

Faces. Face Modeling. Topics in Image-Based Modeling and Rendering CSE291 J00 Lecture 17

Announcement. Lighting and Photometric Stereo. Computer Vision I. Surface Reflectance Models. Lambertian (Diffuse) Surface.

CSE 167: Lecture #7: Color and Shading. Jürgen P. Schulze, Ph.D. University of California, San Diego Fall Quarter 2011

Photometric Stereo with General, Unknown Lighting

Understanding Variability

Photometric stereo , , Computational Photography Fall 2018, Lecture 17

Homework 4 Computer Vision CS 4731, Fall 2011 Due Date: Nov. 15, 2011 Total Points: 40

And if that 120MP Camera was cool

Lighting and Shading

Lights, Surfaces, and Cameras. Light sources emit photons Surfaces reflect & absorb photons Cameras measure photons

Illumination Models & Shading

Announcements. Recognition I. Gradient Space (p,q) What is the reflectance map?

Lecture 15: Shading-I. CITS3003 Graphics & Animation

Reconstruction of Discrete Surfaces from Shading Images by Propagation of Geometric Features

3D Motion Analysis Based on 2D Point Displacements

Lighting affects appearance

Global Illumination CS334. Daniel G. Aliaga Department of Computer Science Purdue University

Lighting affects appearance

Shading I Computer Graphics I, Fall 2008

Chapter 26 Geometrical Optics

Computer Graphics. Illumination and Shading

Photometric*Stereo* October*8,*2013* Dr.*Grant*Schindler* *

Raytracing CS148 AS3. Due :59pm PDT

Skeleton Cube for Lighting Environment Estimation

Lecture 3: Camera Calibration, DLT, SVD

Using a Raster Display for Photometric Stereo

Starting this chapter

Shadow Graphs and Surface Reconstruction

Problem Set 4 Part 1 CMSC 427 Distributed: Thursday, November 1, 2007 Due: Tuesday, November 20, 2007

Lighting and Shading. Slides: Tamar Shinar, Victor Zordon

Topics and things to know about them:

CS130 : Computer Graphics Lecture 8: Lighting and Shading. Tamar Shinar Computer Science & Engineering UC Riverside

Passive 3D Photography

Stereo Vision. MAN-522 Computer Vision

Illumination & Shading

Last update: May 4, Vision. CMSC 421: Chapter 24. CMSC 421: Chapter 24 1

Illumination. Michael Kazhdan ( /657) HB Ch. 14.1, 14.2 FvDFH 16.1, 16.2

Topic 9: Lighting & Reflection models 9/10/2016. Spot the differences. Terminology. Two Components of Illumination. Ambient Light Source

Visibility Subspaces: Uncalibrated Photometric Stereo with Shadows

Self-calibrating Photometric Stereo

Photorealism: Ray Tracing

Shape from shading. Surface brightness and Surface Orientation --> Reflectance map READING: Nalwa Chapter 5. BKP Horn, Chapter 10.

CS 6620 Shading. Steve Parker Peter Shirley

Predicting Depth, Surface Normals and Semantic Labels with a Common Multi-Scale Convolutional Architecture David Eigen, Rob Fergus

SAMPLING AND NOISE. Increasing the number of samples per pixel gives an anti-aliased image which better represents the actual scene.

Re-rendering from a Dense/Sparse Set of Images

Topic 9: Lighting & Reflection models. Lighting & reflection The Phong reflection model diffuse component ambient component specular component

Estimating Intrinsic Images from Image Sequences with Biased Illumination

Efficient Photometric Stereo on Glossy Surfaces with Wide Specular Lobes

Shape, Albedo, and Illumination from a Single Image of an Unknown Object Supplementary Material

Massachusetts Institute of Technology. Department of Computer Science and Electrical Engineering /6.866 Machine Vision Quiz I

The Rendering Equation. Computer Graphics CMU /15-662

Lecture 24: More on Reflectance CAP 5415

Distributed Ray Tracing

Local vs. Global Illumination & Radiosity

Shading. Brian Curless CSE 557 Autumn 2017

Rendering Light Reflection Models

w Foley, Section16.1 Reading

Introduction Ray tracing basics Advanced topics (shading) Advanced topics (geometry) Graphics 2010/2011, 4th quarter. Lecture 11: Ray tracing

13 Distribution Ray Tracing

Today. Global illumination. Shading. Interactive applications. Rendering pipeline. Computergrafik. Shading Introduction Local shading models

CSE 167: Introduction to Computer Graphics Lecture #6: Lights. Jürgen P. Schulze, Ph.D. University of California, San Diego Fall Quarter 2016

3D Shape Recovery of Smooth Surfaces: Dropping the Fixed Viewpoint Assumption

Recollection. Models Pixels. Model transformation Viewport transformation Clipping Rasterization Texturing + Lights & shadows

Analysis of photometric factors based on photometric linearization

CHAPTER 9. Classification Scheme Using Modified Photometric. Stereo and 2D Spectra Comparison

Toward a Stratification of Helmholtz Stereopsis

Today. Global illumination. Shading. Interactive applications. Rendering pipeline. Computergrafik. Shading Introduction Local shading models

Shape Reconstruction Based on Similarity in Radiance Changes under Varying Illumination

Stereo CSE 576. Ali Farhadi. Several slides from Larry Zitnick and Steve Seitz

Transcription:

Lambertian model of reflectance I: shape from shading and photometric stereo Ronen Basri Weizmann Institute of Science

Variations due to lighting (and pose)

Relief Dumitru Verdianu Flying Pregnant Woman

Edges

Edges on smooth surfaces

Bump or dip?

What sticks out?

Light field Rays travel from sources to objects There they are either absorbed or reflected Energy of light decreases with distance and number of bounces Camera is designed to capture the set of rays that travel through the focal center We will assume the camera response is linear

Specular reflectance (mirror) When a surface is smooth light reflects in the opposite direction of the surface normal

Specular reflectance When a surface is slightly rough the reflected light will fall off around the specular direction

Diffuse reflectance When the surface is very rough light may be reflected equally in all directions

Diffuse reflectance When the surface is very rough light may be reflected equally in all directions

BRDF Bidirectional Reflectance Distribution Function f(θ in, in ; θ out, out ) Specifies for a unit of incoming light in a direction (θ in, in ) how much light will be reflected in a direction (θ out, out ) n

BRDF Light from front Light from back

Lambertian reflectance

Lambertian reflectance

Lambert s law l θ n I = Eρ cos θ θ 90 0 I = l T n (l = El, n = ρn)

Preliminaries A surface is denoted z x, y A point on z is (x, y, z x, y ) The tangent plane is spanned by 1,0, z x (0,1, z y ) The surface normal is given by n = 1 z 2 x + z 2 y + 1 z x, z y, 1

Photometric stereo Given several images of the a lambertian object under varying lighting Assuming single directional source M = LS

Photometric stereo M = LS I 11 I 1p = I f1 I fp f p l 1x l 1y l 1z l fx l fy l fz f 3 n x1 n y1 n z1 n xp n xp n xp 3 p We can solve for S if L is known (Woodham) This algorithm can be extended to more complex reflection models (if known) through the use of a lookup table

Factorization (Hayakawa) Use SVD to find a rank 3 approximation M = UΣV T Define Σ 3 = diag(σ 1, σ 2, σ 3 ), where σ 1, σ 2, σ 3 are the largest singular values of M L = U Σ 3, S = Σ 3 V T and M LS Factorization is not unique, since M = LA 1 AS, A is 3 3 invertible We can reduce ambiguity by imposing integrability

Generlized bas-relief ambiguity (Belhumeur, Kriegman and Yuille) Linearly related surfaces: given a surface z(x, y) the surfaces related linearly to z are: z x, y = ax + by + cz(x, y) G = 1 0 0 0 1 0 a b c G 1 = 1 c c 0 0 0 c 0 a b 1 Forms a sub-group of GL(3)

Bas-relief

Integrability Objective: given a normal field n(x, y) S 2 recover depth z(x, y) R Recall that n = (n x, n y, n z ) = ρ z x 2 + z y 2 + 1 z x, z y, 1 Given n, we set ρ = n ; p = n x n z, q = n y n z

Integrability Solve min (z x + 1, y z x, y z(x,y) p)2 +(z x, y + 1 z(x, y) q) 2 where p = n x n z, q = n y n z

Photometric stereo with matrix completion (Wu et al.)

Shape from shading (SFS) What if we only have one image? Assuming that lighting is known and albedo is uniform I = l T n cos θ Every intensity determines a circle of possible normals There is only one unknown (z) for each pixel (since uniform albedo is assumed)

Shape from shading Denote n = z x, z y, 1 Then E = lt n n Therefore E 2 n T n = n T ll T n We obtain n T ll T E 2 I n = 0 This is a first order, non-linear PDE (Horn)

Shape from shading Suppose l = (0,0,1), then z 2 x + z 2 y = 1 E 2 1 This is called an Eikonal equation

Distance transform The distance of each point to the boundary

Shortest path

Distance transform Posed as an Eikonal equation z 2 = z x 2 + z y 2 = 1

Update for shortest path T 2 w 2 T 1 w 1 T =? T = min T 1 + w 1, T 2 + w 2

Update for fast marching (Tsitsiklis, Sethian) T 2 T 1 f T = T 1 + T 2 + 2f 2 (T 1 T 2 ) 2 if real f + min T 1, T 2 otherwise

SFS Solution (Kimmel & Sethian) Lambertian SFS produces an eikonal equation z 2 = z 2 x + z 2 y = 1 E 2 1 Right hand side determines speed Boundary conditions are required: depth values at local maxima of intensity and possibly in shape boundaries The case l 0,0,1 is handled by change of variables

Example

Summary Understanding the effect of lighting on images is challenging, but can lead to better interpretation of images We considered Lambertian objects illuminated by single sources We surveyed two problems: Photometric stereo Shape from shading

Challenges General reflectance properties Lambertian specular general BRDFs Generic lighting multiple light sources ( attached shadows ) near light Cast shadows Inter-reflections Dynamic scenes Local approaches (eg. direction of gradients) Can we hope to model this complexity?