Computational Photography and Video: Intrinsic Images. Prof. Marc Pollefeys Dr. Gabriel Brostow

Similar documents
Lecture 24: More on Reflectance CAP 5415

Recovering Intrinsic Images from a Single Image

Estimating the wavelength composition of scene illumination from image data is an

Intrinsic Image Decomposition with Non-Local Texture Cues

Removing Shadows from Images

Color Constancy from Illumination Changes

Computational Photography and Capture: (Re)Coloring. Gabriel Brostow & Tim Weyrich TA: Frederic Besse

Shadow Removal from a Single Image

Geometric and Photometric Restoration of Distorted Documents

Physics-based Vision: an Introduction

Estimating Intrinsic Images from Image Sequences with Biased Illumination

INTRINSIC IMAGE DECOMPOSITION BY HIERARCHICAL L 0 SPARSITY

Image Compositing and Blending

INTRINSIC IMAGE EVALUATION ON SYNTHETIC COMPLEX SCENES

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

Learning Continuous Models for Estimating Intrinsic Component Images. Marshall Friend Tappen

Deriving intrinsic images from image sequences

Ground truth dataset and baseline evaluations for intrinsic image algorithms

Abstract. 1. Introduction

Other approaches to obtaining 3D structure

Recollection. Models Pixels. Model transformation Viewport transformation Clipping Rasterization Texturing + Lights & shadows

Shadow detection and removal from a single image

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

Learning and Inferring Depth from Monocular Images. Jiyan Pan April 1, 2009

CS 5625 Lec 2: Shading Models

Finally: Motion and tracking. Motion 4/20/2011. CS 376 Lecture 24 Motion 1. Video. Uses of motion. Motion parallax. Motion field

Targil 10 : Why Mosaic? Why is this a challenge? Exposure differences Scene illumination Miss-registration Moving objects

Image Blending and Compositing NASA

CS 4495 Computer Vision Motion and Optic Flow

Robust Tracking and Stereo Matching under Variable Illumination

Color. making some recognition problems easy. is 400nm (blue) to 700 nm (red) more; ex. X-rays, infrared, radio waves. n Used heavily in human vision

Range Imaging Through Triangulation. Range Imaging Through Triangulation. Range Imaging Through Triangulation. Range Imaging Through Triangulation

Color Constancy from Hyper-Spectral Data

Colour Reading: Chapter 6. Black body radiators

Overview. Video. Overview 4/7/2008. Optical flow. Why estimate motion? Motion estimation: Optical flow. Motion Magnification Colorization.

Multispectral Image Invariant to Illumination Colour, Strength, and Shading

Supplementary Material: Specular Highlight Removal in Facial Images

Multiple View Geometry

Pop Quiz 1 [10 mins]

Warping, Morphing and Mosaics

Lecture 16: Computer Vision

Photometric stereo. Recovering the surface f(x,y) Three Source Photometric stereo: Step1. Reflectance Map of Lambertian Surface

Illumination Decomposition for Material Editing with Consistent Interreflections

ME/CS 132: Introduction to Vision-based Robot Navigation! Low-level Image Processing" Larry Matthies"

Automatic Colorization of Grayscale Images

Specular Reflection Separation using Dark Channel Prior

Texture. Texture. 2) Synthesis. Objectives: 1) Discrimination/Analysis

Dealing with Multi-Scale Depth Changes and Motion in Depth Edge Detection

What is an Image? Image Acquisition. Image Processing - Lesson 2. An image is a projection of a 3D scene into a 2D projection plane.

General Principles of 3D Image Analysis

Automatic Photo Popup

Discrete Optimization of Ray Potentials for Semantic 3D Reconstruction

Learning local evidence for shading and reflectance

Lecture 16: Computer Vision

The Photometry of Intrinsic Images

Panoramic Image Stitching

Full-Colour, Computational Ghost Video. Miles Padgett Kelvin Chair of Natural Philosophy

Textureless Layers CMU-RI-TR Qifa Ke, Simon Baker, and Takeo Kanade

CS5670: Computer Vision

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

Digital Image Processing

calibrated coordinates Linear transformation pixel coordinates

Estimation of Reflection Properties of Silk Textile with Multi-band Camera

w Foley, Section16.1 Reading

Photometric Processing

ams AG TAOS Inc. is now The technical content of this TAOS document is still valid. Contact information:

ENGN2911I: 3D Photography and Geometry Processing Assignment 1: 3D Photography using Planar Shadows

Midterm Examination CS 534: Computational Photography

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

Recap. DoF Constraint Solver. translation. affine. homography. 3D rotation

Optical flow and tracking

A Novel Approach for Shadow Removal Based on Intensity Surface Approximation

Image Acquisition + Histograms

DECOMPOSING and editing the illumination of a photograph

dependent intensity function - the spectral distribution function (SPD) E( ). The surface reflectance is the proportion of incident light which is ref

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

Mosaics. Today s Readings

Range Sensors (time of flight) (1)

Lecture 17: Recursive Ray Tracing. Where is the way where light dwelleth? Job 38:19

Understanding Variability

CS Illumination and Shading. Slide 1

Video Alignment. Literature Survey. Spring 2005 Prof. Brian Evans Multidimensional Digital Signal Processing Project The University of Texas at Austin

Overview of Active Vision Techniques

Motion. 1 Introduction. 2 Optical Flow. Sohaib A Khan. 2.1 Brightness Constancy Equation

Project Updates Short lecture Volumetric Modeling +2 papers

CS6670: Computer Vision

What is Computer Vision? Introduction. We all make mistakes. Why is this hard? What was happening. What do you see? Intro Computer Vision

Capturing, Modeling, Rendering 3D Structures

Illumination Estimation from Shadow Borders

A Simple Vision System

Estimation of Intrinsic Image Sequences from Image+Depth Video

Question 2: Linear algebra and transformations matrices rotation vectors linear transformation T=U*D*VT

CENG 477 Introduction to Computer Graphics. Ray Tracing: Shading

Processing 3D Surface Data

Constructing a 3D Object Model from Multiple Visual Features

Lighting. Figure 10.1

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

CS201 Computer Vision Lect 4 - Image Formation

Lucas-Kanade Motion Estimation. Thanks to Steve Seitz, Simon Baker, Takeo Kanade, and anyone else who helped develop these slides.

Simpler Soft Shadow Mapping Lee Salzman September 20, 2007

Transcription:

Computational Photography and Video: Intrinsic Images Prof. Marc Pollefeys Dr. Gabriel Brostow

Last Week

Schedule Computational Photography and Video Exercises 18 Feb Introduction to Computational Photography 25 Feb More on Cameras, Sensors and Color Assignment 1: Color 4 Mar Warping, morphing and mosaics Assignment 2: Alignment 11 Mar Image pyramids, Graphcuts Assignment 3: Blending 18 Mar Dynamic Range, HDR imaging, tone mapping Assignment 4: HDR 25 Mar Video Synthesis I Papers 1 Apr Video Synthesis II Papers 8 Apr Intrinsic Images Project proposals 15 Apr Easter holiday no classes 22 Apr Vectorizing Rasters Papers 29 Apr Non-photorealistic Rendering & Animation Project updates 6 May Time-Lapse Video Papers 13 May (Re)Coloring Papers 20 May Video Based Rendering Optional team meetings 27 May Final Project Presentations I Project Presentations II

Example Problem: Background Normalization

When taking a picture, what color is a (Lambertian) surface?

Region lit by skylight only Region lit by sunlight and skylight

What great things could we do if we could easily find shadows?

An Intrinsic Image What effect is the lighting having, irrespective of surface materials? What is the surface reflectance, irrespective of lighting? Tappen et al. PAMI 05 Original Lighting/Shading Reflectance

Pursuit of Intrinsic Images (1) Lightness and Retinex Theory Land & McCann 71 Recovering Intrinsic Scene Characteristics From Images Barrow & Tenenbaum 78

Pursuit of Intrinsic Images (2) Painted Polyhedra - ICCV 93 Image Sequences - ICCV 01 Single Image - NIPS 03 Entropy Minimization - ECCV 04

Pursuit of Intrinsic Images (2) Painted Polyhedra - ICCV 93 (Generative) Image Sequences - ICCV 01 (Discriminative) Single Image - NIPS 03 (Discriminative) Entropy Minimization - ECCV 04 (Generative)

I

Painted Polyhedra Recovering Reflectance and Illumination in a World of Painted Polyhedra Sinha & Adelson, ICCV 93

Not All Edges are Equal

Local Edges are a Hint?

Edge Junctions are Useful

Junction Catalog Y, arrow, and psi junctions T junctions

Examples

Examples

Examples

Examples

Examples

Examples

Junction Analysis of the Impossible Object

Counter-Example

Consistency Check

Global Measures of Correctness Low variance of angles Planarity of faces Overall compactness Consistency with light source

Global Measures of Correctness Low variance of angles Planarity of faces Overall compactness Consistency with light source

Possibility of Consistent Lighting

Global Analysis Confirms Local Analysis

Global Analysis Trumps Local Analysis

II

Image Sequences Deriving Intrinsic Images from Image Sequences Weiss ICCV 01 For static objects, multiple frames

Problem Formulation Given a sequence of T images I( x, y, t)} in which reflectance is constant over T Illumination images L( x, y, t)}? { t= 1 T { t= 1 time and only the illumination changes, can we solve for a single I ( x, y) = L( x, y) R( x, y) reflectance image and T T T { I( x, y, t)} { L( x, y, t)} 1 1 = t = t= R( x, y) Still completely ill-posed : at every pixel there are T equations and T+1 unknowns.

Prior based on intuition: derivative-like filter outputs of L tend to be sparse ), ( )},, ( { )},, ( { 1 1 y x R t y x L t y x I T t T t = = = ),, ( ), ( ),, ( t y x l y x r t y x i + = (move to log-space) n f n t y x i t y x o = ),, ( ),, ( f n = one of N filters like 1-1

rˆ n = median t ( o n ( x, y, t)) o ( x, y, t) = i( x, y, t) n f n Variety of responses has Laplacian-shaped distribution

Toy Example

Example Result 1 Einstein image is translated diagonally 4 pixels per frame

Example Result 2 64 images with variable lighting from Yale Face Database

III

Single Image Recovering Intrinsic Images from a Single Image Tappen, Freeman, Adelson NIPS 03 & PAMI 05

Assumption Each derivative is caused either by Shading or Reflectance Reduces to a binary classification problem Image Derivative w.r.t. x and y

Classifying Derivatives 4 Basic phases: 1. Compute image derivatives 2. Classify each derivative as caused by shading or reflectance 3. Invert derivatives classified as shading to find shading images 4. Reflectance image is found the same way

1. Color information Classification - changes due to shading should affect R,G and B proportionally C = α 1 C 2 If C1 α C 2 the changes are caused by reflectance

Color Information - examples Black on white may be interpreted as intensity change. Resulting in misclassification

1. Color information Classification - changes due to shading should affect R,G and B proportionally C = α 1 C 2 If C1 α C 2 the changes are caused by reflectance

1. Color information Classification - changes due to shading should affect R,G and B proportionally C = α 1 C 2 If C1 α C 2 the changes are caused by reflectance 2. Statistical regularities of surfaces

GrayScale Information - examples Misclassification of the cheeks due to weak gradients

Combing Information (Assuming Statistical Indep.)

Handling Ambiguities Ambiguities - for example center of the mouth Shading example Input image Reflectance example

Handling Ambiguities Derivatives that lie on the same contour should have the same classification The mouth corners are well classified as reflectance Propagate evidence from conclusive areas to ambiguous ones using MRF

Unpropagated Final Results

Final Results

Final Results

Final Results

IV

Entropy Minimization Intrinsic Images by Entropy Minimization Finlayson, Drew, Lu, ECCV 04

Sensor Response at a Pixel p = R( λ) L( λ) S ( λ) d k k λ λ R = Reflectance L = Illumination S = Sensor Sensitivity

Best When Sensors are Narrow Band

Best When Sensors are Narrow Band S k ( λ) = δ ( λ λ ) k k { R, G, B}

Just Reflectance & Illumination = λ λ λ λ λ d S L R p k k ) ( ) ( ) ( = λ λ λ λ δ λ λ d L R p k k ) ( ) ( ) ( ) ( ) ( k k k L R p λ λ =

Chromaticity for 7 Surfaces for 10 Illuminants

Macbeth Chart Under Changing Illumination

Entropy Minimization Correct Projection Incorrect Projection

Entropy Minimization More spread-out distribution would produce a larger entropy, hence the projection direction that produces the minimum entropy is the correct projection direction

Sweep Angle of Projection

Entropy Plot Image Chromaticity Recovered Chromaticity

Limitations of Shadow Removal Only Hard shadows can be removed No overlapping of object and shadow boundaries Planckian light sources Narrow band cameras are idealized Reconstruction methods are texture-dumb

Discussion

Assumptions for Both Entropy Min. & Image Seq. Each edge can be a shadow border OR a change in the reflectance image Remove the shadow edges and get the reflectance image Both algorithms uses the same reconstruction method In real life there are soft shadow and vague shadow edges. In many cases there will be mixed edges so the separation can not be easily done The second algorithm is more sensitive because it is has less redundancy (one image only!)

Modern Intrinsic Images Refs Recovering Reflectance and Illumination in a World of Painted Polyhedra Sinha & Adelson ICCV 93 Deriving Intrinsic Images from Image Sequences Weiss ICCV 01 Recovering Intrinsic Images from a Single Image Tappen, Freeman, Adelson NIPS 03 Intrinsic Images by Entropy Minimization Finlayson, Drew, Lu, ECCV 04

Property of illuminator: Planck s Law Planck s Law defines the energy emission rate of a blackbody illuminator, in unit of watts per square meter per wavelength interval, as a function of wavelength λ (in meters) and temperature T (in degrees Kelvin). c2 5 T Pr ( λ) = c1λ e λ 1 Spectral power: 1 Where -16 2 c 1 = 3.74183 10 Wm -2 c 1 = 1.4388 10 mk c 1 5 T 5 1 λ 1 2 2 λt E( λ) = I Pr = Ic λ e 1 Ic λ e ; c and are constants. I is the illumination intensity

Calibration results Nikon CoolPix 995 Nikon D-100