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

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

Understanding Variability

Photometric Stereo.

Capturing light. Source: A. Efros

Radiometry and reflectance

CS6670: Computer Vision

CMSC427 Shading Intro. Credit: slides from Dr. Zwicker

Engineered Diffusers Intensity vs Irradiance

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

Starting this chapter

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

CS6670: Computer Vision

Image Processing 1 (IP1) Bildverarbeitung 1

Lecture 22: Basic Image Formation CAP 5415

Measuring Light: Radiometry and Photometry

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

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

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

Measuring Light: Radiometry and Cameras

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

Radiometry Measuring Light

Other approaches to obtaining 3D structure

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

Announcements. Radiometry and Sources, Shadows, and Shading

CS201 Computer Vision Lect 4 - Image Formation

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

MODELING LED LIGHTING COLOR EFFECTS IN MODERN OPTICAL ANALYSIS SOFTWARE LED Professional Magazine Webinar 10/27/2015

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

CS4670: Computer Vision

rendering equation computer graphics rendering equation 2009 fabio pellacini 1

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

Measuring Light: Radiometry and Photometry

specular diffuse reflection.

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

Ray Tracing: Special Topics CSCI 4239/5239 Advanced Computer Graphics Spring 2018

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

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

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

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

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?

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

CS667 Lecture Notes: Radiometry

CS5670: Computer Vision

Visual Appearance and Color. Gianpaolo Palma

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

Light. Electromagnetic wave with wave-like nature Refraction Interference Diffraction

Lighting and Materials

Lecture 24: More on Reflectance CAP 5415

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

Radiometry & BRDFs CS295, Spring 2017 Shuang Zhao

Physics-based Vision: an Introduction

Epipolar geometry contd.

2.710 Optics Spring 09 Solutions to Problem Set #1 Posted Wednesday, Feb. 18, 2009

Physics 202, Lecture 23

Chapter 37. Interference of Light Waves

Computer Vision. The image formation process

GEOG 4110/5100 Advanced Remote Sensing Lecture 2

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

Chapter 24. Wave Optics

Chapter 37. Wave Optics

Image-based Lighting

TracePro Stray Light Simulation

Lesson 1 Scattering, Diffraction, and Radiation

Optics Part 1. Vern Lindberg. March 5, 2013

Computational Imaging for Self-Driving Vehicles

E (sensor) is given by; Object Size

Simple Spatial Domain Filtering

Ligh%ng and Reflectance

The branch of physics which studies light

CENG 477 Introduction to Computer Graphics. Ray Tracing: Shading

Spectral Color and Radiometry

Schedule. MIT Monte-Carlo Ray Tracing. Radiosity. Review of last week? Limitations of radiosity. Radiosity

General Principles of 3D Image Analysis

Colour Reading: Chapter 6. Black body radiators

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

Lecture 4 Image Enhancement in Spatial Domain

Range Sensors (time of flight) (1)

L2 Data Acquisition. Mechanical measurement (CMM) Structured light Range images Shape from shading Other methods

Computer Vision Lecture 17

Computer Vision Lecture 17

Chapter 38. Diffraction Patterns and Polarization

DD2423 Image Analysis and Computer Vision IMAGE FORMATION. Computational Vision and Active Perception School of Computer Science and Communication

EM Waves Practice Problems

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

x ~ Hemispheric Lighting

Optics Test Science What are some devices that you use in everyday life that require optics?

Lighting affects appearance

Lecture 7 Notes: 07 / 11. Reflection and refraction

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

Lecture 16: Computer Vision

Optics and Images. Lenses and Mirrors. Matthew W. Milligan

EE Light & Image Formation

Illumination. Illumination CMSC 435/634

CS354 Computer Graphics Ray Tracing. Qixing Huang Januray 24th 2017

What is it? How does it work? How do we use it?

Global Illumination The Game of Light Transport. Jian Huang

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

Lecture 20: Tracking. Tuesday, Nov 27

The Rendering Equation. Computer Graphics CMU /15-662

Introduction to Radiosity

Transcription:

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

Midterm

Project 2 without radial distortion correction with radial distortion correction

Light Light Light! How do you recover the true color of a scene? " Recovering Lightness! How do you describe reflection? " Radiometry and Reflectance

Recovering Lightness

Land s Experiment (1959)! Cover all patches except a blue rectangle! Make it look gray by changing illumination! Uncover the other patches Color Constancy We filter out illumination variations

Color Cube Illusion D. Purves, R. Beau Lotto, S. Nundy Why We See What We do, American Scientist

Checker Shadow Illusion by Ted Adelson @ MIT

Lightness Recovery and Retinex Theory! Recover surface reflectance/color in varying illumination conditions " Use tools developed before " Sensing: intensity/color " Image processing: Fourier transform and convolution " Edge operators " Iterative techniques

Image Brightness (Intensity) scene irradiance scene reflectance scene radiance sensor response intensity Assume monochromatic light and b' ( x, y) = r' ( x, y)e' ( x,y) Reflectance as a multiplier to irradiance is often called lightness Note: our analysis can be applied to colored light (we ll simply have filters in front of the sensor) Also, assume everything is flat

Lightness Recovery b' ( x, y) = r' ( x, y)e' ( x,y) Can we recover and from? We need assumptions to constrain the solution!! Sharp changes in reflectance! Smooth changes in illumination Frequency spectrum (Fourier transform) We want to filter out e

Lightness Recovery Take logarithm Use Laplacian logb' x,y b' ( x, y) = r' ( x, y)e' ( x, y) ( ) = log r' ( x, y) + loge' ( x,y) ( ) = r( x, y) + e( x, y) b x, y d = " 2 b = " 2 r + " 2 e! Sharp changes in reflectance " 2 = #2 #x 2 + #2 #y 2 has 2 infinite spikes near edges and! Smooth changes in illumination elsewhere everywhere

Lightness Recovery (Retinex Scheme) Image: Laplacian : Thresholding : Reconstruction : (lightness) (reflectance)

Solving the Inverse Problem Image Laplacian Thresholding Lightness Find lightness l(x,y) from t(x,y) Poisson s Equation # % $ " 2 "x 2 + "2 "y 2 & ( l x, y ' ( ) = t( x, y) We have to find g(x,y) which satisfies ( ) = t u,v l x, y $ # "# $ # "# ( )g( x " u,y " v)dudv l( x, y) = t( x, y) " g( x, y)

Solving Poisson s Equation We have " 2 l( x, y) = t( x, y) and l( x, y) = t( x, y) " g( x, y) So "( u 2 + v 2 )L u,v Fourier transform? = T( u,v) and ( ) = T( u,v) and L( u,v) = T( u,v)g( u,v) L( u,v) = T( u,v)g( u,v) Thus G( u,v) = " 1 u 2 + v 2 g( x, y) = 1 2" log x 2 + y 2 + c See Robot Vision page 123,124

Lightness Recovery Log of image Which means: Normalize: Assume maximum value of Then: ( ) = k + r( x, y) l x, y (lightness) (reflectance) l' x, y l' x, y r' ( x, y) = (reflectance) l max ( ) = kr' ( x, y) ( ) corresponds to b' x, y e' ( x, y) = (illumination) r' x, y g( x, y) = 1 2" log x 2 + y 2 ( ) ( )

Computing Lightness (Discrete Case) Log of image 1 4 1 4-20 4 1 4 1 basically inverse of Laplacian mask But, inverse of a discrete approximation of the Laplacian would not be an exact inverse of the Laplacian Solve directly

Computing Lightness (Discrete Case) 1 4 1 4-20 4 1 4 1 1 4 1 4-20 4 1 4 1 "20l i, j + 4( l i+1, j + l i, j "1 + l i"1, j + l ) i, j "1 + ( l i+1, j +1 + l i"1, j +1 + l i"1, j "1 + l ) i+1, j "1 = 6t i, j Solve iteratively n l +1 i, j = 1 ( 5 l n + l n i+1, j i, j+1 + l n i"1, j + l ) n i, j"1 + 1 ( 20 l n + l n i+1, j+1 i"1, j+1 + l n i"1, j"1 + l ) n i+1, j"1 " 3 10 t i, j Use a discrete approximation to the inverse of Laplacian to obtain initial estimate of l

Lightness from Multiple Images taken under Varying Illumination Use spatial statistics of edges Illumination is not smooth Derivative operator responses are sparse ( ) = "r( x, y) + "e( x, y,t) "b x, y,t ( ) # median( "b( x,y,t) ) "r x, y t Y. Weiss ICCV 2001

Lightness from Multiple Images taken under Varying Illumination Y. Weiss ICCV 2001

Lightness from Multiple Images taken under Varying Illumination Y. Weiss ICCV 2001

Using Lightness w/o decomposition w/ decomposition Y. Weiss ICCV 2001

Using Lightness Y. Matsushita and K. Nishino CVPR 2003

Comments on Lightness Recovery! Not applicable to smooth reflectance variations! Not applicable to curved objects In general Intensity=f( Shape, Reflectance, Illumination )

Appearance! How do you describe reflection? " Radiometry and Reflectance! Can we recover geometry from shading? When can we do that? " Photometric Stereo

Radiometry and Reflectance

Radiometry and Image Formation To interpret image intensities, we need to understand Radiometric Concepts and Reflectance Properties " Image Intensities: Overview " Radiometric Concepts: " Radiant Intensity " Irradiance " Radiance " Bidirectional Reflectance Distribution Function (BRDF) " Image Formation Radiometry vs. Photometry?

Light!! Geometric Optics " Light rays " Emission, Reflection/Refraction, Absorption! Wave Optics " Electromagnetic wave (Maxwell s equations) " Diffraction, Interference, Polarization! Quantum Optics " Photons " Fluorescence, Phosphorescence

Geometric Optics heat Emission Reflection Refraction Absorption

Snell s law for air

Image Intensities source surface normal sensor image intensity surface element Image intensity understanding is an under-constrained problem!

Radiometric Concepts Solid Angle : Solid Angle subtended by : Foreshortened Area What is the solid angle subtended by a hemisphere?

Radiometric Concepts flux Radiant Intensity Light flux (power) emitted per unit solid angle : Flux Surface Irradiance Light flux (power) incident per unit surface area Does not depend on where the light is coming from

Radiometric Concepts Surface Radiance (Brightness) Light flux (power) emitted per unit foreshortened area per unit solid angle L = d" ( dacos# r )d$ foreshortened area ( W/m 2 str) : Flux L depends on direction Surface can radiate into whole hemisphere L is proportional to irradiance E Depends on reflectance properties of surface

Sun Example Total flux: 3.91x10 26 W" Surface area: 6.07x10 18 m 2 " Radiance by Steve Marschner

Sun Example Total flux: 3.91x10 26 W" Surface area: 6.07x10 18 m 2 " Radiance by Steve Marschner

Sun Example! Same flux on Earth and Mars?

Sun Example! Same flux on Earth and Mars? Radiance does not change along the ray! fall off of flux

Radiometric Image Formation (Scene Radiance to Image Irradiance) image plane lens scene Image Irradiance: Scene Radiance: Solid angles:

Radiometric Image Formation (Scene Radiance to Image Irradiance) image plane lens scene Image Irradiance: Scene Radiance: Solid Angle subtended by lens

Radiometric Image Formation (Scene Radiance to Image Irradiance) image plane lens scene Image Irradiance: Scene Radiance: Flux received by lens from = Flux projected onto (image) Image Irradiance

Radiometric Image Formation (Scene Radiance to Image Irradiance) We have Solid Angles: Solid Angle subtended by lens: Flux: Image Irradiance: We get image irradiance scene radiance Image irradiance is proportional to scene radiance Telephoto lenses have narrow field of view effects of are small