coded computational photography
play

Coded Computational Photography ! EE367/CS448I: Computational Imaging - PowerPoint PPT Presentation

Coded Computational Photography ! EE367/CS448I: Computational Imaging and Display ! stanford.edu/class/ee367 ! Lecture 9 ! Gordon Wetzstein ! Stanford University ! Coded Computational Photography - Overview ! [Cossairt et al., 2010] ! ! coded


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

  2. Coded Computational Photography - Overview ! [Cossairt et al., 2010] ! • ! coded apertures ! • ! extended depth of field ! • ! wavefront coding ! • ! lattice lens ! • ! diffusion coding ! • ! focal sweep ! [Raskar et al. 2006] ! • ! motion deblurring ! • ! flutter shutter ! • ! motion invariance !

  3. Remember Apertures? ! • ! out of focus blur ! circle of confusion ! focal plane !

  4. What makes Defocus Deblurring Hard? ! 1. ! depth-dependent PSF scale (depth unknown) ! 2. ! circular / Airy PSF is not (well) invertible ! circle of confusion ! focal plane !

  5. Coded Computational Imaging - Motivation � 1. depth-dependent PSF scale (depth unknown) � • engineer PSF to be depth invariant � • resulting shift-invariant deconvolution is much easier! � 2. circular / Airy PSF is not (well) invertible: ill-posed problem � • engineer PSF to be broadband (flat Fourier magnitudes) � • resulting inverse problem becomes well-posed �

  6. Computational Imaging ! • ! 1. ! optically encode scene information ! new optics ! • ! 2. ! computationally recover information ! new sensors ! • ! new illumination ! • ! new algorithms ! ? ? ? ?

  7. Coded Computational Imaging (for this Class) ! • ! 1. ! optically encode scene information using new optics ! • ! invertible (and possibly invariant) PSF ! easier algorithms! 2. ! computationally recover information (easy because of engineered PSF) ! ? ?

  8. Coded Computational Imaging (for this Class) ! • ! idea applies to ! new optics ! • ! • ! coded apertures ! easier algorithms! • ! extended depth of field / DOF deblurring ! • ! extended motion / motion deblurring ! ? ?

  9. Before going to Advanced Techniques for DOF Deblurring, let’s take a look at � Coded Apertures �

  10. Apertures Revisited ! • ! two important parts: ! 1. ! aperture stop – attenuating pattern ! 2. ! refractive element (lens or compound lens system) ! 2. refractive coded ! aperture: e.g., cubic phase plate ! 1. attenuating coded aperture: e.g., MURA pattern !

  11. [Veeraragharavan et al. 2007] ! Coded Aperture Changes PSF ! in-focus photo ! out-of-focus, circular aperture ! out-of-focus, coded aperture !

  12. [Veeraragharavan et al. 2007] ! Coded Aperture Changes PSF ! in-focus photo ! out-of-focus, circular aperture ! out-of-focus, coded aperture !

  13. [Veeraragharavan et al. 2007] ! Coded Aperture Changes PSF ! • ! preserves high frequencies ! • ! deconvolution well-posed! ! conventional ! FFT ! coded !

  14. Coded Aperture Allows for Depth Estimation ! • ! introduce zeros in Fourier domain ! • ! better depth discimination ! • ! worse invertibility ! conventional aperture ! coded aperture ! PSF ! [Levin et al. 2007] !

  15. Coded Aperture Allows for Depth Estimation ! • ! deconvolution with strong prior necessary ! input ! local depth estimate ! regularized depth ! [Levin et al. 2007] !

  16. In Astronomy ! • ! some wavelengths are difficult to focus ! ! no “lenses” available ! • ! coded apertures for x-rays and gamma rays ! ESA SPI / INTEGRAL ! NASA Swift !

  17. In Microscopy ! • ! for low-light, coding of refraction is better (less light loss) ! e.g., rotating double helix PSF Stanford Moerner lab ! e.g., cubic phase plate for depth-invariant imaging !

  18. Extended Depth of Field �

  19. Depth Invariant PSFs - Overview ! • ! two general approaches: ! 1. ! move sensor / object ! 2. change optics ! (known as focal sweep) ! (e.g., wavefront coding) !

  20. Focal Sweep ! exposure ! sensor-lens ! distance ! linear motion: ! time ! sensor-lens ! distance ! nonlinear motion: ! time ! sensor-lens ! distance ! nonlinear motion: ! time ! [Nagahara et al. 2008] !

  21. Focal Sweep ! [Nagahara et al. 2008] ! sensor-lens ! distance ! time ! time ! two points at different distance !

  22. Focal Sweep ! [Nagahara et al. 2008] ! t 1 t 2 sensor-lens ! distance ! ! PSF 1 ! ! time ! PSF 2 ! instantaneous PSF ! integrated PSF ! time ! two points at different distance !

  23. Focal Sweep ! [Nagahara et al. 2008] ! t 1 t 2 sensor-lens ! distance ! ! PSF 1 ! ! time ! PSF 2 ! instantaneous PSF ! time ! two points at different distance !

  24. Focal Sweep ! [Nagahara et al. 2008] ! t 1 t 2 t 3 sensor-lens ! distance ! ! PSF 1 ! ! time ! PSF 2 ! instantaneous PSF ! integrated PSF ! time ! two points at different distance !

  25. Focal Sweep ! [Nagahara et al. 2008] ! t 1 t 2 t 4 t 3 sensor-lens ! distance ! ! PSF 1 ! ! time ! PSF 2 ! instantaneous PSF ! time ! two points at different distance !

  26. Focal Sweep ! [Nagahara et al. 2008] ! t 1 t 2 t 4 t 5 t 3 sensor-lens ! distance ! ! dt = PSF 1 ! ! ! time ! dt = PSF 2 ! instantaneous PSF ! integrated PSF ! time ! two points at different distance !

  27. Focal Sweep ! [Nagahara et al. 2008] ! t 1 t 2 t 4 t 5 t 3 sensor-lens ! distance ! ! dt = PSF 1 ! ! ! time ! dt = PSF 2 ! instantaneous PSF ! integrated PSF ! time ! two points at different distance !

  28. ! Focal Sweep ! [Nagahara et al. 2008] ! sensor-lens ! distance ! • ! spend equal amount of time at each depth to make depth invariant! ! time ! integrated PSF ! time ! two points at different distance !

  29. [Nagahara et al. 2008] ! conventional photo captured focal sweep ! (small DOF) ! always blurry! ! Focal Sweep ! conventional photo EDOF image ! (large DOF, noisy) !

  30. ! Focal Sweep ! • ! noise characteristics are main EDOF image ! benefit of EDOF ! • ! may change for different sensor noise characteristics ! conventional photo (large DOF, noisy) ! [Nagahara et al. 2008] ! SNR should be ! evaluation metric!

  31. Focal Sweep for Moving Objects ! motion ! motion ! defocus ! conventional camera PSF ! focal sweep camera PSF ! [Bando et al. 2013] !

  32. Focal Sweep for Moving Objects ! motion ! motion ! defocus ! conventional camera PSF ! focal sweep camera PSF ! [Bando et al. 2013] !

  33. Focal Sweep for Moving Objects ! motion ! motion ! defocus ! conventional camera PSF ! focal sweep camera PSF ! [Bando et al. 2013] !

  34. Focal Sweep for Moving Objects ! focal sweep ! focal sweep deblurred ! conventional camera ! [Bando et al. 2013] !

  35. ! ! Wavefront Coding ! [Dowski and Cathey 1995] ! • ! how to obtain a depth invariant PSF without mechanically moving parts ! ! change the lens! ! • ! for many, this is the dawn of computational imaging! ! cubic phase plate ! • ! tricky to understand intuitively, so let’s try to understand what it does by looking at something else… !

  36. Lattice Focal Lens ! superimpose array of lenses with different focal lengths! ! time ! [Levin et al. 2009] !

  37. Lattice Focal Lens ! lattice focal lens ! all-in-focus image from conventional camera ! lattice focal lens ! [Levin et al. 2009] !

  38. Extended Depth of Field (EDOF) � • remember focal sweep: move sensor s.t. same time for each depth � • lattice focal lens: same idea, but no sweeping (optical overlay) – optimal in 4D � • cubic phase plate: same idea (optimal in 2D, not optimal in 4D) � (can look at this in more detail if we have time) �

  39. Diffusion Coded Photography ! • ! can also do EDOF with diffuser as coded aperture, has better inversion ! characteristics than lattice focal lens ! [Cossairt et al. 2010] !

  40. Back to Coding Motion �

  41. [Raskar et al. 2006] � Flutter Shutter � • engineer motion PSF (coding exposure time) so it becomes invertible! �

  42. [Raskar et al. 2006] ! photo with coded motion !

  43. deblurred !

  44. [Raskar et al. 2006] ! Input Photo ! Deblurred Result !

  45. ! [Raskar et al. 2006] ! Traditional Camera ! Shutter is OPEN !

  46. ! [Raskar et al. 2006] ! Flutter Shutter !

  47. ! ! [Raskar et al. 2006] ! Shutter is OPEN and CLOSED !

  48. Harold “Doc” Edgerton H

  49. [Raskar et al. 2006] !

  50. [Raskar et al. 2006] � Lab Setup

  51. [Raskar et al. 2006] � spatial convolution � Blurring � sinc Function � = � Convolution � Fourier magnitudes � Traditional Camera: Box Filter �

  52. [Raskar et al. 2006] � spatial convolution � Preserves High Frequencies!!! � Fourier magnitudes � Flutter Shutter: Coded Filter �

  53. [Raskar et al. 2006] � Comparison �

  54. [Raskar et al. 2006] ! Inverse Filter stable ! Inverse Filter Unstable !

  55. Short Exposure Long Exposure Coded Exposure Our result Matlab Richardson-Lucy Ground Truth

  56. Are all codes � good � ? ! [Raskar et al. 2006] ! All ones ! Alternate ! Random ! Our Code !

  57. [Raskar et al. 2006] ! License Plate Retrieval !

  58. [Raskar et al. 2006] ! License Plate Retrieval !

  59. � Motion Invariant Photography � • making motion PSFs invariant is great, BUT need to know motion direction and velocity! � • we have already seen that focal sweep makes the PSF almost depth invariant � • how about making motion PSFs motion invariant? �

  60. • ! Jacques Henri Lartigue, 1912 ! text ! title !

  61. • text � animation by largeformatphotography.info user Lindolfi �

  62. [Levin et al. 2008] � Controlling Motion Blur �

  63. [Levin et al. 2008] � Controlling Motion Blur � Can we control motion blur? �

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