Literature DB >> 22163794

Adaptive marginal median filter for colour images.

Samuel Morillas1, Valentín Gregori, Almanzor Sapena.   

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.

Entities:  

Keywords:  color image filter; robust filter; vector median filter

Mesh:

Year:  2011        PMID: 22163794      PMCID: PMC3231642          DOI: 10.3390/s110303205

Source DB:  PubMed          Journal:  Sensors (Basel)        ISSN: 1424-8220            Impact factor:   3.576


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 [7-9]. 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.

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 , j = 0, 1, …, n − 1, as usual in the RGB colour space. The distance between two vectors F, F is denoted as ρ(F, F). In this work, we take the Euclidean distance as the ρ function, but any other distance metric could be used instead [2,3,10-13].

Vector Marginal Median Filter

The output of the VMMF when processing the center pixel of W is the vector, 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.

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 . Thus, R is the distance associated to the vector F. Then, the colour vectors are ordered according to R, so that the ordering of the R’s: R(0) ≤ R(1) ≤ … ≤ R(, implies the same ordering of the vectors F’s: F(0) ≤ F(1) ≤ … ≤ F(. 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.

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: such that 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, where m ≤ n. 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: 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.

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.
Figure 1.

Test images: (a) Boats, (b) Pills, (c) Flower, and (d) Lenna.

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 [7-9]. 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 1–4 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.
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 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
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]: where M, N are the image dimensions, Q is the number of channels of the image (Q = 3 for colour images), and and denote the qth component of the original image vector and the filtered image, at pixel position i, respectively, and where denotes the perceptual colour error and 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 2–5 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 1–4 where we can see the NP for different images after filtering with the VMMF, VMF and AMMF 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.
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 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.

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.
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.

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
  3 in total

1.  Directional processing of color images: theory and experimental results.

Authors:  P E Trahanias; D Karakos; A N Venetsanopoulos
Journal:  IEEE Trans Image Process       Date:  1996       Impact factor: 10.856

2.  Fuzzy peer groups for reducing mixed gaussian-impulse noise from color images.

Authors:  Samuel Morillas; Valentín Gregori; Antonio Hervas
Journal:  IEEE Trans Image Process       Date:  2009-05-12       Impact factor: 10.856

3.  A new fuzzy color correlated impulse noise reduction method.

Authors:  Stefan Schulte; Samuel Morillas; Valentín Gregori; Etienne E Kerre
Journal:  IEEE Trans Image Process       Date:  2007-10       Impact factor: 10.856

  3 in total
  6 in total

1.  Effective identification and localization of immature precursors in bone marrow biopsy.

Authors:  Guitao Cao; Ling Li; Weiting Chen; Yehua Yu; Jun Shi; Guixu Zhang; Xuehua Liu
Journal:  Med Biol Eng Comput       Date:  2014-11-28       Impact factor: 2.602

2.  An unsupervised semi-automated pulmonary nodule segmentation method based on enhanced region growing.

Authors:  He Ren; Lingxiao Zhou; Gang Liu; Xueqing Peng; Weiya Shi; Huilin Xu; Fei Shan; Lei Liu
Journal:  Quant Imaging Med Surg       Date:  2020-01

3.  Robustifying vector median filter.

Authors:  Samuel Morillas; Valentín Gregori
Journal:  Sensors (Basel)       Date:  2011-08-18       Impact factor: 3.576

4.  An adaptive switching filter based on approximated variance for detection of impulse noise from color images.

Authors:  K Pritamdas; Kh Manglem Singh; L Lolitkumar Singh
Journal:  Springerplus       Date:  2016-11-14

5.  Deep Learning Based Switching Filter for Impulsive Noise Removal in Color Images.

Authors:  Krystian Radlak; Lukasz Malinski; Bogdan Smolka
Journal:  Sensors (Basel)       Date:  2020-05-14       Impact factor: 3.576

6.  A two-stage filter for removing salt-and-pepper noise using noise detector based on characteristic difference parameter and adaptive directional mean filter.

Authors:  Hongjin Ma; Yufeng Nie
Journal:  PLoS One       Date:  2018-10-26       Impact factor: 3.240

  6 in total

北京卡尤迪生物科技股份有限公司 © 2022-2023.