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