CS6670: Computer Vision

Similar documents
CS6670: Computer Vision

CS4670: Computer Vision

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

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?

CS5670: Computer Vision

Ligh%ng and Reflectance

Capturing light. Source: A. Efros

Radiometry Measuring Light

Lecture 22: Basic Image Formation CAP 5415

Photometric Stereo.

Radiometry and reflectance

CMSC427 Shading Intro. Credit: slides from Dr. Zwicker

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

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

CS 5625 Lec 2: Shading Models

Lecture 15: Shading-I. CITS3003 Graphics & Animation

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

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

Lighting affects appearance

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

Computer Vision. The image formation process

And if that 120MP Camera was cool

Shading. Brian Curless CSE 557 Autumn 2017

Understanding Variability

Lecture 11. Color. UW CSE vision faculty

w Foley, Section16.1 Reading

Lighting affects appearance

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

Reading. Shading. An abundance of photons. Introduction. Required: Angel , 6.5, Optional: Angel 6.4 OpenGL red book, chapter 5.

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

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

The Rendering Equation. Computer Graphics CMU /15-662

Light Field Spring

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

CS201 Computer Vision Lect 4 - Image Formation

Lecture 4: Reflection Models

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

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

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

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

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

Simple Lighting/Illumination Models

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

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

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

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

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

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

Lecture 1 Image Formation.

CS4670/5760: Computer Vision

(0, 1, 1) (0, 1, 1) (0, 1, 0) What is light? What is color? Terminology

Announcements. Rotation. Camera Calibration

Announcements. Radiometry and Sources, Shadows, and Shading

Sung-Eui Yoon ( 윤성의 )

Radiometry. Radiometry. Measuring Angle. Solid Angle. Radiance

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. CMPT 361 Introduction to Computer Graphics Torsten Möller. Machiraju/Zhang/Möller

CSE 681 Illumination and Phong Shading

Radiometry & BRDFs CS295, Spring 2017 Shuang Zhao

Visualisatie BMT. Rendering. Arjan Kok

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

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

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

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

Colour Reading: Chapter 6. Black body radiators

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

Lighting and Materials

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

CS5620 Intro to Computer Graphics

CENG 477 Introduction to Computer Graphics. Ray Tracing: Shading

Global Illumination The Game of Light Transport. Jian Huang

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

Shading, lighting, & BRDF Theory. Cliff Lindsay, PHD

Color. Computational Photography MIT Feb. 14, 2006 Bill Freeman and Fredo Durand

Color. Reading: Optional reading: Chapter 6, Forsyth & Ponce. Chapter 4 of Wandell, Foundations of Vision, Sinauer, 1995 has a good treatment of this.

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

Illumination Models & Shading

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

Shading & Material Appearance

Shading I Computer Graphics I, Fall 2008

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

Timothy Walsh. Reflection Models

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

Lighting. Figure 10.1

Starting this chapter

rendering equation computer graphics rendering equation 2009 fabio pellacini 1

Other approaches to obtaining 3D structure

Reading. Shading. Introduction. An abundance of photons. Required: Angel , Optional: OpenGL red book, chapter 5.

Illumination & Shading: Part 1

Raytracing. COSC 4328/5327 Scott A. King

782 Schedule & Notes

Lighting and Shading. Slides: Tamar Shinar, Victor Zordon

Unit 3: Optics Chapter 4

Why does a visual system need color? Color. Why does a visual system need color? (an incomplete list ) Lecture outline. Reading: Optional reading:

Global Illumination. Why Global Illumination. Pros/Cons and Applications. What s Global Illumination

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

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

Shading. Brian Curless CSE 457 Spring 2017

Ray Optics. Lecture 23. Chapter 34. Physics II. Course website:

Ray Tracing: shading

Transcription:

CS6670: Computer Vision Noah Snavely Lecture 20: Light, reflectance and photometric stereo

Light by Ted Adelson Readings Szeliski, 2.2, 2.3.2

Light by Ted Adelson Readings Szeliski, 2.2, 2.3.2

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

Radiometry What determines the brightness of an image pixel? Light source properties Surface properties Surface properties

Radiometry What determines the brightness of an image pixel? Light source properties Sensor characteristics Exposure Surface shape Optics Surface reflectance properties Slide by L. Fei-Fei

What is light? Electromagnetic radiation (EMR) moving along rays in space R(l) is EMR, measured in units of power (watts) l is wavelength Light field We can describe all of the light in the scene by specifying the radiation (or radiance along all light rays) arriving at every point in space and from every direction

What is light? Electromagnetic radiation (EMR) moving along rays in space R(l) is EMR, measured in units of power (watts) l is wavelength Perceiving light How do we convert radiation into color? What part of the spectrum do we see?

Visible light We see electromagnetic radiation in a range of wavelengths

Light spectrum The appearance of light depends on its power spectrum How much power (or energy) at each wavelength daylight tungsten bulb fluorescent light Our visual system converts a light spectrum into color This is a rather complex transformation

The human visual system Color perception Light hits the retina, which contains photosensitive cells rods and cones These cells convert the spectrum into a few discrete values

Density of rods and cones Rods and cones are non-uniformly distributed on the retina Rods responsible for intensity, cones responsible for color Fovea - Small region (1 or 2 ) at the center of the visual field containing the highest density of cones (and no rods). Less visual acuity in the periphery many rods wired to the same neuron

Demonstrations of visual acuity With one eye shut, at the right distance, all of these letters should appear equally legible (Glassner, 1.7).

Light response is nonlinear Our visual system has a large dynamic range We can resolve both light and dark things at the same time One mechanism for achieving this is that we sense light intensity on a logarithmic scale an exponential intensity ramp will be seen as a linear ramp Another mechanism is adaptation rods and cones adapt to be more sensitive in low light, less sensitive in bright light.

Visual dynamic range

Color perception L response curve Three types of cones Each is sensitive in a different region of the spectrum but regions overlap Short (S) corresponds to blue Medium (M) corresponds to green Long (L) corresponds to red Different sensitivities: we are more sensitive to green than red Colorblindness deficiency in at least one type of cone

Color perception M L Power S Rods and cones act as filters on the spectrum To get the output of a filter, multiply its response curve by the spectrum, integrate over all wavelengths Each cone yields one number Wavelength Q: How can we represent an entire spectrum with 3 numbers? A: We can t! Most of the information is lost. As a result, two different spectra may appear indistinguishable» such spectra are known as metamers» http://www.cs.brown.edu/exploratories/freesoftware/repository/edu/brown/cs/explo ratories/applets/spectrum/metamers_guide.html

Perception summary The mapping from radiance to perceived color is quite complex! We throw away most of the data We apply a logarithm Brightness affected by pupil size Brightness contrast and constancy effects Afterimages The same is true for cameras But we have tools to correct for these effects Coming soon: Computational Photography lecture

Light transport

Light sources Basic types point source directional source a point source that is infinitely far away area source a union of point sources More generally a light field can describe *any* distribution of light sources What happens when light hits an object?

Reflectance spectrum (albedo) To a first approximation, surfaces absorb some wavelengths of light and reflect others These spectra are multiplied by the spectra of the incoming light, then by the spectra of the sensors

Material Properties

What happens when a light ray hits an object? Some of the light gets absorbed converted to other forms of energy (e.g., heat) Some gets transmitted through the object possibly bent, through refraction a transmitted ray could possible bounce back Some gets reflected as we saw before, it could be reflected in multiple directions (possibly all directions) at once Let s consider the case of reflection in detail

Classic reflection behavior ideal specular rough specular Lambertian from Steve Marschner

The BRDF The Bidirectional Reflection Distribution Function Given an incoming ray and outgoing ray what proportion of the incoming light is reflected along outgoing ray? surface normal Answer given by the BRDF:

Constraints on the BRDF Energy conservation Quantity of outgoing light quantity of incident light integral of BRDF 1 Helmholtz reciprocity reversing the path of light produces the same reflectance =

BRDF s can be incredibly complicated

Diffuse reflection Diffuse reflection Dull, matte surfaces like chalk or latex paint Microfacets scatter incoming light randomly Effect is that light is reflected equally in all directions

Diffuse reflection Diffuse reflection governed by Lambert s law Viewed brightness does not depend on viewing direction Brightness does depend on direction of illumination This is the model most often used in computer vision Lambert s Law: L, N, V unit vectors I e = outgoing radiance I i = incoming radiance BRDF for Lambertian surface

BRDF models Phenomenological Phong [75] Ward [92] Lafortune et al. [97] Ashikhmin et al. [00] Physical Cook-Torrance [81] Dichromatic [Shafer 85] He et al. [91] Here we re listing only some well-known examples

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

Questions? 3-minute break

Photometric Stereo Readings Merle Norman Cosmetics, Los Angeles R. Woodham, Photometric Method for Determining Surface Orientation from Multiple Images. Optical Engineering 19(1)139-144 (1980). (PDF)

Diffuse reflection image intensity of P Simplifying assumptions I = R e : camera response function f is the identity function: can always achieve this in practice by solving for f and applying f -1 to each pixel in the image R i = 1: light source intensity is 1 can achieve this by dividing each pixel in the image by R i

Shape from shading Suppose You can directly measure angle between normal and light source Not quite enough information to compute surface shape But can be if you add some additional info, for example assume a few of the normals are known (e.g., along silhouette) constraints on neighboring normals integrability smoothness Hard to get it to work well in practice plus, how many real objects have constant albedo?

Photometric stereo N L 1 L 3 L 2 V Can write this as a matrix equation:

Solving the equations

More than three lights Get better results by using more lights Least squares solution: Solve for N, k d as before What s the size of L T L?

Example Recovered albedo Recovered normal field Forsyth & Ponce, Sec. 5.4

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