Image Deconvolution.

Similar documents
Advanced phase retrieval: maximum likelihood technique with sparse regularization of phase and amplitude

Limited view X-ray CT for dimensional analysis

Non-Blind Deblurring Using Partial Differential Equation Method

Digital Image Processing. Prof. P. K. Biswas. Department of Electronic & Electrical Communication Engineering

BME I5000: Biomedical Imaging

What will we learn? Neighborhood processing. Convolution and correlation. Neighborhood processing. Chapter 10 Neighborhood Processing

Image Restoration. Diffusion Denoising Deconvolution Super-resolution Tomographic Reconstruction

Evaluation of Deconvolution Methods for PRISM images

A Comparative Study & Analysis of Image Restoration by Non Blind Technique

SEMI-BLIND IMAGE RESTORATION USING A LOCAL NEURAL APPROACH

AN ALGORITHM FOR BLIND RESTORATION OF BLURRED AND NOISY IMAGES

An Introduc+on to Mathema+cal Image Processing IAS, Park City Mathema2cs Ins2tute, Utah Undergraduate Summer School 2010

Image Restoration by Revised Bayesian-Based Iterative Method

ACCELERATED DUAL GRADIENT-BASED METHODS FOR TOTAL VARIATION IMAGE DENOISING/DEBLURRING PROBLEMS. Donghwan Kim and Jeffrey A.

Thomas Abraham, PhD

CS294-1 Assignment 2 Report

Digital Image Processing. Image Enhancement - Filtering

Image Restoration under Significant Additive Noise

x' = c 1 x + c 2 y + c 3 xy + c 4 y' = c 5 x + c 6 y + c 7 xy + c 8

Biometrics Technology: Image Processing & Pattern Recognition (by Dr. Dickson Tong)

Super-resolution on Text Image Sequences

Iteratively Reweighted Deconvolution and Robust Regression

Iterative Methods for Solving Linear Problems

A fast iterative thresholding algorithm for wavelet-regularized deconvolution

EE795: Computer Vision and Intelligent Systems

Engineering Problem and Goal

Computer Vision 2. SS 18 Dr. Benjamin Guthier Professur für Bildverarbeitung. Computer Vision 2 Dr. Benjamin Guthier

Adaptive Multiple-Frame Image Super- Resolution Based on U-Curve

Image Processing. Traitement d images. Yuliya Tarabalka Tel.

All images are degraded

ADVANCED IMAGE PROCESSING METHODS FOR ULTRASONIC NDE RESEARCH C. H. Chen, University of Massachusetts Dartmouth, N.

Application of Proximal Algorithms to Three Dimensional Deconvolution Microscopy

Digital Image Processing. Chapter 7: Wavelets and Multiresolution Processing ( )

Statistical image models

Image deblurring by multigrid methods. Department of Physics and Mathematics University of Insubria

Image Processing. Filtering. Slide 1

CS1114 Section 8: The Fourier Transform March 13th, 2013

ksa 400 Growth Rate Analysis Routines

PRECONDITIONED CONJUGATE GRADIENT METHOD FOR BOUNDARY ARTIFACT-FREE IMAGE DEBLURRING. Nam-Yong Lee. Bradley J. Lucier. (Communicated by Hao-Min Zhou)

Yunyun Yang, Chunming Li, Chiu-Yen Kao and Stanley Osher. Speaker: Chiu-Yen Kao (Math Department, The Ohio State University) BIRS, Banff, Canada

Block-iterative Richardson-Lucy methods for image deblurring

Algebraic Iterative Methods for Computed Tomography

Louis Fourrier Fabien Gaie Thomas Rolf

Image restoration. Lecture 14. Milan Gavrilovic Centre for Image Analysis Uppsala University

PRECONDITIONED CONJUGATE GRADIENT METHOD FOR BOUNDARY ARTIFACT-FREE IMAGE DEBLURRING. Nam-Yong Lee. and Bradley J. Lucier

MR IMAGE SEGMENTATION

Prof. Feng Liu. Winter /15/2019

Computer Vision I. Announcements. Fourier Tansform. Efficient Implementation. Edge and Corner Detection. CSE252A Lecture 13.

Homework. Gaussian, Bishop 2.3 Non-parametric, Bishop 2.5 Linear regression Pod-cast lecture on-line. Next lectures:

2.161 Signal Processing: Continuous and Discrete Fall 2008

Some Blind Deconvolution Techniques in Image Processing

IMAGE DE-NOISING IN WAVELET DOMAIN

Computer Vision I - Basics of Image Processing Part 1

FMA901F: Machine Learning Lecture 3: Linear Models for Regression. Cristian Sminchisescu

Clustering. Image segmentation, document clustering, protein class discovery, compression

Image Processing

A hybrid GMRES and TV-norm based method for image restoration

CHAPTER-4 LOCALIZATION AND CONTOUR DETECTION OF OPTIC DISK

WEINER FILTER AND SUB-BLOCK DECOMPOSITION BASED IMAGE RESTORATION FOR MEDICAL APPLICATIONS

Applications of Image Filters

Lecture 8 Object Descriptors

Image restoration by deconvolution

Digital Image Restoration

Homework 4: Clustering, Recommenders, Dim. Reduction, ML and Graph Mining (due November 19 th, 2014, 2:30pm, in class hard-copy please)

06: Logistic Regression

STREAMING ALGORITHMS. Tamás Budavári / Johns Hopkins University ANALYSIS OF ASTRONOMY IMAGES & CATALOGS 10/26/2015

Numerical Methods on the Image Processing Problems

An Intuitive Explanation of Fourier Theory

CoE4TN4 Image Processing. Chapter 5 Image Restoration and Reconstruction

Improving Reconstructed Image Quality in a Limited-Angle Positron Emission

Performance Evaluation of Monitoring System Using IP Camera Networks

A Study on Blur Kernel Estimation from Blurred and Noisy Image Pairs

G Practical Magnetic Resonance Imaging II Sackler Institute of Biomedical Sciences New York University School of Medicine. Compressed Sensing

Bayesian Methods in Vision: MAP Estimation, MRFs, Optimization

Clustering Lecture 5: Mixture Model

Note Set 4: Finite Mixture Models and the EM Algorithm

Guided Image Super-Resolution: A New Technique for Photogeometric Super-Resolution in Hybrid 3-D Range Imaging

Wavelet-Based Superresolution in Astronomy

Edge Detection. Announcements. Edge detection. Origin of Edges. Mailing list: you should have received messages

REDUCTION OF CODING ARTIFACTS IN LOW-BIT-RATE VIDEO CODING. Robert L. Stevenson. usually degrade edge information in the original image.

Removing a mixture of Gaussian and impulsive noise using the total variation functional and split Bregman iterative method

Neurophysical Model by Barten and Its Development

Cost Functions in Machine Learning

GENERAL AUTOMATED FLAW DETECTION SCHEME FOR NDE X-RAY IMAGES

Wavelet-Based Superresolution in Astronomy

Digital Image Processing Laboratory: Markov Random Fields and MAP Image Segmentation

MEDICAL IMAGE NOISE REDUCTION AND REGION CONTRAST ENHANCEMENT USING PARTIAL DIFFERENTIAL EQUATIONS

Introduction to Image Super-resolution. Presenter: Kevin Su

Projected Barzilai-Borwein Method with Infeasible Iterates for Nonnegative Least-Squares Image Deblurring

Mobile Camera Based Calculator

Factorization with Missing and Noisy Data

Image restoration. Restoration: Enhancement:

ECE 484 Digital Image Processing Lec 12 - Mid Term Review

Edge detection. Winter in Kraków photographed by Marcin Ryczek

Journal of Engineering Research and Studies E-ISSN

EECS490: Digital Image Processing. Lecture #16

1. Techniques for ill-posed least squares problems. We write throughout this lecture = 2. Consider the following least squares problems:

GRID WARPING IN TOTAL VARIATION IMAGE ENHANCEMENT METHODS. Andrey Nasonov, and Andrey Krylov

On Iterations and Scales of Nonlinear Filters

A New Fast Iterative Blind Deconvolution Algorithm

Transcription:

Image Deconvolution. Mathematics of Imaging. HW3 Jihwan Kim Abstract This homework is to implement image deconvolution methods, especially focused on a ExpectationMaximization(EM) algorithm. Most of this homework is based on Bertero and Boccacci's paper [1] after getting basic understanding of EM [3]. I will also show how image denoising methods can be used with the image deconvolution methods to generate a better result. Discrete Fourier Transform is also well known approach to recover blurred image, but found some limitation with noised image. For all deblurred images shown here, we assume we know the original blurring filter and use the exact same filter to deblurr the images. Introduction Most captured digital image are degraded by blurring and noise and people in the image processing area put much effort to remove the blurring and noise from the true image. Although it is often uncertain what the true image is, we hope to get the best image, which is most likely to produce the detected image. In Statistics, the Maximum Likelihood approach is mostly used. If the detected image g, the PSF (Point Spread Function) h, and the background b are known, the conditional probability density function P g f is a function of f, which we want to get. The paper [1] define the followings. Definition 1 - For a given detected image g the likelihood function is the function of the object f Lg f =P g f defined by: Definition 2 - A ML estimate of the object f is any object f ML which maximize the likelihood function: f ML =arg max f Lg f In all practical application, we define log-likelihood function. J g f = log Lg f terms depending only on g Since this - log function has a minimum point, the non-negative ML estimates are solutions of the problem: f ML =arg minf 0 J g f The Poisson Case. In the Poisson case, the log likelihood function has the following expression based on the reference [1] g n J g f = g n ln Af b n g n Af b n n An iterative method for the computation of the ML solution was proposed by several authors and known as Expectation-Maximization (EM) is as follows:

i) f 0 0 ii) f k 1 =f k T A g Af k b (eq. 1) The Gaussian Case In the Gaussian case, the log likelihood function is given by: 2 2 J g f = g Af b 2= Af g s 2, where g s=g b Although this equation distinguish gs from g, my implementation treats them same because my background 'b' value is 0. Iterative Space Reconstruction Algorithm (ISRA) is: g k 1 = f k AT T s k (eq. 2) i) f 0 0 ii) f A Af Adding Regularization Term From the homework 2, I implemented four different denoising algorithms: H1 regularizations using a Conjugate Gradient and using a Gradient Descendant, Total Variation method, and TV Hybrid Gradient. During this homework 3, I adopted a gradient descent and a TV method to eliminate noise more. From the Poisson case and the Gaussian case, f k 1 is calculated on each iteration. Now, the following equation is used before running the next iteration. Gradient Descendant f k 1 =f k 1 f k 1 f k 1 g (eq. 3) Total variation f k 1 2 f k 1 g (eq. 4) k 1 f For more detail about the above equations, my previous homework or [2] can be referenced. f k 1 =f k 1 dt f k 1 div Fast Fourier Transforms Value of the Fourier Transform of the Least Square solution is F = a inverse FT of G. It means a deblurred image is H G. In matlab, the following equations also eliminate some noises. H [im, in] = size(g); Hf = fft2(h, im, in); f = ifft2((abs(hf) > Threshold).* fft2(g)./hf); (eq. 5) G. For an H image with some noise, a relatively larger threshold value is necessary to eliminate low frequency filter value because low frequency filer value will create huge amplification of the noise. For a blurred image without noise, use a very small threshold value to keep the value of

Testing Results 1. Without Noise Testing filter 1: fspecial('gaussian', 7, 5); Testing filter 2: fspecial('gaussian', 30, 15); Original Image Testing Image 1 Testing Image 2 Using a two different Gaussian filters, the original image is blurred. Larger filter generates wider blurred edges of the square images. From Poisson Test 1 Test 2

Result after 200 After 200/100 After 20/35 iteration Because of convergence pattern, more iteration doesn't always generate better result. Although there is some wiggling intensity on the white square area, edges of the square is well deblurred.

L2 norm 200/100 L2 norm between true image and deblurred image on each iteration shows that the test 1 case converges but the test 2 case doesn't. As a result, test case 1 generates a better image on more, but the test 2 case shows a better result with 35~ 40. From Gaussian Logic Test 1 Result after 200 After 200 Test 2

Similar to the Poisson case, Gaussian equation also recovered blurred image well. Edges get much sharper, but there is some intensity fluctuation on the white square area. L2 norm 200/100 Both cases converge, but the convergence rate is much slower with larger filter size, which causes more blurred Image. 2. With Noise Poisson Case With the testing image, two different filter size is used to blur the image. Then, some Poisson noise is generated to the blurred images. The below results shows the deblurred images and the intensity distribution at the middle (100th) row of the image. For each test case, I also have three different deblurring logic. The first one is the simple deblurring algorithm, and the second and the third one uses a regularization term from a gradient descendant and from a total variation as shown on the second page of this report. For simplicity, I plot the intensity values at 100th row for the three logic and they are shown on the 3rd row of the below results. Test 1 filter: A = fspecial('gaussian', 7, 5); Ib = conv2(double(i), A, 'same'); Ib = uint8(ib); Ibn = imnoise(ib, 'poisson'); Test 2 filter: A = fspecial('gaussian', 30, 15); Ib = conv2(double(i), A, 'same'); Ib = uint8(ib); Ibn = imnoise(ib, 'poisson'); Test 1: Smaller Filter Test 2: Larger Filter

Input Image With Noise Result after 18/40 Result with a TV Regularization. Although there are some remaining noise, much of noise and deblurring were removed. Especially, the boundary edges are well recovered. After 18/40 at 100th row After 18th After 40th Without any regularization term, the middle square area (between 50 ~ 150 on the x axis) has much intensity fluctuation. (True value should be an intensity of 250) Added regularization terms smoothed the fluctuation and also made edge a little sharper.

L2 norm 100 This graph shows a value of L2 norm between a true image and calculated image on each iteration. Without any regularization term, we can see that the process doesn't get converged. With the TV regularization term, the convergence is not also guaranteed. So, the number of iteration needs to be well controlled during the deblurring process. Gaussian Case Test 1 filter: A = fspecial('gaussian', 7, 5); Ib = conv2(double(i), A, 'same'); Ib = uint8(ib); Ibn = imnoise(ib, 'gaussian', 0, 0.01); Test 2 filter: fspecial('gaussian', 30, 15); Ib = conv2(double(i), A, 'same'); Ib = uint8(ib); Ibn = imnoise(ib, 'gaussian', 0, 0.01); Test 1 Result after 23 Test 2

With GD Reg. With GD Reg After 3, 15, 23/ 20, 100, 100 L2 norm 100 Fourier Transforms: Simple square image used for my experiment shows fairly good result when the image is only blurred. When there is some (Gaussian) noise, the recovered image still shows periodic intensity fluctuation. Shown testing image has a simple shape structure. More nature image with much intensity change and several objects on one image was much harder to recover from the noise using the Fourier Transform. Test 1 without Noise Test 1 with Gaussian noise

Input Result From the (eq. 5), a threshold value 0.000000001 is used for the blurred image and 0.2 for the blurredgaussian noise image. By having a threshold value 0.2, all FFT values less than the threshold value become 0. Intensity of the result at 100th row. Result of an noisy image after the FT still has much wiggling intensity values. Conclusion During this homework, I have tried to understand deconvolution methods focused on EM algorithm. Every method shown here works well with blurred image, but the improvement is degraded as an image has some noise. With an noisy-blurred image, the EM works better than other methods.

Disappointing part is that I assume the blurring filter is known. In real world, many trial-error with different filters and parameters will be necessary because we would not know how an image is blurred. For me, it was also a good chance to understand some of Fourier Transform. Reference [1] M. Bertero and P. Boccacci. Image Deconvolution. www.disi.unige.it/person/berterom/paperspdf/asi.pdf [2] Laurent Younes. Mathematical Image Analysis Lecture Note. Johns Hopkins University. [3] Sean Borman. The Expectation Maximization Algorithm - A Short Tutorial. 2006