light fields computational photography connelly barnes slides from alexei a. efros, james hays, marc...

59
Light Fields Computational Photography Connelly Barnes from Alexei A. Efros, James Hays, Marc Levoy, and others

Upload: ruth-brianne-cox

Post on 17-Dec-2015

221 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Light Fields Computational Photography Connelly Barnes Slides from Alexei A. Efros, James Hays, Marc Levoy, and others

Light Fields

Computational PhotographyConnelly Barnes

Slides from Alexei A. Efros, James Hays, Marc Levoy, and others

Page 2: Light Fields Computational Photography Connelly Barnes Slides from Alexei A. Efros, James Hays, Marc Levoy, and others

What is light?Electromagnetic radiation (EMR) moving along rays in

space• R() is EMR, measured in units of power (watts)

– is wavelength

Useful things:• Light travels in straight lines• In vacuum, radiance emitted = radiance arriving

• i.e. there is no transmission loss

Page 3: Light Fields Computational Photography Connelly Barnes Slides from Alexei A. Efros, James Hays, Marc Levoy, and others

Point of observation

Figures © Stephen E. Palmer, 2002

What do we see?

3D world 2D image

Page 4: Light Fields Computational Photography Connelly Barnes Slides from Alexei A. Efros, James Hays, Marc Levoy, and others

Point of observation

What do we see?

3D world 2D image

Painted backdrop

Page 5: Light Fields Computational Photography Connelly Barnes Slides from Alexei A. Efros, James Hays, Marc Levoy, and others

On Simulating the Visual ExperienceJust feed the eyes the right data

• No one will know the difference!

Philosophy:• Ancient question: “Does the world really exist?”

Science fiction:• Many, many, many books on the subject, e.g. slowglass from “Light

of Other Days”

• Latest take: The Matrix

Physics:• Light can be stopped for up to a minute: Scientists stop light

Computer Science:• Virtual Reality

To simulate we need to know:

What does a person see?

Page 6: Light Fields Computational Photography Connelly Barnes Slides from Alexei A. Efros, James Hays, Marc Levoy, and others

The Plenoptic Function

Q: What is the set of all things that we can ever see?

A: The Plenoptic Function (Adelson & Bergen)

Let’s start with a stationary person and try to parameterize everything that he can see…

Figure by Leonard McMillan

Page 7: Light Fields Computational Photography Connelly Barnes Slides from Alexei A. Efros, James Hays, Marc Levoy, and others

Grayscale snapshot

is intensity of light • Seen from a single view point

• At a single time

• Averaged over the wavelengths of the visible spectrum

(can also do P(x,y), but spherical coordinate are nicer)

P()

Page 8: Light Fields Computational Photography Connelly Barnes Slides from Alexei A. Efros, James Hays, Marc Levoy, and others

Color snapshot

is intensity of light • Seen from a single view point

• At a single time

• As a function of wavelength

P()

Page 9: Light Fields Computational Photography Connelly Barnes Slides from Alexei A. Efros, James Hays, Marc Levoy, and others

A movie

is intensity of light • Seen from a single view point

• Over time

• As a function of wavelength

P(,t)

Page 10: Light Fields Computational Photography Connelly Barnes Slides from Alexei A. Efros, James Hays, Marc Levoy, and others

Holographic movie

is intensity of light • Seen from ANY viewpoint

• Over time

• As a function of wavelength

P(,t,VX,VY,VZ)

Page 11: Light Fields Computational Photography Connelly Barnes Slides from Alexei A. Efros, James Hays, Marc Levoy, and others

The Plenoptic Function

• Can reconstruct every possible view, at every moment, from every position, at every wavelength

• Contains every photograph, every movie, everything that anyone has ever seen! It completely captures our visual reality! Not bad for a function…

P(,t,VX,VY,VZ)

Page 12: Light Fields Computational Photography Connelly Barnes Slides from Alexei A. Efros, James Hays, Marc Levoy, and others

Sampling Plenoptic Function (top view)

Just lookup – Google Street View

Page 13: Light Fields Computational Photography Connelly Barnes Slides from Alexei A. Efros, James Hays, Marc Levoy, and others

Model geometry or just capture images?

Page 14: Light Fields Computational Photography Connelly Barnes Slides from Alexei A. Efros, James Hays, Marc Levoy, and others

Ray

Let’s not worry about time and color:

5D• 3D position• 2D direction

P(VX,VY,VZ)

Slide by Rick Szeliski and Michael Cohen

Page 15: Light Fields Computational Photography Connelly Barnes Slides from Alexei A. Efros, James Hays, Marc Levoy, and others

Surface Camera

No Change in

Radiance

Lighting

How can we use this?

Page 16: Light Fields Computational Photography Connelly Barnes Slides from Alexei A. Efros, James Hays, Marc Levoy, and others

Ray Reuse

Infinite line• Assume light is constant (vacuum)

4D• 2D direction• 2D position• non-dispersive medium

Slide by Rick Szeliski and Michael Cohen

Page 17: Light Fields Computational Photography Connelly Barnes Slides from Alexei A. Efros, James Hays, Marc Levoy, and others

Only need plenoptic surface

Page 18: Light Fields Computational Photography Connelly Barnes Slides from Alexei A. Efros, James Hays, Marc Levoy, and others

Synthesizing novel views

Slide by Rick Szeliski and Michael Cohen

Page 19: Light Fields Computational Photography Connelly Barnes Slides from Alexei A. Efros, James Hays, Marc Levoy, and others

Lumigraph / Lightfield

Outside convex space

4DStuff

Empty

Slide by Rick Szeliski and Michael Cohen

Page 20: Light Fields Computational Photography Connelly Barnes Slides from Alexei A. Efros, James Hays, Marc Levoy, and others

Lumigraph - Organization

2D position

2D direction

s

Slide by Rick Szeliski and Michael Cohen

Page 21: Light Fields Computational Photography Connelly Barnes Slides from Alexei A. Efros, James Hays, Marc Levoy, and others

Lumigraph - Organization

2D position

2D position

2 plane parameterization

su

Slide by Rick Szeliski and Michael Cohen

Page 22: Light Fields Computational Photography Connelly Barnes Slides from Alexei A. Efros, James Hays, Marc Levoy, and others

Lumigraph - Organization

2D position

2D position

2 plane parameterization

us

t s,tu,v

v

s,t

u,v

Slide by Rick Szeliski and Michael Cohen

Page 23: Light Fields Computational Photography Connelly Barnes Slides from Alexei A. Efros, James Hays, Marc Levoy, and others

Lumigraph - Organization

Hold s,t constant

Let u,v vary

An image

s,t u,vSlide by Rick Szeliski and Michael Cohen

Page 24: Light Fields Computational Photography Connelly Barnes Slides from Alexei A. Efros, James Hays, Marc Levoy, and others

Lumigraph / Lightfield

Page 25: Light Fields Computational Photography Connelly Barnes Slides from Alexei A. Efros, James Hays, Marc Levoy, and others

Lumigraph - Capture

Idea 1• Move camera carefully over s,t

plane• Gantry

– see Lightfield paper

s,t u,vSlide by Rick Szeliski and Michael Cohen

Page 26: Light Fields Computational Photography Connelly Barnes Slides from Alexei A. Efros, James Hays, Marc Levoy, and others

Lumigraph - Capture

Idea 2• Move camera anywhere• Find camera pose from markers• Rebinning

– see Lumigraph paper

s,t u,vSlide by Rick Szeliski and Michael Cohen

Page 27: Light Fields Computational Photography Connelly Barnes Slides from Alexei A. Efros, James Hays, Marc Levoy, and others

Lumigraph - Rendering

For each output pixel• determine s,t,u,v

• either• use closest discrete RGB• interpolate near values

s uSlide by Rick Szeliski and Michael Cohen

Page 28: Light Fields Computational Photography Connelly Barnes Slides from Alexei A. Efros, James Hays, Marc Levoy, and others

Lumigraph - Rendering

Nearest• closest s• closest u• draw it

Blend 16 nearest• quadrilinear interpolation

s uSlide by Rick Szeliski and Michael Cohen

Page 29: Light Fields Computational Photography Connelly Barnes Slides from Alexei A. Efros, James Hays, Marc Levoy, and others

Lumigraph Rendering

Use rough depth information to improve rendering quality

Page 30: Light Fields Computational Photography Connelly Barnes Slides from Alexei A. Efros, James Hays, Marc Levoy, and others

Lumigraph Rendering

Use rough depth information to improve rendering quality

Page 31: Light Fields Computational Photography Connelly Barnes Slides from Alexei A. Efros, James Hays, Marc Levoy, and others

Lumigraph Rendering

Without usinggeometry

Using approximategeometry

Page 32: Light Fields Computational Photography Connelly Barnes Slides from Alexei A. Efros, James Hays, Marc Levoy, and others

Light Field Results

• Marc Levoy Results

• Light Field Viewer

Page 33: Light Fields Computational Photography Connelly Barnes Slides from Alexei A. Efros, James Hays, Marc Levoy, and others

Stanford multi-camera array

• 640 × 480 pixels ×30 fps × 128 cameras

• synchronized timing

• continuous streaming

• flexible arrangement

Page 34: Light Fields Computational Photography Connelly Barnes Slides from Alexei A. Efros, James Hays, Marc Levoy, and others

Light field photography using a handheld plenoptic cameraCommercialized as Lytro

Ren Ng, Marc Levoy, Mathieu Brédif,Gene Duval, Mark Horowitz and Pat Hanrahan

Page 35: Light Fields Computational Photography Connelly Barnes Slides from Alexei A. Efros, James Hays, Marc Levoy, and others

Marc Levoy

Conventional versus light field camera

Page 36: Light Fields Computational Photography Connelly Barnes Slides from Alexei A. Efros, James Hays, Marc Levoy, and others

Marc Levoy

Conventional versus light field camera

uv-plane st-plane

Page 37: Light Fields Computational Photography Connelly Barnes Slides from Alexei A. Efros, James Hays, Marc Levoy, and others

Prototype camera

• 4000 × 4000 pixels ÷ 292 × 292 lenses = 14 × 14 pixels per lens

Contax medium format camera Kodak 16-megapixel sensor

Adaptive Optics microlens array 125μ square-sided microlenses

Page 39: Light Fields Computational Photography Connelly Barnes Slides from Alexei A. Efros, James Hays, Marc Levoy, and others

Marc Levoy

Digitally stopping-down aperture(i.e. decrease aperture size, increase DOF)

• stopping down = summing only the central portion of each microlens

Σ

Σ

Page 40: Light Fields Computational Photography Connelly Barnes Slides from Alexei A. Efros, James Hays, Marc Levoy, and others

Marc Levoy

Digital refocusing

• refocusing = summing windows extracted from several microlenses

Σ

Σ

Page 41: Light Fields Computational Photography Connelly Barnes Slides from Alexei A. Efros, James Hays, Marc Levoy, and others

Marc Levoy

Example of digital refocusing

Page 42: Light Fields Computational Photography Connelly Barnes Slides from Alexei A. Efros, James Hays, Marc Levoy, and others

Marc Levoy

Digitally moving the observer

• moving the observer = moving the window we extract from the microlenses

Σ

Σ

Page 43: Light Fields Computational Photography Connelly Barnes Slides from Alexei A. Efros, James Hays, Marc Levoy, and others

Marc Levoy

Example of moving the observer

Page 44: Light Fields Computational Photography Connelly Barnes Slides from Alexei A. Efros, James Hays, Marc Levoy, and others

Marc Levoy

• Further enhancement of lumigraphs:do not use two-plane parameterization

• Store original pictures: no resampling

• Hand-held camera, moved around an environment

Unstructured Lumigraph Rendering

Page 45: Light Fields Computational Photography Connelly Barnes Slides from Alexei A. Efros, James Hays, Marc Levoy, and others

Marc Levoy

Unstructured Lumigraph Rendering

• To reconstruct views, assign penalty to each original ray–Distance to desired ray, using

approximate geometry

–Resolution

–Feather near edges of image

• Construct “camera blending field”

• Render using texture mapping

Page 46: Light Fields Computational Photography Connelly Barnes Slides from Alexei A. Efros, James Hays, Marc Levoy, and others

Marc Levoy

Blending field Rendering

Unstructured Lumigraph Rendering

Page 47: Light Fields Computational Photography Connelly Barnes Slides from Alexei A. Efros, James Hays, Marc Levoy, and others

Marc Levoy

Unstructured Lumigraph Rendering

• Unstructured Lumigraph Rendering Results

Page 48: Light Fields Computational Photography Connelly Barnes Slides from Alexei A. Efros, James Hays, Marc Levoy, and others

2D: Image

What is an image?

All rays through a point• Panorama?

Slide by Rick Szeliski and Michael Cohen

Page 49: Light Fields Computational Photography Connelly Barnes Slides from Alexei A. Efros, James Hays, Marc Levoy, and others

Image

Image plane

2D• position

Page 50: Light Fields Computational Photography Connelly Barnes Slides from Alexei A. Efros, James Hays, Marc Levoy, and others

Spherical Panorama

All light rays through a point form a panorama

Totally captured in a 2D array -- P()Where is the geometry???

See also: 2003 New Years Eve

http://www.panoramas.dk/fullscreen3/f1.html

Page 51: Light Fields Computational Photography Connelly Barnes Slides from Alexei A. Efros, James Hays, Marc Levoy, and others

Other ways to sample Plenoptic Function

Moving in time: • Spatio-temporal volume: P(,t)• Useful to study temporal changes• Long an interest of artists:

Claude Monet, Haystacks studies

Page 52: Light Fields Computational Photography Connelly Barnes Slides from Alexei A. Efros, James Hays, Marc Levoy, and others

Time-Lapse

• Spatio-temporal volume: P(,t)• Factored Time Lapse Video• Google/Time Magazine Time Lapse

Page 53: Light Fields Computational Photography Connelly Barnes Slides from Alexei A. Efros, James Hays, Marc Levoy, and others

Space-time images

Other ways to slice theplenoptic function…

x

y

t

Page 54: Light Fields Computational Photography Connelly Barnes Slides from Alexei A. Efros, James Hays, Marc Levoy, and others

Other Lightfield Acquisition Devices

• Spherical motionof camera aroundan object

• Samples space ofdirections uniformly

• Second arm tomove light source –measure BRDF

Page 55: Light Fields Computational Photography Connelly Barnes Slides from Alexei A. Efros, James Hays, Marc Levoy, and others

The “Theatre Workshop” Metaphor

desired image

(Adelson & Pentland,1996)

Painter Lighting Designer Sheet-metalworker

Page 56: Light Fields Computational Photography Connelly Barnes Slides from Alexei A. Efros, James Hays, Marc Levoy, and others

Painter (images)

Page 57: Light Fields Computational Photography Connelly Barnes Slides from Alexei A. Efros, James Hays, Marc Levoy, and others

Lighting Designer (environment maps)

Show Naimark SF MOMA videohttp://www.debevec.org/Naimark/naimark-displacements.mov

Page 58: Light Fields Computational Photography Connelly Barnes Slides from Alexei A. Efros, James Hays, Marc Levoy, and others

Sheet-metal Worker (geometry)

Let surface normals do all the work!

Page 59: Light Fields Computational Photography Connelly Barnes Slides from Alexei A. Efros, James Hays, Marc Levoy, and others

… working together

Want to minimize cost

Each one does what’s easiest for him• Geometry – big things• Images – detail• Lighting – illumination effects

clever Italians