Abstract
In this paper we explore the problem of reconstruction of RGB images with additive Gaussian noise. In order to solve this problem we use backward stochastic differential equations. The reconstructed image is characterized by smoothing noisy pixels and at the same time enhancing and sharpening edges. This novel look on the reconstruction is fruitful, gives encouraging results and can be successfully applied to denoising of high ISO images.
Access provided by CONRICYT-eBooks. Download conference paper PDF
Similar content being viewed by others
Keywords
1 Introduction
The backward stochastic differential equations (BSDEs) were introduced by Pardoux and Peng [14] who proved the existence and uniqueness of their adapted solution under suitable assumptions. Independently, Duffie and Epstein [9, 10] considered stochastic differential utilities in economics models, as solution of certain BSDEs. Since then, it has been widely recognized that BSDEs provide a useful framework for formulating many problems in mathematical finance [11]. These equations have also appeared to be useful for problems in stochastic control and differential games [13]. Many papers (for instance [15]) show the connections between BSDEs driven by a diffusion process and solutions of a large class of quasilinear parabolic and elliptic partial differential equations (PDEs). These results may be seen as a generalization of the celebrated Feynman-Kac formula. Through all these results, a formal dictionary between BSDEs and PDEs can be established, which suggests that existence and uniqueness results obtained on the one side should have their counterparts on the other side. In our case, we treat BSDEs as a starting point in the creation of reconstruction model of the noisy image. In our opinion a stochastic description is more intuitive than PDEs description. Moreover in order to solve the BSDE model we use tools of stochastic analysis giving us completely new methodology.
In image processing one can find some practical aspects [1,2,3,4] of BSDE-based applications. In [1] the problem of reconstruction of the noisy chromaticity is considered. Presented model of denoising is expressed in terms of Skorokhod problem associated with the solution of BSDE and an epsilon neighbourhood of two dimensional sphere. In that paper BSDE is driven by a trivial drift function (\(f\equiv 0\)). This means that presented equation is a model of forward filtering and has properties of smoothing filters. In [2] problems of reconstruction of the noisy grayscale image (smoothing filters) and enhancing of the blurred grayscale image (enhancing filters) are presented. Smoothing filter, similarly as in [1], models on anisotropic forward diffusion with BSDEs with \(f\equiv 0\). Enhancing filters presented in [2] are driven by BSDEs with non trivial drift function and correspond to inverse heat equation. This equation is a model of backward filtering (not forward) and in consequence this model fails to edge enhancing of the noisy image. The paper [4] is a generalisation of [2] to images with values in \(\mathbf R^n\). In papers [2, 4] smoothing and enhancing filters were considered as two separable models while in [3] authors proposed the model of image reconstruction using backward stochastic diffusion associated with forward stochastic diffusion. This method combines forward anisotropic filtering in perpendicular to gradient direction and inverse anisotropic filtering in gradient direction, where effects of smoothing, enhancing and sharpening join. The article [3] focuses only on images with values in \(\mathbf {R}^1\) (greyscale images).
In this paper we generalise the results from [3] to \(\mathbf {R}^n\) valued images, in particular to colour images and apply the proposed method to denoising of high ISO images taken from digital cameras.
The paper is constructed as follows. Sections 2 and 3 contain basic ideas of filtering in terms of BSDEs taken from [3]. Section 4 provides new results to reconstruction of colour images. In Sect. 5 we give details of numerical approximation of the proposed method. Finally, in Sect. 6 experimental results to denoising of high ISO images taken from digital cameras are presented.
2 Continuous Model
A general model of the image reconstruction in terms of BSDE is the following [3]:
where \(\xi \) is some random variable which depends on the noisy image \(u_0: \overline{D} \rightarrow \mathbf {R}^n\) and \(\{W_t\}_{t\in [0,T]}\) is two-dimensional Wiener process. \(\{X_t\}_{t\in [0,T]}\) is a stochastic diffusion process with reflection with values in the domain of the image \(\overline{D}\) and is driven by some function \(\sigma \). The function \(\sigma \) is called the diffusion coefficient. The process X characterizes the behaviour of the continuous time stochastic process X as an Itö integral. A heuristic interpretation is that in a small time interval of length \(\sigma \) the stochastic process X changes its value by an amount that is normally distributed with variance \(\sigma (t,X_t)\) and is independent of the past behaviour of the process. This is so because the increments of a Wiener process are independent and normally distributed. The term \(\{K_t^{\overline{D}}\}_{t\in [0,T]}\) is the minimal push needed to keep process X in \(\overline{D}\). \(\{Y_t\}_{t\in [0,T]}\) (the first component of the solution to the BSDE) is a backward stochastic diffusion process with values in the codomain of the image \(\mathbf {R}^n\) and is driven by some function f. \(\{Z_t\}_{t\in [0,T]}\), the second component of the solution to the BSDE determines the measurability of the process Y. The process Y is constructed so that it starts at \(t=T\) until \(t=0\). A drift function f causes the correction of values of Y in expected strength and direction. The value of the process Y at time \(t=0\) is the reconstructed pixel u(x). Note that \(Y_0\) is a deterministic value.
In the case of image processing we have the following interpretation of this BSDE equation. For a fixed pixel x we consider a certain BSDE equation. The values of the process X determines pixels from domain of the image \(\overline{D}\) which we will use in process reconstruction. We can say that this process determines neighbourhood of the pixel x (with irregular shape). The reconstructed value u(x) is the sum of pixels from its neighbourhood multiplied by some weights. The weight values are determined by the process Y, a more specifically by the function f. Appropriate definition of the function f allows as to give weight values (also negative) which depend on direction and distance from reconstructed pixel.
3 Grayscale Images
In [3] the authors proposed the following method of the reconstruction ofgrayscale images:
where \(S<T\),
\(u_{x_i}(y)=\frac{\partial u}{\partial x_i}(y)\) and by \(*\) we denote a convolution operation.
The Eq. (2) is a particular case of (1) for given specific functions \(\sigma \) and f. In this model we deblur in gradient direction from time T to S and smooth out in perpendicular to gradient direction from S to 0. To avoid false detections due to noise, \(u_0\) is convolved with a Gaussian kernel \(G_{\gamma }\) (in practice \(3\times 3\) Gaussian mask). Parameter T defines the size of the neighbourhood used in the reconstruction procedure. The parameter d determines which pixels will be reconstructed with using smoothing model (only in gradient direction) and which with using enhancing model (in gradient and in perpendicular to gradient direction). The parameter c is responsible for effect of sharpening of edges (see Fig. 1).
If reconstructed pixel x belongs to the edge (the condition \(|\nabla (G_{\gamma }*u_0)(x)|\ge d\) is true) the process X has values as in Fig. 2 and we will use pixels along edges (from time 0 to S) and pixels in gradient direction (from time S to T). The final value u(x) is the sum of the pixel given by \(X_S\) multiplied by positive weight and pixels from time S to T multiplied by negative weights. If the condition \(|\nabla (G_{\gamma }*u_0)(x)|\ge d\) is false then we explore only pixels along edges with positive weights and resign from sharpening effect.
4 Vector Valued Images
Now we concentrate on images with values in \(\mathbf R^n\). A very common idea to restore vector-valued images is to use scalar diffusion on each channel of a noisy image. But one may quickly notice that this scheme is useless, since each image channel evolves independently with different smoothing geometries. To avoid this blending effect, the regularization process has to be driven in a common and coherent way for all vector image channels. In order to execute that we use Di Zenzo geometry [7, 8]. Let \(u:D \rightarrow \mathbf R^n\) be a vector valued image and \(x \in D\) be fixed. Consider the function \(F_x: V \rightarrow \mathbf {R}\), \( F_x(v)=\left| \frac{\partial u}{\partial v}(x)\right| ^2, \) where \(V=\{v\in ~\mathbf {R}^2; |v|=~1\}\). We are interested in finding the arguments \(\theta _{+}(u,x), \theta _-(u,x)\) and corresponding values \(\lambda _+(u,x)=F_x(\theta _+(u,x))\), \( \lambda _-(u,x)=F_x(\theta _-(u,x))\) which maximize and minimize the function \(F_x\), respectively. Note that \(F_x\) can be rewritten as \(F_x(v)=F_{x}([v_1,v_2]^T)=v^T\mathbf G(x)v\). In the useful case of colour RGB images \(\mathbf G\) is defined by the following [7]
The interesting point about \(\mathbf G(x)\) is that its positive eigenvalues \(\lambda _{+}(u,x)\),\(\lambda _{-}(u,x)\) are the maximum and the minimum of \(F_x\) while the orthogonal eigenvectors \(\theta _+(u,x) \) and \(\theta _-(u,x)\) are the corresponding variation orientations. Three different choices of vector gradient norms N(u, x) have been proposed in the literature: \(\sqrt{\lambda _+(u,x)}\), \(\sqrt{\lambda _+(u,x) - \lambda _{-}(u,x) }\) and \(\sqrt{\lambda (u,x) + \lambda _{-}(u,x) }\). In this paper we have used \(N(u,x)=\sqrt{\lambda _+(u,x)}\) as a natural extension of the scalar gradient norm viewed as the value of maximum variations.
Replacing in Eq. (2) \(|\nabla (u,x)|\) and \([u_{x_1}(x),u_{x_2}(x)]^T\) by N(u, x) and \(\theta _+(u,x), \theta _{-}(u,x)\) respectively, we obtain the following model for vector-valued images:
where \(S<T\),
In Fig. 3 we can see similar as before results of the reconstruction using (4) for RGB Lenna image and different values of the parameter c. The parameter d depends on the noise of the image, and it can be set as the standard deviation of the noise.
5 Approximation
The following theorem allows us to transition from a continuous model to the discrete model.
Theorem 1
Let \(S<T\), \(u_0:\overline{D} \rightarrow \mathbf R^n\), \(x\in \overline{D}\). Assume that \(f(t,y)=c(t)(y-u_0(X_t))\), \(c(t)=0\) for \(t<S\) and \(\xi = u_0(X_S)\), where X is two-dimensional diffusion process with reflection with values in \(\overline{D}\) and starting from x. If (Y, Z) is a solution to BSDE
then
where
and j is a index of discretisation, such that
and by \(\mathbf {E}\) we denote the expected value.
The coefficients \(a_k\), \(k=j,j+1,...,m-1\) define the weights used in the process reconstruction and satisfy the useful condition \(\sum _{k=j}^{m-1}a_k=1\). The proof of the above theorem is analogous to the proof of Theorem 5.1 in [3]. Repeating arguments from the work [3] and using the above theorem we obtain the following discrete inverse formula for RGB images.
where \(X^a_t(\omega )\) is the value at time t of \(\omega \)-trajectory of the process X starting from a point a.
6 Experimental Results
Measure of quality for our evaluation experiments regarding the new method and other classic methods: total variation [12] and non local means [6] for colour images are presented in Table 1. The results refer to RGB image Lenna corrupted (channels independently) with the Gaussian noise with standard deviation \(\rho \). Noisy images have been reconstructed with vector analysis in RGB space. The maximum values of Peak Signal to Noise Ratio (in short PSNR) is given in the table. The analysis of PSNR measure shows that the new method performs better then PDE approach and is comparable to the method based on non-local similarity of patches.
Note that the type of high ISO noise generated by a typical digital camera sensor can be modelled as an additive white Gaussian distribution with standard deviation proportional to the value of the ISO [5]. In Fig. 4 we present the images taken with high ISO value and the result of the reconstruction using the new algorithm, non local means [6] and total variation [12]. Parameters of all methods were set to the default values as recommended by [3, 6, 12]. It should be noted that we have one unknown parameter: standard deviation of the noise. This parameter is determined from the background of the image and set to 5. Looking (carefully) at the images you can observe that the image created by the new method is visually more sharp and therefore all the details are more visible (see Fig. 4).
7 Conclusion
In this paper we proposed a new method of colour image denoising. The obtained results demonstrate that proposed approach can be used successfully to reconstruction of high ISO images and can provide a good alternative to other methods.
References
Borkowski, D.: Chromaticity denoising using solution to the skorokhod problem. In: Image Processing Based on Partial Differential Equations, pp. 149–161 (2007)
Borkowski, D.: Smoothing, enhancing filters in terms of backward stochastic differential equations. In: Bolc, L., Tadeusiewicz, R., Chmielewski, L.J., Wojciechowski, K. (eds.) ICCVG 2010, pp. 233–240. Springer, Heidelberg (2010)
Borkowski, D.: Forward and backward filtering based on backward stochastic differential equations. Inverse Probl. Imaging 10(2), 305–325 (2016)
Borkowski, D., Jańczak-Borkowska, K.: Application of backward stochastic differential equations to reconstruction of vector-valued images. In: Bolc, L., Tadeusiewicz, R., Chmielewski, L.J., Wojciechowski, K. (eds.) ICCVG 2012, pp. 38–47. Springer, Heidelberg (2012)
Bovik, A.C.: Handbook of Image and Video Processing. Academic Press, Amsterdam (2010)
Buades, A., Coll, B., Morel, J.M.: Non-local means denoising. Image Process. On Line 1, 208–212 (2011)
Deriche, R., Tschumperlé, D.: Diffusion PDE’s on vector-valued images: local approach and geometric viewpoint. IEEE Sig. Process. Mag. 19(5), 16–25 (2002)
Di Zenzo, S.: A note on the gradient of a multi-image. Comput. Vis. Graph. Image Process. 33(1), 116–125 (1986)
Duffie, D., Epstein, L.G.: Asset pricing with stochastic differential utility. Rev. Fin. Stud. 5, 411–436 (1992)
Duffie, D., Epstein, L.G.: Stochastic differential utility. Econometrica 60, 353–394 (1992)
El Karoui, N., Peng, S., Quenez, M.C.: Backward stochastic differential equations in finance. Math. Fin. 7(1), 1–71 (1997)
Getreuer, P.: Rudin-osher-fatemi total variation denoising using split bregman. Image Process. On Line 2, 74–95 (2012)
Hamadene, S., Lepeltier, J.P.: Zero-sum stochastic differential games and backward equations. Syst. Control Lett. 24(4), 259–263 (1995)
Pardoux, E., Peng, S.: Adapted solution of a backward stochastic differential equation. Syst. Control Lett. 14(1), 55–61 (1990)
Pardoux, E., Tang, S.: Forward-backward stochastic differential equations and quasilinear parabolic pdes. Probab. Theory Relat. Fields 114(2), 123–150 (1999)
Acknowledgements
This research was supported by the National Science Centre (Poland) under decision number DEC-2012/07/D/ST6/02534.
Author information
Authors and Affiliations
Corresponding author
Editor information
Editors and Affiliations
Rights and permissions
Copyright information
© 2018 Springer International Publishing AG
About this paper
Cite this paper
Borkowski, D., Jańczak-Borkowska, K. (2018). Image Denoising Using Backward Stochastic Differential Equations. In: Gruca, A., Czachórski, T., Harezlak, K., Kozielski, S., Piotrowska, A. (eds) Man-Machine Interactions 5. ICMMI 2017. Advances in Intelligent Systems and Computing, vol 659. Springer, Cham. https://doi.org/10.1007/978-3-319-67792-7_19
Download citation
DOI: https://doi.org/10.1007/978-3-319-67792-7_19
Published:
Publisher Name: Springer, Cham
Print ISBN: 978-3-319-67791-0
Online ISBN: 978-3-319-67792-7
eBook Packages: EngineeringEngineering (R0)