And if that 120MP Camera was cool

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

A question from Piazza

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

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

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

Announcements. Radiometry and Sources, Shadows, and Shading

Radiometry. Radiometry. Measuring Angle. Solid Angle. Radiance

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

Announcements. Rotation. Camera Calibration

Announcements. Image Formation: Outline. Homogenous coordinates. Image Formation and Cameras (cont.)

Mosaics, Plenoptic Function, and Light Field Rendering. Last Lecture

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

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

Announcements. Camera Calibration. Thin Lens: Image of Point. Limits for pinhole cameras. f O Z

Lecture 22: Basic Image Formation CAP 5415

Capturing light. Source: A. Efros

Starting this chapter

Lighting affects appearance

Photometric Stereo.

Ligh%ng and Reflectance

Lighting affects appearance

Local Reflection Models

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

Reflection models and radiometry Advanced Graphics

CS6670: Computer Vision

Announcements. Lighting. Camera s sensor. HW1 has been posted See links on web page for readings on color. Intro Computer Vision.

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

BRDF Computer Graphics (Spring 2008)

Shading / Light. Thanks to Srinivas Narasimhan, Langer-Zucker, Henrik Wann Jensen, Ravi Ramamoorthi, Hanrahan, Preetham

Shading & Material Appearance

CS6670: Computer Vision

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

Sources, shadows and shading

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

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

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

Fundamentals of Rendering - Reflectance Functions

CS 5625 Lec 2: Shading Models

Rendering Light Reflection Models

Rendering Light Reflection Models

Shading. Brian Curless CSE 557 Autumn 2017

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

Radiometry and reflectance

CMSC427 Shading Intro. Credit: slides from Dr. Zwicker

Light Reflection Models

Lecture 4: Reflection Models

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

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

Lecture 7 - Path Tracing

CENG 477 Introduction to Computer Graphics. Ray Tracing: Shading

Fundamentals of Rendering - Reflectance Functions

Chapter 1 Introduction

CSE 681 Illumination and Phong Shading

Understanding Variability

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

Shading and Recognition OR The first Mrs Rochester. D.A. Forsyth, UIUC

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

Shading. Reading. Pinhole camera. Basic 3D graphics. Brian Curless CSE 557 Fall Required: Shirley, Chapter 10

Lighting. Camera s sensor. Lambertian Surface BRDF

Global Illumination The Game of Light Transport. Jian Huang

BRDFs. Steve Rotenberg CSE168: Rendering Algorithms UCSD, Spring 2017

The Rendering Equation. Computer Graphics CMU /15-662

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

Lighting and Reflectance COS 426

Local vs. Global Illumination & Radiosity

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

Sung-Eui Yoon ( 윤성의 )

Illumination in Computer Graphics

Re-rendering from a Dense/Sparse Set of Images

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

Lecture 15: Shading-I. CITS3003 Graphics & Animation

To Do. Advanced Computer Graphics. Course Outline. Course Outline. Illumination Models. Diffuse Interreflection

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

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

w Foley, Section16.1 Reading

Epipolar geometry contd.

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

Image-based BRDF Acquisition for Non-spherical Objects

Illumination and Shading - II

Comp 410/510 Computer Graphics. Spring Shading

Analysis of Planar Light Fields from Homogeneous Convex Curved Surfaces Under Distant Illumination

Chapter 6 Inverse Rendering Under Complex Illumination

Global Illumination. CSCI 420 Computer Graphics Lecture 18. BRDFs Raytracing and Radiosity Subsurface Scattering Photon Mapping [Ch

CS5670: Computer Vision

Other approaches to obtaining 3D structure

Introduction. Lighting model Light reflection model Local illumination model Reflectance model BRDF

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

Motivation: Monte Carlo Rendering. Sampling and Reconstruction of Visual Appearance. Caustics. Illumination Models. Overview of lecture.

MIT Monte-Carlo Ray Tracing. MIT EECS 6.837, Cutler and Durand 1

Visual Appearance and Color. Gianpaolo Palma

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

Global Illumination. Global Illumination. Direct Illumination vs. Global Illumination. Indirect Illumination. Soft Shadows.

Radiometry Measuring Light

More computational light transport

Traditional Image Generation. Reflectance Fields. The Light Field. The Light Field. The Light Field. The Light Field

A Brief Overview of. Global Illumination. Thomas Larsson, Afshin Ameri Mälardalen University

Other Rendering Techniques CSE 872 Fall Intro You have seen Scanline converter (+z-buffer) Painter s algorithm Radiosity CSE 872 Fall

Shading. Brian Curless CSE 457 Spring 2017

Introduction to Radiosity

Global Illumination. Global Illumination. Direct Illumination vs. Global Illumination. Indirect Illumination. Soft Shadows.

Transcription:

Reflectance, Lights and on to photometric stereo CSE 252A Lecture 7 And if that 120MP Camera was cool Large Synoptic Survey Telescope 3.2Gigapixel camera 189 CCD s, each with 16 megapixels Pixels are 10µm Filter wheel 6200 lbs https://www.lsst.org/about/camera 1

HW1 due Tuesday Announcements With assumptions in previous slide Bi-directional Reflectance Distribution Function ρ(θ in, φ in ; θ out, φ out ) BRDF Ratio of emitted radiance to incident irradiance (units: sr -1 ) In local coordinate system at x Incoming light direction: θ in, φ in Outgoing light direction: θ out, φ out ρ ( x;θ in,φ in ;θ out,φ out ) = L i (θ in,φ in ) x L o ( x;θ out,φ out ) ( x;θ in,φ in )cosθ in dω Where ρ is sometimes denoted f r. ^ n (θ out,φ out ) 2

Emitted radiance in direction f r for incident radiance L i. L r (x,ω r ) = ρ(x,ω i,ω r ) L i (x,ω i )cosθ i dω i H 2 where ω i =(θ i, ϕ i ) Properties of BRDFs Ω i 1. Non-negative: ρ(θ in, φ in ; θ out, φ out ) 0 2. Helmholtz Reciprocity Principle: ρ(θ in, φ in ; θ out, φ out ) = ρ(θ out, φ out ; θ in, φ in ) 3. Total energy leaving a surface must be less than total energy arriving at the surface L i (x,θ i,φ i )cosθ i dω i Ωo Ωi ρ ( θ i,φ i ;θ 0,φ o )L i (x,θ i,φ i )cosθ i dω i cosθ o dω o 3

Important class of BRDFs: Isotropic BRDF ρ(θ i,φ i ;θ o,φ o ) = ρ r (θ i,θ o,φ i φ o ) ρ ( ) From Hertzmann & Seitz, CVPR 03 Isotropic BRDF s are symmetric about the surface normal. If the surface is rotated about the normal for the same incident and emitting directions, the value of the BRDF is the same. Anisotropic BRDF ρ(θ i,φ i ;θ o,φ o ) is an arbitrary function From Hertzmann & Seitz, CVPR 03 4

Lambertian (Diffuse) Surface BRDF is a constant called the albedo. ρ ( x;θ in,φ in ;θ out,φ out ) = K Emitted radiance is NOT a function of outgoing direction i.e. constant in all directions. For lighting coming in single direction ω ι, emitted radiance is proportional to cosine of the angle between normal and light direction L r = K ˆN ω i Lambertian reflection Lambertian Matte Diffuse Light is radiated equally in all directions Light emitted equally in all directions. 5

Specular Reflection: Smooth Surface N N ω i θ i θ o ω o N, ω i, ω o are coplanar θ i = θ o ω o = 2(ω i N )N ω i Speculum Latin for Mirror Rough Specular Surface Phong Lobe 6

L r (ω o ) = k a L a + k d (N ω i ) + k s (ω o R) s where R = 2(ω i N )N ω i Non-Lambertian reflectance 7

Lots of BRDF Models Common Models Lambertian Phong Physics-based Specular [Blinn 1977], [Cook-Torrance 1982], [Ward 1992] Diffuse [Hanrahan, Kreuger 1993] Generalized Lambertian [Oren, Nayar 1995] Thoroughly Pitted Surfaces [Koenderink et al 1999] Phenomenological [Koenderink, Van Doorn 1996] Arbitrary Reflectance Non-parametric model Anisotropic Non-uniform over surface BRDF Measurement [Dana et al, 1999], [Marschner ] Specialized Hair, skin, threads, paper [Jensen et al] General BRDF: e.g. Velvet Portrait of Sir Thomas Morre, Hans Holbein the Younger, 1527 [ After Koenderink et al, 1998 ] 8

Ways to measure BRDFs Gonioreflectometers Three degrees of freedom spread among light source, detector, and/or sample 9

Gonioreflectometers Three degrees of freedom spread among light source, detector, and/or sample Gonioreflectometers Can add fourth degree of freedom to measure anisotropic BRDFs UCSD spherical gantry in CSE has two arms, each with two degrees of freedom. 10

Ward s BRDF Measurement Setup Collect reflected light with hemispherical (should be ellipsoidal) mirror [SIGGRAPH 92] Ward s BRDF Measurement Setup Result: each image captures light at all exitant angles 11

Marschner s Image-Based BRDF Measurement For uniform BRDF, capture 2-D slice corresponding to variations in normals CSE 252A MERL BRDF Database 100 Isotropic materials http://www.merl.com/brdf/ Ver 2, 2006 CSE 252A 12

BRDF Not Always Appropriate BRDF BSSRDF BSSRDF captures subsurface scattering http://graphics.stanford.edu/papers/bssrdf/ (Jensen, Marschner, Levoy, Hanrahan) Light sources and shading A light source emits light instead of reflecting it Examples: Laser a single ray Point source like a light bulb Line source fluorescent light bulb Area source 13

Nearby point source model Emitted radiance L at x 1 L = p d (x) N (x) x s 2 (x s) x s S S : Point light source location N : unit surface normal ρ d : diffuse (Lambertian) albedo N x Nearby Line Source Intensity due to line source varies with inverse distance, if the source is long enough 14

Distant Point Source Model Assume that all points in the model are close to each other with respect to the distance to the source. Then the source vector doesn t vary much, and the distance doesn t vary much either, and we can roll the constants together to get: L = ρ d ( x) N ( x) S( x) N S N is the surface normal ρ d is diffuse (Lambertian) albedo S is source vector - a vector in source direction, whose length is the intensity term Lighting at infinity Direction is a three vector s, with s = 1. Described as function on a sphere: radiance as a function of direction r(s) Single point source is a delta function at some direction Multiple point sources: sum of delta functions 15

Diffuse lighting at infinity: Spherical Harmonics l=0 1 Y lm (θ,φ) Order l=1 y z x l=2.. 2 2 xy yz 3z 2-1 zx xy m=-2 m=-1 m=0 m=1 m=2. (Borrowed from: Ramamoorthi, Hanrahan, SIGGRAPH 01) Green: Positive Blue: Negative Shadows cast by a point source A point in the scene that can t see the source is in shadow Cast Shadow Attached Shadow 16

Area Source Shadows 1. Fully illuminated 2. Penumbra 3. Umbra (shadow) Shading models Local shading model Surface has incident radiance due only to sources visible at each point Advantages: often easy to manipulate, expressions easy supports quite simple theories of how shape information can be extracted from shading Used in vision & real time graphics Global shading model surface radiosity is due to radiance reflected from other surfaces as well as from surfaces Advantages: usually very accurate Disadvantage: extremely difficult to infer anything from shading values Rarely used in vision, often in photorealistic graphics 17

At the top, geometry of a gutter with triangular cross-section; below, predicted radiosity solutions, scaled to lie on top of each other, for different albedos of the geometry. When albedo is close to zero, shading follows a local model; when it is close to one, there are substantial reflexes. Figure from Mutual Illumination, by D.A. Forsyth and A.P. Zisserman, Proc. CVPR, 1989, Light Interreflections and Shadowing Effects in a Lambertian V-Cavity under Diffuse Illumination, Feb 2017 Irradiance observed in an image of this geometry for a real white gutter. Figure from Mutual Illumination, by D.A. Forsyth and A.P. Zisserman, Proc. CVPR, 1989, copyright 1989 IEEE 18

Shape from Shading and Photometric Stereo Shading reveals 3-D surface geometry 19

Where X is Shading Photometric stereo Stereo Motion Texture Blur Focus Structured light. Shape-from-X Two shape-from-x methods that use shading Shape-from-shading: Use just one image to recover shape. Requires knowledge of light source direction and BRDF everywhere. Too restrictive to be useful without priors/learning Photometric stereo: Single viewpoint, multiple images under different lighting. 1. Arbitrary known BRDF 2. Lambertian BRDF, known lighting 3. Lambertian BRDF, unknown lighting 4. Unknown arbitrary BRDF, known lighting 20

Photometric Stereo Rigs: One viewpoint, changing lighting Because of single viewpoint, a pixel location sees the same point of the scene across all images An example of photometric stereo Input Images 21