Transcript gghgh

Unnatural L0 Representation
for Natural Image Deblurring
Speaker: Wei-Sheng Lai
Date: 2013/04/26
Outline
1.
2.
3.
4.
Introduction
Related work
L0 Deblurring
Conclusion
2
1. Introduction
β€’ Form of image blur :
1. Object motion
2. Camera Shake
3. Out of focus (defocus)
β€’
Blur model:
𝐡 =πΏβŠ—πΎ+𝑁
B: blurred(observed) image
L: latent(sharp) image
K: blur kernel
N: noise
⨂: convolution
Point Spread Function (PSF)
3
1. Introduction
β€’ Ill-posed problem:
observation (B) < unknown variables (L + K)
4
1. Introduction
β€’ Early method:
1. Richardson–Lucy deconvolution (RL) [1][2]
𝐿𝑑+1
=
𝐿𝑑
𝐡
.βˆ— 𝐾 βŠ— 𝑑
𝐿 βŠ—πΎ
𝐾: flipped blur
kernel
2. Wiener filter [3]
𝐿(𝐹) = 𝐡(𝐹) .βˆ—
οƒ˜
𝐾 βˆ— (𝐹)
2
𝐾 𝐹 2+𝜎 𝐴
𝜎 : noise ratio
A : constant
Both are known to be sensitive to noise.
[1] Richardson, William Hadley. "Bayesian-based iterative method of image restoration." JOSA 62.1 (1972): 55-59.
[2] Lucy, L. B. "An iterative technique for the rectification of observed distributions."The astronomical journal 79 (1974): 745.
[3] Wiener, Norbert. Extrapolation, interpolation, and smoothing of stationary time series: with engineering applications. Technology
5
Press of the Massachusetts Institute of Technology, 1950.
1. Introduction
β€’ Recent framework: Maximum-a-Posteriori (MAP)
πΏβˆ— , 𝐾 βˆ— = π‘Žπ‘Ÿπ‘” min 𝐡 βˆ’ 𝐿 βŠ— 𝐾
𝐿,𝐾
2
2 + ρ𝐿
𝐿 + ρ𝐾 𝐾
– ρ𝐿 𝐿 : prior of latent image
– ρ𝐾 𝐾 : prior of kernel
β€’ Non-linear problem, iterative optimization :
πΏβˆ— = π‘Žπ‘Ÿπ‘” min 𝐡 βˆ’ 𝐿 βŠ— 𝐾
𝐿
𝐾 βˆ— = π‘Žπ‘Ÿπ‘” min 𝐡 βˆ’ 𝐿 βŠ— 𝐾
𝐾
2
2 + ρ𝐿
2
2 + ρ𝐾
𝐿
𝐾
6
2. Related work
β€’ Fergus et al. Siggraph 2006 [4]
– Heavy tails distribution of nature image gradient
– Assume kernel prior as Gamma distribution
π‘₯ π‘Ž 𝑒 βˆ’π‘₯/𝑏
𝑃 π‘₯ π‘Ž, 𝑏 =
π‘Ž! 𝑏 π‘Ž+1
[4] R. Fergus et al, β€œRemoving camera shake from a single photograph,” Siggraph 2006
7
2. Related work
β€’ Prior (regularization) :
– Gaussian prior (L2 regularization) [5]:
𝐸(𝐿) = 𝐡 βˆ’ 𝐿 βŠ— 𝐾 22 + πœ† 𝛻𝐿
– TV-L1 prior [6]:
𝐸(𝐿) = 𝐡 βˆ’ 𝐿 βŠ— 𝐾
– Sparse prior [7]:
𝐸(𝐿) = 𝐡 βˆ’ 𝐿 βŠ— 𝐾
2
2
+ πœ† 𝛻𝐿
2
2
+ πœ† 𝛻𝐿
2
2
1
𝛼
,𝛼
[5] S Cho et al, β€œFast motion deblur,” Siggraph 2009
[6] Xu, Li, and Jiaya Jia. "Two-phase kernel estimation for robust motion deblurring." ECCV 2010.
[7] Levin, Anat, et al. "Image and depth from a conventional camera with a coded aperture." ACM TOG 2007
≀1
8
2. Related work
β€’ Q.Suan et al. Siggraph 2008 [8]
– N and πœ•π‘ should follow the zero-mean Gaussian
distribution
πœ•βˆ—π΅ βˆ’ πœ•βˆ—πΏ βŠ— 𝐾
E L =
2
2
+ πœ†1 𝜌 πœ•π‘₯ 𝐿 + 𝜌 πœ•π‘¦ 𝐿
πœ•βˆ—
+ πœ†2
πœ•π‘₯ 𝐿 βˆ’ πœ•π‘₯ 𝐡
2
2
+ πœ•π‘¦ 𝐿 βˆ’ πœ•π‘¦ 𝐡
2
2
+ 𝐾
[8] Q. Shan et al, β€œHigh quality motion deblurring from a single image,” Siggraph 2008
1
1
9
2. Related work
β€’ Cho et al. Siggraph 2009 [5]
– Accelerate the deblurring procedure by first estimating a
predicted image and using L2 regularization
β€’ Kernel estimation :
πœ•βˆ—π΅ βˆ’ πœ•βˆ—π‘ƒ βŠ— 𝐾
𝐸 𝐾 =
2
2
+𝛽 𝐾
2
2
+ πœ† 𝛻𝐿
2
2
πœ•βˆ—
β€’ Image deconvolution:
πœ•βˆ—π΅ βˆ’ πœ•βˆ—πΏ βŠ— 𝐾
𝐸 𝐿 =
2
2
πœ•βˆ—
[5] S Cho et al, β€œFast motion deblur,” Siggraph 2009
10
2. Related work
β€’ Anat Levin et al. CVPR 2009 [9] :
– MAP x,k approach will favor blur image with delta kernel.
πΏβˆ— , 𝐾 βˆ— = π‘Žπ‘Ÿπ‘” min 𝐡 βˆ’ 𝐿 βŠ— 𝐾
𝐿,𝐾
2
2 +πœ†
𝛻𝐿
2
2
– Estimate kernel K first, then use non-blind deconvolution to
solve the latent image.
[9] Levin, Anat, et al. "Understanding and evaluating blind deconvolution algorithms." CVPR 2009.
11
Unnatural L0 Sparse Representation
for Natural Image Deblurring
12
3. L0 Deblurring
β€’ Li Xu et al. CVPR 2013 [10]
– Predict image with L0 optimization
β€’ L0-norm:
𝜌 π‘₯ = π‘₯
0
=
0,
1,
π‘₯ =0
π‘₯ β‰ 0
β€’ Approximate L0 sparsity function:
1
2
𝛻
𝐼
,
βˆ—
πœ™ π›»βˆ— 𝐼 = πœ– 2
1,
𝑖𝑓 π›»βˆ— 𝐼 ≀ πœ–
π‘œπ‘‘β„Žπ‘’π‘Ÿπ‘€π‘–π‘ π‘’
[10] Xu, Li, Shicheng Zheng, and Jiaya Jia. "Unnatural L0 Sparse Representation for Natural Image Deblurring.” CVPR 2013
13
3. L0 Deblurring
β€’ Main objective function:
π‘šπ‘–π‘›
πΎβŠ—πΌβˆ’π΅
2
2
+πœ†
πœ™0 πœ•βˆ— 𝐼 + 𝛾 𝐾
2
2
βˆ—βˆˆ{π‘₯,𝑦}
where πœ™0 πœ•βˆ— 𝐼 =
𝑖 πœ™(πœ•βˆ— 𝐼𝑖 ),
1
πœ–2
πœ™ π›»βˆ— 𝐼 =
π›»βˆ— 𝐼 2 , 𝑖𝑓 π›»βˆ— 𝐼 ≀ πœ–
1,
π‘œπ‘‘β„Žπ‘’π‘Ÿπ‘€π‘–π‘ π‘’
β€’ Iteratively solve:
𝐼 (𝑑+1)
= π‘Žπ‘Ÿπ‘” min
𝐼
𝐾 (𝑑+1) = π‘Žπ‘Ÿπ‘” min
𝐾
𝐾 (𝑑)
βŠ—πΌβˆ’π΅
2
2
+πœ†
𝐾 βŠ— 𝐼 (𝑑+1) βˆ’ 𝐡
πœ™0 πœ•βˆ— 𝐼
βˆ—βˆˆ{π‘₯,𝑦}
2
+𝛾 𝐾
2
2
2
[10] Xu, Li, Shicheng Zheng, and Jiaya Jia. "Unnatural L0 Sparse Representation for Natural Image Deblurring.” CVPR 2013
14
3. L0 Deblurring
β€’ Solving
𝐼 (𝑑+1) = π‘Žπ‘Ÿπ‘” min
𝐼
where πœ™0 πœ•βˆ— 𝐼 =
𝐾 (𝑑) βŠ— 𝐼 βˆ’ 𝐡
𝑖 πœ™(πœ•π‘₯ 𝐼𝑖 )
,
2
2
+πœ†
πœ™ πœ•βˆ— 𝐼 =
πœ™0 πœ•βˆ— 𝐼
βˆ—βˆˆ{π‘₯,𝑦}
1
πœ–2
πœ•βˆ— 𝐼 2 , 𝑖𝑓 πœ•βˆ— 𝐼 ≀ πœ–
1,
π‘œπ‘‘β„Žπ‘’π‘Ÿπ‘€π‘–π‘ π‘’
β€’ Equivalent to solving
𝐼 (𝑑+1) = π‘Žπ‘Ÿπ‘” min
𝐼,𝑀
𝐾 (𝑑) βŠ— 𝐼 βˆ’ 𝐡
2
+πœ†
2
0,
π‘€βˆ—π‘– =
πœ•βˆ— 𝐼,
π‘€βˆ—π‘–
βˆ—βˆˆ{π‘₯,𝑦} 𝑖
𝑖𝑓 πœ•βˆ— 𝐼 ≀ πœ–
π‘œπ‘‘β„Žπ‘’π‘Ÿπ‘€π‘–π‘ π‘’
0
+
1
(𝑑) βˆ’ 𝑀
πœ•
𝐼
βˆ—
βˆ—π‘–
πœ–2
2
πœ– ∈ {1, 2βˆ’1 , 4βˆ’1 , 8βˆ’1 }
[10] Xu, Li, Shicheng Zheng, and Jiaya Jia. "Unnatural L0 Sparse Representation for Natural Image Deblurring.” CVPR 2013
15
3. L0 Deblurring
𝐹 π‘₯ =
𝐹 𝐡𝑀 .βˆ— 𝐹 π‘Œ + πœ†/πœ– 2 𝐹 πœ•π‘₯ .βˆ— 𝐹 𝑀π‘₯ + 𝐹 πœ•π‘¦ .βˆ— 𝐹 𝑀𝑦
𝐹 𝐡𝑀 .βˆ— 𝐹 𝐡𝑀 + πœ†/πœ– 2 𝐹𝐷2
𝐾
(𝑑+1)
= π‘Žπ‘Ÿπ‘” min
𝐾
πΎβŠ—πΌ
(𝑑+1)
(𝑑+1)
π‘˜ (𝑑+1)
=
𝐹 βˆ’1
𝐹(𝐴𝑀
𝐹
π‘˜ (𝑑+1) = π‘˜ (𝑑)
βˆ’π΅
2
+𝛾 𝐾
2
2
2
) .βˆ— 𝐹(𝑦)
(𝑑+1)
𝐴𝑀
2
+𝛾
𝛼
𝐴𝑇𝑅 𝑦
(𝐴𝑇𝑅 𝐴𝑅 + 𝛾)π‘˜
𝑛
[10] Xu, Li, Shicheng Zheng, and Jiaya Jia. "Unnatural L0 Sparse Representation for Natural Image Deblurring.” CVPR 2013
16
3. L0 Deblurring
Unnatural
Fast Hyper-Laplacian
deconvolution (𝐿0.5 norm) [11]
Representation
Input image
Deblurring
result
L0 optimization
Predict map
kernel
[11] Krishnan, Dilip, and Rob Fergus. "Fast image deconvolution using hyper-Laplacian priors." ANIPS 2009
17
3. L0 Deblurring
β€’ Other results
18
3. L0 Deblurring
β€’ Advantage of L0 deblurring:
– Fast convergence
– High quality
19
4. Conclusion
β€’ A naïve MAP x,k estimation will fail.
πΏβˆ— , 𝐾 βˆ— = π‘Žπ‘Ÿπ‘” min 𝐡 βˆ’ 𝐿 βŠ— 𝐾
𝐿,𝐾
2
2 +πœ†
𝛻𝐿
2
2
β€’ How to estimate correct kernel is important.
β€’ It is not as simple as what I have shown, there are
many implementation details.
20
Thanks for Attention !
21