Keywords

1 Introduction

Noise in digital images is unavoidable in all imaging modalities as the instrumentation facilities and the environmental factors in which the images captured interfere with the internal attributes of the image [4]. All noise types either multiplicative or additive in nature conduce for the degradation of the image almost in all cases. Due to the prevalence of modern imaging facilities it becomes essential to limit or remove the noise signals present in it. In this study the efficiency of the noise elimination scheme using a two dimensional Finite Impulse Response filter based on Particle Swarm Optimization algorithm together with a median filter for removing additive and multiplicative noise present in the image is studied and the ability to recover its noiseless form is discussed. The preliminary step to identify the noise present in the image is to analyze the histogram. The basic difference between the additive and multiplicative noise is that, assume a variable x(t) following a stochastic differential equation. If the corresponding random term in the stochastic differential equation of a variable x(t) does not reckon on the state of the system x(t), we call it additive noise. If the random term in the stochastic differential equation depends on the state of the system x(t), then the noise is assumed to be multiplicative in nature. The goal for a denoising filter consists of suppressing the noise while preserving all the useful features such as edges and textural features. In conventional filters the removal of additive and multiplicative noise will result in the blurring and distorted features in the filtered image. The use of population based optimization techniques eliminates the need of performing local statistics and diffusion based methods that was computationally high [9, 13]. Optimization techniques do not have the need to have prior knowledge about the amount of noise present.

2 Previous Works

Hitherto more number of studies have been performed on image denoising in the literature. Denoising process in wavelet domain and frequency domain requires optimal threshold and cut-off frequency as their basic components. A few important and recent notable works in the denoising field is discussed in this section. Ratha Jeyalakshmi and Ramar used to modify the morphological image filtering algorithm with arbitrary structuring elements for speckle reduction [10]. Andria and his team produced a denoising scheme using simlet 5 mother function, which are filtered with linear phase. It also involves processing of horizontal, vertical, diagonal and approximation denoised images [2]. Behrenbruch reviewed filtering approaches on the post processing scenario that clarifies the misconception in filtering techniques [4]. Vikrant Bhateja and his team modified the diffusion equation of Perona and Malik by replacing the diffusion coefficient with a non-linear function of coefficient of variations. Noise reduction is achieved in his work by summing up the weighted Laplacian images [16]. In another work Vikrant Bhateja and his research group suppressed the noise content by processing the non-homogenous regions with the application of modified average filtering templates on it [17]. Team of members headed by Nagashettappa Biradar combined fuzzy filters with triangular membership function and conventional SRAD filter in homomorphic domain and non-homomorphic domain for noise reduction [5]. Fatma Latifoglu used artificial bee colony optimization algorithm for determining the optimal co-efficients of the 2D FIR filter [11]. Gupta used soft thresholding process and multiscale decomposition for denoising that is computationally hard [7].

3 Two Dimensional FIR Filter

Two dimensional FIR filter is used for image processing in various applications. Two dimensional Finite Impulse Response filter was always characterized by their filter coefficients h(mn) [6, 8]. The frequency response of the 2D Filter is therefore given by Eq. (1).

$$\begin{aligned} H(\omega _u,\omega _v) = \sum _{m=-M}^M\sum _{n=-N}^N h(m,n) e^{-j(m\omega _u+n\omega _v)} \end{aligned}$$
(1)

where \(\omega _u = \frac{2\varPi u}{M}\) and \(\omega _v = \frac{2\varPi v}{N}\).

In this equation h(mn) were the filter coefficients which will be found iteratively with the help of optimization algorithm. The stability condition of a two dimensional filter is given in the following Eq. (2).

$$\begin{aligned} \sum _{m=-x}^X\sum _{n=-x}^X |h(m,n)|<X \end{aligned}$$
(2)

where X is the number of elements from the origin in the mask size of the filter coefficients. In this study the effect of filter coefficients with appropriate zero locations in the complex plane produced using particle swarm optimization algorithm is analyzed for suppression of Gaussian and speckle noise present in images.

4 Median Filter

Median filter is one of the conventional filters that is extensively used in the spatial filtering process due to its non-linear property. It is widely used in image processing algorithm with the intention of noise reduction and in pre-processing [12]. The process of median filtering is accomplished by placing median of a window as a value instead of its original value. While calculating the median value the following procedure is adopted. All the values in the mask will be sorted in numerical order and the middle value in the sorted order will be considered as the value to be replaced. Thus the property of median filter is achieved.

5 Additive and Multiplicative Noise in Images

5.1 Additive Noise

Gaussian Noise. A probability density function (PDF) of the Gaussian noise will resemble the normal distribution. Thus the noise value are Gaussian distributive in nature. The prime cause of Gaussian noise in images occurs during capture e.g. noise due to improper illumination and/or due to abrupt changes in temperature, and/or during transmission e.g. noise of electronic circuit. Most commonly Gaussian noise can be suppressed using a spatial filtering approach, despite the smoothing of image, an unwanted outcome may end up in the blurring of edges and details as they will be processed in the task of blocking high frequencies. Traditional spatial filtering approach for noise reduction comprises: mean filtering technique, median filtering technique and Gaussian smoothing technique for a random variable z its probability density function P is given by Eq. (3).

$$\begin{aligned} P_G (Z)=\frac{1}{\sigma \sqrt{2\pi }}e^{-\frac{(z-\mu )^2}{2\sigma ^2}} \end{aligned}$$
(3)

where Z is the gray level present in the image, \(\mu \) and \(\sigma \) are the mean and standard deviation respectively.

Salt and Pepper Noise. An image is considered to be getting exposed to salt and pepper noise only if it has random occurrences of white and black pixels. It is observed that over heated imaging components may cause salt and pepper noise.

5.2 Multiplicative Noise

Speckle Noise. Images that are formed with coherent energy sources and imaging systems impose a serious threat of speckle noise. It is often termed as dominant multiplicative noise. Removing speckle noise becomes harder as its intensity varies with the image intensity [14]. Speckle noise in rare cases may contain useful texture information. As speckle noise is multiplicative in nature it is modeled only with the random value multiplications as given in Eq. (4).

$$\begin{aligned} J=I+n*I \end{aligned}$$
(4)

where J is the speckle affected image, I is noiseless input image and n is the noisy image of variance v.

6 Particle Swarm Optimization

Optimization is the process of finding the best available values from the input values [13]. Particle Swarm Optimization is a mathematical modelling of social behavior of certain animals within their team. Particle Swarm Optimization is often preferred for its robustness in finding the global best location of particles [1]. For a iteration l the velocity of the particle i is calculated by sum of global best solution \(g_{best}\), its current best value \(p_{best}\) and its current velocity \(v^l\). Considering \(v_i^{l=0} = 0\) the new velocity vector is calculated by the Eq. (5).

$$\begin{aligned} v_{i}^l+1 = W * v_{i}^l + \alpha * C_1* [g_{best}^i - x_{i}^l] + \beta * C_2 * [p_{best}^i - x_{i}^l] \end{aligned}$$
(5)

The tradeoff between \(p_{best}\) and \(g_{best}\) is controlled by W the inertial weight parameter. The relative attraction between \(p_{best}\) and \(g_{best}\) is indicated by \(C_1\) and \(C_2\). \(\alpha \) and \(\beta \) are random values between 0 and 1. The new position is calculated as

$$\begin{aligned} x_{i}^{l+1} = x_{i}^{l}+ v_{i}^{l+1} \end{aligned}$$
(6)

The range of \(v_i\) lies between \([v_{min}, v_{max}]\). When the new position is calculated the particle will shift to it and at the last iteration the \(g_{best}\) becomes the optimal solution found.

7 Design Formulation

In the given scheme two image signals were used on the input side such as the noiseless image \(I_{org}(n)\) and \(I_{noisy}(n)\) is the noisy image contaminated by either additive and multiplicative noise. The 2D FIR filter system with optimization using Particle Swarm Optimization together with median filter will produce the denoised image. The objective of the optimization process is to reduce the Mean Square Error value that results as a difference between noisy image and 2D FIR filter output [11] as shown in Fig. 1.

Fig. 1.
figure 1

Proposed denoising scheme.

Coefficients of filter were adjusted by minimization of the Mean Square Error value between filter output and \(I_{org}(n)\) and is given as

$$\begin{aligned} MSE = \frac{1}{KL}\sum _{k=0}^{K-1}\sum _{l=0}^{L-1} [I_{org}(k,l) - I_{Noisy}(k,l)]^2 \end{aligned}$$
(7)

In this proposed methodology, Particle Swarm Optimization is used in finding optimal coefficients. The steps of PSO based 2D-FIR are given below

  1. 1.

    Set the number of population(window size of filter), learning parameter (C1, C2).

  2. 2.

    Generate the swarm with the condition given in Eq. (2).

  3. 3.

    Update the variables \(p_{best}\) and \(g_{best}\) at the current iteration based upon the fitness function The fitness function for this problem is given is given in Eq. (7).

  4. 4.

    Generate new \(p_{best}\) and \(g_{best}\) (values) with fitness values and compute the velocity and position using Eq. (5).

  5. 5.

    Look up for the termination condition and repeat steps 3–5 till the optimum value of \(g_{best}\) is reached or upto the termination condition (Number of iterations is set as 100 in this case).

8 Results and Discussion

The simulated test image, as shown in Fig. 2 in its JPG format with \(128\,\times \,28\) pixels was used in the experiments. For its noisy version the standard image is corrupted with additive and multiplicative noise at different noise level and it is shown in Fig. 3. Consciously degrading an image with noise will allow us to validate the effectiveness of an image denoising operator to noise and assess its performance as shown in Tables 1, 3 and 4.

Fig. 2.
figure 2

Simulated image

Fig. 3.
figure 3

Noised form of simulated image

Table 1. 3\(\,\times \,\)3 Mask
Fig. 4.
figure 4

Denoised form of simulated image

Table 2. Quality metrics
Table 3. 5\(\,\times \,\)5 Mask
Table 4. 7\(\,\times \,\)7 Mask

It can be seen that from Fig. 4 the amount of the additive and multiplicative noise is reduced on the application of the proposed denoising scheme and the visualization of the filtered images is also improved to a great extent when compared with the noisy form in Fig. 3. The quality of the denoised images were evaluated by standard metrics such as Peak Signal to Noise ratio (PSNR) [8], Mean square error (MSE) [3], Structural Content (SC) [15] and Equivalent Number of Looks (ENL) [18]. It is evident that there is very less blurring in the filtered image with 3\(\,\times \,\)3 window mask and the value of quality metrics for different window size supports the aforementioned fact. The limit on window size reduces the computational complexity as well as effect of blurring in the resultant images. The obtained results are above compromising level even at high noise densities without much iterative application of the filtering algorithm. It is seen from Table 2, that the coefficients for 3\(\,\times \,\)3 mask performs well in the following hierarchy of removing noise, it efficiently removes salt and pepper noise in the images, whereas the ability to remove the speckle content and salt and pepper noise content in the images was relatively low. The effect of increasing window size is also clearly illustrated in Table 2. It is clearly seen with the augumentation in window size the quality of the image decreases which is clearly illustrated in Table 2. Thus the 3\(\,\times \,\)3 mask can be preferred for denoising applications such as Ultrasound Images, SAR Images etc.

9 Conclusion

We have proposed a optimization based filtering technique for image denoising process. In this proposed denoising technique, the qualitative and quantitative aspect of filtering are discussed. It is clearly realized that the filter coefficients produced by the mask size 3 is more suited in purging salt and pepper noise, whereas the same values when applied for removing speckle noise and Gaussian noise performs relatively low. The performance of the optimization based filtering technique was illustrated with efficient quality indicators. Hence the proposed optimization technique based FIR filter can be used for noise elimination process. Future work includes the development of noise elimination schemes using different meta-heuristic optimization algorithms. Filter coefficients that can suppress both the additive and multiplicative noise can also be a future work.