burst photography
play

Burst Photography ! EE367/CS448I: Computational Imaging and Display ! - PowerPoint PPT Presentation

Burst Photography ! EE367/CS448I: Computational Imaging and Display ! stanford.edu/class/ee367 ! Lecture 7 ! Gordon Wetzstein ! Stanford University ! Motivation ! wikipedia ! exposure sequence ! -4 stops ! Motivation ! wikipedia ! exposure sequence


  1. Burst Photography ! EE367/CS448I: Computational Imaging and Display ! stanford.edu/class/ee367 ! Lecture 7 ! Gordon Wetzstein ! Stanford University !

  2. Motivation ! wikipedia ! exposure sequence ! -4 stops !

  3. Motivation ! wikipedia ! exposure sequence ! -2 stops !

  4. Motivation ! wikipedia ! exposure sequence ! 2 stops !

  5. wikipedia ! 4 stops !

  6. Motivation ! wikipedia ! HDR ! contrast reduction (scaling) !

  7. wikipedia ! HDR ! local tone mapping !

  8. Computational Photography - Overview � • high dynamic range � Debevec & Malik, 1997 � • super-resolution � • burst photography � • focal stack � • aperture stack � • confocal stereo � • blurry/noisy � • flash/no flash � • multi-flash �

  9. High Dynamic Range Imaging ! • ! dynamic range: ratio between brightest and darkest value ! • ! quantization within that range is equally important ! ! from 8 bits (256 values) to 32 bits floating point ! Debevec & Malik, 1997 ! original photo ! simulation from LDR ! simulation from HDR ! motion blurred photo !

  10. HDRI – Overview � • estimate camera response curve � • capture multiple low dynamic range (LDR) exposures � • fuse LDR images into 32 bit HDR image � • possibly convert to absolute radiance (global scaling) � • application specific use: � • image-based rendering lighting � • tone mapping � • … �

  11. HDRI – Estimating the Response Curve � • not required when working with linear RAW images � • easiest option: use calibration chart �

  12. HDRI – Estimating the Response Curve ! • ! not required when working with linear RAW images ! • ! easiest option: use calibration chart ! linear RAW ! 1 known reflectance ! 0 64 ! 128 ! 196 ! 255 ! pixel value !

  13. HDRI – Estimating the Response Curve ! • ! not required when working with linear RAW images ! • ! easiest option: use calibration chart ! e.g. JPEG ! 1 known reflectance ! 0 64 ! 128 ! 196 ! 255 ! pixel value !

  14. HDRI – Linearizing LDR Exposures ! • ! capture exposure, apply lookup table ! e.g. JPEG ! ( ) I lin = f ! 1 I 1 f ! 1 " ( ) relative radiance ! I 0 64 ! 128 ! 196 ! 255 ! pixel value !

  15. � HDRI – Merging LDR Exposures � • start with LDR image sequence I i (only exposure time t i changes) � ( ) I i = f t i X • individual exposure is: , f is camera response function � Image from Debevec & Malik, 1997 �

  16. � HDRI – Merging LDR Exposures � ( ) I lin i = f − 1 I i • undo the camera response: � ( ) = I 1/ γ ( ) = I γ f − 1 I → f I e.g. gamma function � Image from Debevec & Malik, 1997 �

  17. ! HDRI – Merging LDR Exposures ! • ! compute a weight (confidence) that a pixel is well-exposed ! ! (close to) saturated pixel = not confident, pixel in center of dynamic ( ) " % range = confident! ! 2 I lin ij ! 0.5 $ ' w ij = exp ! 4 or mean pixel value, ! $ ' 0.5 2 e.g. 127.5 if I in [0, 255] ! # &

  18. HDRI – Merging LDR Exposures � ( ) ⎛ ⎞ • 2 compute per-color-channel-per-LDR-pixel weights � I lin ij − 0.5 ⎜ ⎟ w ij = exp − 4 ⎜ ⎟ 0.5 2 ⎝ ⎠

  19. HDRI – Merging LDR Exposures � • define least-squares objective function in log-space à perceptually ( ) ( ) − log t i X ( ) ∑ 2 linear: � minimize O= w i log I lin i i X • equate gradient to zero: � ( ) ∂ O ( ) − log t i ∑ ( ) − log X ( ) ( ) = 2 = 0 w i log I lin i ∂ log X i ( ) ( ) − log t i ( ) ∑ ⎛ ⎞ w i log I lin i ! = exp ⎜ ⎟ i • X gives: � ∑ ⎜ ⎟ w i ⎝ ⎠ i

  20. HDRI – Merging LDR Exposures ! • ! define least-squares objective function in log-space ! perceptually ( ) ( ) ! log t i X ( ) " 2 linear: ! minimize O= w i log I lin i i X • ! equate gradient to zero: ! ( ) ! O ( ) " log t i # ( ) " log X ( ) ( ) = 2 = 0 w i log I lin i ! log X i ( ) ( ) ! log t i ( ) " # & w i log I lin i ! = exp % ( i • ! X gives: ! " % ( w i $ ' i

  21. ! HDRI – Relative v Absolute Radiance ! • ! LDR to HDR only gives relative radiance (HW4!) ! • ! scale by reference radiance to get absolute! Image from Debevec & Malik, 1997 !

  22. Image-based Lighting with Light Probes ! • ! text ! Paul Debevec !

  23. Image-based Lighting with Light Probes ! • ! single light probe covers light incident from (almost) entire hemisphere! !

  24. Paul Debevec, Renderign with Natural Light ! SIGGRAPH Electronic Theater 1998 ! Image Based Lighting !

  25. HDRI – Tone Mapping � • how to display a high dynamic range image on an LDR display? � • tone mapping: fit into luminance range of display (or 0-255), while preserving image details � • HW4 �

  26. HDRI – Tone Mapping � • sun overexposed � • foreground too dark � [Durand and Dorsey, 2002] �

  27. HDRI – Global Tone Mapping � [Durand and Dorsey, 2002] � • gamma correction: � I = I γ • colors are washed out �

  28. HDRI – Global Tone Mapping � [Durand and Dorsey, 2002] � • gamma in intensity only! � • intensity details lost �

  29. HDRI – Gradient-domain Tone Mapping ! • ! compute gradients, scale them, integrate (Poisson eq.) ! [Fattal et al., 2002] ! HDR image (scaled) !

  30. HDRI – Gradient-domain Tone Mapping ! • ! compute gradients, scale them, integrate (Poisson eq.) ! [Fattal et al., 2002] ! gradients ! HDR image (scaled) !

  31. HDRI – Gradient-domain Tone Mapping ! [Fattal et al., 2002] ! gradient attenuation map ! tone mapped result !

  32. HDRI – Tone Mapping with Bilateral Filter ! Input HDR image ! Output ! Large scale (base layer) ! Intensity ! Large scale ! [Durand and Dorsey, 2002] ! Reduce ! contrast ! Detail ! Fast ! Bilateral ! Preserve! ! Filter ! Color ! Detail ! Color !

  33. HDRI – Tone Mapping with Bilateral Filter ! • ! difference is not too big ! [Durand and Dorsey, 2002] ! Gradient-space [Fattal et al.] ! Bilateral [Durand et al.] !

  34. HDRI – Tone Mapping with Bilateral Filter ! • ! bilateral “looks” a bit better ! • ! no ground truth ! it’s up [Durand and Dorsey, 2002] ! to the user ! Gradient-space [Fattal et al.] ! Bilateral [Durand et al.] !

  35. HW4, Q1 & Q2 � • Q1: HDR image fusion (from series of different LDR exposures) � • Q2: tone-map HDR image with � • global gamma correction on all color channels � • global gamma correction on intensity channel � • local tone mapping with bilateral filter �

  36. Burst Photography - Overview ! • ! basic idea: capture and merge bursts of photos (2 or more): ! • ! • multiple exposures: HDR but also deblurring … multiple exposures: HDR but also deblurring … ! • ! multiple shifted low-res images: super-resolution ! • ! focal stack ! • ! aperture stack ! • ! noisy + blurry: denoising + deblurring ! • ! flash / no flash ! • ! multi-flash !

  37. Pixel Super-Resolution � • increase “pixel count”, not related to diffraction limit � • idea: capture multiple low-res (LR) images and fuse them into a single super-resolved (SR) image � [Ben-Ezra et al., 2004] � Super-Resolution �

  38. Pixel Super-Resolution ! light l16 !

  39. light l16 !

  40. Pixel Super-Resolution ! • ! LR must be sub-pixel shifted ! I 1 ! $ ! $ I 1 A 1 # & = # & I SR # & # & I 2 A 2 " % " % ! ! A b I SR stacked, measured ! downsampling & ! LR images ! phase shift ! I 2

  41. Pixel Super-Resolution ! • ! example for 1D scanline ! I 1 ! = I SR I SR b A I 2

  42. Pixel Super-Resolution � • in general: system is well-conditioned for non-integer pixel shifts and super-resolution factors of 2-3x (don’t necessarily need priors) � • HW 4, Q3: solve (large-scale) pixel super-resolution with gradient 1 descent to � 2 2 AI SR − b 2 minimize I SR

  43. ! HW4 – Q3 ! ( ) = x ! " A T r x = x ! " A T Ax ! b • ! gradient descent: ! • ! use matrix-free functions to implement matrix-vector multiplications! ! I SR I SR SR Ax() is already I 1 I 2 implemented, generate your I SR I SR own 4 low-res images, then SR SR implement Atx() and solve ! I 3 I 4

  44. Overview of Other Techniques �

  45. Focal Stack ! find highest gradient ! focal stack ! contributions ! all-in-focus image ! wikipedia ! • ! implemented in a range of products… !

  46. Aperture Stack � • what changes? exposure and depth of field – extract HDR & depth! � refocus front � f/8 � [Hasinoff and Kutulakos 2007] � f/4 � refocus f/2 � rear � layered � depth map �

  47. Confocal Stereo ! • ! idea: intensity of in-focus point remains constant for varying aperture ! [Hasinoff and Kutulakos, 2006] !

  48. Confocal Stereo ! • ! aperture !" capture aperture and ( aperture ! i , focus f j ) ! focal stack ! [Hasinoff and Kutulakos, 2006] ! • ! for each pixel: find focus setting where aperture stack is most invariant ! focus f "

  49. Confocal Stereo ! aperture !" [Hasinoff and Kutulakos, 2006] ! photograph ! estimated depth map ! focus f "

Download Presentation
Download Policy: The content available on the website is offered to you 'AS IS' for your personal information and use only. It cannot be commercialized, licensed, or distributed on other websites without prior consent from the author. To download a presentation, simply click this link. If you encounter any difficulties during the download process, it's possible that the publisher has removed the file from their server.

Recommend


More recommend