Open Access
4 October 2016 Image segmentation on adaptive edge-preserving smoothing
Kun He, Dan Wang, Xiuqing Zheng
Author Affiliations +
Abstract
Nowadays, typical active contour models are widely applied in image segmentation. However, they perform badly on real images with inhomogeneous subregions. In order to overcome the drawback, this paper proposes an edge-preserving smoothing image segmentation algorithm. At first, this paper analyzes the edge-preserving smoothing conditions for image segmentation and constructs an edge-preserving smoothing model inspired by total variation. The proposed model has the ability to smooth inhomogeneous subregions and preserve edges. Then, a kind of clustering algorithm, which reasonably trades off edge-preserving and subregion-smoothing according to the local information, is employed to learn the edge-preserving parameter adaptively. At last, according to the confidence level of segmentation subregions, this paper constructs a smoothing convergence condition to avoid oversmoothing. Experiments indicate that the proposed algorithm has superior performance in precision, recall, and F-measure compared with other segmentation algorithms, and it is insensitive to noise and inhomogeneous-regions.

1.

Introduction

As a technology used to extract a region of interest automatically or semiautomatically, image segmentation is a key step in image analysis and understanding studies.1 It is used for object model representation, parameter extraction, object recognition, and for video encoding of objects in MPEG4.2 Until now, there have been lots of segmentation methods for all kinds of purposes, such as organ extraction in medical applications3 and object detection in the remote sensing systems.4 However, they are all only used for some specific purposes, and it is difficult to generalize them to any image segmentation tasks. Consequently, a uniform segmentation framework is required for researchers and developers.5

Generally, image segmentation is implemented based on similarity and dissimilarity among subregion features,6 such as color, intensity, statistical characteristics, and specific shape. However, real images contain a large amount of inhomogeneous subregions and are unavoidably affected by noise. On the one hand, inhomogeneous subregions may form weak edges or deteriorate the similarity of the subregion, i.e., intensity uniformity. On the other hand, since noise causes pseudo-edges and weakens the significant difference among subregions,7 the nonrobustness of the subregion characteristics is aggravated.

Active contour models for image segmentation are popular algorithms for dividing an image into foreground and background. The basic idea is a deformable curve, which conforms to various shapes of objects. Combining the piecewise smoothing with the statistical properties of the noise, Chan and Vese proposed the region-based active contour model (CV model).8 In this model, the object and background regions are represented as the mean of subregions respectively. Thus, it is insensitive to noise and helpful for enhancing the computational efficiency of the Mumford–Shah model.9

The results of segmentation using the CV model are unsatisfactory for real images. The reason is that in-homogeneity reduces significant differences of the mean of subregions. In order to improve the segmentation performance, Tsai and Yezzi proposed a piecewise smooth (PS) model10 by approximating pixels of subregion into a function. Compared to the CV model, the PS model is insensitive to inhomogeneous subregions, but it is difficult to apply it in practice due to the expensive computational cost. Therefore, Li and Kao proposed a local binary fitting model,11 which employs the Gauss kernel function to approximate the neighborhood pixels of the active contour. Peng and Liu proposed an active contour model driven by normalized local image fitting energy.12 Although the above models have strong locating capabilities, the results of segmentation rely on the assumption of approximation function and the initial curve.

In order to overcome these shortcomings, a large number of research works were investigated. To strengthen the robustness of the initial curve, Jiang and Feng proposed a segmentation model based on improved level set and region growth, which takes the statistical information of an object as seed.13 Based on regional-similarity and the level set, Kong and Wang proposed the segmentation model to improve the hypothesis of approximation function model.14

Although region-based active contour segmentation models are generally robust to noise, they are valid only for images with homogeneous region given the number of subregions. According to the relationship between contour and edge, Li et al. proposed an edge-based active contour segmentation model.15 Unfortunately, it is sensitive to noise and inhomogeneous subregions. To cope with this, images are often smoothed with a Gaussian filter. However, a Gaussian filter is an isotropic point diffusion that crosses the boundaries of subregions and leads to the level set curve converging at the neighbor of object contours. Furthermore, a Gaussian filter with large standard variance may seriously blur boundaries formed by weak edges. This leads to the overconvergence of curves, and conversely the curves will be premature. It is difficult to adaptively choose standard variance for different regions in an image.16 By incorporating prior object-shape information into the initial evolving curve, Yeo and Xie improved the accuracy of segmentation for specific shape regions.17

Under- and over-segmentation phenomenon exist when traditional active contour models are applied to real images due to inhomogeneous subregions and weak edges. In order to smooth the inhomogeneous subregions and preserve edges, we propose the smoothing conditions for image segmentation: (1) isotropic smoothing inside the subregions and (2) anisotropic smoothing along the edge. Unfortunately, the aforementioned conditions are incompatible. Inspired by total variation,18 we construct an edge-preserving smoothing model, which is a compromise of the above conditions. Further, due to the location of edges, a fixed edge-preserving parameter is not a reasonable trade-off between edge-preserving and subregion smoothing. It will cause blurred-edges and residual nonuniformity in the smoothing component. To solve this problem, we investigate the two-clustering algorithm of center pixel and four neighbors to adjust the edge-preserving parameter adaptively. Fixed-point iteration is employed to compute the smoothing component. While the number of iteration is high, the smoothing component converges to the mean of the image, and the difference between the feature of an object and that of the surrounding region is not significant. To avoid these, we construct a smoothing convergence condition according to the confidence level of segmentation subregions on different smoothing components. The experimental results show that this segmentation model is insensitive to noise and inhomogeneous-regions.

The outline of the paper is as follows. In the next section, two conditions on image piecewise smoothing are proposed to construct an edge-preserving smoothing model, and the clustering algorithm is employed to learn the edge-preserving parameter. In Sec. 3, a new segmentation model for the edge-preserving smoothing component is proposed. The proposed image segmentation model is implemented in Sec. 4. The experimental results are given in Sec. 5. Finally, the conclusion is given in Sec. 6.

2.

Proposed Edge-Preserving Model

The active contour model for image segmentation is curve evolution implementation based on the Mumford–Shah model.9 It is formulated as the following minimization problem:

Eq. (1)

E(u,C)=τ2Ω[u(x,y)u0(x,y)]2dxdy+Ω/C|u(x,y)|2dxdy+γC,
where C is the segmentation curve, u0:Ω[0,1] is a given image, u is a piecewise smoothing component of an image u0 and contains homogeneous subregions and significant differences among subregions. The piecewise smoothing component u is a solution of the following problem:

Eq. (2)

infu{E(u,C)=τ2Ω(uu0)2dxdy+Ω/Cf(|u|)dxdy}.
To analyze the diffusibility performance for the smoothing function f(|u|), the function f(|u|) is decomposed using the local image structures, i.e., the tangent and normal directions. The diffusibility performances along the tangent and normal directions are denoted by ρT and ρN, respectively:

Eq. (3)

ρT=f(|u|)|u|,ρN=f(|u|).

2.1.

Edge-Preserving Smoothing

In order to smooth subregions and preserve edges for real images, the diffusibility performance of the function f(|u|) along the tangent and normal directions should satisfy the following two conditions:

  • 1. Inside the subregion where gradients are low, we would like to encourage smoothing along the tangent and normal directions, which makes the intensities of the subregions equal or nearly equal to constant. In other words, it is isotropic diffusion. Assume that the function is regular, this condition may be achieved by imposing:

    Eq. (4)

    lim|u|0ρT=lim|u|0ρN=α>0.

  • 2. In an edge where the image presents a strong gradient, we prefer to diffuse along this edge and not across it. To do this, it is sufficient to annihilate, for strong gradients, the coefficient of ρN and assume that the ρT does not vanish:

    Eq. (5)

    lim|u|ρT=β>0,lim|u|ρN=0.

In the Mumford–Shah model,9 the L2-norm of the gradient is a smoothing function for segmentation. The diffusibility performances of this function along the tangent and normal directions are the same, i.e., ρT=ρN=1. The diffusion actions in the normal direction cross the edge; thus, this function cannot satisfy the second condition. To preserve the edge, Chan et al.18 proposed the total variation that the L1-norm of the gradient replaces the L2-norm. The performance along the normal direction is zero. It does not satisfy the first condition, which leads to a pseudoedge in the smoothing subregions.

Unfortunately, the above two conditions are incompatible. Compared with the piecewise smoothing functions of the Mumford–Shah model9 and total variation,18 we design an edge-preserving smoothing function for image segmentation.

Eq. (6)

f(|u|)=ln(1+|u|).

The diffusibility performance in the tangent and normal directions are as follows:

Eq. (7)

ρT=1(1+|u|)|u|,ρN=1(1+|u|)2.
Inside the subregion where gradients are low, lim|u|0ρT=, lim|u|0ρN=1; at the edge where gradients are strong, lim|u|ρT=lim|u|ρN=0, and lim|u|ρNρT=1 (see Fig. 1). It is a compromise of two conditions on edge-preserving smoothing. This function preserves the edge and smooths the inhomogeneous subregion. Therefore, the edge-preserving smoothing model is given as

Eq. (8)

infu{E(EP)(u)=τ2Ω(uu0)2dxdy+Ωln(1+|u|)dxdy}.

Fig. 1

The diffusibility performance of this function. The solid and dash dot curve denote the diffusibility in the tangent and normal direction, respectively.

JEI_25_5_053022_f001.png

This problem allows for a unique solution characterized by the Euler–Lagrange equation:

Eq. (9)

τ(uu0)div[u(1+|u|)|u|]=0.
To compute the smoothing component, we use a semi-implicit finite difference scheme. Let a set Λ is four neighbors region of the center pixel (i,j), and p is a member of set Λ, the approximation of Eq. (9) can be simply written as

Eq. (10)

u(i,j)=1τ+pΛω(p)[τu0(i,j)+pΛω(p)u(p)],
where τ is the edge-preserving parameter, in other words, it is the weight coefficient of the center pixel. The ω(p) is the weight coefficient of the neighbor pixel p, the relationship between ω(p) and the gradient is shown in Fig. 2.

Eq. (11)

ω(p)=1[1+|u(p)|]|u(p)|.

Fig. 2

The weight coefficient of the neighbor pixel.

JEI_25_5_053022_f002.png

2.2.

Adaptive Edge-Preserving Smoothing

In traditional edge-preserving smoothing algorithms (i.e., TV18), the edge-preserving parameter τ in Eq. (10) often is fixed by an artificial setting. If τω(p), then u(i,j)u0(i,j). The smoothing component contains the redundancy of inhomogeneous subregion, which causes the level set converge to local optima. If τω(p), the u(i,j) approximates the weighted-mean of four neighborhood pixels. The edge of the smoothing component is blurred, the segmentation-curve is overconvergence. Above all, the fixed parameter cannot weigh up the edge-preserving and subregion smoothing according to local information of an image.

To solve the above problem, we analyze the two-clustering of the center pixel and four neighbors based on their possible spatial relationship.

  • If four neighborhood pixels locate in the object region, the center pixel belongs to the object region according to the subregion connectivity.

  • If the center pixel locates at the object boundaries, one of the following three cases applies:

    • One of the four neighbor pixels locates in background, others in an object region. There are (41)=4 kinds of situations.

    • Two of the four neighbor pixels locate in background and others in an object region, there are (42)=6 kinds of situations.

    • According to the continuity of the object contour, three or all of neighbor pixels cannot locate in the background.

The two-clustering of the center pixel and its four neighbors are shown in Fig. 3. Observed from Fig. 3, the edge-preserving parameter τ is set as the medium of the weight coefficients of the center pixel and its four-neighbor:

Eq. (12)

τ=k×medium{1[1+|u0(i,j)|]|u0(i,j)|,ω(p)}pΛ0,
where k is the constant, which normalizes parameter τ.

Fig. 3

The two-clustering of the center pixel and its four neighbors, the white and black circles denote object and background, respectively. (a) All pixels in the object region, (b) one of the four neighbor pixels locates in background and others in object region, and (c) two of the four neighbor pixels locate in background and others in object region.

JEI_25_5_053022_f003.png

3.

Segmentation Model

In terms of the analysis in Sec. 2, the segmentation model on the smoothing component is proposed as the following minimization problem:

Eq. (13)

infC{E(u,C)=Ω(u(x,y)u0(x,y)2dxdy+Ωln(1+|u(x,y)|)dxdy+γC}.

During image segmentation, the curve may have a topological deformation (split or merge). To cope with this problem, active contours based on the level set are applied into image segmentation. The basic idea is to represent contours as the level set of an implicit function φ(x,y), i.e., C={(x,y)|φ(x,y)=0}. The inside-region denotes {(x,y)|φ(x,y)<0} and outside-region is {(x,y)|φ(x,y)>0}. To simplify, both regions are approximated by the Heaviside function H(φ). The curve is represented as the Dirac measure δ(φ), which is the derivative of H(φ), where H(φ) and δ(φ) are defined as, respectively,

Eq. (14)

H(φ)={1φ00φ<0,δ(φ)=dH(φ)dφ.
However, φ(x,y) cannot satisfy the regularity condition |φ|=1, the penalty term is introduced15

Eq. (15)

p(φ)=12Ω|φ1|2dxdy.

Since the circumference and the area of the closed curve become smaller, the optimal segmentation curve is represented as

Eq. (16)

infφ{ϵ(φ)=λΩgδ(φ)|φ|dxdy+νΩgH(φ)dxdy+μ2Ω|φ1|2dxdy},
where λ and ν are the weight of the circumference and area of curve, respectively, and g is the edge indicator function of the smoothing component

Eq. (17)

g=(1+|u|)1.

If the level set curve locates in where the gradients are low, the edge indicator function is almost the maximum of the entire image. Otherwise, the edge indicator function is the minimum, and the level set curve convergence to the boundary.

Consequently, we incorporate the edge-preserving smoothing model into the above segmentation model, and construct the energy function of the edge-preserving smoothing segmentation model.

Eq. (18)

infφ{E(u,φ)=Ω[u(x,y)u0(x,y)]2dxdy+τ2Ωln[1+|u(x,y)|]dxdy+λΩgδ(φ)|φ|dxdy+νΩgH(φ)dxdy+μ2Ω|φ1|2dxdy}.
To minimize the function E(u,φ), we denote the Gateaux derivative19 of the function E(φ,u) as E(φ,u)/φ. By calculating variations, the Gateaux derivative of the function E(φ,u) in Eq. (18) can be written as

Eq. (19)

E(u,φ)φ=μ[Δφdiv(φ|φ|)]λδ(φ)div(gφ|φ|)νgδ(φ),
where Δ is the Laplacican operator. Therefore, φ satisfies the Euler–Lagrange equation. By introducing an artificial temporal variable t, we use the steepest descent process to get minimization of the function E(u,φ), whose gradient flow is

Eq. (20)

φt=μ[Δφdiv(φ|φ|)]+λδ(φ)div(gφ|φ|)+νgδ(φ).

4.

Implementation

In Eq. (20), the Dirac measure δ(φ) is noncontinuous. When calculating the level set, take continuous δa(φ) (a=1.5) instead of δ(φ)

Eq. (21)

δa(φ)={0|φ|>a12a[1+cos(πφa)]|φ|a.

In this paper, the φ/t is approximated by the forward difference, and the φ is approximated by the central difference. The approximation of Eq. (20) for the smoothing component um can be simply written as

Eq. (22)

φi,jk+1φi,jkΔt=μ[Δ(φi,jk)div(φi,jk|φi,jk|)]+λδa(φi,jk)div(gi,jmφi,jk|φi,jk|)+νgi,jmδa(φi,jk),
where, Δt is the time step, and gi,jm is edge indicator function of the smoothing component um. um is calculated by the fixed-point iteration algorithm

Eq. (23)

ui,jm=1τm+pΛ0ωm(p)[pΛ0ωm(p)um1(p)+τmu0(i,j)].
For Eq. (23), the smoothing component converges to the mean of the initial image without constraint conditions, which leads to the difference between the features of the object and the surrounding region not being significant. To avoid this phenomenon, we present the confidence level of segmented subregions on two adjacent iterations of the smoothing component, which is defined as following:

Eq. (24)

Pr=card(AmAm1)max[card(Am),card(Am1)].
Here the set Am and Am1 represent the segmented subregions [(x,y)|φ(x,y)0] for the smoothing component um and um1, respectively. When the confidence level satisfies the following condition, the smooth is terminated:

Eq. (25)

PrT,
where T is the threshold of the regional confidence level.

The steps of image segmentation (output)

{Initial: k,λ,μ,ν,Δt,T,φ0(x,y) and u0=u0}

N is the iterative number of image smoothing

Begin

N:= 0;

Repeat

  Computing the weight coefficient ω(p) of smoothing component uN uses:

Eq. (26)

ωN(p)=1(1+|uN1(p)|)|uN1(p)|.

  Computing the edge-preserving parameter τ:

Eq. (27)

τN=k×medium{1(1+|u0(i,j)|)|u0(i,j)|,ωN(p)}pΛ0.

  Computing the smoothing component uN uses:

Eq. (28)

ui,jN=1τN+pΛ0ωN(p)[pΛ0ωN(p)uN1(p)+τNu0(i,j)].

  Computing the edge indicator function of the smoothing component uN uses:

Eq. (29)

g(uN)=11+|uN|.

Segmentation of the smoothing component uN uses: Eq. (22)

Until

The convergence condition: Eq. (25)

Output: the result of segmentation.

End

5.

Experimental Results

5.1.

Implementation Details

The experiments are conducted using VC 6.0 on a PC with Intel-Core i5 CPU @ 3.40 GHz and 4 GB of RAM without any particular code optimization. During the implementation of the proposed model, we used the parameters λ=5.0, μ=0.04, ν=3.0 and time step Δt=5.0 for all experiments. Here, we propose the following functions as the initial function φ0(x,y). Let Ω0 be all the points on the boundaries of Ω0 which is a subset in the image domain Ω. Then, the initial function φ0(x,y) is defined as

Eq. (30)

φ0(x,y)={ξ(x,y)Ω0Ω00(x,y)Ω0ξ(x,y)ΩΩ0,
where ξ is a constant. We suggest to choose ξ larger than 2a, where a is the width in the definition of the regularized Dirac function δa(φ) in Eq. (21).

In this paper, we use three universally agreed on, standard, and easy-to-understand measures for evaluating a segmentation model, those are precision, recall, and F-measure. The first two evaluation metrics are based on the overlapping area between ground truth and segmentation regions. Usually, neither precision nor recall can comprehensively evaluate the quality of segmentation. So the F-measure is proposed as a harmonic mean of them. For a segmentation object region, we can convert it to a binary mask M and compute precision and recall by comparing M with ground-truth G

Eq. (31)

precision=|MG||M|,recall=|MG||G|,F-measure=2×precision×recallprecision+recall.

5.2.

Discussion

The image is smoothed using the edge-preserving smoothing model in the proposed model, so the segmentation performance depends on the parameter k in Eq. (12). To analyze the relationship between k and the scores of image segmentation (precision, recall, and F-measure), a 480×320-pixel image with grass and sand in the Berkeley segmentation database is smoothed with different parameter k, and the results of segmentation are shown in Fig. 4. The initial curve and ground truth are represented as a red rectangle and yellow curve, respectively, in the top left-hand corner subimage of Fig. 4.

Fig. 4

The results of segmentation, edge indicator functions, and smoothing components with different parameter k. (a) The flowerbed, (b) the edge indicator function, and (c) the cartoon component. Row 1: original images and initial curves, rows 2 to 5: the results of segmentation, edge indicator function, and smoothing component using 0.005, 0.05, 0.2, 0.25, and 0.5, respectively.

JEI_25_5_053022_f004.png

As illustrated in the second row, the subregion pixels close to constant and the edge are blurred by this smoothing algorithm with k=0.005. The blurred edge leads to the over-convergence of the level set, which results in parts of the object region pixels being mistaken as the background. Thus, the recall is low at 0.862. The precision and the F-measure are 0.995 and 0.915, respectively.

As illustrated in the last row, when k=0.5, the smoothing component contains remnants of an inhomogeneous subregion, which leads to the level set convergence at the local optimum. The precision is low, and the F-measure is 0.848.

Figure 5 shows CPU times and scores of the segmentation on Fig. 4 using this model with different parameters k. While k is smaller, the precision, recall, and F-measure of the segmentation are lower and the CPU time is shorter.

Fig. 5

The CPU time (in seconds) and score of segmentation in Fig. 4. (a) The CPU time of the segmentation using the different parameter k. (b) The red, green, and blue curves show the F-measure, precision, and recall of the segmentation the different parameter using the different parameter k, respectively.

JEI_25_5_053022_f005.png

If k is large, the remnants inhomogeneous subregion leads to the level set’s fast convergence at the local optimum. When k[0.05,0.18], this model preserves the edge and smooths the inhomogeneous subregion. The maximum difference of the F-measure is 0.005, e.g., the F-measures of the segmentation with k=0.05 and 0.18 are 0.98 and 0.975, respectively.

In this model, the smooth components converge to the mean of the image without constrained conditions, which leads to the difference between the feature of the object and that of the surrounding region not being significant. To avoid this, we use the threshold of segmented subregions confidence level. To validate how the threshold affects the segmentation performance, a 480×320-pixel potted-tree image of the Berkeley segmentation database, in which some subregions are inhomogeneous (crown of the tree), is segmented with different thresholds.

The segmentation results are shown in Fig. 6. The initial curve and the ground truth, represented as a red rectangle and blue curve, respectively, are shown in Fig. 6(a). The smoothing component retains an inhomogeneous subregion by this smoothing algorithm using the threshold T=0.95, which leads to parts of background region pixels being mistaken as the object [shown in Fig. 6(b)]. The precision of segmentation is 0.937, and the F-Measure is 0.959. When T=0.99, the weak edge is smoothed [see the inside circle in Fig. 6(f)] and the computation time is longer. The F-measure, recall, and precision are 0.978, 0.961, and 0.997. The CPU time and score of segmentation using this model with the different threshold are shown in Fig. 7. As shown in Fig. 7, when the threshold increases, the computation time using this model is longer. If the threshold closes to one, the F-measures of segmentation descend.

Fig. 6

The results of segmentation with different thresholds. (a) Initial curve and the ground truth and (b)–(f) the results of segmentation using different thresholds 0.95, 0.96, 0.97, 0.98, and 0.99, respectively.

JEI_25_5_053022_f006.png

Fig. 7

The CPU time and score of segmentation in Fig. 6. (a) The CPU time of the segmentation using the different threshold T. (b) The red, green, and blue curves show the F-measure, precision, and recall of segmentation with the different threshold T, respectively.

JEI_25_5_053022_f007.png

The parameter k is the constant that normalizes parameter τ and parameter T is the threshold of the regional confidence level. In order to preserve the edge and smooth the inhomogeneous subregion, we suggest to choose k=0.05 and T=0.98.

5.3.

Segmentation Algorithm Comparisons

To test segmentation performance using the proposed method on real images with slightly inhomogeneous subregions, the experiments are carried on to compare with the Li’s model,15 TB model,20 and the CV model.8 The choice of these algorithms is motivated by the following reasons: these four algorithms all employ the level set. Li’s model and TB model exploited the edge feature; the image is preprocessed by the Gaussian filter and the classical TV, respectively. In the TB model, the TV smoothing and the smoothing-component segmentation are individual steps. The number of iterations was not taken into consideration. The CV model uses the regional characteristics of the subregion to represent the object as the mean of the subregion. The different sizes of images are segmented, which are from the International web and the Berkeley segmentation database. The partial results are shown is shown in Fig. 8. The effects of the four algorithms on the homogeneous image are almost similar, such as Fig. 8(a). For the image with weak edges [i.e., Fig. 8(b)], the results of segmentation using the proposed method and TB model are better than those of the other two models. Segmentation performance using the CV model is poor for inhomogeneous subregions, e.g., Fig. 8(c), and the F-measure is 0.812. This is the reason that the intensity mean of a subregion indicates the region.

Fig. 8

Comparison of the proposed method with Li’s model13 and the TB model,20 and the CV model8 on real images. (a) The lotus, (b) the eagles, and (b) the butterfly. Row 1: original images and initial curves, row 2: segmentation results of the CV, row 3: the segmentation results of Li’s model, row 4: segmentation results of the TB model, row 5: the segmentation results of the proposed model, and row 6: the ground truth.

JEI_25_5_053022_f008.png

However, the effect of the proposed method for images with a seriously inhomogeneous region, such as the images in Fig. 9, is better than that of the other three models.

Fig. 9

Comparison of the proposed method with Li’s models13 and the CV model8 on real images with serious in-homogeneity. (a) The blossom, (b) the viburnum, and (c) the cycas. Row 1: original images and initial curves, row 2: segmentation results of the CV model, row 3: the segmentation results of Li’s model, row 4: segmentation results of the TB model, row 5: the segmentation results of the proposed model, and row 6: the ground truth.

JEI_25_5_053022_f009.png

The objector region is divided into many subregions using the CV model,8 which is that the object region contains many subregions with different intensities. The Li’s model13 avoids oversegmentation, but the segmentation curve is far away from the true boundaries where gradients are low. The positional accuracy using the TB model20 is higher than that of Li’s model, there is oversegmentation, as shown in Fig. 9(c). The segmentation curve using the proposed method cannot locate at the object boundaries with weak edges [i.e., Fig. 9(a)]. For the images in Figs. 8 and 9, the CPU time and scores of segmentation are given in Table 1.

Table 1

The comparison of CPU time and scores of segmentation in Figs. 8 and 9.

MethodImage and its size
Fig. 8(a)Fig. 8(b)Fig. 8(c)Fig. 9(a)Fig. 9(b)Fig. 9(c)
320×240480×320580×385480×320512×384600×392
Proposed method
 Precision0.9950.9960.9990.9320.9890.994
 Recall0.9430.8630.9670.9480.9650.950
 F-measure0.9690.9250.9830.9400.9770.972
 CPU time (s)6.0068.9859.67211.6622.1739.34
Li’s model
 Precision0.9850.9810.9860.8130.9140.928
 Recall0.9530.8660.9890.9670.9600.857
 F-measure0.9680.9200.9880.8830.9370.891
 CPU time (s)3.6669.5798.8928.2779.40628.97
TB model
 Precision0.9880.9960.9980.9360.9490.921
 Recall0.9470.8620.9680.9290.9570.952
 F-measure0.9670.9240.9830.9320.9530.936
 CPU time (s)4.5098.7999.4549.77111.6225.45
CV model
 Precision0.9990.8910.9990.7560.9950.889
 Recall0.9460.9320.6840.6960.8280.922
 F-measure0.9720.9110.8120.7240.9040.905
 CPU time (s)3.1826.3659.3133.5599.01617.55

Compared to the effect of Li’s model, the TB model and the CV model on real images with inhomogeneous subregions and weak edges, the effect of the proposed method is better. Nevertheless, the computation time using the proposed method is costly, which is the reason that this method uses iteration smoothing to deal with the inhomogeneous subregion. However, Li’s model uses the Gaussian smoothing only one time, and the CV model does not smooth the image. For images of the same size, the iterative number mainly depends on the region’s inhomogeneous degree, such as for images in Figs. 8(b) and 9(a), the CPU time using the proposed method is 8.985 and 11.66 s, respectively.

To test the proposed method’s robustness against noise, segmented experiments on a 320×240 degraded image with additive white noise are conducted and compared with Li’s model,15 the TB model,20 and the CV model.8 Partial results are shown in Fig. 10. With the PSNR decreasing, the isotropic diffusion in Li’s model blurs the object contour, and the fixed variance of Gauss kernel function cannot remove all kinds of noise. The level set curve could not locate accurately. The subregions in the object are separated using the CV model. Furthermore, the results of segmentation become terrible with lower PSNR. Compared to the ground truth, the positional accuracy of the segmentation curve using the proposed method is higher than that of the TB model. The edge-preserving parameter preserves edges and smooths subregions, according to local information. The scores of different models with different PSNR are shown in Table 2.

Fig. 10

Comparison of the proposed method with Li’s models13 and the CV model8 on real images with noise. (a) The original image, (b) noisy image with PSNR=23.4, and (c) noisy image with PSNR=18.8. Row 1: noisy images and initial curves, row 2: segmentation results of the CV model, row 3: the segmentation results of Li’s model, row 4: segmentation results of the TB model, row 5: the segmentation results of the proposed model, and row 6: the ground truth.

JEI_25_5_053022_f010.png

Table 2

The scores of different algorithms on noisy images (where Pre, Rec, and F-M denote precision, recall, and F-measure, respectively).

PSNR (dB)Model
Proposed methodLi modelTB modelCV model
PreRecF-MPreRecF-MPreRecF-MPreRecF-M
29.90.9920.8380.9090.9150.7170.8040.9890.8270.9010.9760.7850.870
23.40.9920.8380.9090.9010.7190.7990.9880.8120.8910.9670.7850.866
22.30.9890.8310.9030.8910.7220.7970.9870.8280.9010.9650.7860.866
21.70.9880.8170.8940.8680.7220.7880.9790.8210.8930.9450.7900.860
20.10.9810.8260.8970.8570.7260.7860.9740.8120.8860.9260.7920.853
19.50.9860.8260.8990.8470.7250.7810.9710.8170.8870.9050.7910.844
18.80.9810.8190.8930.8370.7310.780.9630.8310.8920.8740.7910.830
17.60.9730.8390.9010.7810.7320.7560.9550.8350.8910.8550.7930.823
16.70.9510.8180.8790.7590.7310.7450.9150.8240.8670.8140.7930.803
15.40.9420.8170.8750.6370.7290.6790.8550.8170.8360.7920.7940.793
14.80.9110.8310.8690.5180.7320.6070.8010.7860.7930.7330.7960.763
12.90.9040.8330.8670.4450.7350.5540.7160.7910.7520.6860.8010.739
Original image0.9920.8380.9090.9150.7170.8040.9890.8270.9010.9760.7850.870
Mean0.9680.8290.8920.7820.7260.7450.9290.8180.8680.8780.7910.829
Variance0.0310.0090.0150.1550.0060.0810.0860.0150.0470.0970.0050.043

From Table 2, with decreasing image quality, the precise and the F-measure of these four segmentation models reduce. The variance of F-measure using the proposed method, Li’s model,15 the TB model,20 and the CV model8 are 0.015, 0.081, 0.047, and 0.043, respectively. The variance of F-measure using the proposed method is smaller than those of other three models. The mean of the F-measure using the proposed method, Li’s model, the TB model, and the CV model are 0.892, 0.745, 0.878, and 0.829, respectively. The mean of F-measure using the proposed method is higher than those of other three models. It shows that our proposed method is insensitive to noise. Although the proposed method is insensitive to noise, the computer time is longer than that of other three models. The CPU time comparison of segmentation on an image with noise is shown in Table 3.

Table 3

The comparison of CPU time (in seconds) with noisy images.

PSNR (dB)29.923.422.321.720.119.518.817.616.715.414.812.9Original image
Proposed model9.5510.711.313.314.514.917.417.717.918.219.520.99.34
TB model8.549.810.310.410.910.911.212.613.113.915.316.28.11
Li’s model4.234.674.785.165.896.797.457.988.399.439.9610.674.12
CV model3.483.614.074.495.326.216.537.237.417.898.138.983.31

To test robustness against salt-and-pepper noise of the proposed method, segmented experiments on a 500×375 degraded image are conducted and compared with Li’s model,15 the TB model,20 and the CV model.8 Partial results are shown in Fig. 11. The linear smoothing (Gauss smoothing) cannot effectively remove salt-and-pepper noise, so Li’s segmentation curve could not converge with the object contour, and the F-Measure is 0.849. The CV model could converge with the object contour, but oversegmentation exists, the F-measure is 0.909, and the recall is 0.853; nonlinear smoothing (TV or median filter) can effectively remove the salt-and-pepper noise, the precisions of the proposed model and the TB model are 0.994 and 0.986, respectively. In the TB model, the TV smoothing and the smoothing-component segmentation are individual steps. It could not adaptively adjust the relationship between the number of smoothing iteration and region-confidence level. The F-measure of the proposed method is 0.98, and 0.021 higher than that of TB model.

Fig. 11

Comparison of the proposed method with Li’s models13 and the CV model8 on real images with salt-and-pepper noise. (a) Initial curves, (b) the ground truth, (c) the proposed model, (d) the segmentation results of the CV model, (e) the segmentation results of the Li’s model, and (f) segmentation results of the TB model.

JEI_25_5_053022_f011.png

6.

Concluding Remarks

To improve segmentation performance of the active contour model on real images, we propose an image segmentation model based on edge-preserving smoothing. Compared to Li’s model, the CV model, and TB model on real images, the experimental results have shown that this method is insensitive to noise and can deal with inhomogeneous subregions. However, the proposed edge-preserving smoothing just retains the edge information, but could not sharpen weak edges. Thus, the proposed method cannot precisely locate the object contour formed by a weak edge. Furthermore, the computational cost is high. In the future, we plan to design an efficient model to sharpen the weaken edge.

Acknowledgments

This work was supported by the Sichuan Province Natural Science Foundation of China (Grant No. 2013SZ0157). The author Kun He and the author Dan Wang give the improved algorithm and the structure of the article. The algorithm implementation and the article writing are collaborative efforts. Partial experimental results in the article are given by Xiuqing Zheng.

References

1. 

Y. K. Sen et al., “Image segmentation methods for intracranial aneurysm haemodynamic research,” J. Biomech., 47 (5), 1014 –1019 (2014). http://dx.doi.org/10.1016/j.jbiomech.2013.12.035 JBMCB5 0021-9290 Google Scholar

2. 

R. C. Zhao and Y. D. Ma, “A novel region segmentation algorithm with neural network for segmented image coding,” Acta Electron. Sin., 42 (7), 1277 –1283 (2014). http://dx.doi.org/10.3969/j.issn.0372-2112.2014.07.006 TTHPAG 0372-2112 Google Scholar

3. 

M. Caon et al., “Computer-assisted segmentation of CT images by statistical region merging for the production of voxel models of anatomy for CT dosimetry,” Australas. Phys. Eng. Sci. Med., 37 (2), 393 –403 (2014). http://dx.doi.org/10.1007/s13246-014-0273-x Google Scholar

4. 

X. Yang et al., “Improving level set method for fast auroral oval segmentation,” IEEE Trans. Image Process., 23 (7), 2854 –2865 (2014). http://dx.doi.org/10.1109/TIP.2014.2321506 IIPRE4 1057-7149 Google Scholar

5. 

J. B. Shen, Y. F. Du and X. L. Li, “Interactive segmentation using constrained Laplacian optimization,” IEEE Trans. Circuits Syst. Video Technol., 24 (7), 1086 –1099 (2014). http://dx.doi.org/10.1109/TCSVT.2014.2302545 ITCTEM 1051-8215 Google Scholar

6. 

M. W. Khan, “A survey: image segmentation techniques,” Int. J. Future Comput. Commun., 3 (2), 89 –93 (2014). http://dx.doi.org/10.7763/IJFCC.2014.V3.274 Google Scholar

7. 

L. Wang et al., “Joint segmentation and recognition of categorized objects from noisy web image collection,” IEEE Trans. Image Process., 23 (9), 4070 –4086 (2014). http://dx.doi.org/10.1109/TIP.2014.2339196 IIPRE4 1057-7149 Google Scholar

8. 

T. F. Chan and L. Vese, “Active contours without edges,” IEEE Trans. Image Process., 10 (2), 266 –277 (2001). http://dx.doi.org/10.1109/83.902291 IIPRE4 1057-7149 Google Scholar

9. 

D. Mumford and J. Shah, “Optimal approximations of piecewise smooth functions and associated variational problems,” Commun. Pure Appl. Math., 42 (5), 577 –685 (1989). http://dx.doi.org/10.1002/(ISSN)1097-0312 CPMAMV 0010-3640 Google Scholar

10. 

A. Tsai et al., “Curve evolution implementation of the mumford-shah functional for image segmentation, denoising, interpolation, and magnification,” IEEE Trans. Image Process., 10 (8), 1169 –1186 (2001). http://dx.doi.org/10.1109/83.935033 Google Scholar

11. 

C. Li et al., “Implicit active contours driven by local binary fitting energy,” in Proc. IEEE Conf. on Computer Vision and Pattern recognition, 1 –7 (2007). http://dx.doi.org/10.1109/CVPR.2007.383014 Google Scholar

12. 

Y. Peng et al., “Active contours driven by normalized local image fitting energy,” J. Syst. Eng. Electron., 25 (2), 307 –313 (2014). http://dx.doi.org/10.1109/JSEE.2014.00035 Google Scholar

13. 

H. Y. Jiang and R. J. Feng, “Image segmentation method research based on improved variational level set and region growth,” Acta Electron. Sin., 40 (8), 1659 –1664 (2012). http://dx.doi.org/10.3969/j.issn.0372-2112.2012.08.026 TTHPAG 0372-2112 Google Scholar

14. 

D. Kong and G. Wang, “Region-similarity based active contour model for SAR image segmentation,” J. Comput.-Aided Des. Comput. Graphics, 22 (9), 1554 –1560 (2010). Google Scholar

15. 

C. Li et al., “Level set evolution without re-initialization: a new variational formulation,” in the Proc. of the 2005 IEEE Computer Society Conf. on Computer Vision and Pattern Recognition, 430 –436 (2005). http://dx.doi.org/10.1109/CVPR.2005.213 Google Scholar

16. 

Q. Wen et al., “Decomposition and active contour method for medical noise image segmentation,” J. Comput.-Aided Des. Comput. Graphics, 23 (11), 1882 –1889 (2011). Google Scholar

17. 

S. Y. Yeo et al., “Segmentation of biomedical images using active contour model with robust image feature and shape prior,” Int. J. Numer. Methods Biomed. Eng., 30 (2), 232 –248 (2014). http://dx.doi.org/10.1002/cnm.2600 Google Scholar

18. 

T. F. Chan, S. Osher and J. H. Shen, “The digital TV filter and nonlinear denoising,” IEEE Trans. Image Process., 10 (2), 231 –241 (2001). http://dx.doi.org/10.1109/83.902288 IIPRE4 1057-7149 Google Scholar

19. 

L. Evans, Partial Differential Equations, American Mathematical Society, Providence (1998). Google Scholar

20. 

K. He, X. Q. Zheng and Y. L. Zhang, “Image segmentation on texture blurring,” J. Sichuan Univ., 47 (4), 111 –117 (2015). http://dx.doi.org/10.15961/j.jsuese.2015.04.016 Google Scholar

Biography

Kun He received his PhD in electrical and computer engineering from Sichuan University in 2006. Since 2006, he has been working as a professor research fellow in the School of Computer Science, Sichuan University. His research interests include pattern recognition, computer vision, and image processing.

Dan Wang received the bachelor's degree in software engineering from Sichuan University in 2014. She is currently a graduate student of the software engineer, the Key National Defense Laboratory of Visual Synthesis Graphic and Image, Sichuan University. Her major work was pattern recognition, image processing, and medical image analysis.

Xiuqing Zheng received her PhD in computer science and technology, Sichuan University. Currently, she served as the associate dean of Applied Technology College in Sichuan Normal University. Her research interests include intelligent information processing and image processing. She has undertaken and presided over many scientific and technological projects.

CC BY: © The Authors. Published by SPIE under a Creative Commons Attribution 4.0 Unported License. Distribution or reproduction of this work in whole or in part requires full attribution of the original publication, including its DOI.
Kun He, Dan Wang, and Xiuqing Zheng "Image segmentation on adaptive edge-preserving smoothing," Journal of Electronic Imaging 25(5), 053022 (4 October 2016). https://doi.org/10.1117/1.JEI.25.5.053022
Published: 4 October 2016
Lens.org Logo
CITATIONS
Cited by 4 scholarly publications.
Advertisement
Advertisement
KEYWORDS
Image segmentation

Lithium

Image processing algorithms and systems

Performance modeling

Statistical modeling

Diffusion

Gaussian filters

RELATED CONTENT


Back to Top