IMAGE RESTORATION

www.spiroprojects.com


The image degradation process can be modeled by the following equation:

g=H.f+w                                                 (1)

where, H represents a convolution matrix that models the blurring that many imaging systems introduce. For example, camera defocus, motion blur, imperfections of the lenses all can be modeled by H. The vectors g, f, and w represent the observed, the original and the noise images. More specifically, w is a random vector that models the random errors in the observed data. These errors can be due to the electronics used (thermal and shot noise) the recording medium (film grain) or the imaging process (photon noise).
Obtaining f from Eq. (1) is not a straight forward task since in most cases of interest the matrix H is ill-posed. Mathematically this means that certain eigenvalues of this matrix are close to zero, which makes the inversion process very unstable.  For practical purposes this implies that the inverse or the pseudo-inverse solutions

f1=H-1g and f2=(HTΗ)-1ΗΤg                       (2)

amplify the noise and provide useless results. This fact is demonstrated in what follows.
Regularization is one way to avoid the problems due to the ill-posed nature of H. According to regularization instead of minimizing || g – Hf ||2 in order to find f one minimizes:

|| g – Hf ||2 + λ||Qf||2                              (3)

the additional term ||Qf||2 is called regularization term and can be viewed as capturing the properties of the desired solution. In other words, the first term in Eq. (3) stirs the solution f to be “close” to the observed data g while the second term enforces “prior knowledge” to the solution. The prior knowledge that is used is that the image is locally smooth. In most cases Q represents the convolution with a high-pass filter. Thus the term ||Qf||2 can be viewed as the high-pass energy of the restored image. The parameter λ is called regularization parameter and controls the closeness to the data vs. the prior knowledge of the solution. Finding f based on Eq. (3) gives

f3=(HTH+ λQTQ)-1HTg.                                  (4)

Finding the proper value for the parameter λ is an important problem. In the demo that follows one can choose different values of λ and observe the effect to the restored image. A large value of λ results in a smoother image and is necessary if the noise variance is high or H is highly ill-conditioned. On the other hand a large λ blurs out the image details. So one has to decide between smoothness and detail in the solution.
In many practical cases of interest H is not known. For example when taking the photograph of a moving object when the shutter speed and the speed of the object are unknowns. In this case we are faced with the very difficult problem of “blind” image restoration. In such cases we have to utilize prior knowledge in order to somehow recover simultaneously BOTH f and H. There are many different ways to incorporate prior knowledge about the image f and the degradation H in the problem. One of them is using deterministic constraints in the form of CONVEX SETS, ref [4]. Another approach is using stochastic constraints in the form of prior distributions in a Bayesian framework ref. [5].



This is an example of the application of blind deconvolution in an image degraded by UNKNOWN blur.
Notice the plates of the car in this image are not readable.



Restored image obtained by 50 iterations of the algorithm in Ref. [5] above.



Degraded Image by Film-Grain Noise



Restored by adaptive window median filter



Area of interest
 
Previous
Next Post »