Abstract
We propose an interactive level set segmentation method with a novel user’s label regularization term. This new edge-based model can force the evolution of level set function to follow the hard constraints given by the user and effectively solve the problem that user can’t extract some specified object in the image due to the local optimum. The new regularization term is constructed by multiplication of the hard constraints and the level set function. Since the regularization term we defined only works on the pixels labeled by the user, the evolution of level set function can be affected accurately by user’s label for foreground and background. Experimental results are provided to demonstrate the efficiency and accuracy of the new model. Our method can make the segmentation accurately reflect the user’s label. The new method supports the real-time feedback in the segmentation process. We also analyzed the weight of the regularization term, and the best weight of the regularization term is provided.
H. Tan—Supported by the Construct Program of the Key Discipline in Hunan Province.
M. Chen—Supported by the National Natural Science Foundation of China (NSFC), No.11471110.
Q. Li—Supported by the National Natural Science Foundation of China (NSFC), No. 11471002; Hunan Provincial Science and Technology Plan, No. 2013FJ4052.
You have full access to this open access chapter, Download conference paper PDF
Similar content being viewed by others
Keywords
1 Introduction
Image segmentation refers to partitioning an image into several disjoint subsets such that each corresponds to a meaningful part of the image. It is a classical and fundamental problem in computer vision. Despite many years of research, general purpose image segmentation as an ill-posed problem is still a very challenging task.
Active contour model [4, 6] is one of the successful methods of segmentation. It uses the theory of dynamics model that an initial curve is derived to target contour under the internal force of the curve itself and the external force of image data. Level-set-based active contour models [15, 16] expresses implicitly the contour as the zero level of a level set function, and evolves the curve based on an upgrade equation, finally, get smooth, closed, and high-precision segmentation curves. According to the properties of its energy function, active contour models are classified into region-based model [7, 12, 18] and edge-based model [3]. The region-based models utilize local information to guide contour curve move to the boundary of object approximately, while the edge-based on utilizes a stopping function to attract contours to the desired boundaries.
Geodesic active contour (GAC) [3], which was independently introduced by Caselles et al. [2] and Malladi et al. [14], is a very popular edge-based model. Its basic idea is to represent contours as the zero level set, and to evolve the level set function according to a partial differential equation (PDE). GAC has several advantages over the traditional parametric active contours. Firstly, the contour represented by the level set function can break or merge naturally during the evolution. Secondly, the level set function always remains the function on a fixed grid, which allows efficient numerical schemes. However, it has been proved to be locally optimal, it is possible that the contour would stop in or out of the object when it encounters an obvious boundary during the evolution.
Using interactive segmentation algorithm, user can make some foreground and background labels to give some prior knowledge before segmentation executing. With the prior knowledge, interactive segmentation algorithm can extract objects more accurately. At present, there are many works on the research of interactive segmentation. Regularization term is often used to incorporate the hard constraints of user’s label into the cost function, for example using L2-norm distance to construct regularization term [17]. It is also a popular approach to use probability model such as Gauss Mixed Model, Support Vector Machine and Geodesic which are built with user’s label to assist the segmentation [13, 19]. Graph-based approaches use user’s label to represent the information of must link or can’t link as hard or soft constraints [1, 5].
There are some works on interactive level set segmentation, which use regularization term of hard constraints and probability model. [20] used belief propagation to minimize a global cost function according to local level sets. The propagation starts with one user marked point, and iteratively extends the user information from the labeled pixel to its neighborhood by calculating the beliefs of the pixels in the same level as the marked pixel. This method was designed for medical image, but has not good result for object of heterogeneous images. [10] used user’s label to integrates discriminative classification models and distance transforms with the level set method, and the terms of energy function are based on a probabilistic classifier and an unsigned distance transform of salient edges. This method is effective for heterogeneous image, but it can’t support user to feedback in interactive process.
In this paper, we propose an interactive level set segmentation method for edge-based model. We use the multiplication of the hard constraints which record the user’s label and the level set function as a regularization term and add it into the energy function. Each element of the hard constraints represents the label of the corresponding pixels in the image. If the pixel is not marked, the value of corresponding element in the hard constrains is 0; if marked as foreground, the value is \(-1\); if marked as background, the value is 1. With the new regularization term, the evolution of level set function can only be impacted at the location of user’s label, so that the evolution process can be accurately carried out under the influence of the user’s label. Usually, the initial segmentation may not be perfect. According to the observed results, user can mark new foreground and background labels for the next evolution. By these new labels, the algorithm can efficiently evolve the current level set function without recomputing from initial contour. Satisfactory results is obtained by repeating the process of mark-evolution. The experiment results show the efficiency of our method.
2 Background
Our interactive label regularizer is tested under GAC model. Hence, we briefly introduce it.
2.1 Level Set Segmentation Based on GAC Model
Given an image with size \(m*n\), we denote pixels set by \(\varOmega =\{(x,y);x=1,\dots ,m,y=1,\dots ,n\}\), and the feature \(I=\{I(x,y);(x,y)\in \varOmega \}\). In the method of level set, \(\varOmega \) is taken as a continuous region.Active contours is denoted by C, and represented by the zero level set \(C(t)=\{(x,y)|\phi (t,x,y)=0\}\). Here, we define
The evolution equation of the level set function \(\phi \) can be written in the following general form:
The function F is called speed function. For image segmentation, the F depends on the image data and the level set function.
In [8], g is edge detection function defined by \(g=\frac{1}{1+{|\nabla G_{\delta }*I|^2}}\), where \(G_{\delta }\) is the Gaussian kernel with standard deviation \(\delta \). Based on g, it constructs an energy term, called the external term that drives the motion of the zero level set toward the desired image features, such as object boundaries. The external energy based on \(\phi (x,y)\) is as follow:
where \(\lambda >0\), v is a constant. The definitions of \(L_{g}(\phi )\) and \(A_g(\phi )\) are as follow:
\(L_g\) represents the length of zero level set and \(A_g\) represents the area inside the contour that control the speed of evolution. H represents Heaviside function defined as follows:
In practical applications, H is generally replaced by one relaxing version. This paper uses a substitute as follows:
\(\delta (z)=\frac{dH(z)}{dz}\) is called Dirac measure. Here, \(\delta (z)\) is derived from the relaxed H.
According to the Euler-Lagrange equation
we can get the following variational formulation of \(\frac{\partial \phi }{\partial t}\) in (3):
which is the gradient flow that minimizes the energy function. By using (7) and according to
we can process the evolution of level set function.
2.2 The Drawback of GAC Model
It is crucial to keep the evolving level set function as an approximate signed distance function during the evolution, especially in a neighborhood around the zero level set. Naturally, Li et al. [8] proposed the following integral:
The energy function of [8] is defined as follow:
The new \(L(\phi )\) is:
We use this energy function to extract the black ring in Fig. 1(a). The evolution of the contour stopped at the outside boundary of the black ring which is shown in Fig. 1(b), and the segmentation result is the black ring and the gray circle inside, which is not what we want. It shows that GAC model tends to get a local optimal solution. But in Fig. 1(c) and (d), our proposed method can get a satisfactory result with additional user’s label. That means, the active contour would stop evolution when the level set meets boundary. Moreover, some special object can not be extracted.
In addition, [9] proposed a level set energy function that added a penalty term to tradition level set energy function to force the level set function to be close to a signed distance function, which completely eliminated the need of the costly re-initialization procedure. [9] added a distance regularization term to the energy function of [8], so as to restrict the evolution of the zero level set in a give range rather than the whole level set function. This method can reduce the number of iterations of evolution and improve the accuracy of segmentation. However, it still cannot avoid above local solution.
3 The Level Set Model with an Interactive Label Regularization Term
Given the user scribble seeds that belong to the set F and set B, which repetitively provide hints of sub-regions to be extracted and to be avoided. The input image will be classified into these two sets F and B. u represents the matrix of user’s label, defined as follows:
In this paper, we propose an interactive level set segmentation method for edge-based model. We add a regulation term that is constructed by user’s label to the energy function (10), the new energy function is as follow:
where \(\phi \) is level set function, \(k>0\) is the weight of \(E_u\).
3.1 User’s Label Regularization Term Based on L2-Norm Distance
Firstly, we test the L2-norm distance to construct the user’s label regularization term, which was also used together with graph-based methods in Shen et al. [17]. They defined a likelihood function l(x, y) for each pixel (x, y), which represents the likelihood of the pixel belonging to the corresponding set:
This regularization term is effective for normalized cut and graph cut. However, experimental results show that using (15) to calculate \(E_{u}\) in the level-set-based energy function (13) is not effective. From Fig. 2(b) we can see that the user’s mark is of no use and there are a lot of scattered contours in the background. This is mainly because, \(u(x,y)=0\) means the label of (x, y) is unknown,while \(\phi (x,y)=0\) means (x, y) locates at current contour. The different hints give arise to a penalty when \(u(x,y)=0\) and \(\phi (x,y)\ne 0\), and then disturbs the evolution process of level set function and mislead to another goal.
3.2 Proposed Regularization Term
In order to avoid these scattered contours in the background and lead to the real goal, we should delete the side effect from the unmarked part. Here, we proposed to use the multiplication of the hard constraints from user’s label and the level set function. We use the multiplication form to calculate \(E_{u}(\phi ,u)\), the value of the locations of the result matrix correspond to the unmarked part is zero, the evolution of level set function can only be impacted at the location of user’s label, so that the evolution process can be accurately carried out under the influence of the user’s labels.
Since the level set function \(\phi \) and u have very different scales, it probably leads to failure if we get their direct multiplication. Here, we make a test as follows. We use the same initial method of level function in [8] that the value of the location inside the subject object is −4 and the outside is 4. So \(\phi \) has different scale to u that led to a bad result of segmentation shown in Fig. 3.
In order to make \(\phi \) and u remain at the same scale, we first use a sigmoid function (17) (shown in Fig. 4) to normalized the \(\phi \). And then we shift it to keep the same scale with u(x, y) in \([-1,1]\), by using the expression \(2\sigma (\phi )-1\). In our proposed method, we construct the \(E_{u}\) as follow:
According to Euler Lagrange equation (6), we get the new \(L(\phi )\) as follow:
The level set function process the evolution by (8). As shown in Fig. 2(c), using our method can get satisfactory result for users.
The method is user-friendly and can be cooperative by the users, it can make the evolution be processed repeatedly under the feedback of user until we get an ideal result, the segmentation process with user’s feedback is expressed in Fig. 5.
4 Experiment Results
Our experiments are implemented from two aspects. First, we test on effect of the weight for our regularization term. And then, we gives experiments on interactive segmentation.
4.1 The Weight of the Regularization Term
In energy function (13), k indicates the extent to which user’s mark plays a role in the segmentation process. We fix the weight of other part as mentioned in [8], and make experiments use different value of k. Figure 6 shows that we use different value of k to segment images with the same user’s mark. From the result, we can see that at the beginning, with the increase of k, the segmentation results is significantly improved, and when k increases over a number range, the improvement effect is obviously reduced, even decreases. Experiment shows that when the value of k is selected to 100, we can achieve the best performance.
4.2 Interactive Segmentation Process
Figure 8 shows the interactive segmentation process of objects in the 5 images. User draw a initial contour in the image first, then make some marks for foreground and background. After the first evolution, user can mark the pixels in the image that is error segmented and the algorithm can continue evolving on the basis of the segmentation result last time. By the feedback process several times repeatedly, the algorithm can give user their satisfied result. Obviously, if we make some mark as seeds before the first segmentation, the number of interactive would be decreased.
4.3 Behavioral Predictability
[11] given some evaluation indices for interactive segmentation algorithm, and shown some corresponding evaluation process. During the process of evaluation, many users were invited to do some interactive segmentation. According to the feedback of user, they are very sensitive to the operate experience. They liked that small localized marks only have a local effect. Conversely, users disliked algorithms in which small additions to the markup could cause large differences to the segmentation. Figure 7 shows the behavioral predictability of our method.
5 Conclusion
In this paper, we construct a novel regularization term with user’s mark. Our method Solves the problem that user can’t extract some specified object in the image due to the local optimum. Using our proposed method, the user can control the process of segmentation accurately. Our method also support the do the mark-evolution process repeatedly until the user get his satisfied result. In future, we will consider how to deal with region-based model by using our new regularization term.
References
Boykov, Y.Y., Jolly, M.P.: Interactive graph cuts for optimal boundary amp; region segmentation of objects in N-D images. In: Proceedings of Eighth IEEE International Conference on Computer Vision. ICCV 2001, vol. 1, pp. 105–112 (2001)
Caselles, V., Catté, F., Coll, T., Dibos, F.: A geometric model for active contours in image processing. Numer. Math. 66(1), 1–31 (1993)
Caselles, V., Kimmel, R., Sapiro, G.: Geodesic active contours. Int. J. Comput. Vis. 22(1), 61–79 (1997)
Chan, T.F., Vese, L.A.: Active contours without edges. IEEE Trans. Image Process. 10(2), 266–277 (2001)
He, J., Kim, C.-S., Jay Kuo, C.-C.: Interactive image segmentation techniques. SpringerBriefs in Electrical and Computer Engineering. Springer Nature, Heidelberg (2013). pp. 17–62
Kass, M., Witkin, A.P., Terzopoulos, D.: Snakes: active contour models. Int. J. Comput. Vis. 1(4), 321–331 (1988)
Li, C., Kao, C.Y., Gore, J.C., Ding, Z.: Implicit active contours driven by local binary fitting energy. In: Proceedings of IEEE Conference on Computer Vision and Pattern Recognition, pp. 1–7, June 2007
Li, C., Xu, C., Gui, C., Fox, M.D.: Level set evolution without re-initialization: a new variational formulation. In: Proceedings of IEEE Computer Society Conference on Computer Vision and Pattern Recognition (CVPR 2005), vol. 1, pp. 430–436, June 2005
Li, C., Xu, C., Gui, C., Fox, M.D.: Distance regularized level set evolution and its application to image segmentation. IEEE Trans. Image Process. 19(12), 3243–3254 (2010)
Liu, Y., Yizhou, Y.: Interactive image segmentation based on level sets of probabilities. IEEE Trans. Vis. Comput. Graph. 18(2), 202–213 (2012)
McGuinness, K., O’Connor, N.E.: Toward automated evaluation of interactive segmentation. Comput. Vis. Image Underst. 115(6), 868–884 (2011)
Mumford, D., Shah, J.: Optimal approximations by piecewise smooth functions and associated variational problems. Commun. Pure Appl. Math. 42(5), 577–685 (1989)
Nguyen, T.N.A., Cai, J., Zhang, J., Zheng, J.: Robust interactive image segmentation using convex active contours. IEEE Trans. Image Process. 21(8), 3734–3743 (2012)
Niessen, W.J.: Geometric partial differential equations and image analysis. IEEE Trans. Med. Imaging 20(12), 1426–1427 (2001)
Osher, S., Sethian, J.A.: Fronts propagating with curvature-dependent speed: algorithms based on Hamilton-Iacobi formulations. J. Comput. Phys. 79(1), 12–49 (1988)
Sethian, J.A.: Curvature and the evolution of fronts. Commun. Math. Phys. 101(4), 487–499 (1985)
Shen, J., Du, Y., Li, X.: Interactive segmentation using constrained Laplacian optimization. IEEE Trans. Circ. Syst. Video Technol. 24(7), 1088–1100 (2014)
Vese, L.A., Chan, T.F.: A multiphase level set framework for image segmentation using the Mumford and Shah model. Int. J. Comput. Vis. 50(3), 271 (2002)
Wang, T., Wang, H., Fan, L.: A weakly supervised geodesic level set framework for interactive image segmentation. Neurocomputing 168, 55–64 (2015)
Zhu, Y., Cheng, S., Goel, A.: Interactive segmentation of medical images using belief propagation with level sets. In: 2010 IEEE International Conference on Image Processing. Institute of Electrical and Electronics Engineers (IEEE), September 2010
Author information
Authors and Affiliations
Corresponding author
Editor information
Editors and Affiliations
Rights and permissions
Copyright information
© 2017 Springer Nature Singapore Pte Ltd.
About this paper
Cite this paper
Tan, H., Chen, M., Li, Q., Qu, S. (2017). A Novel Level Set Model for Image Segmentation with Interactive Label Regularization Term. In: Yang, J., et al. Computer Vision. CCCV 2017. Communications in Computer and Information Science, vol 773. Springer, Singapore. https://doi.org/10.1007/978-981-10-7305-2_20
Download citation
DOI: https://doi.org/10.1007/978-981-10-7305-2_20
Published:
Publisher Name: Springer, Singapore
Print ISBN: 978-981-10-7304-5
Online ISBN: 978-981-10-7305-2
eBook Packages: Computer ScienceComputer Science (R0)