Photometric Stereo.

Similar documents
CS6670: Computer Vision

CS6670: Computer Vision

Announcements. Light. Properties of light. Light. Project status reports on Wednesday. Readings. Today. Readings Szeliski, 2.2, 2.3.

CS 5625 Lec 2: Shading Models

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

Image Formation: Light and Shading. Introduction to Computer Vision CSE 152 Lecture 3

Announcements. Image Formation: Light and Shading. Photometric image formation. Geometric image formation

Overview. Radiometry and Photometry. Foundations of Computer Graphics (Spring 2012)

Radiometry and reflectance

Understanding Variability

And if that 120MP Camera was cool

Image Processing 1 (IP1) Bildverarbeitung 1

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

Radiometry & BRDFs CS295, Spring 2017 Shuang Zhao

Lecture 22: Basic Image Formation CAP 5415

Radiance. Radiance properties. Radiance properties. Computer Graphics (Fall 2008)

Capturing light. Source: A. Efros

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

INFOGR Computer Graphics. J. Bikker - April-July Lecture 10: Shading Models. Welcome!

Introduction to Computer Vision. Week 8, Fall 2010 Instructor: Prof. Ko Nishino

Announcements. Radiometry and Sources, Shadows, and Shading

Radiometry Measuring Light

Radiometry. Radiometry. Measuring Angle. Solid Angle. Radiance

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

EE Light & Image Formation

Ligh%ng and Reflectance

Other approaches to obtaining 3D structure

General Principles of 3D Image Analysis

Measuring Light: Radiometry and Cameras

CSE 681 Illumination and Phong Shading

Electromagnetic waves and power spectrum. Rays. Rays. CS348B Lecture 4 Pat Hanrahan, Spring 2002

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

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

Re-rendering from a Dense/Sparse Set of Images

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

Philpot & Philipson: Remote Sensing Fundamentals Interactions 3.1 W.D. Philpot, Cornell University, Fall 12

Radiometry. Computer Graphics CMU /15-662, Fall 2015

Path Tracing part 2. Steve Rotenberg CSE168: Rendering Algorithms UCSD, Spring 2017

CS4670/5760: Computer Vision

Starting this chapter

Measuring Light: Radiometry and Photometry

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

Paths, diffuse interreflections, caching and radiometry. D.A. Forsyth

CS5670: Computer Vision

Reflection models and radiometry Advanced Graphics

Radiometry. Reflectance & Lighting. Solid Angle. Radiance. Radiance Power is energy per unit time

The Rendering Equation. Computer Graphics CMU /15-662

Lighting and Reflectance COS 426

Introduction to Computer Vision. Introduction CMPSCI 591A/691A CMPSCI 570/670. Image Formation

CENG 477 Introduction to Computer Graphics. Ray Tracing: Shading

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

Using a Raster Display Device for Photometric Stereo

Epipolar geometry contd.

Lecture 4: Reflection Models

Measuring Light: Radiometry and Photometry

CMSC427 Shading Intro. Credit: slides from Dr. Zwicker

Engineered Diffusers Intensity vs Irradiance

Shading & Material Appearance

BRDF Computer Graphics (Spring 2008)

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

The Rendering Equation. Computer Graphics CMU /15-662, Fall 2016

Illumination in Computer Graphics

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

Global Illumination. CMPT 361 Introduction to Computer Graphics Torsten Möller. Machiraju/Zhang/Möller

Computer Graphics. Illumination and Shading

Light. Properties of light. What is light? Today What is light? How do we measure it? How does light propagate? How does light interact with matter?

dq dt I = Irradiance or Light Intensity is Flux Φ per area A (W/m 2 ) Φ =

Computer Graphics (CS 4731) Lecture 16: Lighting, Shading and Materials (Part 1)

Lighting and Materials

Visualisatie BMT. Rendering. Arjan Kok

Computer Graphics (CS 543) Lecture 7b: Intro to lighting, Shading and Materials + Phong Lighting Model

Color and Shading. Color. Shapiro and Stockman, Chapter 6. Color and Machine Vision. Color and Perception

Monte Carlo Ray Tracing. Computer Graphics CMU /15-662

Announcements. Rotation. Camera Calibration

A question from Piazza

Illumination and Shading

Lecture 15: Shading-I. CITS3003 Graphics & Animation

Lighting affects appearance

Visual Appearance and Color. Gianpaolo Palma

Lighting affects appearance

Lighting Models. CS116B Chris Pollett Mar 21, 2004.

6. Illumination, Lighting

dq dt I = Irradiance or Light Intensity is Flux Φ per area A (W/m 2 ) Φ =

Local Illumination. CMPT 361 Introduction to Computer Graphics Torsten Möller. Machiraju/Zhang/Möller

3D Computer Vision. Photometric stereo. Prof. Didier Stricker

Sung-Eui Yoon ( 윤성의 )

Module 5: Video Modeling Lecture 28: Illumination model. The Lecture Contains: Diffuse and Specular Reflection. Objectives_template

782 Schedule & Notes

Representing the World

Photometric stereo , , Computational Photography Fall 2018, Lecture 17

OPPA European Social Fund Prague & EU: We invest in your future.

CS201 Computer Vision Lect 4 - Image Formation

Photobiological Measurement Per IEC Solutions Overview. Gooch and Housego (Orlando)

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

Global Illumination. Frank Dellaert Some slides by Jim Rehg, Philip Dutre

Rendering Light Reflection Models

S U N G - E U I YO O N, K A I S T R E N D E R I N G F R E E LY A VA I L A B L E O N T H E I N T E R N E T

2/1/10. Outline. The Radiance Equation. Light: Flux Equilibrium. Light: Radiant Power. Light: Equation. Radiance. Jan Kautz

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

Spectral Color and Radiometry

Transcription:

Photometric Stereo

Photometric Stereo v.s.. Structure from Shading [1] Photometric stereo is a technique in computer vision for estimating the surface normals of objects by observing that object under different lighting conditions. The technique was originally introduced by Woodham in 1980. Woodham, R.J. 1980. Photometric method for determining surface orientation from multiple images. Optical Engineerings 19, I, 139-144. The special case where the data is a single image is known as shape from shading, and was analyzed by B. K. P. Horn in 1989. B. K. P. Horn, 1989. Obtaining shape from shading information. In B. K. P. Horn and M. J. Brooks, eds., Shape from Shading, pages 121 171. MIT Press.

Radiometry Units [7]

Radiometry Units http://www.mathsisfun.com/geometry/steradian.html

Radiometry Units http://www.mathsisfun.com/geometry/steradian.html

Radiometry Units [7] http://www.light-measurement.com/basic-radiometric-quantities/ Per unit time Per unit solid angle Radiant energy Radiant power Radiant intensity Irradiance The amount of radiant power impinging upon a surface per unit area. Per unit area Radiant exitance Radiant emittance + reflected light Radiance Per unit projected-area Radiosity http://www.tpdsci.com/tpc/rdmradergeofig.php

Photometry Units [8] Photometry is the science of the measurement of light, in terms of its perceived brightness to the human eye. It is distinct from radiometry, which is the science of measurement of radiant energy (including light) in terms of absolute power; rather, in photometry, the radiant power at each wavelength is weighted by a luminosity function (a.k.a. visual sensitivity function) that models human brightness sensitivity.

Lambert s s cosine law [9] In optics, Lambert's cosine law says that the radiant intensity observed from a "Lambertian" surface is directly proportional to the cosine of the angle θ between the observer's line of sight and the surface normal. An important consequence of Lambert's cosine law is that when such a surface is viewed from any angle, it has the same apparent radiance. This means, for example, that to the human eye it has the same apparent brightness (or luminance). It has the same radiance because, although the emitted power from a given area (da) element is reduced by the cosine of the emission angle, the size of the observed area (da normal ) is decreased by a corresponding amount.

Lambertian scatters [9] When an area element is radiating as a result of being illuminated by an external source, the irradiance (energy or photons/time/area) landing on that area element will be proportional to the cosine of the angle between the illuminating source and the normal. A Lambertian scatterer will then scatter this light according to the same cosine law as a Lambertian emitter. This means that although the radiance of the surface depends on the angle from the normal to the illuminating source, it will not depend on the angle from the normal to the observer.

Lambert s s cosine law [9] Emission rate (photons/s) in a normal and off-normal direction. The number of photons/sec directed into any wedge is proportional to the area of the wedge.

Lambert s s cosine law [9] The observer directly above the area element will be seeing the scene through an aperture of area da 0 and the area element da will subtend a (solid) angle of dω 0. We can assume without loss of generality that the aperture happens to subtend solid angle dω when "viewed" from the emitting area element. This normal observer will then be recording I dω da photons per second and so will be measuring a radiance of photons/(s cm 2 sr). The observer at angle θ to the normal will be seeing the scene through the same aperture of area da 0 and the area element da will subtend a (solid) angle of dω 0 cos(θ). This observer will be recording I cos(θ) dω da photons per second, and so will be measuring a radiance of which is the same as the normal observer. photons/(s cm 2 sr),

BRDF [5]

Constraints on the BRDF [5]

Diffuse Reflection [5]

Diffuse Reflection [5]

Specular Reflection [5]

Diffuse Reflection and Lambertian BRDF [2]

Specular Reflection and Mirror BRDF [2]

Combining Specular and Diffuse [2]

Combining Specular and Diffuse [2]

BRDF Models [5] Phenomenological Phong Ward Lafortune et al. Ashikhmin et al. Physical Cook-Torrance Dichromatic He et al. Here we re listing only some well-known examples

Phong Illumination Model [5]

Measuring the BRDF [5] traditional design by Greg Ward Gonioreflectometer Device for capturing the BRDF by moving a camera + light source Need careful control of illumination, environment

Measuring the BRDF [5] MERL (Matusik et al.): 100 isotropic, 4 nonisotropic, dense CURET (Columbia-Utrect): 60 samples, more sparsely sampled, but also bidirectional texure functions (BTF)

Image Intensity and 3D Geometry [2]

Image Formation [6]

Reflectance Map [6]

Surface Normal [2]

Gradient Space [2]

Reflectance Map [2]

Reflectance Map [2]

Reflectance Map [2]

Reflectance Map [2]

Shape from a Single Image? [2]

Shape from a Single Image? [3] Take more images Photometric stereo Add more constraints Shape-from-shading

Photometric Stereo [2]

Photometric Stereo [2]

Solving the Equations [2]

More than Three Light Sources [2]

Color Images [2]

Light Source Direction [2] n s r-(rn)n r s=r-2(r-(rn)n) =r-2r+2(rn)n =2(rn)n-r

Normal Field to Surface [6]

Normal Field to Surface [6]

Results [2] 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)

Shape from a Single Image? [3] Take more images Photometric stereo Add more constraints Shape-from from-shading

Human Perception [4] Our brain often perceives shape from shading. Mostly, it makes many assumptions to do so. For example: Light is coming from above (sun). Biased by occluding contours.

Stereographic Projection [4] (p,q)-space (gradient space) z (f,g)-space z p S s 1 n y N z 1 q f ŝ s 1 nˆ n y z 1 g x x Problem (p,q) can be infinite when 90 1 Redefine reflectance map as R f, g f 1 2 p 1 p 2 q 2 g 1 1 2q p 2 q 2

Occlusion Boundary [4] e n v n e, n v n e v e and v are known n e The n values on the occluding boundary can be used as the boundary condition for shape-from-shading

Image Irradiance Constraint [4] Image irradiance should match the reflectance map Minimize 2 e i I x, y R f, g dxdy image (minimize errors in image irradiance in the image)

Smoothness Constraint [4] Used to constrain shape-from-shading Relates orientations (f,g) of neighboring surface points Minimize e s f x 2 f y 2 image g 2 2 x g y dxdy f, g : surface orientation under stereographic projection f x f f g, f y, g x, x y x g y g y (penalize rapid changes in surface orientation f and g over the image)

Shape from Shading [4] Find surface orientations (f,g) at all image points that minimize weight e e e s i Minimize e image smoothness constraint image irradiance error 2 2 2 2 f f g g I x, y R f, g x y x y 2 dxdy

Result [4]

With Colored Lights [10] In an environment where red, green, and blue light is emitted from different directions, a Lambertian surface will reflect each of those colors simultaneously without any mixing of the frequencies. The quantities of red, green and blue light reflected are a linear function of the surface normal direction.

With Colored Lights [10] For simplicity, we first focus on the case of a single distant light source with direction l illuminating a Lambertian surface point P with surface orientation direction n. The intensity measured at i-th sensor The spectral sensitivity of the i-th sensor The Spectral reflectance function at that point The energy distribution of the light source

With Colored Lights [10] in matrix form RGB normal mapping: Equation (2) establishes a 1-1 mapping between an RGB pixel measurement from a color camera and the surface orientation at the point projecting to that pixel. Our strategy is to use the inverse of this mapping to convert a video of a deformable surface into a sequence of normal maps. By estimating and then inverting the linear mapping M linking RGB values to surface normals, we can convert a video sequence captured under colored light into a video of normal-maps. We then integrate each normal map independently to obtain a depth map in every frame by imposing that the occluding contour is always at zero depth. At the end of the integration process, we obtain a video of depth-maps.

With Colored Lights [10] Tracking the surface Our approach is to use the first depth-map of the sequence as a 3D template which will be deformed to match all subsequent depth-maps. The deformations of the template will be guided by the following two competing constraints: the deformations must be compatible with the frame to frame 2D optical flow of the original video sequence, the deformations must be locally as rigid as possible.

References 1. Wikipedia, Photometric Stereo, available at www.wikipedia.org. 2. Yu-Wing, Photometric Stereo, KAIST Computer Vision (CS 770, Fall 2009) lecture material, available at http://yuwing.kaist.ac.kr/courses/cs770/pdf/17-photometricstereo.pdf 3. S. Narasimhan, Photometric Stereo, CMU Computer Vision(15-385, -685, Spring 2006) lecture material, available at http://www.cs.cmu.edu/afs/cs/academic/class/15385- s06/lectures/ppts/ 4. S. Narasimhan, Structure from Shading, CMU Computer Vision(15-385, -685, Spring 2006) lecture material, available at http://www.cs.cmu.edu/afs/cs/academic/class/15385- s06/lectures/ppts/ 5. Seitz, Light, Washington University Computer Vision (CSE 455, Winter 2004) lecture material, available at http://www.cs.washington.edu/education/courses/455/04wi/ 6. David Kriegman, Photometric Stereo, UCSD Computer Vision (CSE152, Spring 2005) lecture material, available at http://cseweb.ucsd.edu/classes/sp05/cse152/ 7. Wikipedia, Radiometry, available at www.wikipedia.org 8. Wikipedia, Photometry, available at www.wikipedia.org 9. Wikipedia, Lambert s cosine law, available at www.wikipedia.org 10. Carlos Hernandez, et at., Non-rigid Photometric Stereo with Colored Lights, 2007 IEEE 11th International Conference on Computer Vision, Rio de Janeiro, Brazil, 14-21 Oct 2007.