Filtering of mixed Gaussian and impulsive noise using ...

3 downloads 0 Views 1MB Size Report
Apr 21, 2013 - distance criterion to detect noise given by the top-hat transformation is applied, followed by an open–close sequence to remove noise. In [6], a ...
www.ietdl.org Published in IET Image Processing Received on 16th June 2012 Revised on 22nd March 2013 Accepted on 21st April 2013 doi: 10.1049/iet-ipr.2012.0615

ISSN 1751-9659

Filtering of mixed Gaussian and impulsive noise using morphological contrast detectors Jorge D. Mendiola-Santibañez1, Iván R. Terol-Villalobos2 1

Doctorado en Ingeniería, Universidad Autónoma de Querétaro, CP 76010, Querétaro, México CIDETEQ, S.C., Parque Tecnológico Querétaro S/N, San Fandila-Pedro Escobedo, Querétaro 76703, México E-mail: [email protected]

2

Abstract: Several morphological transformations to detect noise are introduced. The initial method is a modification of a procedure presented previously in the current literature. The proposals given in the study allow to detect noise in two ways: (i) using a contrast measure and (ii) applying different proximity criteria into several proposed toggle mappings. In the end, two of the proposals given in this study yield a better performance with respect to methods in which this research is based. However, although the methodology to identify noise works adequately, the results are limited due to the use of the structuring element. In Section 4, an image with two types of noise is cleaned. Such image is contaminated with zero mean Gaussian noise with 0.01 variance and 5% of salt and pepper noise. From this experiment, the proposal giving the best performance is selected; subsequently, this is compared with other recent operators as PDEs, wavelets, morphological connected rank max opening and amoebas.

1

Introduction

A common problem in image processing is the detection and reduction of noise in digital images. As a result, several methods have been proposed. In [1], grey-level images are cleaned using top-hats [2] and smoothed images. Smoothed images are obtained from alternated filters [3]. In [4, 5], a distance criterion to detect noise given by the top-hat transformation is applied, followed by an open–close sequence to remove noise. In [6], a distance criterion in terms of the open–close and close–open filters is presented, and noisy pixels are replaced by those obtained from an adaptive switching median filter. In [7], the Laplacian and gradient masks are used to estimate noise. In [8], the authors present a method to extract the relationship between image intensity and noise variance. In [9–11], different techniques to detect noise are provided. In [12, 13], noisy pixels are replaced by the mean value of the neighbouring pixels. Methods based on wavelet transformations can be found in [14–16]. A filter working similar to a median filter to suppress noise is presented in [17]. A technique based on fuzzy logic is proposed in [18]. The list of references is far from complete, given the intensive research on this topic. In several of the above mentioned papers, the common steps followed to detect noise are: (i) establish a criterion based on a certain threshold, which most often is an empirical value and (ii) create a noise map. Subsequently, noise is replaced by pixels obtained from a specific transformation. Currently, the requirements fulfilled to suppress noise in an image are not clearly defined. In [19], the conditions necessary to eliminate noise are: (i) perceptually flat regions

must be as smooth as possible, (ii) contours must be preserved, (iii) texture detail must be maintained and (iv) global contrast must remain unchanged. These points are in conflict, because when noise is removed, global contrast is affected given that noise is replaced by pixels obtained from a smoothed image. Furthermore, edges are also modified notwithstanding whether the smoothed image was filtered by an adaptive transformation. Owing to this situation, in this paper we are going to consider only two aspects that must be fulfilled when denoising an image: (a) modifying image contours as little as possible and (b) the resulting cleaned images must have an improvement in the contrast. The mathematical expressions introduced throughout the paper make use of the following transformations: top-hat by reconstruction [20], internal gradient [21], toggle mappings [22] and the opening by reconstruction [23]. These will be presented in Section 2. The ideas to detect noise were inspired by the proposal in [24], which is briefly presented in Section 2.5. In [24], two interesting things are proposed: (i) a formalisation to detect a threshold PC to identify noise and (ii) noise detection is carried out by means of a contrast measure. The contributions introduced in this paper will be for grey-level images and proposals are presented in Section 3. In Section 3.1, the contrast measure provided in [24] is replaced by a new one in terms of a top-hat by reconstruction transform, also called numerical residue [25]. The new contrast measure involves the image background obtained from a close–open by reconstruction transformation. This proposal gives rise to a toggle mapping to attenuate noise. The toggle mapping uses as primitives the original and the morphological open–close by reconstruction

IET Image Process., 2014, Vol. 8, Iss. 3, pp. 131–141 131 doi: 10.1049/iet-ipr.2012.0615 This is an open access article published by the IET under the Creative Commons Attribution License(http://creativecommons.org/licenses/by/3.0/)

www.ietdl.org images, which do not create new contours. However, given that the critical point PC represents the mean value defined in [24], this idea is extended to a global parameter for determining when a pixel is noise. The proximity criterion in the toggle mapping is modified and a new one is introduced in Section 3.2 in terms of the top-hat by reconstruction transformation. In Section 3.3, noisy pixels take values in accordance with a rank filter [26] to produce enhanced images with different contrast. In Section 3.4, the mean filter is approximated by morphological transformations, and the toggle mappings proposed so far can be rewritten as purely morphological transformations. In Section 3.5, the top-hat criterion is replaced by the internal gradient operator, and the primitive denoted as α is utilised. The α filter is given in terms of the open–close and close–open by reconstruction transformations. This filter shows a regular performance when compared to the median filter. According to the experiments, two transformations introduced in this paper yield a better performance with respect to the method proposed in [24] to detect noise. To select the transformations producing the best performance, the results obtained from the following indexes are analysed: (i) mean square error (MSE), (ii) peak signal-to-noise ratio (PSNR) and (iii) morphological contour preservation index (MCPI). Once the two transformations producing better results are detected, one of them is selected to be compared with the following operators reported in the current literature: PDEs [27], wavelets [28], morphological connected rank max opening [29] and connected amoebas [30]. In the comparison process, a set of natural images [31] contaminated with 10% of Gaussian noise and 5% of salt and pepper noise were used. Conclusions are presented in Section 5.

2 Morphological contrast detectors and opening by reconstruction 2.1 Definitions of some morphological transformations In mathematical morphology (MM), increasing and idempotent transformations are frequently used. Morphological transformations complying with these properties are known as morphological filters [32]. The basic morphological filters are the morphological opening γμB( f )(x) and closing jμB( f )(x) using a given structuring element μB. In this paper, a square structuring element is employed, where B represents the basic structuring element ^ of size 3 × 3 pixels, which contains its origin. Whereas B is the transposed set with respect to its origin, ^ B = {−x:x [ B}, and μ is a size parameter. The number of elements within a structuring element of size μ is (2μ + 1)2. Formally, the morphological opening γμB( f )(x) is expressed as follows 



gmB (f )(x) = dmB^ 1mB (f ) (x) By duality, the closing jμB( f )(x) is defined as    c wmB (f )(x) = gmB f c (x) where f c(x) = 255 − f(x). The morphological erosion is ^ expressed as 1mB (f )(x) = ^{ f (y):y [ mB x }. Here, ∧ is the

inf operator. By duality, the morphological dilation is written as δμB( f )(x) = [εμB( f c)(x)]c. 2.2

Opening and closing by reconstruction

Transformations by reconstruction are useful operators introduced in MM. These transformations allow the elimination of undesirable regions without substantially affecting the remaining structures of the image, given that these transformations are built by means of geodesic transformations [23]. The geodesic dilation d1f (g)(x) of size one is given by d1f (g)(x) = f (x) ^ dB (g)(x) with g(x) ≤ f (x), g represents the marker. The reconstruction transformation for grey-level images is defined as follows R(f , g)(x) = d1f d1f . . . d1f (g)(x) = lim dnf (g)(x)  n1 until stability

When the marker g(x) is equal to the erosion of the original function εμB( f )(x), and the geodesic dilation is iterated, the opening by reconstruction g˜ mB (f ) is obtained. This can be written as

g˜ mB (f )(x) = R(f , 1mB (f )) By duality, the closing by reconstruction w˜ mB (f ) is expressed as    c w˜ mB (f )(x) = g˜ mB f c (x)

2.3

Top-hat by reconstruction

The white top-hat transformation is used for detecting peaks of certain height and thickness and it is defined as the arithmetical difference between the original and the morphological opening images, that is, TWμB( f )(x) = f(x) − ˜ mB (f ) is γμB( f )(x). The white top-hat by reconstruction TW built in a similar way, but using the opening by reconstruction transformation. This connected transformation is defined as follows ˜ mB (f )(x) = f (x) − g˜ mB (f )(x) TW Connected transformations have the property of preserving the contours of the processed image. 2.4

Morphological gradients

The morphological gradient is an edge detector. This transformation is expressed as gmmB (f )(x) = dmB (f )(x) − 1mB (f )(x) where f represents the original image, whereas δμB( f ) and εμB( f ) represent the morphological dilation and erosion size μ, respectively. Other expression to obtain the edges of an image is given below. This transformation is called internal gradient gimB (f )(x) = f (x) − 1mB (f )(x)

(1)

In this paper, the following expression will be considered,

132 IET Image Process., 2014, Vol. 8, Iss. 3, pp. 131–141 This is an open access article published by the IET under the Creative Commons Attribution doi: 10.1049/iet-ipr.2012.0615 License(http://creativecommons.org/licenses/by/3.0/)

www.ietdl.org μB = μ, to simplify the notation. Also, when μ = 1, one has g˜ m (f )(x) = g˜ (f )(x). 2.5 Methodology introduced in the current literature to detect noise A methodology to identify noise was presented in [24]. In this research, a local analysis is developed considering a window W of 3 × 3 pixels or size μ = 1; however, it can be extended to other sizes of μ. By applying a statistical analysis, the authors detect noise at point x of the grey-level image f if P(x) . PC

PCMm , which considers the size μ of the structuring element.    Then PCMm = 1/ (2m + 1)(2m + 1) − 1 with μ ≠ 0. For example, if μ = 1, PCMm=1 = (1/8) and for μ = 2, PCMm=2 = (1/24). The contrast measure in (4) produces a family of ordered transformations, that is, for m1 ≤ m2 ≤ · · · ≤ mm and Cm1 (x) ≤ Cm2 (x) ≤ · · · ≤ Cmm (x). Once the contrast measure Cμ(x) has been established along with PCMm , the following toggle mapping is proposed to filter noise g˜ hwP˜ CM (f )(x) m

 =

f (x),

P(x) , PCMm

w˜ g˜ (f )(x),

otherwise

(5)

where C(x) P(x) = n−1 x=1 C(x)

n−1 is the contrast probability at point x and x=1 C(x) considers the eight neighbouring points surrounding point x. C(x) is a local contrast measure C(x) =

   f (x) − f (x) f (x)

(2)

where f (x) is the background and represents the mean value of the pixels surrounding x. Also, it was demonstrated that PC takes the value PC =

1 for m = 1 8

This critical probability represents a mean, and all pixel values markedly different from this quantity are considered as noisy elements.

3

Noise detection

where w˜ and g˜ are the closing and opening by reconstruction size 1, and P(x) , PCMm is a noise criterion. The proposed g˜ not only filters noise but also toggle mapping hwP˜ CM m improves the contrast in the output image without g˜ has the introducing new contours. However, hwP˜ CM m disadvantage of eliminating unconnected narrow regions in which the structuring element does not fit. Notwithstanding this drawback, there are many images in which (5) can be applied with good results. Figs. 1b–d illustrate the performance of (3), (4) and (5) using μ = 5. Image in Fig. 1e presents the output image following the procedure explained in [24], where noisy points are replaced by those provided by the median filter of size μ = 5, PC = PCMm=5 = (1/120), and the mean filter f also with a size window μ = 5. Image in Fig. 1e exhibits more smoothness than the image in Fig. 1d together with the elimination of narrow regions. g˜ The output image associated with the operator hwP˜ CM has a m well-defined contrast, which may be explained as follows. The use of the noise criterion to build (5) allows the classification of the points in the domain of definition of f in two sets: (i) a set SP(x),PCM (f ) composed by the regions m

3.1

of enhanced contrast, where ∀x [ SP(x),PCM (f ), P(x) ,

Proposed method to detect noise

m

An operator that computes the background in terms of the opening and closing by reconstruction is proposed as follows bm (f )(x) = w˜ m g˜ m (f )(x)

(3)

where bμ is the background of size μ, and g˜ m and w˜ m are the opening and closing by reconstruction size μ, respectively. The background operator in (3) indicates that if the size of the structuring element μ is increased, more maxima and minima will merge. Other expressions for the image background in terms of morphological operators can be found in [33, 34]. By replacing (3) in (2), the new contrast measure is rewritten as      f (x) − bm (f )(x) Cm (x) = bm (f )(x) (4)   ˜  Rm (f )(x) = bm (f )(x) where R˜ m (f )(x) = f (x) − bm (f )(x) is a residue transformation. The parameter PC introduced in [24] can be rewritten as

g˜ c and (ii) the set SP(x),P (f ) which is the PCMm for hwP˜ CM CM m

m

complement of SP(x),PCM (f ), where for all points x ∈ m

g˜ c (f ), P(x) ≥ PCMm for hwP˜ CM . The definition listed SP(x),P CM m

m

below is a consequence of the noise criterion, P(x) , PCMm , used in (5). Definition 1: A denoised image is said to have a well-defined contrast if one can classify its points according to a noise criterion. It is noteworthy to mention that the toggle mappings proposed in this paper fulfil Definition 1. In the next subsection, a new proposal is introduced which is an extension of the one given in this part.

3.2 Noise elimination based on the top-hat transformation ˜ m (f ) allows the The white top-hat by reconstruction TW detection of clear components. Hence, this transformation is an excellent operator to detect pixels with high intensity levels. The criterion to detect noise using the white top-hat

IET Image Process., 2014, Vol. 8, Iss. 3, pp. 131–141 133 doi: 10.1049/iet-ipr.2012.0615 This is an open access article published by the IET under the Creative Commons Attribution License(http://creativecommons.org/licenses/by/3.0/)

www.ietdl.org

Fig. 1 Modified method for noise detection a Original image b Background with μ = 5 by applying (3) c Detected contrast using (4) d Filtered image using (5) e Output image according to the proposal introduced in [24] with μ = 5

by reconstruction can be established by analysing the considerations given in [24]. In that study, the critical probability to detect noise is 1/8 when μ = 1. In other words, the central pixel whose value is above the mean of its neighbours is a noisy pixel. This criterion can be extended to one, that is, convenient for detecting noise in the high intensity levels. Thus, f (x) is not a noisy grey level if ˜ m (f )(x) ≤ TW ˜ m (f )(x) TW

3.3

˜ m (f ) represents the mean white top-hat by where TW reconstruction. This noise criterion allows to detect noise only in white components. Alternatively, the complement image must also be processed to filter the dark components using the same criterion. The following toggle mapping is proposed to suppress noise in the foreground

hTw˜˜ g˜ (f )(x) m

 =

˜ m (f )(x) ≤ TW ˜ m (f )(x) TW otherwise

f (x), w˜ g˜ (f )(x),

 =

hTw˜˜ g˜ (f c )(x) m

Other proposals for selecting the central pixel

When noisy pixels are detected, the contrast of the image is modified depending on the selection of the central pixel that substitutes noise. For example, if the intention is to obtain high contrast, a suggested central pixel can be obtained from the morphological erosion. Then (6) is rewritten as 

h1T˜ m (f )(x) = (6)

To clean noise in the complement image, (7) should be applied

kTw˜˜ g˜ (f )(x) m

detects important changes of intensity between the central pixel and the mean of its neighbours. The noisy central pixel is corrected by the filter w˜ g˜ (f ), that is, if the central pixel is a white pixel, the opening by reconstruction comes into action, otherwise the closing by reconstruction is employed. The filter w˜ g˜ (f ) modifies white and dark components when is applied.

c (7)

The differences between (5) and (6) are: (a) Equation (6) does not use a contrast measure nor a probability criterion; and (b) according to (7), (6) must be applied twice, once in the foreground and once in the complement. On the other hand, (5) is applied only once because the contrast measure

f (x), 1(f )(x),

˜ m (f )(x) ˜ m (f )(x) ≤ TW TW otherwise

(8)

In Fig. 2, the performance of (8) is illustrated. Images in Figs. 2a, b are smoother than the picture in Fig. 2c. The substitution of the central pixel by the morphological erosion produces more intense contours. To corroborate this situation, compare the images in Figs. 2d–f. Contours were obtained by (1). The erosion used as primitive in (8) is very interesting, because it suggests that the central pixel can take any value inside the window W given by the structuring element μB. If the set of pixels in the structuring element is sorted in ascending way, a rank filter ρμB,k( f ) is obtained [26], in which ρμ,k = 1( f ) = εμ( f ), where μ is the size of the structuring element, and k represents the number of applied filter. For this research, μ = 1, hence 1 ≤ k ≤ 9.

134 IET Image Process., 2014, Vol. 8, Iss. 3, pp. 131–141 This is an open access article published by the IET under the Creative Commons Attribution doi: 10.1049/iet-ipr.2012.0615 License(http://creativecommons.org/licenses/by/3.0/)

www.ietdl.org

Fig. 2 Erosion used as primitive to produce high contrast a Original image b Image processed with (6) taking μ = 1 c Image processed with (8) considering μ = 1 d–f Contours of the images in Figs. 2a–c

To simplify the notation, let us consider that ρμ, k( f ) = ρk( f ). Given that the rank filters are ordered, then the following proposed contrast mappings  r hT˜k (f )(x) m

=

˜ m (f )(x) ˜ m (f )(x) ≤ TW TW otherwise

f (x), rk (f )(x),

(9)

3.4

Alternative approximation to the mean filter

On the other hand, to eliminate top-hat by reconstruction can morphological transformation. relation [26]

˜ m (f ) from (9), the mean TW be approximated by other Consider the following

wg(f ) ≤ f ≤ gw(f )

are ordered, that is r

r

r

hT˜1 (f ) ≤ hT˜2 (f ) ≤ · · · ≤ hT˜9 (f ) m

m

The order relation in (10) is true for the opening and closing by reconstruction, that is

m

In this case, the inverted image must also be cleaned to obtain a filtered image. This is expressed as follows r kT˜k (f )(x) m

(10)

 c rk  c  = hT˜ f (x)

w˜ g˜ (f ) ≤ f ≤ g˜ w˜ (f )

(11)

where f is the mean function and w˜ g˜ (f ) and g˜ w˜ are the alternated filters by reconstruction. The next approximation is carried out from (11)

m

r

The filter kT˜k (f ) maintains the following order m

r

f ≃ g˜ w˜ (f )

r

r

kT˜1 (f ) ≥ kT˜2 (f ) ≥ · · · ≥ kT˜9 (f ) m

m

m

However, it is not convenient to change the central pixel for a value higher than the one obtained with the median filter, since the proposals to suppress noise in this study consider that the values of the pixels in a small region given by the size of the structuring element μB are not superior to their mean value. Therefore, the following transformations fulfil such requirement r

r

r

r

r

kT˜1 (f ), kT˜2 (f ), kT˜3 (f ), kT˜4 (f ) and hT5m (f ) m

m

m

m

˜ ˜ m can be replaced by jmTH (f ) = (g˜ w˜ (TWm (f )) in so that, TW (6), (8) and (9). For example, (6) can be rewritten as



h

w˜ g˜ ˜ jTH m

(f )(x) =

f (x), w˜ g˜ (f )(x),

˜

TWm (f )(x) ≤ jTH m (f )(x) otherwise

To filter noise in the dark components, the next expression

IET Image Process., 2014, Vol. 8, Iss. 3, pp. 131–141 135 doi: 10.1049/iet-ipr.2012.0615 This is an open access article published by the IET under the Creative Commons Attribution License(http://creativecommons.org/licenses/by/3.0/)

www.ietdl.org (iii) the primitive α(x) allows less smoothing than when the open–close by reconstruction is used as primitive. Nevertheless, the elimination of narrow regions remains an issue. In the case that noise is filtered first for the white components and then for the dark ones, the following toggle mapping in terms of the internal gradient is useful. This toggle does not use a contrast measure. Let jmgi (f ) = g˜ w˜ (gim (f )) and

must be applied 



 c

c

g˜ g˜ kw˜TH (f )(x) = hw˜TH f (x) ˜ ˜ jm

jm

3.5 Noise elimination based on the gradient transformation The internal gradient defined in (1) can be used as morphological contrast criterion Cgim to detect noise. Consider that Cgim (x) = gim (f )(x) Here, a variation in the method to detect noise similar to that defined in Section 3.1 is applied, but now the contrast probability is computed directly on the internal gradient. Let a(x) = (1/2)w˜ g˜ (f )(x) + (1/2)g˜ w˜ (f )(x) be a primitive. A similar primitive without reconstruction transformations was used in [1]. A new contrast mapping is defined as follows  a

h =

f (x),

PCgi (x) ≤ PCMm

a(x),

otherwise

(12)

m

where PCgi (x) is the probability computed on Cgim (x). m

Equation (12) has the following advantages: (i) it detects noise efficiently by employing the PCgi (x) ≤ PCMm m

criterion; (ii) it is applied only once to filter the image and

w˜ g˜

h (f )(x) =



f (x), w˜ g˜ (f )(x),

gim (f )(x) ≤ jmgi (f )(x) otherwise

(13)

To filter noise for the dark components, the next expression must be applied    c kw˜ g˜ (f )(x) = hw˜ g˜ f c (x) The performance of (13) is illustrated in Fig. 3.

4

Experimental results

4.1 Detection of the best operators to remove noise Fig. 4a presents the original image. The original image is contaminated with two classes of noise: zero mean Gaussian with 0.01 variance and 5% of salt and pepper noise. The resulting image is displayed in Fig. 4b. The image in Fig. 4b will be used as input image to test different transformations to remove noise. The resulting images are presented in Figs. 4c–l. The indexes, MSE,

Fig. 3 Noise elimination based on the gradient transformation a Original image b Application of (13) with μ = 1 c Inversion of the image in Fig. 3b d Application of (13) to the image in Fig. 3c with μ = 1 e Inversion of the image in Fig. 3d 136 IET Image Process., 2014, Vol. 8, Iss. 3, pp. 131–141 This is an open access article published by the IET under the Creative Commons Attribution doi: 10.1049/iet-ipr.2012.0615 License(http://creativecommons.org/licenses/by/3.0/)

www.ietdl.org

Fig. 4 Detection of the best operators to remove noise a Original image b Noisy image c Mean filter with μ = 1 d Median filter with μ = 1 e Method proposed in [24] using the median value to substitute noise taken from a window size μ = 1 f Method proposed in [24] using the α(x) filter to substitute noise taken from a window size μ = 1 g Application of (13) taking as primitive the median filter size μ = 1 h Application of (13) taking as primitive the α(x) filter size μ = 1 i Application of (5) taking as primitive the median filter size μ = 1 j Application of (5) taking as primitive the α(x) filter size μ = 1 k Application of (7) taking as primitive the α(x) filter size μ = 1 l Application of (7) taking as primitive the median filter size μ = 1

IET Image Process., 2014, Vol. 8, Iss. 3, pp. 131–141 137 doi: 10.1049/iet-ipr.2012.0615 This is an open access article published by the IET under the Creative Commons Attribution License(http://creativecommons.org/licenses/by/3.0/)

www.ietdl.org

Fig. 5 Image in Fig. 4b is used as the input image to test different transformations This image has 10% of zero mean Gaussian noise together with 5% of salt and pepper noise a Table with the computed contour preservation index, MSE and PSNR values b Graph corresponding to MSE c Graph corresponding to PSNR d Graph corresponding to the MCPI

PSNR and morphological contour preservation will be used to detect the best transformation to suppress noise. 4.1.1 Mean-square error (MSE): This index is computed by analysing the global contrast of the output images with respect to the original image. The better denoised images must fulfil two conditions: high contrast

and highest resemblance to the original image. Equation (4) is extended to measure the contrast as a global measure, which is expressed as follows

xm (f )(x) =

1  C (x), if vol(f ) = 0 vol(f ) x[D m f

138 IET Image Process., 2014, Vol. 8, Iss. 3, pp. 131–141 This is an open access article published by the IET under the Creative Commons Attribution doi: 10.1049/iet-ipr.2012.0615 License(http://creativecommons.org/licenses/by/3.0/)

www.ietdl.org

where vol(f ) = x[Df f (x) represents the sum of all grey levels of the original image and is used to normalise the contrast values, whereas Df represents the definition domain of the original image. The MSE index is obtained as follows [34]  2 MSE = xm − xmRef

literature. This transformation is expressed as follows 

h

Mm

(f )(x) =

f (x),

P(x) , PCMm

Mm (f )(x),

otherwise

(14)

where Mμ( f )(x) represents the median filter.

where χμ represents the contrast measure of each processed image and xmRef is the contrast measure of the original image. Fig. 5a shows the computed values of MSE for each image presented in Fig. 4. The graph of the MSE values is given in Fig. 5b. The best values of MSE are those nearest to 0. 4.1.2 Peak signal-to-noise ratio (PSNR): The PSNR values can be observed in Fig. 5a, and its corresponding graph in Fig. 5c. The best PSNR measures are associated with the greatest values. 4.1.3 Morphological contour preservation index (MCPI): This index is used as a measure to survey the contours of the output images with respect to the edges of the original image. To obtain the MCPI index, it is necessary to compute the internal gradient, which was defined in (1), and the edge preservation parameter (EPP). The EPP is obtained from the convolution (denoted as *) of two kernels of size 3 × 3 with the morphological internal gradient. These kernels allow to detect horizontal, Gh, and vertical, Gv, changes for each point in the internal gradient. EPP is expressed as follows   EPP = Gh (x) + Gv (x) x[Dgradi(f )

x[Dgradi(f )

With ⎡

1

1

1



⎢ ⎥ 0 0 ⎦ ∗ gradimB (f ) Gh = ⎣ 0 −1 −1 −1 ⎡ ⎤ −1 0 1 ⎢ ⎥ and Gv = ⎣ −1 0 1 ⎦ ∗ gradimB (f ) −1

0

1

where Dgradi( f ) represents the definition domain of the internal gradient. The EPP enables us to compute the MCPI as follows MCPI =

EPPnoisy EPPoriginal

where EPPnoisy is obtained from the noisy image and EPPoriginal from the original image. The computed MCPI values for images in Fig. 4 are presented in Fig. 5a and the corresponding graph in Fig. 5d. The best MCPI values are those nearest to 1. According to the graphs in Figs. 5b, c and d, the images presenting the best characteristics – MCPI nearest to 1, high PSNR values and MSE measure close to 0 – are the images in Figs. 4i, j and k. In particular, operator in (5) with the median filter size μ = 1 as primitive and associated with the image in Fig. 4i will be used to verify its performance with respect to other transformations reported in the current

Fig. 6 Comparison of transformation to suppress noise (O-a,b,c) Original images (N-a,b,c) Images in Figs. 6(O-a,b,c) contaminated with zero mean Gaussian with 0.01 variance and 5% of salt and pepper noise (W-a,b,c) Noise elimination using wavelets (P-a,b,c) Noise elimination using PDEs (R-a,b,c) Noise elimination using Rank max connected opening (OP-a,b,c) Noise elimination using our proposal (A-a,b,c) Noise elimination using morphological amoebas

IET Image Process., 2014, Vol. 8, Iss. 3, pp. 131–141 139 doi: 10.1049/iet-ipr.2012.0615 This is an open access article published by the IET under the Creative Commons Attribution License(http://creativecommons.org/licenses/by/3.0/)

www.ietdl.org 5

4.2 Comparison of different transformations to remove noise Three images with the codes 66075, 35008 and 65010 were selected from [31] to compare the performance of (14) with other transformations reported in the literature. The three selected images are presented in Figs. 6O-a, b and c. The original images are contaminated with two classes of noise, zero mean Gaussian with 0.01 variance and 5% of salt and pepper noise. These images are displayed in Figs. 6N-a, b and c and will be used to test our operator. Two transformations, the curvature preserving PDE [27] and the wavelet GSM [28] are applied and the results are presented in Figs. 6P-a, b, c, W-a, b and c. For curvature preserving PDE, the smooth anisotropic function is applied with the following parameters: amplitude 60, sharpness 0.70, anisotropy 0.26, gradient smoothness 0.63, tensor smoothness 0.29, spatial precision 0.80, angular precision 30, value precision 2, iterations 1 and tiles 1. Whereas the wavelet function is used with default parameters defined in the MATLAB code provided freely by the authors. In Figs. 6R-a, b and c, the morphological connected rank max opening [29] with parameters μ = 5 and k = 12 is utilised; this operator is an adaptive transformation. The morphological connected rank max opening has the capacity of eliminating white connected regions of certain size. In this case structures smaller than 12 pixels are suppressed. Images in Figs. 6OP-a, b and c are obtained by applying (14) with μ = 1, whereas those in Figs. 6A-a, b and c employ morphological amoebas [30] to suppress noise. In this paper, amoebas use a window of size μ = 5 and λ = 0.05. Morphological amoebas are also adaptive transformations. In order to elucidate which output image presents a better behaviour, PSNR and structural similarity (SSIM) indexes [35] were computed. These indexes are shown in Tables 1 and 2. In terms of PSNR, our technique outperforms the other algorithms. On the other hand, the SSIM index corresponding to the image in Fig. 6P-a indicates that PDEs transformations have a better performance; however, notice that salt and pepper noise has not been completely eliminated. Table 1 PSNR for the three analysed images PSNR

noisy images (N) wavelets (W) PDEs (P) rank max opening (R) our proposal (OP) amoebas (A)

(a)

(b)

(a)

23.49 24.19 25.22 24.27 25.84 22.24

21.63 21.63 22.33 21.42 22.76 22.22

23.98 24.31 24.87 23.57 25.71 21.47

Table 2 SSIM for the three analysed images SSIM

noisy images (N) wavelets (W) PDEs (P) rank max opening (R) our proposal (OP) amoebas (A)

(a)

(b)

(a)

0.31 0.35 0.46 0.40 0.45 0.32

0.23 0.23 0.29 0.26 0.30 0.25

0.36 0.39 0.44 0.39 0.47 0.27

Conclusions

At the beginning of this paper the methodology studied in [24] was presented. From this technique, two concepts were exploited: (i) PC, the critical threshold to detect noise and (ii) the contrast measure. When the parameter PCMm is used as proximity criterion in the toggle mappings, noise is detected and filtered in one pass; however, it is necessary to compute a contrast probability. If toggle mappings use the extended PCMm criteria, then to supress noise it is necessary to filter the foreground and the inverted image, as typically occurs in MM. When the primitives applied to filter the images are the original and the transformations by reconstruction images, no new contours are created, but the output image will be smoothed. According to the experimental results summarised in the graphs of Fig. 5, two transformations proposed in this paper present a better performance when they are compared with the proposal introduced in [24]. These operators are: (i) the method that includes the modification of the contrast measure given in Section 3, and (ii) the methods based on the top-hat transformation as noise criterion. According to the experiments carried on in Section 4, in order to select the best cleaned image from a set of processed images, notice that, it was necessary to apply three indexes, since the use of only one of them can produce an erroneous selection. Finally, the toggle mappings built with the top-hat as noise criterion are readily implemented and fast to execute.

6

Acknowledgments

The author Iván R. Terol-Villalobos would like to thank Diego Rodrigo and Darío T.G. for their great encouragement. This work was funded by the government agency CONACyT-México under the grant 133697.

7

References

1 Richard, A.P.: ‘A new algorithm for image noise reduction using mathematical morphology’, IEEE Trans. Image Process., 1995, 4, (5), pp. 554–568 2 Serra, J.: ‘Mathematical morphology’ (London, Academic, 1982, vol. I) 3 Serra, J. (Ed.): ‘Image analysis and mathematical morphology’ in ‘Theoretical Advances’ (San Diego, Academic Press, 1988, vol. 2) 4 Ito, Y., Sato, T., Yamashita, N., Jianming, L., Sekiya, H., Yahagi, T.: ‘Impulse noise detector using mathematical morphology’. In: Proc. IEEE Int. Symp. on Circuits and Systems, 2006, pp. 4261–4265 5 Lal, S., Chandra, M., Upadhyay, G.K.: ‘Noise removal algorithm for images corrupted by additive Gaussian noise’, Int. J. Recent Trends Eng., 2009, 2, (1), pp. 199–206 6 Alok, S., Umesh, G., Chakresh, K., Ghanendra, K.: ‘An efficient morphological salt-and-pepper noise detector’, Int. J. Adv. Netw. Appl., 2011, 2, (5), pp. 873–875 7 Corner, B.R., Narayanan, R.M., Reichenbach, S.E.: ‘Noise estimation in remote sensing imagery using data masking’, Int. J. Remote Sens., 2003, 24, pp. 689–702 8 Gravel, P., Beaudoin, G., De Guise, J.A.: ‘A method for modeling noise in medical images’, IEEE Trans. Med. Imaging, 2004, 23, (10), pp. 1221–32 9 Aizenberg, I.: ‘Effective impulse detector based on rank-order criteria’, IEEE Signal Process. Lett., 2004, 11, (3), pp. 363–366 10 Petrovic’, N., Crnojevic’, V.: ‘Impulse noise detection based on robust statistics and genetic programming’. In: Advanced Concepts for Intelligent Vision Systems 2005. Lecture Notes in Computer Science, Berlin, 2005, vol. 3708, pp. 643–649 11 Radhika, V., Padma, V.G.: ‘Performance of impulse noise detection methods in remote sensing images’, Int. J. Eng. Sci. Technol., 2010, 2, (9), pp. 4526–4532

140 IET Image Process., 2014, Vol. 8, Iss. 3, pp. 131–141 This is an open access article published by the IET under the Creative Commons Attribution doi: 10.1049/iet-ipr.2012.0615 License(http://creativecommons.org/licenses/by/3.0/)

www.ietdl.org 12 Chih-Lung, L., Chih-Wei, K., Chih-Chin, L., Ming-Dar, T., Yuan-Chang, C., Hsu-Yung, C.: ‘A novel approach to fast noise reduction of infrared image’, Infrared Phys. Technol., 2011, 54, (1), pp. 1–9 13 Vijaykumar, V.R., Vanathi, P.T., Kanagasabapathy, P.: ‘Fast and efficient algorithm to remove Gaussian noise in digital images’, IAENG Int. J. Comput. Sci., 2010, 37, (1), pp. 78–84 14 Pyka, K.: ‘The use of wavelets for noise detection in the image taken by the analog and digital photogrammetric cameras’. The Int. Archives of the Photogrammetry, Remote Sensing and Spatial Information Sciences, Vol. XXXVII-B1, 2008 15 Sudha, S., Suresh, G.R., Sukanesh, R.: ‘Speckle noise reduction in ultrasound images by wavelet thresholding based on weighted variance’, Int. J. Comput. Theory Eng., 2009, 1, (1), pp.1 16 Tasmaz, H., Ercelebi, E.: ‘Image enhancement via space-adaptive lifting scheme exploiting subband dependency’, Digit. Signal Process., 2010, 20, (6), pp. 1645–1655 17 Church, J.C., Chen, Y., Rice, S.V.: ‘A spatial median filter for noise removal in digital images’. In IEEE Southeastcon, 2008, SECON, pp. 618–623 18 Schulte, S., De Witte, V., Kerre, E.E.: ‘A fuzzy noise reduction method for color images’, IEEE Trans. Image Process., 2007, 16, (5), pp. 1425–36 19 Liu, C., Szeliski, R., Kang, S.B., Zitnick, C.L., Freeman, W.T.: ‘Automatic estimation and removal of noise from a single image’, IEEE Trans. Pattern Anal. Mach. Intell., 2008, 30, (2), pp. 299–314 20 Terol-Villalobos, I.R.: ‘Morphological connected contrast mappings based on top-hat criteria: a multiscale contrast approach’, Opt. Eng., 2004, 43, (7), pp. 1577–1595 21 Rivest, J.F., Soille, P., Beucher, S.: ‘Morphological gradients’, J. Electron. Imaging, 1993, 2, (4), pp. 326–336 22 Meyer, F., Serra, J.: ‘Activity mappings’, Signal Processing 1989, 16, (4), pp. 303–317 23 Vincent, L.: ‘Morphological grayscale reconstruction in image analysis: applications and efficient algorithms’, IEEE Trans. Image Process., 1993, 2, (2), pp. 176–201 24 Beghdadi, A., Khellaf, A.: ‘A noise-filtering method using a local information measure’, IEEE Trans. Image Process., 1997, 6, (6), pp. 879–882

25 Beucher, S.: ‘Numerical residues’. In:Mathematical Morphology and its Applications to Image Processing, Proc. ISMM’05, 2005, pp. 23–32 26 Maragos, P., Schafer, R.: ‘Morphological filters-part I: their set-theoretical analysis and relations to linear shift invariant filters’, IEEE Trans. Acoust. Speech Signal Process., 1987, 35, pp. 1153–1169 27 Tschumperlé, D.: ‘Fast anisotropic smoothing of multi-valued images using curvature-preserving PDEs’, Int. J. Comput. Vis., 2006, 68, (1), pp. 65–82 28 Portilla, J.: ‘Full blind denoising through noise covariance estimation using Gaussian scale mixtures in the wavelet domain’. In: Proc. IEEE Int. Conf. Image Proc., 2004, pp. 1217–1220 29 Mendiola-Santibañez, J.D., Terol-Villalobos, I.R., Jiménez-Sánchez, A. R., Gallegos-Duarte, M., Rodriguez-Resendiz, J., Santillan, I.: ‘Application of morphological connected openings and levelings on magnetic resonance images of the brain’, Int. J. Imaging Syst. Technol., 2011, 21, pp. 336–348 30 Lerallut, R., Decencière, E., Meyer, F.: ‘Image filtering using morphological amoebas’, Image Vis. Comput., 2007, 25, (4), pp. 395–404 31 Martin, D., Fowlkes, C., Tal, D., Malik, J.: ‘A database of human segmented natural images and its application to evaluating segmentation algorithms and measuring ecological statistics’. In: Proc. IEEE Int. Conf. Computer Vision, 2001, 2, pp. 416–423 32 Heijmans, H.: ‘Morphological image operators’, in: Hawkes, P. (ed.): ‘Advances in electronics and electron physics’ (Academic Press, 1994) 33 Jiménez-Sánchez, A.R., Mendiola-Santibañez, J.D., Terol-Villalobos, I. R., et al.: ‘Morphological background detection and enhancement of images with poor lighting’, IEEE Trans. Image Process., 2009, 18, (3), pp. 613–623 34 Jiménez-Sánchez, A.R., Santillán, I., Rodriguez-Resendiz, J., Gonzalez-Gutierrez, C.A., Mendiola-Santibañez, J.D.: ‘Morphological contrast index based on the weber’s law’, Int. J. Imaging Syst. Technol., 2012, 22, pp. 137–144 35 Wang, Z., Bovik, A.C., Sheikh, H.R., Simoncelli, E.P.: ‘Image quality assessment: From error visibility to structural similarity’, IEEE Trans. Image Process., 2004, 13, (4), pp. 600–612

IET Image Process., 2014, Vol. 8, Iss. 3, pp. 131–141 141 doi: 10.1049/iet-ipr.2012.0615 This is an open access article published by the IET under the Creative Commons Attribution License(http://creativecommons.org/licenses/by/3.0/)

Suggest Documents