Defocus Techniques for Camera Dynamic Range Expansion

Embed Size (px)

Citation preview

  • 8/9/2019 Defocus Techniques for Camera Dynamic Range Expansion

    1/22

    Defocus Techniques forCamera Dynamic Range

    ExpansionMatthew Trentacoste, Cheryl Lau, Mushqur Rouf,

    Rafal Mantiuk, Wolfgang Heidrich

    University of British Columbia

  • 8/9/2019 Defocus Techniques for Camera Dynamic Range Expansion

    2/22

    Defocus DR expansion

    Sensors limited in dynamic rangeCan be expanded, but tradeoffs exist

    Evaluate the opposite, reduce the dynamicrange of the scene incident on the sensorby optical blurring, restore in software

    5 5/9 5/95/9

    5/9 5/95/9

    5/9 5/95/9

    1/9 1/91/9

    1/9 1/91/9

    1/9 1/91/9

    =

  • 8/9/2019 Defocus Techniques for Camera Dynamic Range Expansion

    3/22

    Approach

    Use 2 techniques to aid:

    coded aperture + deconvolution Aperture lter to improve deconvolution quality

    PSF preserves more information[Rashkar 2006][Levin 2007][Veeraraghavan 2007]

    Deconvolution to restore original imageRecent advances using natural image statistics[Bando 2007][Levin 2007]

  • 8/9/2019 Defocus Techniques for Camera Dynamic Range Expansion

    4/22

    Physical setup

    Rays from scene pass through apertureplane and focused onto sensor

    Cone of rays from out-of-focus pointsintersects sensor, forming the shape of the

    aperture A pattern in the aperture plane is projected

    onto the sensor for out-of-focus points

  • 8/9/2019 Defocus Techniques for Camera Dynamic Range Expansion

    5/22

    Coded Aperture

    Originally from x-ray astronomy[Fenimore 1978][Gottesman 1989]

    Structured arrays + decoding algorithm withresolution of pinhole, but better SNR

    Employed in visible light photography[Rashkar 2006][Levin 2007][Veeraraghavan 2007]

    Improve frequency properties of lter

  • 8/9/2019 Defocus Techniques for Camera Dynamic Range Expansion

    6/22

    Aperture lters What makes a good lter?

    Frequency response Position and spacing of zero frequencies

    Diffraction / transmission

  • 8/9/2019 Defocus Techniques for Camera Dynamic Range Expansion

    7/22

    Deconvolution

    Restore image distorted by PSF[Wiener 1964][Richardson 1972][Lucy 1974]

    Ill-posed, innite solutions

    No exact solution due to noise Division in FFT, issues with small

    values in OTF of lter

    f = f 0 k +

  • 8/9/2019 Defocus Techniques for Camera Dynamic Range Expansion

    8/22

    Deconvolution Current state-of-the-art methods rely on natural

    image statistics

    Real-world images share several properties:Heavy-tail distribution of gradients

    Prior term in deconvolution algorithms[Bando 2007][Levin 2007]

    Favors interpretations of the image with all thegradient intensity at a few pixels

  • 8/9/2019 Defocus Techniques for Camera Dynamic Range Expansion

    9/22

    Evaluation

    Goal : determine whether any combo of lter /deconvolution yields meaningful reduction in DRwith acceptable nal image quality

    Measure DR reduction both in terms of imagelocal contrast and lter

    Measure image quality as difference betweendeconvolved and original images

  • 8/9/2019 Defocus Techniques for Camera Dynamic Range Expansion

    10/22

    Source material

    Radius Atrium Morning Atrium Night

    min max reduction min max reductionOriginal 0.00 11.0 0.00 12.0

    1 0.00 10.8 0.200 0.452 12.0 0.4522 0.00 10.6 0.424 0.622 12.0 0.6223 0.00 10.3 0.716 1.163 11.8 1.344 0.02 10.0 1.00 1.436 11.4 1.995 0.08 9.94 1.14 1.589 11.4 2.236 0.15 9.92 1.24 1.731 11.2 2.518 0.31 9.83 1.48 1.890 10.8 3.139 0.40 9.79 1.61 1.950 10.5 3.41

    11 0.66 9.71 1.94 2.08 10.3 3.7413 0.86 9.67 2.19 2.18 10.1 4.13

    16 1.04 9.59 2.45 2.26 9.61 4.65

    Atrium Morning Atrium Night

  • 8/9/2019 Defocus Techniques for Camera Dynamic Range Expansion

    11/22

    Source material

    Radius Atrium Morning Atrium Night

    min max reduction min max reductionOriginal 0.00 11.0 0.00 12.0

    1 0.00 10.8 0.200 0.452 12.0 0.4522 0.00 10.6 0.424 0.622 12.0 0.6223 0.00 10.3 0.716 1.163 11.8 1.344 0.02 10.0 1.00 1.436 11.4 1.995 0.08 9.94 1.14 1.589 11.4 2.236 0.15 9.92 1.24 1.731 11.2 2.518 0.31 9.83 1.48 1.890 10.8 3.139 0.40 9.79 1.61 1.950 10.5 3.41

    11 0.66 9.71 1.94 2.08 10.3 3.7413 0.86 9.67 2.19 2.18 10.1 4.13

    16 1.04 9.59 2.45 2.26 9.61 4.65

    Atrium Morning Atrium Night

    2.45 EV

  • 8/9/2019 Defocus Techniques for Camera Dynamic Range Expansion

    12/22

    Source material

    Radius Atrium Morning Atrium Night

    min max reduction min max reductionOriginal 0.00 11.0 0.00 12.0

    1 0.00 10.8 0.200 0.452 12.0 0.4522 0.00 10.6 0.424 0.622 12.0 0.6223 0.00 10.3 0.716 1.163 11.8 1.344 0.02 10.0 1.00 1.436 11.4 1.995 0.08 9.94 1.14 1.589 11.4 2.236 0.15 9.92 1.24 1.731 11.2 2.518 0.31 9.83 1.48 1.890 10.8 3.139 0.40 9.79 1.61 1.950 10.5 3.41

    11 0.66 9.71 1.94 2.08 10.3 3.7413 0.86 9.67 2.19 2.18 10.1 4.13

    16 1.04 9.59 2.45 2.26 9.61 4.65

    Atrium Morning Atrium Night

    2.45 EV 4.56 EV

  • 8/9/2019 Defocus Techniques for Camera Dynamic Range Expansion

    13/22

    Tests Filters evaluated:

    Normal aperture Gaussian Veeraraghavan Levin Zhou

    Deconvolution evaluated: Wiener ltering Richardson-Lucy Bando Levin

  • 8/9/2019 Defocus Techniques for Camera Dynamic Range Expansion

    14/22

    Evaluation (cont)

    Success criteria: Reduction of at least 2 stops

    to justify the computational cost of deconv

    Quality of at least PSNR 35

  • 8/9/2019 Defocus Techniques for Camera Dynamic Range Expansion

    15/22

    Images

    Weiner Richardson-Lucy Bando Levin

    lter=Zhou, noise = 0, radius = 1

  • 8/9/2019 Defocus Techniques for Camera Dynamic Range Expansion

    16/22

    Images

    Weiner Richardson-Lucy Bando Levin

    lter=Zhou, noise = 0, radius = 5

  • 8/9/2019 Defocus Techniques for Camera Dynamic Range Expansion

    17/22

    Images

    Weiner Richardson-Lucy Bando Levin

    lter=Zhou, noise = 0, radius = 16

  • 8/9/2019 Defocus Techniques for Camera Dynamic Range Expansion

    18/22

    Deconv: no noise

    0 0.5 1 1.5 2 2.5 3 3.5 4 4.5 510

    15

    20

    25

    30

    35

    40

    45

    50

    55

    60

    Dynamic range reduction (EV stops)

    P S N R

    ( d B )

    Atrium Morning deconvolution

    WeinerRichardson LucyBandoLevin

    0 0.5 1 1.5 2 2.5 3 3.5 4 4.5 510

    15

    20

    25

    30

    35

    40

    45

    50

    55

    60

    Dynamic range reduction (EV stops)

    P S N R

    ( d B )

    Atrium Night deconvolution

    WeinerRichardson LucyBandoLevin

    DR reduction DR reduction

    P S N R

    P S N R

    WeinerRichardson LucyBando

    Levin

    WeinerRichardson LucyBando

    Levin

  • 8/9/2019 Defocus Techniques for Camera Dynamic Range Expansion

    19/22

    Aperture: no noise

    0 0.5 1 1.5 2 2.5 3 3.5 4 4.5 510

    15

    20

    25

    30

    35

    40

    45

    50

    55

    60

    Dynamic range reduction (EV stops)

    P S N R

    ( d B )

    Atrium Morning aperture filter

    Standard ApertureGaussianVeeraraghavanZhouLevin

    0 0.5 1 1.5 2 2.5 3 3.5 4 4.5 510

    15

    20

    25

    30

    35

    40

    45

    50

    55

    60

    Dynamic range reduction (EV stops)

    P S N R

    ( d B )

    Atrium Night aperture filter

    Standard ApertureGaussianVeeraraghavanZhouLevin

    DR reduction DR reduction

    P S N R

    P S N R

    Standard ApertureGaussianVeeraraghavanZhouLevin

    Standard ApertureGaussianVeeraraghavanZhouLevin

  • 8/9/2019 Defocus Techniques for Camera Dynamic Range Expansion

    20/22

    Deconv: noise

    0 0.5 1 1.5 2 2.5 3 3.5 4 4.5 510

    15

    20

    25

    30

    35

    40

    45

    50

    55

    60

    Dynamic range reduction (EV stops)

    P S N R

    ( d B )

    Atrium Morning deconvolution

    WeinerRichardson LucyBandoLevin

    0 0.5 1 1.5 2 2.5 3 3.5 4 4.5 510

    15

    20

    25

    30

    35

    40

    45

    50

    55

    60

    Dynamic range reduction (EV stops)

    P S N R

    ( d B )

    Atrium Night deconvolution

    WeinerRichardson LucyBandoLevin

    DR reduction DR reduction

    P S N R

    P S N R

    WeinerRichardson LucyBandoLevin

    WeinerRichardson LucyBandoLevin

  • 8/9/2019 Defocus Techniques for Camera Dynamic Range Expansion

    21/22

    Aperture: noise

    0 0.5 1 1.5 2 2.5 3 3.5 4 4.5 510

    15

    20

    25

    30

    35

    40

    45

    50

    55

    60

    Dynamic range reduction (EV stops)

    P S N R

    ( d B )

    Atrium Morning aperture filter

    Standard ApertureGaussianVeeraraghavanZhouLevin

    0 0.5 1 1.5 2 2.5 3 3.5 4 4.5 510

    15

    20

    25

    30

    35

    40

    45

    50

    55

    60

    Dynamic range reduction (EV stops)

    P S N R

    ( d B )

    Atrium Night aperture filter

    Standard ApertureGaussianVeeraraghavanZhouLevin

    DR reduction DR reduction

    P S N R

    P S N R

    Standard ApertureGaussianVeeraraghavanZhouLevin

    Standard ApertureGaussianVeeraraghavanZhouLevin

  • 8/9/2019 Defocus Techniques for Camera Dynamic Range Expansion

    22/22

    Conclusions

    Levin deconv the best, obtaining results with

    coded lters at very low noise levels No combination of lter and deconvolution

    consistently produced acceptable results

    Efciency of the approach is scene dependentMost efcient for small, isolated bright regions