Lecture13 - Computing Toolbox - Image Blurry
Lecture13 - Computing Toolbox - Image Blurry
1 1 1
+ =
𝑆𝑆 ′ 𝑆𝑆 𝑓𝑓
1 1 1
+ =
𝑆𝑆 ′ 𝑆𝑆 𝑓𝑓
1 1 1
+ =
𝑆𝑆 ′ 𝑆𝑆 𝑓𝑓
blur kernel
Diffraction
small large
aperture aperture
1 1 1
+ =
𝑆𝑆 ′ 𝑆𝑆 𝑓𝑓
blur kernel
diffraction-limited PSF
of a circular aperture
object distance S sensor distance S’ (Airy pattern)
Incoherent illumination
i.e., the light we are measuring is not laser light.
Ignore various scale factors. Different functions are not drawn to scale.
aperture:
rect 𝑥𝑥
The 1D case
?
GAMES204 Computational Imaging, Qilin Sun
Basics of Diffraction Theory
The 1D case ?
GAMES204 Computational Imaging, Qilin Sun
Basics of Diffraction Theory
optical transfer
The 1D case
function: tent 𝑥𝑥
GAMES204 Computational Imaging, Qilin Sun
Basics of Diffraction Theory
what happens if we
increase the aperture
size?
optical transfer
The 1D case
function: tent 𝑥𝑥
GAMES204 Computational Imaging, Qilin Sun
Basics of Diffraction Theory
optical transfer
The 1D case
function: tent 𝑥𝑥/2
GAMES204 Computational Imaging, Qilin Sun
Basics of Diffraction Theory
blur kernel
aperture
diffraction-limited PSF
of a circular aperture
optical transfer function object distance S sensor distance S’ (Airy pattern)
(OTF)
GAMES204 Computational Imaging, Qilin Sun
Lens: An Optical Low-pass Filter
* =
image from a perfect lens imperfect lens PSF image from imperfect lens
x * c = b
If we know b and c, can we recover x?
GAMES204 Computational Imaging, Qilin Sun
Camera Shake
Motion PSF is a
H Function of:
Energy ~ 1/ speed
Motion path
Motion speed
Y
X
Spatial spread
* =
PSF
image from static camera from camera motion image from shaky camera
x * c = b
If we know b and c, can we recover x?
GAMES204 Computational Imaging, Qilin Sun
Sharp image Blur kernel
Multiple Possible Solutions
= *
= *
Blurry image
How do we
= * detect this
PSF?
Among all the possible pairs of images and blur kernels, select the ones where:
blurry
natural
image
Among all the possible pairs of images and blur kernels, select the ones where:
* =
Estimated
Sharp image Blur kernel Blurry image
Note: Solving such optimization problems is complicated (no longer linear least squares).
GAMES204 Computational Imaging, Qilin Sun
A Demonstration
cost function
cost function
inverse loss
pixel intensity
GAMES204 Computational Imaging, Qilin Sun
Regularized Blind Deconvolution
cost function
Blur kernels
Image patterns
Note: blur kernels were inferred from large image patches,NOT the image patterns shown
GAMES204 Computational Imaging, Qilin Sun
Scene Motion
Moshe Ben-Ezra and Shree K. Nayar Motion Deblurring Using Hybrid Imaging
GAMES204 Computational Imaging, Qilin Sun
Depth Defocus
circle of confusion
Focal plane
circle of confusion
Focal plane
circle of confusion
Focal plane
Ours
Qilin Sun et.al End-to-end Complex Lens Design with Differentiable Ray Tracing
GAMES204 Computational Imaging, Qilin Sun
Depth Defocus Examples
https://digital-photography-school.com/out-of-focus-photos/
GAMES204 Computational Imaging, Qilin Sun
Lens Imperfections and Physical Limit.
Camera Shake.
Scene Motion.
Today’s
Topic Depth Defocus.
Thank You!