Abstract

A new method for the reconstruction of blurred digital images damaged by separable motion blur is established. The main attribute of the method is based on multiple applications of the least squares solutions of certain matrix equations which define the separable motion blur in conjunction with known image deconvolution techniques. The key feature of the proposed algorithms is reflected in the fact that they can be used only in symbiosis with other image restoration algorithms.

1. Introduction

In practice, the recorded image unavoidably represents a degraded version of the original scene because of inevitable imperfections in the imaging and capturing process. Medical images, satellite images, astronomical images, or poor-quality family portraits are often blurred. A wide range of different degradations need to be taken into account, covering, for instance, noise, blur, illumination, and color imperfections, and geometrical degradations. The elimination of these imperfections is crucial in various tasks of image processing and image analysis. Image restoration methods are used for reconstructing the original image from a degraded model. The problem of image restoration has been studied in many articles and books [17].

The application of the least squares solutions in image processing (and in image restoration particularly) is not frequently investigated so far. An application of the least square techniques in image processing is presented in [8]. Removal of blur in images based on the least squares solutions is investigated in [9, 10]. Particularly, an application of the least squares solution of minimal norm in image deblurring is investigated in [1113]. Our main intention in this paper is further investigation and extension of the algorithms introduced in [9, 10] that allows us to remove a linear or separable motion blur from images. The algorithms presented in these papers are based on the least squares solution of a matrix equation which represents the mathematical model of the linear or separable motion blur. The least squares solution, denoted by , includes the Moore-Penrose inverse of the blurring matrix as well as an arbitrary matrix . The particular least squares solution, based on the Moore-Penrose inverse, was investigated in [1113].

The main goal of this paper is the development of an algorithm that allows us to remove a motion blur from images by means of the consecutive applications of the least squares solutions of a matrix equation which models the separable two-dimensional blurring process. The least squares solutions are matrix expressions that include the Moore-Penrose inverse of the blurring matrix as well as an appropriately chosen arbitrary matrix. The matrix transformation defined in this way is idempotent (see [9, 10]). This difficulty forces us to find the way to manage consecutive applications of the least squares solutions from [9, 10]. Significant improvements in ISNR and PSNR values are attained applying such an approach with respect to the classical approach based on the Moore-Penrose solution of certain matrix equations, which is investigated in [11, 12], as well as with respect to a single application of the least squares solutions, used in [9, 10].

The paper is organized as follows. Motivation and description of the method are presented in the second section. The main algorithm which enables the iterative application of the least squares solution on images damaged by a separable motion blur is also presented in the second section, as well as the application of the method on blurred and noisy images. Results generated by performed numerical experiments are investigated in Section 3.

2. Motivation and Description of the Method

The process of the separable blurring assumes that the blurring of the columns in the image is independent of the blurring of the rows. The separable blurring is modeled by two blurring matrices, and , both of the general form where , , are real numbers and the positive integer indicates the length of linear motion blur in pixels. The relation between the original image and blurred image is expressed by the following matrix equation, considered in [10]: In (2), it is assumed that , , where (resp., ) is the length of the horizontal (resp., vertical) blurring in pixels.

Our approach provides a new method for restoration of a blurred image which is based on multiple applications of the least squares solutions of the matrix equations (2) in symbiosis with other well-known image deblurring techniques. In general, the proposed algorithm is aimed at solving the matrix equation (2).

The least squares solution of (2) has the general form (used in [10]) where is an arbitrary matrix of appropriate dimensions.

The transformation can be used as a deconvolution of a blurred image . The blurred image , used in (3), can be determined in different ways. There are no specific conditions for that; any random matrix can be transformed into . Continuing investigations from [9, 10], appropriate choices for are chosen as the results of particular image deblurring processes; that is, is an arbitrary restoration of the degraded image. In that case, is an attempt to derive further improvements in the restoration of .

In the case , where is the zero matrix of appropriate dimensions, produces the next approximation of the original image : The approach which assumes the condition in (3) exploits the Moore-Penrose solution of the matrix equation (2), that is, the least squares solution of minimal norm. About the least squares and minimal norm properties of the Moore-Penrose solution, see main references [14, 15]. But the minimal norm attribute associated with the Moore-Penrose solution may be, in most of cases, only the redundant property. Indeed, our experience from [9, 10] confirms that only when the matrix is selected to be “far” from the original image, the improvement of is still worse with respect to the Moore-Penrose reconstruction (corresponding to the case ). Some of the examples that confirm this expectation are studied in [9, 10]. We follow the main goal of the papers [9, 10]; that is, we will determine in such a way that the approximation produces better values for ISNR and PSNR with respect to the solution which is used in [11, 12].

Except the election , the results generated by applying the Wiener filter (WF) and the constrained least-squares (CLS) filter are used as two appropriate choices of the matrix in [9, 10]. A description of the WF and CLS filters can be found in [2]. A more advanced approach for the selection of the matrix is based on the moment based methods. The Haar basis and the Fourier basis mentioned above are usually referred to as the most popular moment based methods. This approach is considered in [10]. For more details on the Fourier and the Haar basis, see [9, 12]. An algorithm for image deconvolution from the geometric moments of an image which is degraded by a circular or elliptical Gaussian point-spread function is considered in [16]. For additional information on the moment based image reconstruction methods, the reader is referred to [1620]. A short preview of main image restoration methods, used for obtaining possible reconstructions , is presented in [10]. A detailed description of these methods can be found in [13]. A recent survey book presenting all the modern image reconstruction methods is given in [21].

Our improvement of the methods defined in [9, 10] arises from our intention to apply the operator repeatedly. But the authors in [9] showed that the operator is idempotent, which implies . This property of the operator makes its application on redundant. In the present paper, we find a possibility for multiple applications of the operator . The main idea is to use instead of , where denotes the application of a previously defined image deconvolution algorithm in the th iteration.

Let us denote by the reconstructed image after steps. The following approximations for further restorations are considered:(a) is derived applying the Haar based reconstructed image for selected , ;(b) is derived applying the Fourier based reconstructed image for selected ;(c) is derived applying the constrained least-squares filter;(d), derived applying the Wiener filter;(e), derived applying the Lucy-Richardson algorithm.

On the other hand, an improper and unpredictable behavior of is observed in [9, 10]. Namely, to some extent, a better improvement implies better restoration , which is confirmed by the inequality . But, after the occurrence of a limit, which is not known in advance, the opposite situation () is observed.

One of the possible ways to achieve multiple applications of the operator is its alternating application with another image restoration method, as it is described in Algorithm 1.

Algorithm 1 (iterative application of the operator ). Consider the following.
Require , where denotes a blurred image.(1)Initial step is (2)Set the number of the iterative steps to initial value .(3)Compute where .(4)If a selected stopping criterion is fulfilled set and go to Step (3).(5)If the stopping criterion is fulfilled return the output .

Remark 2. Iterations (6) should provide two improvements in the reconstruction, in each iteration, as follows:(i)the first improvement is , which gives a restoration of the previous iteration by means of an image restoration method ;(ii)the second improvement arises from , which gives further reconstruction of by means of the least squares solution .

Remark 3. The choice of the stopping criterion in Step (4) of Algorithm 1 is, at this moment, an undeterminable problem.(i)One possible choice is to stop the cycle when the inequality is satisfied.(ii)But this choice may cause blocking of (possible) improvements in further steps.For this purpose, it seems that the terminating criterion defined by an in advance defined number of iterative steps is a better choice. In our numerical experiments, we will use this stopping criterion.(iii)Also, it is reasonable to stop the cycle in Step (4) when the inequality is satisfied several times consecutively.

Remark 4. Essentially, iterations in (6) are based on the least squares solution of the dynamical matrix equation The model (7) essentially means that the iteration is considered as a “blurred image” of the next (unknown) iteration . After resolving (7) with respect to the unknown matrix , we derive the next iteration in terms of the current iteration and the pseudoinverses of the blurring matrices and .

Remark 5. The authors of the papers [9, 10] have computed , where is an image restoration method, and simply compared with . The main advantage of the proposed Algorithm 1 is that it makes repetitive use of the operator in symbiosis with selected deblurring methods on the blurred image and its reconstructions. Since the operator is idempotent, Algorithm 1 defines an approach to improve the results obtained in [9, 10] by the multiple application of the (deblurring) transformation .

2.1. Repetitive Least Squares Image Deblurring and Denoising

Noise is unavoidable in most of applications, so that a real observation is thus often modeled by the following mathematical model: where is additive noise and is the blurred noisy image.

Algorithm 6 can be adopted to restore the original image from a blurred and noisy image, using the least squares solution of the mathematical model (8).

Algorithm 6 (iterative application of the operator on blurred and noisy image). Consider the following.
Require , where denotes a blurred noisy image.(1)Initial step is (2)Obtain the restored image by applying filtering process on the image obtained in Step (1).(3)Set .(4)Compute where .(5)Obtain the restored image by applying filtering process on the image obtained in Step (4).(6)If a selected stopping criterion is fulfilled, set and return to Step (4).(7)If the stopping criterion is fulfilled then return the output .

3. Experimental Results

In this section, we investigate the numerical results generated by applying the two proposed algorithms. The experiments are performed using Matlab programming language on an Intel Core i5 CPU M430 @ 2.27 GHz 64/32-bit system with 4 GB of RAM memory running on Windows 7 Ultimate Operating System.

3.1. Application of the Method on Blurred Images

Example 7. In order to emphasize the importance of the number of iterative steps in Algorithm 1, the number of moments in Figures 1(a) and 1(b) was kept constant with . The length of blurring is . The reconstructions obtained by the Haar basis (resp., Fourier transform) are denoted by (resp., ).
Both the graphs represented in Figures 1(a) and 1(b) show a similar behavior. In fact, the ISNR and PSNR values increase initially and then converge, slowly growing, to a constant value. Also, both ISNR and PSNR values generated by applying on Fourier basis are greater (better) with respect to the corresponding values generated by applying on the Haar basis.
Also, the graphs in Figures 1(a) and 1(b) show that in advance the predefined number of iterative steps is a suitable termination criterion of Algorithm 1.

Example 8. This example shows the behavior of Algorithm 1 with respect to the length of blurring. Therefore, the number of iterative steps remains constant while the length of blurring in Step (1) increases in the range . In order to compare generated results, we tested Algorithm 1 on several standard Matlab images: Lena, Barbara, Man, Boat, and Cameraman. The best ISNR (resp., PSNR) values versus the length of the blurring process for Lena image, generated after steps of Algorithm 1, are illustrated in Figure 2(a) (resp., Figure 2(b)). In general, both ISNR and PSNR values stepwise decrease with increasing the length of blurring. Let us mention that the values corresponding to the constrained least-squares (CLS) filter are not included in these graphs, since they are almost identical with the values corresponding to Wiener filter (WF). Notations (resp., ) in Figure 2 mean the maximal ISNR values generated after iterative steps of Algorithm 1 using (resp. ), . The same notations in Figure 2(b) denote the corresponding PSNR values.
Figure 2(a) (resp., Figure 2(b)) shows that and achieve the greatest ISNR (resp., PSNR) values for the length of blurring satisfying . Notation denotes the result derived after a single application of the least squares operator , that is, the restoration given by applying only Step (1) of Algorithm 1. It can be observed that both ISNR and PSNR values corresponding to behave in a similar way as the corresponding restorations derived by applying the Moore-Penrose solution (4).
The results of and values corresponding to Barbara and Cameraman images are presented in Figures 3 and 4. The graphs presented in these figures are similar with the graphs presented in Figures 2(a) and 2(b).

Example 9. Figure 5 shows maximal ISNR and the PSNR values for various moments indices , from the values to with the incremental Step (5), keeping the blurring process constant with the length and applying steps of Algorithm 1.
Generally, an insignificant and stepwise increase of ISNR and PSNR values can be observed. The graphs included in Figure 5 confirm that the improvement of the restoration which is based on increasing the number of moments is insignificant compared to the increase in numerical demands, and, therefore, it is not cost-effective.

Example 10. The tested image Lena is shown in Figure 6(a). The blurred image that has been degraded by a uniform linear motion in the horizontal direction is presented in Figure 6(b).
Figure 6(c) illustrates the restoration based on (4) (introduced in [11, 12]) and Figure 6(d) illustrates the restoration based on a single application of the operator (the number of iterations is ). Differences in Figures 6(c) and 6(d) are not observable by a human eye. This observation exactly means that a single application of the least squares solution does not produce significantly better results compared with the corresponding results obtained by the Moore-Penrose inverse solution.
Figures 7(a) and 7(b) present restorations derived applying, respectively, and times the least squares operator in conjunction with the Haar basis restoration determined by the basis . The length of blurring is equal to . Figures 7(c) and 7(d) show restorations derived after and applications of the least squares operator in conjunction with the Fourier basis restoration with basis . The length of blurring is .
From Figure 7, one can observe that better restorations are derived applying a greater number of iterations, in both cases (Haar and Fourier basis).
Figures 8 and 9 show the restorations corresponding to the Barbara image. Observation is the same as in the case of Figure 7.

3.2. Application of the Method on Blurred and Noisy Images

The next examples refer to the case when the image is degraded by including image noise which is later followed by a separable motion blur, as it is presented in Section 2.1.

Example 11. The behavior of Algorithm 6 with respect to length of blurring and different types of noise is presented in this example. The changes of the ISNR and PSNR values corresponding to the degraded image of Lena are graphically presented in Figures 10(a) and 10(b). It is possible to use different types of filters, subject to different types of noise. A Gaussian low-pass filter is imposed in this example. Maximal ISNR values generated after steps of Algorithm 6 versus length of blurring for Lena image are presented in Figure 10(a). The “salt and paper” noise of density is imposed in addition to the separable motion blur.
Maximal PSNR values versus length of blurring after 40 steps of Algorithm 6 for Lena image are illustrated in Figure 10(b). The Gaussian white noise of mean and variance is assumed.
All graphs included in Figure 10(a) (resp., Figure 10(b)) show similar behavior with respect to the graphs included in Figure 2(a) (resp., Figure 2(b)). The graphs corresponding to and both achieve the greatest ISNR (resp., PSNR) values for the length of blurring satisfying . It can be, again, observed that both ISNR and PSNR values derived applying behave in a similar way as the corresponding restorations generated by the Moore-Penrose inverse solution. Clearly, WF and LR algorithms show the worst performances in symbiosis with Algorithm 6.
Confirmation of our results is presented in Figures 11 and 12 for the “salt and paper” noise of density , as well as in Figures 13 and 14 for the Gaussian white noise of mean and the variance .

Example 12. The tested image Lena with added “salt and paper” noise with noise density of is shown in Figure 15(a). The image that has been additionally degraded by a uniform horizontal linear motion of length is presented in Figure 15(b).
Figure 16(a) illustrates restoration based on the Wiener filter, Figure 16(b) illustrates restoration generated by the Lucy-Richardson algorithm, and Figure 16(c) is the restoration defined by the Moore-Penrose solution (4).
The differences in Figures 16(a) and 16(b) as opposed to Figure 16(c) are visible by a human eye. In addition, the Moore-Penrose inverse approach achieves a better restoration than the WF and LR algorithms.
Figures 17(a) and 17(b) present restorations derived applying times the least squares operator in conjunction with the Haar and Fourier basis restoration with the basis , respectively. The length of blurring is again equal to .
The conclusion in this example is that the better restoration is gained by using the Haar and Fourier basis (Figure 17) compared to the methods used in Figure 16 and that the improvement is observable by the human eye.
Visual confirmation of the previous conclusion is also observable from Figures 18, 19, 20, and 21.

Example 13. In this example, the previously exploited methods are tested on images degraded by different types of noise. The tested image Lena with added Gaussian white noise of mean and variance is presented in Figure 22(a) and blurred noisy image that has been degraded by a uniform linear horizontal motion of length is presented in Figure 22(b).
Accordingly, a rotationally symmetric Gaussian low-pass filter of size with standard deviation is used for filtering. Restorations of Figure 22(b) based on the Wiener filter are illustrated in Figure 23(a). Figure 23(b) illustrates the restoration based on the Lucy-Richardson algorithm and Figure 23(c) illustrates the restoration based on the Moore-Penrose inverse.
Restoration of Figure 22(b) based on applications of the least squares solution in symbiosis with the Haar and Fourier basis is presented in Figures 24(a) and 24(b), respectively. It is observable that these restorations are more efficient than the restorations illustrated in Figure 23.
Confirmation of the previous conclusion (corresponding to Lena image) is also valid for Figures 25, 26, 27, and 28.

3.3. Application of the Method on Gaussian Blurred and Noisy Images

We also paid consideration to Gaussian blurring function, because it models the blurring that is caused by atmospheric turbulence, out-of-focus, and motion of the camera [22]. The vector in Gaussian blur model is equal to where , , , and the parameter represents the width of the blurring function.

Example 14. In this example, we illustrate the results for different images when the Gaussian blur is present. The ISNR and PSNR values in case of Gaussian blur are shown in Figures 29 and 30.
Figures 31 and 32 show the results for the Lena image.
The results for the Man image are shown on Figures 33 and 34.

Example 15. The results of ISNR and PSNR in the case of Gaussian blur and Gaussian noise are presented in Figures 35 and 36.

4. Conclusion

In [9, 10], it was shown that the application of the least squares solutions of matrix equations is a very useful tool in the image deblurring process. Our tendency in the present paper is to ensure an iterative application of these least squares solutions. The presented numerical examples and figures illustrate that both the ISNR and PSNR values increase using successive applications of the proposed operator .

It is clear that the proposed application of the least squares solutions of the matrix equation which models the blurring process is applicable only in symbiosis with other methods of image deconvolution. The least squares solution can be used as an improvement of other image deconvolution methods. This symbiosis is exploited in Step (3) of Algorithm 1. Iterative application of the least squares solution on blurred and noisy images is achieved in Algorithm 6 in symbiosis with other well-known methods for image deconvolution and a selected filtering process.

Conflict of Interests

The authors declare that there is no conflict of interests regarding the publication of this paper.

Acknowledgments

Predrag S. Stanimirović gratefully acknowledges support from the Research Project no. 174013 of the Serbian Ministry of Science. Predrag S. Stanimirović and Igor Stojanović gratefully acknowledge support from the Project “Applying Direct Methods for Digital Image Restoring” of the Goce Delčev University.