(binom. 5). It was found in the experiments that. â« All filters give substantial noise reduction provided optimal selection of the filter parameters. â« In terms of the ...
A Hybrid Transform Method for Image Denoising Ben-Zion Shaick, Leonid Ridel, Leonid Yaroslavsky Dept. of Interdisciplinary Studies, Faculty of Engineering, Tel Aviv University, Tel Aviv 69978, Israel
ABSTRACT Image filtering in moving window in DCT domain has proven its capability in image edge preserving denosing. For the highest noise suppression capability, such a filtering requires, in principle, optimal selection of the size of the moving window for each particular image. In order to overcome this drawback, a combination of signal wavelet expansion (sub band decomposition) and moving window filtering in DCT domain is suggested and experimentally tested on a number on synthetic and real life images.
1. INTRODUCTION Image denoising by means of nonlinear transformation of image representation in transform domain has attracted considerable attention of the researchers. Two advanced methods are moving window filtering in DCT domain ([1,2,7-11]) and wavelet shrinkage ([3-6]). While the former was demonstrated to have certain superiority to the wavelet shrinkage in terms of noise suppression capability and local adaptivity provided appropriate selection of the window size for each image ([12]), wavelet shrinkage is less sensitive to image properties and offers combination of global and local image representation. One way to overcome this drawback of moving window filtering is parallel filtering in multiple moving windows of different size with selection of an appropriate window size or with certain combination of filtering results in different windows for obtaining the best signal estimation at every particular position of the window. This, however, may substantially increase computational complexity of the filtering. In the present paper, another, less computationally expensive alternative is suggested and evaluated by computer simulation, - a hybrid wavelet-DCT representation based method aimed at making use of the advantages of both above methods. 2. MOVING DOMAIN
WINDOW
FILTERING
IN
DCT
Moving window filtering in DCT domain is a variety of space (time)- transform (frequency) signal representation and filtering. In this process, signal is analyzed in a moving window, and in each position of the window its spectrum on a certain basis is computed and then nonlinearly modified to generate, by means of inverse transform, improved estimate of the signal value in the
central pixel of the window ([7-11]). Computationally efficient way of such a modification is scalar filtering described by the relationship: (1) αˆ r = η r β r , where β r - r-th spectral coefficient of the signal spectrum in the window, αˆ r - its estimate, and η r corresponding weight coefficient of the scalar filter. Two known modifications of such a scalar filtering are: β 2 − Thr r (2) η r = max 0 , , 2 βr and 2 (3) η r = sign β r − Thr + 1 / 2 . The first one implements a simplest empirical Wiener filter and is frequently referred to as “Soft” thresholding; the second one is frequently referred to as “Hard” thresholding. As it follows from the theory of empirical Wiener filtering, parameter Thr in these formulas has the order of magnitude of variance of the additive noise. Although moving window filtering can be implemented in any transform domain, using DCT has a number of advantages both in terms of noise suppression capability and computational efficiency ([7-11]). In such a filtering window size is an important filter parameter. As experiments show, optimal window size depends on the image and may vary even within the image. This motivates search for the ways to implement filtering in multiple windows with an appropriate combination of the filtering results. 3. WAVELET SHRINKAGE In distinction to moving window filtering in transform domain, wavelet shrinkage methods ([3-6]) apply the above “Soft” and “Hard” thresholding to sub band decomposed image components as it is shown on block diagram of Fig. 1. Modifying low pass filtering and interpolation procedures one can implement different types of wavelet expansion for the optimization of the processing. Experimental experience shows that wavelet shrinkage, in its noise suppressing capability, underperforms DCT filtering in moving window ([12]). A possible reason is insufficient local adaptation of the wavelet shrinkage. .
Input
Output Soft/Hard thresholding
LowPass filter & down sampling
Interpolation
Interpolation
Soft/Hard thresholding LowPass filter & down sampling
Interpolation
Interpolation
wavelet shrinkage. Each sub band component obtained is then subjected to DCT moving window filtering with size of the window being kept the same for all scales. As one can see, in the hybrid method simple “soft” or “Hard” thresholding of the signal in all scales is substituted by their DCT filtering in moving window. This substitution imitates parallel filtering of the initial image with a set of windows accordingly to the scales selected. For high resolution images, DCT filtering in moving window requires window size 3x3, otherwise the filtering may result in loss of tiny image details. This requirement limits noise suppression capability of the filtering that increases with the window size. In hybrid filtering, when window 3x3 in the first scale is used, in the scale 2 effective window size is 6x6, in the scale 3 it is 9x9 and so on. This potentially may add to the filtering noise suppression capability. Note that in DCT filtering in the window 3x3 only the following four basis function are involved ([11]): 1 1 1 1 1 1 1 1 1
Interpolation
Interpolation
Soft/Hard thresholding
Fig. 1. Block-diagram of wavelet shrinkage 4. HYBRID FILTERING METHOD A combination of multi resolution property of the wavelet shrinkage and local adaptivity of DCT filtering in the hybrid filtering method promises improvement of noise suppression capability of both.
LowPass filter & down sampling
DCT moving Window filtering
−1
−1
−1
−1
−1
− 1
2 + 2 + 2 + 2 ; 2
−1 −2 −1 1 − 2 + 4 − 2 2 − 1 − 2 − 1
Soft/Hard thresholding LowPass filter & down sampling
;
=
+ 2 1 −1 2 − 1
−1 +2 −1
−1
+2
−1
2 − 1 + 2 − 1 2
and
− 1 + 2 − 1
− 1 − 1 − 1 + − 1 + 2 + 2
−1 +2 −1
+ 2 − 1 . − 1
As one can see, second and third functions represent vertical and horizontal Laplacian operators and the last function can be decomposed into a sum of diagonal Laplacians. Therefore, DCT filtering in window 3x3 can be replaced by filtering in the domain of four directional Laplacians. Experimental experience proves that, for high resolution images, such an implementation is advantageous to simple DCT since it produces less filtering artifacts ([11]). Its use in hybrid filtering promises additional advantages because it is equivalent to the corresponding increase of number of effective basis functions. Examples of the effective set, for the input image plane, of these directional Laplacians in four scales are shown in Fig. 3. This implementation was used in the experiments described below.
scale 1 scale 2
Interpolation
Interpolation DCT moving Window filtering
Fig. 2 Hybrid filtering method: one stage According to this method, image is first represented in multiple scales by its sub band decomposition as in the
scale 3 scale 4 Fig. 3 Effective basis functions in multi resolution DCT
5. DESCRIPTION OF EXPERIMENTS AND DISCUSSION
!
For testing the method, modeled images and a number of real life images were used. For all images, Gaussian white noise was added to produce noisy images for the filter input. Three types of filters were tested: moving window DCT filter, wavelet shrinkage filter and the suggested hybrid filter. In the wavelet shrinkage filter, a code of image pyramid from University of Pennsylvania package [13] was used. For all filters, optimal parameters were experimentally found that minimize RMS difference between initial noise free image and the filtered one. For DCT moving window filtering, window size and parameter Thr was optimized. For wavelet shrinkage and hybrid filter, parameters Thr were optimized and the best of the following types of wavelets was chosen: Haar wavelet (“haar”), Binomial coefficient filter (“binom3”, “binom9” and “binom13), Daubechies wavelet (“daub2” and “daub4”) and Symmetric Quadrature Mirror Filters (“qmf5”, “qmf9” and “qmf13”). Table summarizes results obtained for four of 12 test images of 256x256 pixels with 256 quantization level and standard deviation of additive Gaussian noise of 13: a test piece-wise constant image, “Lenna” image, a MRI image and a air photograph. For DCT moving window filtering, optimal window size is shown in brackets. For wavelet shrinkage, the best wavelet filter kernel is indicated in brackets.
!
Table. Standard deviation of the difference between initial noise free and filtered images for different filtering methods (Standard deviation of additive noise is 13) . P-W Lenna Air MRI Filter const. image photo image 8.1 9.4 6.7 8.2 Hard (3 × 3) (3 × 3) (5 × 5) (3 × 3) DCT 7.5 8.6 6.3 7.7 Soft (3 × 3) (5 × 5) (7 × 7) (3 × 3) 9.3 8.5 10.1 8.6 Hard (binom (binom (binom (binom WL5) 5) 5) 5) Shrin 8.4 9.0 7.8 8.1 kage. (binom (qmf13 (binom (binom Soft 5) ) 5) 5) 8.2 6.6 9.4 8.7 Hard (binom (binom (binom (binom 5) 5) 5) 5) Hyb rid 7.5 6.2 8.6 7.9 Soft (binom (binom (binom (binom 5) 5) 5) 5) It was found in the experiments that ! All filters give substantial noise reduction provided optimal selection of the filter parameters.
!
In terms of the variance of the residual filtering error, DCT filtering outperforms wavelet shrinkage while hybrid filtering outperforms both of them. Soft thresholding is always better than hard thresholding both in terms of minimal variance of the residual error and in terms of visual evaluation of image quality. There is quite a noticeable difference between filter performance in terms of image residual distortions. Hybrid filtering provides least visual distortions and artifacts; DCT moving window filtering is slightly though certainly worse and wavelet shrinkage appears to be the worst one.
a
b
c
d
e
f
g
h
Fig. 4: (a) A 64x64 pixel fragment of the test piece wise constant image. (b) fragment of the noisy image, (c,d) DCT filter with hard and soft threshold respectively. (e,f) wavelet shrinkage filter with hard and soft threshold respectively. (g,h) hybrid filter with hard and soft threshold respectively.
a
Filters for Image Processing, Digital Image Processing and Computer Grasphics, Theory and Applications, L. Dimitrov and E. Wenger, Eds., R. Oldenburg, Wien-Muenchen,1991, pp. 374-400
b
c
d
e
[3]
D. L. Donoho, Nonlinear Wavelet Recovery of Signals, Densities, and Indirect and Noisy Data, Proc. Of Applied Mathematics, American Society,1993, pp. 173-205
[4]
D. L. Donoho, I. M. Johnstone, Ideal Spatial Adaptation by Wavelet Shrinkage, Biometrica, 81(3), pp. 425-455, 1994
[5]
R.R. Coifman, D. L. Donoho, TranslationInvariant De-Noising, Wavelet and Statistics, Anestis Antoniadis, ed. Springer Verlag Lecture Notes, 1995
[6]
D.L. Donoho, De-noising by soft thresholding, IEEE Trans. Inf. Theory, 41(3), 613-627, May 1995
[7]
L.P. Yaroslavsky, Local Adaptive Image Restoration and Enhancement with the Use of DFT and DCT in a Running Window, Wavelet Applications in Signal and Image Processing IV, Eds.: M. A. Unser, A. Aldroubi, A.F. Laine, SPIE vol. 2825, pp. 2-11, 1996
[8]
L.P. Yaroslavsky, Local Adaptive Filters for Image Restoration and Enhancement. Int. Conf. on Analysis and Optimization of Systems. Images, Wavelets and PDE's, Paris, June 26-28, 1996, Eds.: M.-O. Berger, R. Deriche, I. Herlin, J. Jaffre, J.-M. Morel, Springer Verlag, Lecture Notes in Control and Information Sciences, 219., 1996, pp. 31-39.
[9]
L. Yaroslavsky and M. Eden, Fundamentals of Digital Optics, Birkhauser, Boston, 1996.
[10]
L. Yaroslavsky, Nonlinear adaptive processing in transform domain, 1997 Workshop on Nonlinear Signal and Processing, Sept. 7-11, 1997, Grand Mckinac Island, Michigan, USA
[11]
L. Yaroslavsky, Local Adaptive Filtering in Transform Domain for Image Restoration, Enhancement and Target Location. Proceedings of SPIE, 6-th Imt. Workshop on Digital Image Processing and Computer Graphics (DIP-97). Applications in Humanities and Natural Sciences, E. Wenger and L. I. Dimitrov, Eds., 20-22 Oct. 1997, Vienna, Austria, SPIE volume 3346, pp. 117.
[12]
R. Oktem, L. Yaroslavsky, K. Egiazarian, "Signal and image denoising in transform domain and wavelet shrinkage: A comparative study", Eusipco'98, Signal Processing IX, Theories and Applications, Island of Rhodes, Greece, 8-11 Sept.
f
g
h
Fig. 5: (a) A fragment of “Lenna” image. (b) corresponding fragment of the noisy image, (c,d) DCT filter output with hard and soft threshold respectively. (e,f) wavelet shrinkage filter output with hard and soft threshold respectively. (g,h) hybrid filter output with hard and soft threshold respectively Some illustrative examples for the different filters are given in Figs. 4-5. 6. REFERENCES [1]
L. Yaroslavsky, Digital Signal Processing in Optics and Holography, Radio I Svyaz’, Moscow, 1987 (In Russian)
[2]
L. P. Yaroslavsky, Linear and Rank Adaptive
Methods for Spectra from Symposia in Mathematical
image IEEE Image Hotel,
1998, v. 4, pp. 2269-2272. [13] ftp://ftp.cis.upenn.edu/pub/eero/matlabPyrTools.tar.gz