1 of 26

Learning from Burst Photography to Improve Low Light Images

Department of Computer Science and Engineering

Khulna University of Engineering & Technology (KUET)

Arafat Islam Khan

Roll: 1507017

​

Supervised By:

Dr. Sk. Mohammad Masudul Ahsan

Professor

2 of 26

Outline

​

  • Introduction
  • Related Works
  • Objective
  • Proposed Pipeline
  • See in the Dark Dataset
  • Raw Image Format
  • Preprocessing
  • Learning Network
  • Postprocessing
  • Evaluation Metrics
  • Experimental Results
  • Discussion

​

​

​

​

​

​

2

3 of 26

Introduction

​

  • Noise is present in any imaging system, but it makes imaging particularly challenging in low light

​

  • In low light, due to higher ISO and longer shutter speed, traditional image processing pipeline introduces noise and motion blur in the scene.

​

  • Aggressive post process noise reduction results in a blurry and soft image

​

  • Under extreme low light condition ( below 1 lux) image is barely usable

3

4 of 26

Introduction

​

​

​

​

​

​

​

​

Figure 1: Motion blur and High ISO noise

​

  • In our approach, we implemented a novel image processing pipeline which addresses these issues with a promising result

4

5 of 26

Related Works

  • S.W.Hasinoff et al.[1] proposed a burst photography pipeline to improve low light images
    • Captures multiple frames from the scene
    • Aligns and merges them to improve the signal to noise ratio
    • After merging, rest of pipeline is same as traditional pipeline

​

​

​

​

​

​

​

​

​

​

​

5

Figure 2: Burst photography pipeline

6 of 26

Related Works ….

  • Chen chen et al.[2] proposed a learning network to replace the traditional pipeline for low light imaging
    • Fully convolutional network to replace the traditional pipeline
    • Implemented with raw image files
    • Network performs demosaicing, blind noise suppression, color space conversation etc.

​

​

​

​

​

​

​

​

​

6

Figure 3: Learning based pipeline

7 of 26

Objective

​

​

  • A detailed study on the RAW image format
  • A detailed study on multi frame noise reduction techniques
  • Implementing a new pipeline to improve night time photography
  • Exploring different deep neural network architectures to replace the traditional image processing pipeline

​

7

8 of 26

Proposed Pipeline

​

  • Instead of just merging burst or learning from a single ground truth, we will use multiple burst raw files for both noise reduction and learning network to replace traditional pipeline

​

8

Figure 4: Proposed Pipeline

9 of 26

See in the Dark Dataset

  • collected by the authors of learning to see in the dark paper[2]
  • Extreme low light shots, even some shots are taken in below 1 lux
  • The dataset contains 5096 raw short burst from two camera sensors, with reference long exposure ground truth

​

​

​

Table 1: See in the Dark Dataset

​

​

​

​

​

​

​

​

​

9

Sony α 7S II

Filter Array

Exposure Time

#images

X300

Bayer

1/10, 1/30

1190

X250

Bayer

1/25

699

X100

Bayer

1/10

808

Fujifilm X-T2

Filter Array

Exposure Time

#images

X300

X-Trans

1/10, 1/30

630

X250

X-Trans

1/25

650

X100

X-Trans

1/10

1117

10 of 26

See in the Dark Dataset ….

  • For our development, training and testing we used the x100 and x300 subset from the Sony sensor’s dataset

​

  • x100 and x300 has total of 63 and 93 set of images, each set contains 10 perfectly aligned raw burst frame and refence long exposure ground truth

​

  • We spilt the x100 dataset as 50/13 and x300 dataset as 76/17 for training and testing respectively

​

​

​

​

​

​

10

11 of 26

RAW image Format

  • Instead of using traditional pipeline processed RGB images with limited 8 bit depth, we implemented our pipeline end to end with RAW files
  • Bayer raw files contains 33% color information per channel, the rest of the color information is interpolated from neighboring pixels (demosaicing)
  • Higher bit depth (14 bit for our dataset)

​

11

Figure 5: Bayer color filter array(left) and cross section of image sensor(right)

​

12 of 26

Preprocessing

  • In preprocessing session, we stacked 10 perfectly aligned burst of same exposure. Stacking 10 burst gives us a 3D array, where X and Y are spatial dimension and Z axis is temporal dimension.
  • We implemented median in temporal dimension to filter out noise, mean also does the job but because of impulse noise, the final result shifts from actual signal

​

12

Figure 6: Reduction of noise by median averaging

13 of 26

Preprocessing ….

  • After averaging, we subtract the black level and amplified the signal using amplification ratio
  • Amplification ratio is the exposure difference between input and ground truth (x100,x300 for our dataset)
  • We used a max boundary to filter out more noise before feeding into the learning network

​

​

13

Figure 7: Filtering out noise using max boundary

Actual Signal

Noise

14 of 26

Learning Network

  • We replaced most of the traditional pipeline using fully convolutional network[3][4]

​

  • Our network input is merged raw file and output is sRGB long exposure ground truth image
  • 3x3 convolution filter, with a 2x2 max pool and ReLu activation

​

  • L1 as loss function with Adam optimizer[5]

​

  • Our network architecture is U-Net[6]

​

  • We trained our model with 512x512 patches of images, with random selection, random flip and rotate for augmentation

​

​

​

​

​

​

​

​

14

15 of 26

Learning Network ….

  • We trained three models based on the properties of our dataset

​

  • x100 model which is trained and tested on x100 dataset only

​

  • x300 model which is trained and tested on x300 dataset only

​

  • A generalized network trained on the full dataset

​

  • We train the network for 4000 epochs, 1e-4 as initial learning rate
  • After 2000 epochs, we set the learning rate to 1e-5

15

16 of 26

Post Processing

  • FCN doesn’t have any fully connected layer, so we excluded global statistical process (Histogram Equalization) to post process
  • Due to some noise in our output, we use contrast limited adaptive histogram equalization
  • Limiting the contrast solves the problem of noise amplification
  • We converted RGB image to YCbCr and equalized the luminance channel. Finally we converted back to RGB space�

16

17 of 26

Evaluation Metrics

  • We used PSNR to evaluate or output with ground truth
  • PSNR is a blind pixelwise comparison, doesn't take actual visible similarity into account
  • We also used SSIM[7] which is based on the visible similarity of the image

​

17

Figure 8: MSE vs SSIM

​

​

18 of 26

Experimental Results

18

Pipeline

X100

(PSNR/SSIM)

X300

(PSNR/SSIM)

Combined

(PSNR/SSIM)

Ensemble x100 (ours)

 

31.80/0.916

---------

---------

Ensemble x300

(ours)

----------

 

31.05/0.0802

----------

Generalized Network

(ours)

 

30.36/0.905

 

30.643/0.792

 

30.52/0.84

Learning to see in the dark

 

 

 

28.88/0.787

Burst Photography

+Scaling

 

28.410/0.427

 

28.318/0.204

 

28.35/0.30

Traditional pipeline + Scaling

(first frame)

 

28.21/0.2026

 

28.276/0.136

 

28.247/0.16486

Table 2: Results

19 of 26

Experimental Results ….

​

​

​

19

20 of 26

Experimental Results ….

20

21 of 26

Experimental Results ….

21

Figure 8: Left: Our Output Right: Ground Truth

Bottom: Input Frame (x100)

​

22 of 26

Experimental Results ….

22

Figure 8: Left: Our Output Right: Ground Truth

Bottom: Input Frame (x300- Below 1 lux)

23 of 26

Conclusion

  • Our pipeline performed better than traditional, burst, and learning networks
  • Even in x300 dataset which is very challenging, our pipeline produced usable images
  • Our network learned and adopted to replace the traditional image processing pipeline with noisy inputs

​

​

23

24 of 26

Limitations

  • Network trained in one sensor cannot be utilized on another sensor data
  • We need to set the amplification ratio externally
  • Pipeline benefits from perfectly aligned images, in real world burst capture are not always perfectly aligned
  • Some images shows color artifact, though it is also present in learning to see in the dark’s output
  • Didn’t address HDR tone mapping

24

25 of 26

References

  1. S. W. Hasinoff, D. Sharlet, R. Geiss, A. Adams, J. T. Barron,F. Kainz, J. Chen, and M. Levoy. Burst photography for high dynamic range and low-light imaging on mobile cameras. ACM Transactions on Graphics, 35(6), 2016
  2. Chen Chen, Quifeng Chen, Jia Xu, Vladlen Koltun. Learning to See in the Dark. In IEEE CVPR 2018
  3. H. C. Burger, C. J. Schuler, and S. Harmeling. Image de-noising: Can plain neural networks compete with BM3D? In CVPR, 2012.
  4. Jain and H. S. Seung. Natural image denoising with convolutional networks. In NIPS, 2008
  5. D. P. Kingma and J. Ba. Adam: A method for stochastic optimization. In ICLR, 2015
  6. Olaf Ronneberger, Philipp Fischer, Thomas Brox. U-Net: Convolutional Networks for Biomedical Image Segmentation. In MICCAI 2015.
  7. Zhou Wang, A. C. Bovik, H. R. Sheikh and E. P. Simoncelli, "Image quality assessment: from error visibility to structural similarity," in IEEE Transactions on Image Processing, vol. 13, no. 4, pp. 600-612, April 2004.

​

​

​

25

26 of 26

Thank You

26

Any Questions?