processing pipeline for digital cameras
play

processing pipeline for digital cameras Local, Linear and Learned (L - PowerPoint PPT Presentation

Accelerating a learning based image processing pipeline for digital cameras Local, Linear and Learned (L 3 ) pipeline Qiyuan Tian and Haomiao Jiang Department of Electrical Engineering Stanford University GPU Technology Conference, San Jose


  1. Accelerating a learning – based image processing pipeline for digital cameras Local, Linear and Learned (L 3 ) pipeline Qiyuan Tian and Haomiao Jiang Department of Electrical Engineering Stanford University GPU Technology Conference, San Jose March 17, 2015

  2. Digital camera sub-systems RAW image Display image Focus control Pre-processing Image • dead pixel removal • dark floor subtraction processing • structured noise reduction pipeline • quantization CFA • etc. Exposure control Transform the Lens, aperture and sensor sensor data into a display image

  3. Standard image processing pipeline CFA Sensor Illuminant Noise Tone interpolation conversion correction reduction scale RAW image Display image − Requires multiple algorithms − Each algorithm requires optimization − Optimized only for Bayer (RGB) color filter array (CFA)

  4. Opportunity Extra sensor pixels enable new CFAs that improve sensor functionality and open new applications Bayer RGBW RGBX RGBCMY Medical low-light sensitivity infrared multispectral specialized dynamic range light field application Challenge − Customized image processing pipeline − Speed and low power

  5. L 3 image processing pipeline Classify Retrieve and apply CFA Sensor Illuminant Noise Tone interpolation pixels conversion correction reduction scale transforms RAW image Display image Local, Linear and Learned (L 3 ) − Combines multiple algorithms into one − Rendering is simple, fast and low-power − Uses machine learning to optimize the class transforms for any CFA

  6. Classify pixels RAW image Flat Texture Sensor voltage level Center pixel color Intensity Contrast Class Center pixel color: red Intensity: high Contrast: flat “Local” pixel values (local patch)

  7. Retrieve and apply transforms “Linear” transforms RAW image R G B Weighted summation Rendered R, G, B values Class Center pixel color: red Learned Intensity table of Intensity: high linear Contrast: flat transforms Contrast

  8. Table-based architecture suits GPU Weighted summation Weighted summation GPU − Independent calculation for each pixel − Simple weighted summation Thus well-suited for parallel rendering using GPU

  9. GPU implementations Render one pixel ( i, j ) • Calculate class index • Retrieve transforms • Weight sum Table of transforms Constants, e.g. CFA pattern

  10. GPU acceleration results Results CPU GPU Image 0.062s 12.4s (1280 × 720) (16 fps) Video 163.2s (1280 × 720 × 1800) (11 fps) − GPU: NVidia GTX 770 (1536 kernels, 1.085 GHz) − CPU: Intel Core i7-4770K (3.5 GHz) − CUDA/C programming Tian et al. 2015

  11. Potential speed improvement Use shared memory and registers Specialized image signal processor (ISP) L 3 ISP

  12. L 3 processing “Learn” the transforms Table of Transforms Pre- Local Patch Transform processing Classification Application Novel RAW Image Classification Display Camera Map image GPU

  13. Locally linear transform − Globally nonlinear for an entire image − 480 linear transforms in total Center color Intensity Contrast red 1 V flat green Local patches white texture blue 0 V 20 levels

  14. Learn the locally linear transform for each class ? R G B Linear Local RAW Desired RGB values values transform A 𝐲 = 𝐜

  15. Solve the transform ? ? R G B Linear Local RAW Desired values RGB values transform A 𝐲 = 𝐜 A𝐲 − 𝐜 2 + Γ𝐲 2 minimize 𝐲 ridge regression

  16. Training data from camera simulation Simulated Local Desired RAW image patches RGB Classification … ISET camera simulator Multispectral radiance Registered desired (with calibrated optics and training scenes RGB images Training data sensor parameters) http://imageval.com − Simulate any camera designs − Various training scenes, illuminants and luminances − Registered and desired RGB images

  17. Learned transforms Red-pixel Transforms that centered patch solve for R-channel Dark class Bright class (use more W) (use more RGB) − Accounts for spatial and spectral correlation − Accounts for sensor and photon noise

  18. Advantages of learning − Adapts to any application and scene content Consumer Document Industrial Pathology Endoscopy Photography Digitization Inspection − Adapt to any CFA Bayer RGBW RGBX RGBCMY Medical

  19. Solve RGBW rendering In dark scene − Two f-stops gain In bright scene − Same performance Simulation conditions Exposure: 100 ms F-number: f/4 Tian et al. 2014

  20. Smooth transition from dark to bright .01 .1 1 10 100 200 300 cd/m 2 Scene Luminance Tian et al. 2014

  21. Compare RGBW CFA designs Bayer Parmar & Wandell, 2009 Aptina CLARITY+ Simulation conditions Luminance: 1cd/m 2 Exposure: 100 ms F-number: f/4 Tian et al. 2014 Kodak Wang et al., 2011

  22. Five-band camera prototype RGB Cyan Orange 4 × 4 super-pixel Tian et al. 2015

  23. L 3 solves five-band prototype rendering Tian et al. 2015

  24. GPU acceleration results Results GPU CPU Image 0.062s 12.4s (1280 × 720) (16 fps) Video 163.2s (1280 × 720 × 1800) (11 fps) − GPU: NVidia GTX 770 (1536 kernels, 1.085 GHz) − CPU: Intel Core i7-4770K (3.5 GHz) − CUDA/C programming Tian et al. 2015

  25. Desired L 3 learning Multispectral RGB Images Scenes Camera ISET camera Supervised Calibration Simulation Learning Novel Calibrated Simulated Table of Camera Parameters RAW Image Transforms L 3 processing Table of transforms Pre- Local Patch Transform processing Classification Application Novel RAW Image Classification Display GPU Camera Map image

  26. Local, linear and learned pipeline (L 3 ) summary − Table-based rendering architecture is ideal for GPU acceleration − Machine learning automates image processing for any CFA and scene content Rethink image processing pipeline

  27. Acknowledgement Advisors Brian Wandell, Joyce Farrell Group members Henryk Blasinski, Andy Lin Stanford collaborators Francois Germain, Iretiayo Akinola Olympus collaborators Steven Lansel, Munenori Fukunishi

  28. References Tian, Q., Lansel, S., Farrell, J. E., and Wandell , B. A., “Automating the design of image processing pipelines for novel color filter arrays: Local, Linear, Learned (L 3 ) method,” in [IS&T/SPIE Electronic Imaging], 90230K– 90230K, International Society for Optics and Photonics (2014). Tian, Q., Blasinski, H., Lansel, S., Jiang, H., Fukunishi, M., Farrell, J. E., and Wandell, B. A., “Automatically designing an image processing pipeline for a five -band camera prototype using the local, linear, learned (L 3 ) method,” in [IS&T/SPIE Electronic Imaging], 940403-940403-6, International Society for Optics and Photonics (2015).

  29. End Thanks for your attention! Questions? Contacts qytian@stanford.edu hjiang36@stanford.edu

  30. Potential speed improvement • Local vs Global • L3 is locally linear: can use local memory to speed up • Locality in memory: writing output as RGBRGB is faster than writing as image plane • Device based optimization • CFA pattern and other parameters are fixed: Constant Memory & no need to pass in • Symmetry and other properties • CUDA, GLSL, FPGA, Hardware • L3 rendering is based on linear transforms and can be implemented with shaders or hardware circuits to achieve further acceleration

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