Image Processing 1 (IP1) Bildverarbeitung 1

Similar documents
General Principles of 3D Image Analysis

3D Motion Analysis Based on 2D Point Displacements

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

Photometric Stereo.

Capturing light. Source: A. Efros

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

Understanding Variability

The Light Field. Last lecture: Radiometry and photometry

EE Light & Image Formation

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

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

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

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

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

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

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

Lecture 22: Basic Image Formation CAP 5415

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

Photometric Stereo, Shape from Shading SfS Chapter Szelisky

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

Radiometry and reflectance

A Survey of Light Source Detection Methods

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

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

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

Radiometry. Radiometry. Measuring Angle. Solid Angle. Radiance

And if that 120MP Camera was cool

Other approaches to obtaining 3D structure

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

CENG 477 Introduction to Computer Graphics. Ray Tracing: Shading

Starting this chapter

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

Reflectance & Lighting

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

Light Field = Radiance(Ray)

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

Image Processing 1 (IP1) Bildverarbeitung 1

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

Epipolar geometry contd.

Perception of Shape from Shading

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

CS6320: 3D Computer Vision Project 3 Shape from Shading

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

Optic Flow and Basics Towards Horn-Schunck 1

DIRECT SHAPE FROM ISOPHOTES

COMP 558 lecture 16 Nov. 8, 2010

ABSTRACT. SETHURAM, AMRUTHA SHREE. Reconstruction of Lambertian Surfaces from Photometric Stereo. (Under the direction of Dr. Wesley E.

Light Field = Radiance(Ray)

Introduction to Radiosity

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

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

CMSC427 Shading Intro. Credit: slides from Dr. Zwicker

Rays and Throughput. The Light Field. Page 1

Engineered Diffusers Intensity vs Irradiance

Illumination in Computer Graphics

BRDF Computer Graphics (Spring 2008)

Global Illumination The Game of Light Transport. Jian Huang

Photometric stereo , , Computational Photography Fall 2018, Lecture 17

A question from Piazza

Chapter 1 Introduction

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

Measuring Light: Radiometry and Cameras

Stereo Wrap + Motion. Computer Vision I. CSE252A Lecture 17

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

A Machine learning approach for Shape From Shading

Math 113 Calculus III Final Exam Practice Problems Spring 2003

Feature Tracking and Optical Flow

Ligh%ng and Reflectance

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

Image Processing 1 (IP1) Bildverarbeitung 1

Comment on Numerical shape from shading and occluding boundaries

CS6670: Computer Vision

Some Illumination Models for Industrial Applications of Photometric Stereo

Radiometry & BRDFs CS295, Spring 2017 Shuang Zhao

Height and Gradient from Shading

Precomputed Radiance Transfer: Theory and Practice

18.02 Final Exam. y = 0

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

Lecture 15: Shading-I. CITS3003 Graphics & Animation

Integrating Shape from Shading and Shape from Stereo for Variable Reflectance Surface Reconstruction from SEM Images

Announcements. Radiometry and Sources, Shadows, and Shading

Motivation. Advanced Computer Graphics (Fall 2009) CS 283, Lecture 11: Monte Carlo Integration Ravi Ramamoorthi

Lecture 24: More on Reflectance CAP 5415

13 Distribution Ray Tracing

CS201 Computer Vision Lect 4 - Image Formation

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

Range Sensors (time of flight) (1)

Geometrical modeling of light scattering from paper substrates

CS-184: Computer Graphics. Today. Lecture 22: Radiometry! James O Brien University of California, Berkeley! V2014-S

3-D Stereo Using Photometric Ratios

Chapter 6. Curves and Surfaces. 6.1 Graphs as Surfaces

Design Verification and Analysis Tools in TracePro. Presented by : Lambda Research Corporation 25 Porter Rd. Littleton, MA

Reflection models and radiometry Advanced Graphics

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

Lecture 7 - Path Tracing

Fall 2016 Semester METR 3113 Atmospheric Dynamics I: Introduction to Atmospheric Kinematics and Dynamics

Skeleton Cube for Lighting Environment Estimation

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

Passive 3D Photography

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

Transcription:

MIN-Fakultät Fachbereich Informatik Arbeitsbereich SAV/BV (KOGS) Image Processing 1 (IP1) Bildverarbeitung 1 Lecture 20: Shape from Shading Winter Semester 2015/16 Slides: Prof. Bernd Neumann Slightly revised by: Dr. Benjamin Seppke Prof. Siegfried Stiehl

Obtaining 3D Shape from Shading Information By assuming certain conditions, a 3D surface model may be reconstructed from the greyvalue variations of a monocular image. From "Shape from Shading", B.K.P. Horn and M.J. Brooks (eds.), MIT Press 1989 2

Reminder: Photometric Surface Properties illumination direction φ i x θ i surface normal θ v φ v viewing direction y θ i, θ v φ i, φ v In general, the ability of a surface to reflect light is given by the Bi-directional Reflectance Distribution Function (BRDF) r: polar (zenith) angles azimuth angles ( ) = L ( θ, φ v v) E ( θ i, φ i ) r θ i, φ i ; θ v, φ v radiance of surface patch towards viewer irradiance of light source received by the surface patch For many materials the reflectance properties arerotation invariant, in this case the BRDF depends on θ i, θ v, φ, where φ = φ i - φ v. 3

Units in Radiometry and Photometry Radiometry: branch of Physics radiant flux Φ [W] "radiant power" Photometry: closely related to radiometry, but studies human sensation luminous flux Φ ph [lm (= lumen)] spatial angle Ω = area on unit sphere of cone with apex in center of sphere irradiance E [W m -2 ] = power of light on unit area of object surface spatial angle of half sphere = 2π R distance between A and origin, R 2 A, θ between area normal and vector from origin to A: Ω = Acosθ R 2 illumination [lm m -2 ] = photometric equivalent to irradiance radiance L [W m -2 sr -1 ] = power of light emit. fromareainto some spatial angle brightness L ph [L m -2 sr -1 ] = photometric unit equivalent to irradiance 4

Irradiance of Imaging Device I irradiance = light energy falling on unit patch of imaging sensor, sensor signal is proportional to irradiance f θ n O Object Sensor I α lens with aperture d z Sensor patch receivesirradiancee, has spatial angle I cosα ( f / cosα) 2 O Spatial angles must be equal: (Eq. 20-5) I = cosα z 2 cosθ f 2 Surface patch produces radiance L, has spatial angle O cosθ (z / cosα) 2 Spatial angle of aperture for surface patch: Ω L = π 4 d 2 cosα (z / cosα) 2 = π 4 (d z )2 cos 3 α 5

Irradiance of Imaging Device (2) f θ n O Object Sensor I α lens with aperture d z Contribution of surface element to radiant flux Φ at lens: Irradiation E on image patch: Φ = L O Ω L cosθ = π L O ( d z )2 cos 3 α cosθ 4 E = Φ I = L O π I 4 (d z )2 cos 3 α cosθ With Eq. (20-5) one gets: E = L π 4 " d f % 2 cos 4 α Sensor signal depends on span-off angle α of surface element ("vignetting") off-center pixels in wide-angle images are darker 6

Lambertian Surfaces A Lambertian surface is an ideally matte surface which looks equally bright from all viewing directions under uniform or collimated illumination. Its brightness is proportional to the cosine of the illumination angle. surface receives energy per unit area cos(θ i ) surface reflects energy cos(θ v ) due to matte reflectance properties sensor element receives energy from surface area 1/cos(θ v ) cancelout uniform light source θ i θ v sensor element ( ) = ρ ( λ ) r Lambert θ i, θ v,ϕ π ρ ( λ) = L Ω Ω E i surface unit area "albedo" = proportion of incident energy reflected back into half space Ω above surface 7

Principle of Shape from Shading See "Shape from Shading" (B.K.P. Horn, M.J. Brooks, eds.), MIT Press 1989 Physical surface properties, surface orientation, illumination andviewing direction determine the greyvalue of a surface patch in a sensor signal. For a single object surface viewed in one image, greyvalue changes are mainly caused by surface orientation changes. The reconstruction of arbitrary surface shapes is not possible because different surface orientations may give rise to identical greyvalues. Surface shapes may be uniquely reconstructed from shading information if possible surface shapes are constrained by smoothness assumptions. Principle of incremental procedure for surface shape reconstruction: b c b a a: patch with known orientation b, c: neighbouring patches with similar orientations b : radical different orientation may not be neighbour of a 8

Surface Gradients " For 3D reconstruction of surfaces, it is useful to represent reflectance properties as a function of surface orientation. z y z(x, y) surface 1 0 p % tangent vector in x direction tangent vector in y direction vector in surface normal direction Ifthe z-axisis chosen to coincide withthe viewer direction, we have cosθ v = " 0 1 q % 1 1+ p 2 + q 2 cosθ i = x p = δz/δx q = δz/δy " p q 1 % ' ' ' 1+ p i p + q i q 1+ p 2 + q 2 1+ p i 2 + q i 2 x-component of surface gradient y-component of surface gradient n = cosϕ = " 1 1+ p 2 + q 2 1 p q 1 1+ p i 2 + q i 2 % ' ' ' surface normal vector The dependency of the BRDF on θ i, θ v and φ may be expressed in terms of p and q (with p i and q i for the light source direction). 9

Simplified Image Irradiance Equation Assume that the object has uniform reflecting properties, the light sources aredistant so that the irradiation is approximately constant and equally oriented, the viewer is distant so that the received radiance does not depend on the distance but only on the orientation towards the surface. With these simplifications the sensor greyvalues depend onlyon the surface gradient components p and q. E(x, y) = R( p(x, y), q(x, y) ) = R z x, z " y % "Simplified Image Irradiance Equation" R(p, q) is the reflectance function for a particular illumination geometry. E(x, y) is the sensor greyvalue measured at (x, y). Based on this equation and a smoothness constraint, shape-from-shading methods recover surface orientations. 10

Reflectance Maps R(p, q) may be plotted as a reflectance map with iso-brightness contours. Reflectance map for Lambertian surface illuminated from p i = 0.7 and q i = 0.3 q Reflectance map for matte surface with specular component q p p 11

Characteristic Strip Method Given a surface point (x, y, z) with known height z, orientation p and q, and second derivatives r = z xx, s = z xy = z yx, t = z yy, the height z+δz and orientation p+δp, q+δq in a neighbourhood x+δx, y+δy canbe calculatedfrom the image irradiance equation E(x, y) = R(p, q). Infinitesimal change of height: Δz = p Δx + q Δy Changes of p and q for a step Δx, Δy: Δp = r Δx + s Δy Δq = s Δx + t Δy Differentiation of image irradiance equation w.r.t. x and y gives E x = r R p + s R q E y = s R p + t R q Choose step Δξ in gradient direction of of the reflectance map ("characteristic strip"): Δx = R p Δξ Δy = R q Δξ For this direction the imageirradianceequationcanbe replacedby Δx/Δξ = R p Δy/Δξ = R q Δz/Δξ = p R p + q R q Δp/Δξ = E x Δq/Δξ = E y Boundary conditions and initial points may be given by occluding contours with surface normal perpendicular to viewing direction singular points with surface normal towards light source. 12

Recovery of the Shape of a Nose Pictures from B.K.P. Horn "Robot Vision", MIT Press,1986, p. 255 nose with crudely quantized greyvalues superimposed characteristic curves superimposed elevations at characteristic curves Note: Nose has been powdered to provide Lambertian reflectance map 13

Shape from Shading by Global Optimization Given a monocular image and a known image irradiance equation, surface orientations are ambiguously constrained. Disambiguation may be achieved by optimizing a global smoothness criterion. Minimize [ ] 2 + λ 2 p D(x, y) = E(x, y) R(p, q) % ( ) 2 + ( 2 q) 2 '( violation of reflectance constraint Lagrange multiplier violation of smoothness constraint There exist standard techniques for solving this minimization problem iteratively. In general, the solution may not be unique. Due to several uncertain assumptions (illumination, reflectance function, smoothness of surface) solutions may not be reliable. 14

Principle of Photometric Stereo In photometric stereo, several images with different known light source orientations are used to uniquely recover 3D orientation of a surface with known reflectance. The reflectance maps R 1 (p, q), R 2 (p, q), R 3 (p, q) specify the possible surface orientations of each pixel in terms of iso-brightness contours ("isophotes"). The intersection of the isophotes corresponding to the 3 brightness values measured for a pixel (x, y) uniquely determines the surface orientation (p(x, y), q(x, y)). From "Shape from Shading, B.K.P. Horn and M.J. Brooks (eds.), MIT Press 1989 15

Analytical Solution for Photometric Stereo For a Lambertian surface: E(x, y) = R(p, q) = ρ cos( Θ i ) = ρ i T n i = light source direction, n = surface normal, ρ = constant If K images are taken with K different light sources i k, k = 1... K, there are K brightness measurements E k for each image position (x, y): E k (x, y) = ρ i k ( ) T n E(x, y) = ρ L T Matrix notation n with L = For K=3, L may be inverted, hence: n(x, y) = L 1 E(x, y) L 1 E(x, y) " ( i 1 ) T " i K ( ) T % In general, the pseudo-inverse must be computed: n(x, y) = (LT L) 1 L T E(x, y) (L T L) 1 L T E(x, y) 16