Next Article in Journal
Ontological Problem-Solving Framework for Dynamically Configuring Sensor Systems and Algorithms
Next Article in Special Issue
Applying Rprop Neural Network for the Prediction of the Mobile Station Location
Previous Article in Journal
Delaunay Triangulation as a New Coverage Measurement Method in Wireless Sensor Network
Previous Article in Special Issue
Adaptive Sampling for Learning Gaussian Processes Using Mobile Sensor Networks
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Adaptive Marginal Median Filter for Colour Images

Instituto Universitario de Matemàtica Puray Aplicada, Universidad Politécnica de Valencia, Camino de Vera s/n, 46022 Valencia, Spain
*
Author to whom correspondence should be addressed.
Sensors 2011, 11(3), 3205-3213; https://doi.org/10.3390/s110303205
Submission received: 5 January 2011 / Revised: 3 February 2011 / Accepted: 10 March 2011 / Published: 15 March 2011
(This article belongs to the Special Issue Adaptive Sensing)

Abstract

: This paper describes a new filter for impulse noise reduction in colour images which is aimed at improving the noise reduction capability of the classical vector median filter. The filter is inspired by the application of a vector marginal median filtering process over a selected group of pixels in each filtering window. This selection, which is based on the vector median, along with the application of the marginal median operation constitutes an adaptive process that leads to a more robust filter design. Also, the proposed method is able to process colour images without introducing colour artifacts. Experimental results show that the images filtered with the proposed method contain less noisy pixels than those obtained through the vector median filter.

1. Introduction

Noise is often introduced into digital images during the acquisition and transmission processes because of different reasons such as CCD sensor malfunction, transmission errors, storage faults, and difficult acquisition conditions. The presence of noise hampers the automatic processing of digital images and also affects their visualization quality. This implies that the noise reduction task, also known as image filtering, is a fundamental step in any computer vision system. In this context, several types of noise have been studied. Here we focus on the impulse noise case, which affects a portion of the image pixels, replacing their original values with other very different ones.

The earliest filters were developed to process gray-scale images and were based on linear approaches. However, it was found that nonlinear methods exhibit better performance and, in particular, that the median operator is the most robust method when the images are contaminated with impulse noise [1].

Recently, the interest in employing colour images has grown in a wide range of applications, which has motivated the development of colour image filters. The simplest attempts for processing colour images are based on applying a method for gray-scale images in each of the three colour channels independently [2]. However, it is well known that this way of processing is not appropriate for colour images because there exists a high correlation among the colour image channels which is not considered by this kind of methods [2,3]. For instance, the Vector Marginal Median Filter (VMMF) [2] uses the scalar median operator in each of the colour channels independently to obtain the filtered image. However, when obtaining the colour for a particular image pixel, the VMMF may combine components of image pixels that may be very different, which in turn may generate artificial colours (also known as artifacts). This implies that the VMMF is not useful for real applications since it cannot adapt its performance to the existence of correlation among the image channels.

From another point of view, the Vector Median Filter (VMF) [4] proposes to process the colour images by treating them as a vector field in order to take into account the interchannel correlation. The family of vector filters inspired by the VMF, which includes the Directional Vector Filter among others [3,5], is based on the theory of robust statistics [1,6]. The filters of this family, and specially the VMF, can perform quite robustly in impulse noise reduction without introducing colour artifacts, since they appropriately consider the colour components correlation. These filters select the vector that is closest to the rest of the vectors in a given population based on distance measure to be the output. However, the noise reduction capability of these filters is lower than the VMMF. For instance, in the case of a vector population where all vectors have one noisy component, the VMF will always select a noisy vector as output, since it cannot adapt to this extremely noisy situation.

In this work we propose a method to improve the performance of the VMF in this sense. Our method is based on applying a VMMF process over a group of pixels selected using the Vector Median (VM) of the population. As a result, a more robust adaptive filter design able to process colour images without introducing colour artifacts is obtained. As we will show in the experimental section, the images obtained through the proposed method contain less noisy pixels than those obtained through the VMF. The proposed method is intended to be used within more complex filtering procedures, for instance, in the noise reduction step, where the VMF is frequently used [79].

The paper is organized as follows. Section 2 recalls the basics of the VMMF and the VMF. The proposed filtering process is introduced in Section 3. Experimental results and comparisons are provided in Section 4 and, finally, Section 5 presents the conclusions.

2. Vector Marginal Median Filter and Vector Median Filter

Denote by F a colour (or multichannel) image to be processed and let W be a filtering window centered on the pixel under processing of size N × N, N = 3, 5, 7 … containing N2 = n pixels. The colour vectors in W are denoted as F j = ( F j R ,   F j G ,   F j B ), j = 0, 1, …, n − 1, as usual in the RGB colour space. The distance between two vectors Fi, Fj is denoted as ρ(Fi, Fj). In this work, we take the Euclidean distance as the ρ function, but any other distance metric could be used instead [2,3,1013].

2.1. Vector Marginal Median Filter

The output of the VMMF when processing the center pixel of W is the vector,

VMM = ( med ( { F 0 R , ,   F n 1 R } ) ,   med ( { F 0 G , ,   F n 1 G } ) ,   med ( { F 0 B , ,   F n 1 B } ) )
where med denotes the statistical median operation. In this way, no relation among the colour components of VMM is considered, which leads to the problems mentioned in the previous section. On the other hand, VMM contains the most robust estimation in each component, which implies that its noise reduction capability is the highest.

2.2. Vector Median Filter

The VMF approaches the problem of noise reduction by looking for the most robust vector in the population. For this, each vector in the filtering window is associated with an accumulated distance to all other vectors which is computed as R i = j = 0 n 1 ρ ( F i ,   F j ). Thus, Ri is the distance associated to the vector Fi. Then, the colour vectors are ordered according to Ri, so that the ordering of the Ri’s: R(0)R(1) ≤ … ≤ R(n−1), implies the same ordering of the vectors Fi’s: F(0)F(1) ≤ … ≤ F(n−1). Given this order, the output VM = F(0), which is the colour vector associated to the minimum accumulated distance. Notice that because of the vector approach, the correlation among the VM components is considered, which avoids the generation of colour artifacts. However, in a very noisy context where all colour vectors contain some noisy component, VM will be noisy. In the following section we introduce a method intended to increase the noise reduction capability of the VMF in this sense.

3. Proposed Method: Adaptive Vector Marginal Median Filter

As mentioned above, the proposed method is based on the application of a VMMF operation over a selected group of colour vectors. To make this selection, we employ the VM of the filtering window W as follows.

Following the notation in Section 2, we take the vector median VM and we order the vectors in W according to their similarity with VM. So, we define the ordered set:

W = { F [ 0 ] ,   F [ 1 ] , ,   F [ n 1 ] }
such that
ρ ( VM ,   F [ 0 ] ) ρ ( VM ,   F [ 1 ] ) ρ ( VM ,   F [ n 1 ] )
where, obviously, F[0] = VM.

We select a set of colour vectors, say S, which will be constituted by the m colour vectors most similar to VM. The objective of this selection is to adapt the performance of the method to the existence of correlation among the colour image channels. Notice that m is an adaptive parameter that relates VM with the number of pixels in W which are similar to it, which in turn are the colour vectors with a similar relation among their components. In this way,

S = { F [ 0 ] ,   F [ 1 ] , ,   F [ m 1 ] }
where mn. If m is low enough m << n, S contains the VM and m − 1 colour vectors with similar components. Therefore, S contains a set of robust colour vectors, for they are similar to the VM and, moreover, all the vectors in S have similar components. In an optimal situation, m should be set to the number of colour vectors in W similar to VM. However, in a very noisy context, some noisy components will be also included in S. Now, we apply the VMMF operation over the colour vectors in S to achieve high noise reduction so that the method can perform well in very noisy situations. The proposed method output is obtained as follows:
AMM = ( med ( { F [ 0 ] R , ,   F [ m 1 ] R } ) ,   med ( { F [ 0 ] G , ,   F [ m 1 ] G } ) ,   med ( { F [ 0 ] B , ,   F [ m 1 ] B } ) )

In this way, we obtain a more robust vector than the VM because of the robustness of the median operation. Notice that now, given that the vectors in S are similar among them, which in turn implies that they have similar components, no colour artifacts will be generated. This happens because through the colour vector selection process the marginal median operation has been adapted to the similarities observed in the population, which overcomes the main drawback of the VMMF.

4. Experimental Results and Assessment

Impulsive noise corruption process affects only some pixels in the image while leaving other pixels unchanged. Typically, the noise process changes one or more colour components of the affected pixel by replacing its original values with other values which usually significantly deviates from the originals. The kind of noise which is the most difficult to detect and remove assumes that the impulse is a random uniformly distributed value within the signal range. For RGB images, we consider that the noise is independently introduced in each of the three colour channels with probability p, which means that the (3p − 3p2 + p3) 100% image pixels are corrupted with noise. This noise model has been used to contaminate the test images in Figure 1.

The contaminated images have been filtered using the VMMF, VMF and the proposed AMMF. In the three cases we have used a 3 × 3 filtering window and we have filtered each image only once to better appreciate the performance differences. However, when the noise is high, several filtering processes are frequently necessary to obtain a totally clean image. Another possibility is to use a larger window size. For instance, it is known that using a 5 × 5 filtering window provides a higher noise reduction capability and could be more appropriate in general for filtering very noisy images. However, the method we propose is intended to be used within more complex filter designs in the noise reduction step, and most high performance advanced filters use a 3 × 3 filtering window [79]. Therefore, we consider that it is more interesting to study the performance of our method in this case.

The adaptive parameter m of AMMF should be set, in an optimal ideal situation, to the number of vectors similar to the vector median in each filtering window. Since we focus on extremely noisy situations, we expect this number to be quite low. Also, according to the filter design, as m increases, the performance of the proposed methods become more similar to the VMMF since more colour vectors are involved in the marginal median operation. This means that increasing m will increase both the noise reduction capability of the method and the likelihood to introduce colour artifacts in the output image (as we will see, numerical results in Tables 14 support this reasoning). Given that our objective is to improve the noise reduction capability of the VMF but avoiding as much as possible the introduction of colour artifacts, we have set m to the minimum value that makes sense to use: m = 3.

In addition to visual comparison, to assess the quality of the different filters we have used the objective quality measures Mean Absolute Error (MAE), Peak Signal to Noise Ratio (PSNR), and Normalized colour Difference (NCD) defined as follows [2,3]:

MAE = i = 1 N M q = 1 Q | F i q F ^ i q | N M Q
PSNR = 20   log   ( 255 1 NMQ i = 1 N M q = 1 Q ( F i q F ^ i q ) 2 )
where M, N are the image dimensions, Q is the number of channels of the image (Q = 3 for colour images), and F i q and F ^ i q denote the qth component of the original image vector and the filtered image, at pixel position i, respectively, and
NCD Lab = i = 1 N M Δ E Lab i = 1 N M E Lab *
where Δ E Lab = [ ( Δ L * ) 2 + ( Δ a * ) 2 + ( Δ b * ) 2 ] 1 2 denotes the perceptual colour error and E Lab * = [ ( L * ) 2 + ( a * ) 2 + ( b * ) 2 ] 1 2 is the norm or magnitude of the original image colour vector in the L*a*b* colour space.

Also, to assess the robustness of the methods we have computed the percentage of noisy pixels (NP%) in the output images using the simple but effective method proposed in [14,15]. This detection method considers a colour pixel as noisy if it has less than m colour pixels within Euclidean distance lower than d in a 3 × 3 neighborhood. In particular we have set m = 2 and d = 35.

Figures 25 show some noisy images and the respective filtering results using the VMMF, VMF and AMMF (m = 3). We can see that, overall, the highest noise reduction ability is exhibited by the VMMF. However, this filter also introduces many colour artifacts near edges (see for instance dark zones edges in Figure 2(b)). On the other hand, the images filtered with the AMMF contain less noisy pixels than those filtered with the VMF and no colour artifacts are introduced by any of these two methods. This fact is also illustrated in Tables 14 where we can see the NP for different images after filtering with the VMMF, VMF and AMMFm varying the value of m in {3, 4, 5}. In these tables AMMF obtains NP values lower than VMF. Also, we can see that when the noise is low (up to p = 0.20, which implies about 40% of noisy pixels) the images filtered with VMMF have higher NP than the AMMF and VMF. This happens because although VMMF has the higher ability to suppress noise it also generates colour artifacts, which increases NP in the output images. This fact implies that VMMF is not reliable and should not be used in practical applications. When the noise is high (p ≥ 0.30, which implies more than 50% of noisy pixels), VMMF still introduces artifacts but NP is lower because the percentage of noise reduced is much larger than the artifacts introduced. With respect to the rest of the quality measures, i.e., MAE, PSNR and NCD, the best results are obtained by VMMF, but notice that these measures do not consider specifically the introduction of colour artifacts. When the noise is high, AMMF outperforms VMF in terms of MAE and NCD. From the visual results and the NP, it would be logical that AMMF always outperforms VMF, but these measures do not perfectly match with these criteria in such a noisy context. Finally, if we analyze the performance of AMMF for the different values of m considered, we can see that the best numerical results are obtained for m = 4. However, increasing the value of m also increases the likelihood to introduce colour artifacts, so we prefer to set m = 3. Most probably, m = 4 achieves the best trade-off between noise suppression and artifact generation, which implies better numerical values, but since it is a primary objective to avoid the generation of artifacts, we set m = 3. These results allow us to conclude that AMMF (m = 3) is the method able to obtain the most robust and reliable results since its ability to suppress noise is higher than VMF and it does not generate colour artifacts, which is an advantage with respect to VMMF.

5. Conclusions

In this paper we have presented an adaptive method for impulse noise reduction in colour images whose objective is to improve the noise reduction capability of the classical vector median filter. The filter is based on the selection of a few vectors in a population using the vector median and the application of a vector marginal median filtering over the selected vectors. The robustness and reliability of the method is achieved because the selection of vectors adapts the performance of the marginal median operation to an appropriate context. Experimental results show that the images filtered with the proposed method contain less noisy pixels than those obtained through the vector median filter. Also, the proposed method is able to process colour images without introducing colour artifacts, which is an advantage with respect to the vector marginal median filter. These results suggest that a more robust correlated filtering method might be obtained, which opens an interesting line of research. The proposed method can be used within more complex filtering procedures, for instance, in the noise reduction step, where the VMF is frequently used.

Acknowledgments

The authors acknowledge the support of Spanish Ministry of Science and Innovation under Grant MTM2009-12872-C02-01, and Universidad Politécnica de Valencia under grant PAID-06-08.

References

  1. Huber, PS. Robust Statistics; John Wiley and Sons: New York, NY, USA, 1981. [Google Scholar]
  2. Plataniotis, KN; Venetsanopoulos, AN. Color Image Processing and Applications; Springer-Verlag: Berlin, Germany, 2000. [Google Scholar]
  3. Lukac, R; Smolka, B; Martin, K; Plataniotis, KN; Venetsanopoulos, AN. Vector Filtering for Color Imaging. IEEE Signal Process. Mag 2005, 22, 74–86. [Google Scholar]
  4. Astola, J; Haavisto, P; Neuvo, Y. Vector Median Filters. Proc. IEEE 1990, 78, 678–689. [Google Scholar]
  5. Trahanias, PE; Karakos, D; Venetsanopoulos, AN. Directional Processing of Color Images: Theory and Experimental Results. IEEE Trans. Image Process 1996, 5, 868–880. [Google Scholar]
  6. David, HA. Order Statistics; John Wiley and Sons: New York, NY, USA, 1981. [Google Scholar]
  7. Smolka, B; Venetsanopoulos, AN. Noise Reduction and Edge Detection in Color Images. In Color Image Processing: Methods and Applications; Lukac, R, Plataniotis, KN, Eds.; CRC Press: Boca Raton, FL, USA, 2006. [Google Scholar]
  8. Lukac, R; Plataniotis, KN. A Taxonomy of Color Image Filtering and Enhancement Solutions. In Advances in Imaging and Electron Physics; Hawkes, PW, Ed.; Elsevier: Maryland Heights, MO, USA, 2006; Volume 140, pp. 187–264. [Google Scholar]
  9. Celebi, ME; Kingravi, HA; Aslandogan, YA. Nonlinear Vector Filtering for Impulsive Noise Removal from Color Images. J. Electron. Imaging 2007, 16, 033008. [Google Scholar]
  10. Schulte, S; Morillas, S; Gregori, V; Kerre, EE. A New Fuzzy Color Correlated Impulsive Noise Reduction Method. IEEE Trans. Image Process 2007, 16, 2565–2575. [Google Scholar]
  11. Morillas, S; Gregori, V; Hervás, A. Fuzzy Peer Groups for Reducing Mixed Gaussian Impulse Noise from Color Images. IEEE Trans. Image Process 2009, 18, 1452–1466. [Google Scholar]
  12. Morillas, S; Gregori, V; Peris-Fajarnés, G; Latorre, P. A Fast Impulsive Noise Color Image Filter Using Fuzzy Metrics. Real-Time Imaging 2005, 11, 417–428. [Google Scholar]
  13. Celebi, ME. Distance Measures for Reduced Ordering Based Vector Filters. IET Image Process 2009, 3, 249–260. [Google Scholar]
  14. Smolka, B; Plataniotis, KN; Chydzinski, A; Szczepanski, M; Venetsanopoulos, AN; Wojciechowski, K. Self-Adaptive Algorithm of Impulsive Noise Reduction in Color Images. Patt. Recog 2002, 35, 1771–1784. [Google Scholar]
  15. Smolka, B; Chydzinski, A. Fast Detection and Impulsive Noise Removal in Color Images. Real-Time Imaging 2005, 11, 389–402. [Google Scholar]
Figure 1. Test images: (a) Boats, (b) Pills, (c) Flower, and (d) Lenna.
Figure 1. Test images: (a) Boats, (b) Pills, (c) Flower, and (d) Lenna.
Sensors 11 03205f1 1024
Figure 2. (a) Boats image corrupted with random-value impulse noise with p = 0.4 in each colour channel and outputs from: (b) VMMF, (c) VMF and (d) proposed AMMF.
Figure 2. (a) Boats image corrupted with random-value impulse noise with p = 0.4 in each colour channel and outputs from: (b) VMMF, (c) VMF and (d) proposed AMMF.
Sensors 11 03205f2 1024
Figure 3. (a) Lenna image corrupted with random-value impulse noise with p = 0.3 in each colour channel and outputs from: (b) VMMF, (c) VMF and (d) proposed AMMF.
Figure 3. (a) Lenna image corrupted with random-value impulse noise with p = 0.3 in each colour channel and outputs from: (b) VMMF, (c) VMF and (d) proposed AMMF.
Sensors 11 03205f3 1024
Figure 4. (a) Pills image corrupted with random-value impulse noise with p = 0.2 in each colour channel and outputs from: (b) VMMF, (c) VMF and (d) proposed AMMF.
Figure 4. (a) Pills image corrupted with random-value impulse noise with p = 0.2 in each colour channel and outputs from: (b) VMMF, (c) VMF and (d) proposed AMMF.
Sensors 11 03205f4 1024
Figure 5. (a) Flower image corrupted with random-value impulse noise with p = 0.2 in each colour channel and outputs from: (b) VMMF, (c) VMF and (d) proposed AMMF.
Figure 5. (a) Flower image corrupted with random-value impulse noise with p = 0.2 in each colour channel and outputs from: (b) VMMF, (c) VMF and (d) proposed AMMF.
Sensors 11 03205f5 1024
Table 1. Performance comparison in terms of MAE, PSNR, and NCD when filtering the Boats image contaminated with random-value impulse noise with probability p in each colour channel.
Table 1. Performance comparison in terms of MAE, PSNR, and NCD when filtering the Boats image contaminated with random-value impulse noise with probability p in each colour channel.
Filterp = 0.10p = 0.20p = 0.30p = 0.40
MAEPSNRNCDNP%MAEPSNRNCDNP%MAEPSNRNCDNP%MAEPSNRNCDNP%

None7.5518.8212.0222.215.0115.8322.6040.522.7014.0332.2857.930.2612.7740.4073.2
VMMF4.3029.993.740.95.2428.075.062.16.7825.557.313.79.5222.5611.136.5
VMF4.6729.513.190.76.1826.794.722.08.8223.448.295.212.9320.3213.7610.2
AMMF34.7329.093.280.76.0126.534.581.88.1823.247.754.811.8620.0813.139.8
AMMF44.8929.133.330.65.9726.884.551.57.9923.687.603.911.5920.4712.868.3
AMMF54.7729.023.410.95.6827.034.631.97.4323.987.374.610.7320.7912.309.1
Table 2. Performance comparison in terms of MAE, PSNR, and NCD when filtering the Lenna image contaminated with random-value impulse noise with probability p in each colour channel.
Table 2. Performance comparison in terms of MAE, PSNR, and NCD when filtering the Lenna image contaminated with random-value impulse noise with probability p in each colour channel.
Filterp = 0.10p = 0.20p = 0.30p = 0.40
MAEPSNRNCDNP%MAEPSNRNCDNP%MAEPSNRNCDNP%MAEPSNRNCDNP%

None7.6318.5211.3322.415.1915.5621.3741.422.9413.7530.2057.230.3112.6137.7971.9
VMMF4.8528.584.171.56.0626.725.842.67.9724.268.384.110.7021.8611.676.4
VMF5.2528.053.451.27.1525.605.182.610.0522.508.686.314.2019.8213.5410.3
AMMF35.4427.573.661.07.0425.365.162.49.3622.328.235.712.9819.6412.8310.2
AMMF45.6327.643.730.97.0025.785.091.99.0422.788.055.012.5820.0012.499.0
AMMF55.3927.693.751.26.5526.005.122.28.3823.107.845.411.7720.2712.089.5
Table 3. Performance comparison in terms of MAE, PSNR, and NCD when filtering the Pills image contaminated with random-value impulse noise with probability p in each colour channel.
Table 3. Performance comparison in terms of MAE, PSNR, and NCD when filtering the Pills image contaminated with random-value impulse noise with probability p in each colour channel.
Filterp = 0.10p = 0.20p = 0.30p = 0.40
MAEPSNRNCDNP%MAEPSNRNCDNP%MAEPSNRNCDNP%MAEPSNRNCDNP%

None7.4618.6611.8925.114.7215.6422.7140.421.9413.8530.9255.729.5612.5638.9670.0
VMMF5.3526.984.915.07.0125.307.237.29.7122.6510.018.313.0420.7714.2612.0
VMF5.9726.553.843.48.2124.305.935.112.1721.1710.107.416.2419.2915.6213.0
AMMF36.2725.954.192.78.3023.706.244.611.4720.929.827.314.9519.1715.1012.6
AMMF46.6625.894.362.38.4123.936.234.211.2621.259.425.914.4919.5414.5312.0
AMMF56.4725.754.523.27.9724.036.404.510.5821.439.567.613.4819.8714.0912.6
Table 4. Performance comparison in terms of MAE, PSNR, and NCD when filtering the Flower image contaminated with random-value impulse noise with probability p in each colour channel.
Table 4. Performance comparison in terms of MAE, PSNR, and NCD when filtering the Flower image contaminated with random-value impulse noise with probability p in each colour channel.
Filterp = 0.10p = 0.20p = 0.30p = 0.40
MAEPSNRNCDNP%MAEPSNRNCDNP%MAEPSNRNCDNP%MAEPSNRNCDNP%

None7.4618.8211.5722.814.7015.8821.6341.422.3314.0830.8758.829.7012.8638.7773.5
VMMF5.0028.633.891.26.2526.815.722.08.0624.567.903.510.8722.0511.005.9
VMF5.4228.172.971.07.4625.634.541.910.1922.847.715.414.2020.1412.4910.0
AMMF35.5627.763.141.07.3825.384.651.99.5322.737.615.013.1019.9812.519.5
AMMF45.8727.853.320.87.3225.774.701.49.2623.207.584.112.7220.3312.347.9
AMMF55.7327.773.441.16.8625.954.881.98.6223.477.654.611.8620.6412.078.8

Share and Cite

MDPI and ACS Style

Morillas, S.; Gregori, V.; Sapena, A. Adaptive Marginal Median Filter for Colour Images. Sensors 2011, 11, 3205-3213. https://doi.org/10.3390/s110303205

AMA Style

Morillas S, Gregori V, Sapena A. Adaptive Marginal Median Filter for Colour Images. Sensors. 2011; 11(3):3205-3213. https://doi.org/10.3390/s110303205

Chicago/Turabian Style

Morillas, Samuel, Valentín Gregori, and Almanzor Sapena. 2011. "Adaptive Marginal Median Filter for Colour Images" Sensors 11, no. 3: 3205-3213. https://doi.org/10.3390/s110303205

Article Metrics

Back to TopTop