You are currently viewing a new version of our website. To view the old version click .
Symmetry
  • Article
  • Open Access

14 July 2016

A Modified GrabCut Using a Clustering Technique to Reduce Image Noise

,
,
,
and
1
Ingenium college of liberal arts, Kwangwoon university, Seoul 01897, Korea
2
Department of plasmadiodisplay, Kwangwoon university, Seoul 01897, Korea
*
Authors to whom correspondence should be addressed.
This article belongs to the Special Issue Symmetry in Complex Networks II

Abstract

In this paper, a modified GrabCut algorithm is proposed using a clustering technique to reduce image noise. GrabCut is an image segmentation method based on GraphCut starting with a user-specified bounding box around the object to be segmented. In the modified version, the original image is filtered using the median filter to reduce noise and then the quantized image using K-means algorithm is used for the normal GrabCut method for object segmentation. This new process showed that it improved the object segmentation performance a lot and the extract segmentation result compared to the standard method.

1. Introduction

Digital image processing deals with a wide variety of applications ranging from biology, military, medical, space science, art, games and movie industries.
The object segmentation is an important step in image processing and analysis [1]. In computer vision, segmentation divides the input image into background and objects. The purpose of the segmentation is to simplify and make it easy to interpret or convert to more meaningful representation of an image. Segmentation is one of the most difficult subjects in an digital image processing, and many studies on this subject have been done to get more accurate results.
GrabCut method is based on object segmentation algorithm called GraphCut [2,3]. While GraphCut algorithm segments an image without user intervention, GrabCut accepts an interest area defined by a user and extracts objects using the clues given to get better results. Many studies have been done to improve performance of GrabCut detecting objects in unknown regions [4,5].
In the proposed method, the image is smoothed using median filter and the quantized using k-means clustering technique. Then, GrabCut extracts objects from the quantized image [6]. In this way, we got improved performance.

3. The proposed Method

The flow of proposed method is show in Figure 5.
Figure 5. A flowchart of the proposed method.

3.1. Clustering to Reduce Noise

Digital image can be contaminated during data transmission.
i = 1 N | X m e d Ε | i = 1 N | Y X i |
where N is the size of data set. K-means clustering method is applied to the output of the filter. K-means classifies the data set to the predefined number of classes. Let μ i be the center of i-th cluster and S i be the set of pixels belongs to cluster i. The variance of all the data set is defined as Equation (9).
V = i = 1 k j S i | x j μ i | 2
The goal is to find S i minimizing V. K-means starts with arbitrary initial values μ i . Allocating pixels to close μ i and recalculating μ i is repeated until it is converged.
J M S E = i = 1 K x ω i | x μ i | 2 where  μ i = 1 n x ω i x
Equation (10) is the simplest clustering method minimizing J M S E repeatedly. Figure 6 shows applied the median filter in image.
Figure 6. An image applied the median filter image. (a) Original image; (b) Result image.

3.2. Object Segmentation Using Improved GrabCut

GrabCut accepts an interest area defined by a user and extracts objects using the clue given. Figure 7 shows trimap of foreground of GrabCut algorithm.
Figure 7. Composition of trimap; shows trimap of foreground ( T F ), background ( T B ) and unknown region ( T U ).
Object and background is mixed in unknown region. Background T B is defined as Equation (11).
T B = T F [ ( T U Γ ( z ) ) S ]
where Γ ( z ) = { z n | p N ( z i ) g ( p )     t } is the area greater than gradient. Symbol is a dilation operator and S is a structure element for it.
A Gaussian mixture model is a probabilistic model that assumes all the data points are generated from a mixture of a finite number of Gaussian distributions with unknown parameters and is given by:
p ( x | θ ) = i = 1 N p ( x | ω i , θ i ) P ( ω i )
where i-th vector component is characterized by normal distributions with weights α i and a pair of mean and covariance θ i . ω i represents relative importance. α i is defined as follows:
0 α i 1  and  i = 1 M α i = 1
Parameters for GMM (Gaussian Mixture Model) of M components is expressed as Equation (14):
θ = ( μ 1 , μ 2 ,   , μ M ,   , θ 1 2 , θ 2 2 , , θ M 2 , α 1 , α 2 ,   , α M )
T U is defined as follows:
T U = T F T B
Figure 8 shows a result of the improved GrabCut algorithm.
Figure 8. Improved GrabCut algorithm. (a) Original image; (b) Result image.

4. Experiment and Discussion

The experiments were performed using about 400 photos such as figures, plants, food, etc.
Performance of GraphCut, standard GrabCut and proposed method is compared. Figure 9 shows some results. GrabCut is better than GraphCut and, the proposed method shows better results than GrabCut in most cases by detecting background in unknown area [12,13].
Figure 9. (a) Original image; (b) GraphCut Algorithm; (c) GrabCut Algorithm; (d) Ref. [12]; (e) Ref. [13]; (f) Proposed Method.
Evaluation is performed using precision and recall. Precision is the fraction of retrieved instances that are relevant, while recall (also known as sensitivity) is the fraction of relevant instances that are retrieved:
p r e c i s i o n = N ( O b j E X O b j G T ) N ( O b j E X )
r e c a l l = N ( O b j E X O b j G T ) N ( O b j G T )
where N ( · ) is the number of pixels, O b j E X is the object and O b j G T is ground truth objects. Figure 10 shows the precision and recall of three methods. The proposed method gives the best result.
Figure 10. Precision-recall result.
Experiments are performed using PSNR (Peak Signal to Noise Ratio). PSNR is the ratio between the maximum possible power of a signal and the power of corrupting noise that affects the fidelity of its representation.
P S N R = 10 log 10 ( M A X 2 M S E )     = 20 log 10 ( M A X I M S E )
MSE (Mean Squared Error) is the difference between the estimator and what is estimated. Where MSE is defined as follows:
M S E = 1 m n i = 0 m 1 j = 0 n 1 I ( i , j ) K ( i , j ) 2
Table 1 shows the quantitative comparison of result experiments.
Table 1. Result of experiment.as quantitative comparison.

5. Conclusions

In this paper, a modified GrabCut method is proposed using median filter and k-means clustering technique to reduce image noise and to extract objects better. An image is preprocessed and then used for the input of standard GrabCut. This method showed better performance than GraphCut or standard GrabCut from the various and complex pictures like medical images, traffic images and people images. This research should be extended further to detect objects in video, and this can be used in many industrial applications.

Acknowledgments

The work reported in this paper was conducted during the sabbatical year of Kwangwoon University in 2013.

Author Contributions

GangSeong Lee provided guidance for this paper; SangHun Lee was the research and academic advisor of editing; GaOn Kim developed and solved the proposed model, carried out this analysis and wrote the manuscript; JongHun Park contributed to the revisions and performed experiments; YoungSoo Park contributed to the revisions and advisor of editing.

Conflicts of Interest

The authors declare no conflict of interest.

References

  1. Yoo, T.-H.; Lee, G.-S.; Lee, S.-H. Window Production Method based on Low-Frequency Detection for Automatic Object Extraction of GrabCut. In Proceedings of Digital Policy & Management, Seoul, Korea, 20 September 2012; pp. 211–217.
  2. Tang, M.; Gorelick, L.; Vekler, O.; Boykove, Y. GrabCut in One Cut. In Proceedings of ICCV Computer Vision, Sydney, Australia, 1–8 December 2013; pp. 1767–1776.
  3. Rother, C.; Kolmogorov, V.; Blake, A. GrabCut : Interactive foreground extraction using iterated graph cuts. In Proceedings of Computer Graphics, Imaging and Visualization (CGIV), Penang, Malaysia, 26–29 July 2004; pp. 309–314.
  4. Boykov, Y.Y.; Jolly, M.-P. Interactive graph cut for optimal boundary & region segmentation of object in N-D image. In Proceedings of IEEE International Conference on Computer Vision, Vancouver, BC, Canada, 7–14 July 2001; pp. 105–112.
  5. Hänsch, R.; Hellwich, O.; Wang, X. Graph-cut segmentation of polarimetric SAR image. In Proceedings of 2014 IEEE Geoscience and Remote Sensing Symposium, Quebec City, QC, Canada, 13–18 July 2014; pp. 1733–1736.
  6. Malyszko, D.; Wierzchon, S.T. Standard and Genetic k-means Clustering Techniques in Image Segmentation. In Proceedings of 6th International Conference on Computer Information Systems and Industrial Management Applications, CISIM ’07, Minneapolis, MN, USA, 28–30 June 2007; pp. 299–304.
  7. Sulaiman, S.N.; Isa, N.A.M. Adaptive fuzzy-K-means clustering algorithm for image segmentation. IEEE Trans. Consum. Electron. 2010, 56, 2661–2666. [Google Scholar] [CrossRef]
  8. Ryu, T.; Wang, P.; Lee, S.-H. Image Compression with Meanshift Based Inverse Colorization. In Proceedings of 2013 IEEE International Conference on Consumer Electronics (ICCE), Las Vegas, NV, USA, 11–14 January 2013; pp. 330–331.
  9. Lebourgeols, F.; Drira, F.; Gaceb, D.; Duong, J. Fast Integral MeanShift: Application to Color Segmentation of Document Images. In Proceedings of ICDAR Document Analysis and Recognition, Washington, DC, USA, 25–28 August 2013; pp. 52–56.
  10. Yang, D.-L.; Zhang, J.-W. Study of Image Quantization Technology Based on FCM Clustering Algorithm. In Proceedings of Intelligent System Design and Engineering Application (ISDEA), Changsha, China, 13–14 October 2010; pp. 421–424.
  11. Tian, J.; Huang, Y.; Tian, J. Histogram Constraint Based Fast FCM Cluster Image Segmentation. In Proceedings of 2007 IEEE International Symposium on Industrial Electronics, Vigo, Spain, 4–7 June 2007; pp. 1623–1627.
  12. Tang, M.; Ayed, B.I.; Marin, D.; Boykov, Y. Secrets of GrabCut and Kernel K-means. In Proceedings of IEEE International Conference on Computer Vision, London, ON, Canada, 7–13 December 2015; pp. 1555–1563.
  13. Hua, S.; Shi, P. GrabCut color image segmentation based on region of interest. In Proceedings of 2014 7th International Congress on Image and Signal Processing (CISP), Dalian, China, 14–16 October 2014; pp. 392–396.

Article Metrics

Citations

Article Access Statistics

Multiple requests from the same IP address are counted as one view.