114

Click here to load reader

Introduction to Camera Challenges - Ramesh Raskar

Embed Size (px)

Citation preview

Page 1: Introduction to Camera Challenges - Ramesh Raskar
Page 2: Introduction to Camera Challenges - Ramesh Raskar
Page 3: Introduction to Camera Challenges - Ramesh Raskar

Marc Levoy

The CityBlock Project

Precursor to Google Streetview Maps

Page 4: Introduction to Camera Challenges - Ramesh Raskar

Image Fusion & ReconstructionImage Fusion & Reconstruction• Single photo:Single photo: forces narrow tradeoffs: forces narrow tradeoffs:

– Focus, Exposure, aperture, time, sensitivity, noise,Focus, Exposure, aperture, time, sensitivity, noise,

– Usual result: Incomplete visual appearance.Usual result: Incomplete visual appearance.

Multiple photosMultiple photos, assorted settings , assorted settings for Optics, Sensor, Lighting, Processingfor Optics, Sensor, Lighting, Processing

• Fusion:Fusion: ‘Merge the best parts’‘Merge the best parts’

• Reconstruction:Reconstruction:Detect photo changes; Detect photo changes; compute scene invariantscompute scene invariants

Page 5: Introduction to Camera Challenges - Ramesh Raskar

High Dynamic Range ImagingHigh Dynamic Range Imaging

• Cameras have limited dynamic range

Small Exposure image, dark inside

1/500 sec

Large exposure image, saturated outside

¼ sec

Images from Raanan Fattal

Page 6: Introduction to Camera Challenges - Ramesh Raskar

High Dynamic Range ImagingHigh Dynamic Range Imaging

• Combine images at different exposures• Exposure Bracketing• [Mann and Picard 95, Debevec et al 96]

Images from Raanan Fattal

Page 7: Introduction to Camera Challenges - Ramesh Raskar

How could we put all thisinformation into oneimage ?

Page 8: Introduction to Camera Challenges - Ramesh Raskar

Tone Map 20 bit image for 8 bit DisplayTone Map 20 bit image for 8 bit Display

Page 9: Introduction to Camera Challenges - Ramesh Raskar

input smoothed(structure, large scale)

residual(texture, small scale)

Gaussian Convolution

BLUR HALOS

Naïve Approach: Gaussian Blur

Page 10: Introduction to Camera Challenges - Ramesh Raskar

Impact of Blur and Halos

• If the decomposition introduces blur and halos, the final result is corrupted.

Sample manipulation:increasing texture

(residual 3)

Page 11: Introduction to Camera Challenges - Ramesh Raskar

input smoothed(structure, large scale)

residual(texture, small scale)

edge-preserving: Bilateral Filter

Bilateral Filter: no Blur, no Halos

Page 12: Introduction to Camera Challenges - Ramesh Raskar

input

Page 13: Introduction to Camera Challenges - Ramesh Raskar

increasing texturewith Gaussian convolution

H A L O S

Page 14: Introduction to Camera Challenges - Ramesh Raskar

increasing texturewith bilateral filter

N O H A L O S

Page 15: Introduction to Camera Challenges - Ramesh Raskar

Bilateral Filter on 1D Signal

BF

Page 16: Introduction to Camera Challenges - Ramesh Raskar

p

Our Strategy

Reformulate the bilateral filter– More complex space:

Homogeneous intensity Higher-dimensional space

– Simpler expression: mainly a convolution Leads to a fast algorithm

weightsappliedto pixels

Page 17: Introduction to Camera Challenges - Ramesh Raskar

Attenuate High GradientsAttenuate High Gradients

I(x)1

105

1

Intensity

I(x)1

105

Intensity

Maintain local detail at the cost of global range

Fattal et al Siggraph 2002

Page 18: Introduction to Camera Challenges - Ramesh Raskar

Attenuate High GradientsAttenuate High Gradients

I(x)1

105

G(x)1

105

Intensity Gradient

I(x)1

105

Intensity

Maintain local detail at the cost of global range

Fattal et al Siggraph 2002

Page 19: Introduction to Camera Challenges - Ramesh Raskar

Attenuate High GradientsAttenuate High Gradients

I(x)1

105

G(x)1

105

Intensity Gradient

I(x)1

105

Intensity

Keep low gradients

Fattal et al Siggraph 2002

Page 20: Introduction to Camera Challenges - Ramesh Raskar

Gradient Compression in 1DGradient Compression in 1D

Page 21: Introduction to Camera Challenges - Ramesh Raskar

Gradient Domain CompressionGradient Domain Compression

HDR Image L Log L

Gradient Attenuation Function G

Multiply 2D Integration

Gradients Lx,Ly

Page 22: Introduction to Camera Challenges - Ramesh Raskar
Page 23: Introduction to Camera Challenges - Ramesh Raskar

Grad X

Grad Y

New Grad X

New Grad Y

2D Integration

Intensity Gradient ManipulationIntensity Gradient Manipulation

Gradient Processing

A Common Pipeline

This Section

Next Section

Page 24: Introduction to Camera Challenges - Ramesh Raskar

Grad X

Grad Y

New Grad X

New Grad Y

2D Integration

Gradient Processing

Page 25: Introduction to Camera Challenges - Ramesh Raskar

Local Illumination ChangeLocal Illumination Change

Original gradient field:

Original Image: f

*f

Modified gradient field: v

Perez et al. Poisson Image editing, SIGGRAPH 2003

Page 26: Introduction to Camera Challenges - Ramesh Raskar

Ambient FlashSelf-Reflections and Flash HotspotSelf-Reflections and Flash Hotspot

Hands

Face

Tripod

Page 27: Introduction to Camera Challenges - Ramesh Raskar

ResultAmbient

Flash

Reflection LayerReflection Layer

Hands

Face

Tripod

Page 28: Introduction to Camera Challenges - Ramesh Raskar

Intensity Gradient Vector Intensity Gradient Vector ProjectionProjection[Agrawal, Raskar, Nayar, Li SIGGRAPH 2005][Agrawal, Raskar, Nayar, Li SIGGRAPH 2005]

Page 29: Introduction to Camera Challenges - Ramesh Raskar

Intensity Gradient Vectors in Flash and Ambient ImagesIntensity Gradient Vectors in Flash and Ambient Images

Same gradient vector direction Flash Gradient Vector

Ambient Gradient Vector

Ambient Flash

No reflections

Page 30: Introduction to Camera Challenges - Ramesh Raskar

Reflection Ambient Gradient Vector

Different gradient vector direction

With reflections

Ambient Flash

Flash Gradient Vector

Page 31: Introduction to Camera Challenges - Ramesh Raskar

Residual Gradient Vector

Intensity Gradient Vector Projection

Result Gradient Vector

Result Residual

Reflection Ambient Gradient Vector

Flash Gradient Vector

Ambient Flash

Page 32: Introduction to Camera Challenges - Ramesh Raskar

FlashProjection = Result

Residual = Reflection Layer

Co-located Artifacts

Ambient

Page 33: Introduction to Camera Challenges - Ramesh Raskar

Recovering foreground layerRecovering foreground layer– Find tensor based on background image– Transform gradient field of foreground image

Foreground maskImage Difference

Page 34: Introduction to Camera Challenges - Ramesh Raskar
Page 35: Introduction to Camera Challenges - Ramesh Raskar

Dark Bldgs

Reflections on bldgs

Unknown shapes

Page 36: Introduction to Camera Challenges - Ramesh Raskar

‘Well-lit’ Bldgs

Reflections in bldgs windows

Tree, Street shapes

Page 37: Introduction to Camera Challenges - Ramesh Raskar

Background is captured from day-time scene using the same fixed camera

Night Image

Day Image

Context Enhanced Image

Page 38: Introduction to Camera Challenges - Ramesh Raskar

Mask is automatically computed from scene contrast

Page 39: Introduction to Camera Challenges - Ramesh Raskar

But, Simple Pixel Blending Creates Ugly Artifacts

Page 40: Introduction to Camera Challenges - Ramesh Raskar

Pixel Blending

Page 41: Introduction to Camera Challenges - Ramesh Raskar

Pixel Blending

Our Method:Integration of

blended Gradients

Page 42: Introduction to Camera Challenges - Ramesh Raskar

Nighttime imageNighttime image

Daytime imageDaytime image Gradient fieldGradient field

Importance Importance image Wimage W

Fina

l res

ult

Fina

l res

ult

Gradient fieldGradient field

Mixed gradient fieldMixed gradient field

GG11 GG11

GG22 GG22

xx YY

xx YY

II11

I2

GG GGxx YY

Page 43: Introduction to Camera Challenges - Ramesh Raskar

Reconstruction from Gradient FieldReconstruction from Gradient Field

• Problem: minimize errorI’ – G|• Estimate I’ so that

G = I’

• Poisson equation

I’ = div G

• Full multigridsolver

I’I’

GGXX

GGYY

Page 44: Introduction to Camera Challenges - Ramesh Raskar

Rene Magritte, ‘Empire of the Light’

Surrealism

Page 45: Introduction to Camera Challenges - Ramesh Raskar
Page 46: Introduction to Camera Challenges - Ramesh Raskar
Page 47: Introduction to Camera Challenges - Ramesh Raskar
Page 48: Introduction to Camera Challenges - Ramesh Raskar
Page 49: Introduction to Camera Challenges - Ramesh Raskar
Page 50: Introduction to Camera Challenges - Ramesh Raskar
Page 51: Introduction to Camera Challenges - Ramesh Raskar

actual photomontageset of originals perceived

Page 52: Introduction to Camera Challenges - Ramesh Raskar

Source images Brush strokes Computed labeling

Composite

Page 53: Introduction to Camera Challenges - Ramesh Raskar

Brush strokes Computed labeling

Page 54: Introduction to Camera Challenges - Ramesh Raskar

• No Flash:No Flash: Candle warmth, but high noise Candle warmth, but high noise• Flash:Flash: low noise, but no candle warmth low noise, but no candle warmth

Photography: Full of Tradeoffs...Photography: Full of Tradeoffs...

No-flash Flash

Page 55: Introduction to Camera Challenges - Ramesh Raskar

Image A: Warm, shadows, but too Noisy(too dim for a good quick photo)

No-flash

Page 56: Introduction to Camera Challenges - Ramesh Raskar

Image B: Cold, Shadow-free, Clean(flash: simple light, ALMOST no shadows)

Page 57: Introduction to Camera Challenges - Ramesh Raskar

MERGE BEST OF BOTH: apply‘Cross Bilateral’ or ‘Joint Bilateral’

Page 58: Introduction to Camera Challenges - Ramesh Raskar

(it really is much better!)

Page 59: Introduction to Camera Challenges - Ramesh Raskar

Image Fusion & ReconstructionImage Fusion & Reconstruction• Single photo:Single photo: forces narrow tradeoffs: forces narrow tradeoffs:

– Focus, Exposure, aperture, time, sensitivity, noise,Focus, Exposure, aperture, time, sensitivity, noise,

– Usual result: Incomplete visual appearance.Usual result: Incomplete visual appearance.

Multiple photosMultiple photos, assorted settings , assorted settings for Optics, Sensor, Lighting, Processingfor Optics, Sensor, Lighting, Processing

• Fusion:Fusion: ‘Merge the best parts’‘Merge the best parts’

• Reconstruction:Reconstruction:Detect photo changes; Detect photo changes; compute scene invariantscompute scene invariants

Page 60: Introduction to Camera Challenges - Ramesh Raskar

The Media Lab Camera Culture

Epsilon Photography

Capture multiple photos, each with slightly different camera parameters.

• Exposure settings• Spectrum/color settings• Focus settings• Camera position• Scene illumination

Page 61: Introduction to Camera Challenges - Ramesh Raskar

FUSION: Best-Focus DistanceFUSION: Best-Focus Distance

Agrawala et al., Digital PhotomontageSIGGRAPH 2004

NEARNEAR

Page 62: Introduction to Camera Challenges - Ramesh Raskar

FUSION: Best-Focus DistanceFUSION: Best-Focus Distance

Agrawala et al., Digital PhotomontageSIGGRAPH 2004

FARFAR

Page 63: Introduction to Camera Challenges - Ramesh Raskar

FUSION: Best-Focus DistanceFUSION: Best-Focus Distance

Agrawala et al., Digital PhotomontageSIGGRAPH 2004

Page 64: Introduction to Camera Challenges - Ramesh Raskar

FUSION: Best-Focus DistanceFUSION: Best-Focus Distance

Agrawala et al., Digital PhotomontageSIGGRAPH 2004

Page 65: Introduction to Camera Challenges - Ramesh Raskar

FUSION: Best-Focus DistanceFUSION: Best-Focus Distance

Agrawala et al., Digital PhotomontageSIGGRAPH 2004

Page 66: Introduction to Camera Challenges - Ramesh Raskar

FUSION: Best-Focus DistanceFUSION: Best-Focus Distance

Agrawala et al., Digital PhotomontageSIGGRAPH 2004

Page 67: Introduction to Camera Challenges - Ramesh Raskar

FUSION: Best-Focus DistanceFUSION: Best-Focus Distance

Agrawala et al., Digital PhotomontageSIGGRAPH 2004

Page 68: Introduction to Camera Challenges - Ramesh Raskar

FUSION: Best-Focus DistanceFUSION: Best-Focus Distance

Agrawala et al., Digital PhotomontageSIGGRAPH 2004

Page 69: Introduction to Camera Challenges - Ramesh Raskar

FUSION: Best-Focus DistanceFUSION: Best-Focus Distance

Agrawala et al., Digital PhotomontageSIGGRAPH 2004

Page 70: Introduction to Camera Challenges - Ramesh Raskar

FUSION: Best-Focus DistanceFUSION: Best-Focus Distance

Agrawala et al., Digital PhotomontageSIGGRAPH 2004

Page 71: Introduction to Camera Challenges - Ramesh Raskar

FUSION: Best-Focus DistanceFUSION: Best-Focus Distance

Agrawala et al., Digital PhotomontageSIGGRAPH 2004

Page 72: Introduction to Camera Challenges - Ramesh Raskar

FUSION: Best-Focus DistanceFUSION: Best-Focus Distance

Agrawala et al., Digital PhotomontageSIGGRAPH 2004

Page 73: Introduction to Camera Challenges - Ramesh Raskar

FUSION: Best-Focus DistanceFUSION: Best-Focus Distance

Agrawala et al., Digital PhotomontageSIGGRAPH 2004

Page 74: Introduction to Camera Challenges - Ramesh Raskar

FUSION: Best-Focus DistanceFUSION: Best-Focus Distance

Agrawala et al., Digital PhotomontageSIGGRAPH 2004

Page 75: Introduction to Camera Challenges - Ramesh Raskar

FUSION: Best-Focus DistanceFUSION: Best-Focus Distance

Agrawala et al., Digital PhotomontageSIGGRAPH 2004

Page 76: Introduction to Camera Challenges - Ramesh Raskar

Source images

‘Graph Cuts’ Solution

FUSION

Agrawala et al., Digital PhotomontageSIGGRAPH 2004

Page 77: Introduction to Camera Challenges - Ramesh Raskar

What else can we extend? What else can we extend? Film-Like Camera Parameters: Film-Like Camera Parameters: • Field of View: image stitching for panoramasField of View: image stitching for panoramas• Dynamic Range: Dynamic Range: Radiance MapsRadiance Maps• Frame Rate: Interleaved VideoFrame Rate: Interleaved Video• Resolution: ‘Super-resolution’ methodsResolution: ‘Super-resolution’ methods

Visual Appearance & Content:Visual Appearance & Content:• Tone Map:Tone Map: Detail in every shadow and highlight Detail in every shadow and highlight• Color2grey:Color2grey: Keep Keep allall color changes in grayscale color changes in grayscale • Temporal Continuity: Space-time fusionTemporal Continuity: Space-time fusion• Viewpoint Constraints: Viewpoint Constraints:

Multiple COP images Multiple COP images and more…and more…

Page 78: Introduction to Camera Challenges - Ramesh Raskar

The Media Lab Camera Culture

Epsilon Photography

Capture multiple photos, each with slightly different camera parameters.

• Exposure settings• Spectrum/color settings• Focus settings• Camera position• Scene illumination

Page 79: Introduction to Camera Challenges - Ramesh Raskar

The Media Lab Camera Culture

Project Ideas

Page 80: Introduction to Camera Challenges - Ramesh Raskar
Page 81: Introduction to Camera Challenges - Ramesh Raskar
Page 82: Introduction to Camera Challenges - Ramesh Raskar

Marc Levoy

The CityBlock Project

Precursor to Google Streetview Maps

Page 83: Introduction to Camera Challenges - Ramesh Raskar

What is ‘interesting’ here? Social voting in the real world = ‘popular’

Page 84: Introduction to Camera Challenges - Ramesh Raskar

Vein Viewer Vein Viewer (Luminetx)(Luminetx)

Near-IR camera locates subcutaneous veins and project Near-IR camera locates subcutaneous veins and project their location onto the surface of the skin.their location onto the surface of the skin.

Coaxial IR camera Coaxial IR camera + Projector+ Projector

Page 85: Introduction to Camera Challenges - Ramesh Raskar

Focus Adjustment: Sum of Bundles

Page 86: Introduction to Camera Challenges - Ramesh Raskar

http://www.mne.psu.edu/psgdl/FSSPhotoalbum/index1.htm

Page 87: Introduction to Camera Challenges - Ramesh Raskar

Varying PolarizationVarying PolarizationYoav Y. Schechner, Nir Karpel 2005Yoav Y. Schechner, Nir Karpel 2005

Best polarization state

Worst polarization state

Best polarization state

Recovered image

[Left] The raw images taken through a polarizer. [Right] White-balanced results: The recovered image is much clearer, especially at distant objects, than the raw image

Page 88: Introduction to Camera Challenges - Ramesh Raskar

Varying PolarizationVarying Polarization• Schechner, Narasimhan, NayarSchechner, Narasimhan, Nayar

• Instant dehazing Instant dehazing of images using of images using polarizationpolarization

Page 89: Introduction to Camera Challenges - Ramesh Raskar

Spatial Augmented Reality | Raskar 2011

Pamplona , Mohan, Oliveira, Raskar, Siggraph 2010

NETRA: Near Eye Tool for Refractive Assessment

EyeNetra.com

Page 90: Introduction to Camera Challenges - Ramesh Raskar

90

Confocal Microscopy Examples

Slides by Doug Lanman

Page 91: Introduction to Camera Challenges - Ramesh Raskar

Beyond Visible SpectrumBeyond Visible Spectrum

CedipRedShift

Page 92: Introduction to Camera Challenges - Ramesh Raskar

MIT Media LabMIT Media Lab

Camera CultureCamera Culture

Ramesh RaskarRamesh Raskar

MIT Media LabMIT Media Labhttp:// CameraCulture . info/http:// CameraCulture . info/

Computational Camera & Computational Camera & Photography:Photography:

Page 93: Introduction to Camera Challenges - Ramesh Raskar
Page 94: Introduction to Camera Challenges - Ramesh Raskar

http://www.flickr.com/photos/pgoyette/107849943/in/photostream/

Page 95: Introduction to Camera Challenges - Ramesh Raskar

  Scheimpflug Scheimpflug principleprinciple

Page 96: Introduction to Camera Challenges - Ramesh Raskar

Ramesh Raskar, Computational Illumination

Computational Illumination

Page 97: Introduction to Camera Challenges - Ramesh Raskar

Edgerton 1930’sEdgerton 1930’s

Multi-flash Sequential Photography

Stroboscope(Electronic Flash)

Shutter Open

Flash Time

Page 98: Introduction to Camera Challenges - Ramesh Raskar

Ramesh Raskar, Karhan Tan, Rogerio Feris, Jingyi Yu, Matthew Turk

Mitsubishi Electric Research Labs (MERL), Cambridge, MAU of California at Santa Barbara

U of North Carolina at Chapel Hill

Non-photorealistic Camera: Non-photorealistic Camera: Depth Edge Detection Depth Edge Detection andand Stylized Stylized

Rendering Rendering usingusing Multi-Flash ImagingMulti-Flash Imaging

Page 99: Introduction to Camera Challenges - Ramesh Raskar

Depth Edges

Page 100: Introduction to Camera Challenges - Ramesh Raskar

Our MethodCanny

Page 101: Introduction to Camera Challenges - Ramesh Raskar
Page 102: Introduction to Camera Challenges - Ramesh Raskar
Page 103: Introduction to Camera Challenges - Ramesh Raskar

Flash MattingFlash Matting

Flash Matting, Jian Sun, Yin Li, Sing Bing Kang, and Heung-Yeung Shum, Siggraph 2006

Page 104: Introduction to Camera Challenges - Ramesh Raskar
Page 105: Introduction to Camera Challenges - Ramesh Raskar

DARPA Grand ChallengeDARPA Grand Challenge

Page 106: Introduction to Camera Challenges - Ramesh Raskar

The Media Lab Camera Culture

Epsilon Photography

Capture multiple photos, each with slightly different camera parameters.

• Exposure settings• Spectrum/color settings• Focus settings• Camera position• Scene illumination

Page 107: Introduction to Camera Challenges - Ramesh Raskar

The Media Lab Camera Culture

Lens Sensor

Camera

Static Scene

Image Destabilization[Mohan, Lanman et al. 2009]

Page 108: Introduction to Camera Challenges - Ramesh Raskar

The Media Lab Camera Culture

Static Scene

Lens Motion Sensor Motion

Camera

Image Destabilization[Mohan, Lanman et al. 2009]

Page 109: Introduction to Camera Challenges - Ramesh Raskar

MIT Media Lab Camera Culture

Our Prototype

Page 110: Introduction to Camera Challenges - Ramesh Raskar

MIT Media Lab Camera Culture

Adjusting the Focus Plane

all-in-focus pinhole image

Page 111: Introduction to Camera Challenges - Ramesh Raskar

MIT Media Lab Camera Culture

Defocus Exaggeration

destabilization simulates a reduced f-number

Page 112: Introduction to Camera Challenges - Ramesh Raskar

The Media Lab Camera Culture

Capturing Gigapixel Images[Kopf et al, 2007]

3,600,000,000 PixelsCreated from about 800 8 MegaPixel Images

Page 113: Introduction to Camera Challenges - Ramesh Raskar

The Media Lab Camera Culture

Capturing Gigapixel Images[Kopf et al, 2007]

Page 114: Introduction to Camera Challenges - Ramesh Raskar

Color Original Grayscale

New Method

Color2Gray: Color2Gray: Salience-Preserving Salience-Preserving

Color RemovalColor RemovalSIGGRAPH 2005

Gooch, Olsen, Tumblin, Gooch