Вы находитесь на странице: 1из 4

International Journal of Research and Reviews in Computer Science (IJRRCS) 1576

Vol. 3, No. 2, April 2012, ISSN: 2079-2557


© Science Academy Publisher, United Kingdom
www.sciacademypublisher.com/journals/index.php/IJRRCS

Color Image Segmentation using Multi-thresholding Histogram


and Morphology

Soheil Zadi Moghaddam, Amirhassan Monadjemi, and Naser Nematbakhsh


Department of Computer Engineering, University of Isfahan, Iran
Email: soheilzmoghaddam@gmail.com, monadjemi@eng.ui.ac.ir, nemat@eng.ui.ac.ir

Abstract – Image segmentation is one of the key steps in many problem solving methods in image processing applications.
This paper addresses the image segmentation problem for content-based image retrieval applications. Our method is based on
multi-thresholding histogram in CIE L*a*b* color space and we have used average filter to discover the peaks of histogram.
An algorithm similar to morphology is used to merge the initial segments. We have used the Berkeley dataset to evaluate our
method and our result is compared with the results of methods provided by the Berkeley University.
Keywords – Image segmentation, Multi-threshold histogram, Morphology

1. Introduction combining the results, and 2) analyzing two or three


Image segmentation is a process of dividing an image into channels compositely.
different heterogeneous regions that do not overlap with each Image-domain based techniques exploit the pixel context
other. The goal of segmentation is to simplify and/or change interaction which increases computational complexity. The
the representation of an image into something that is more most common feature-space techniques gained their
meaningful and easier to analyze [1]. popularity through the adaptive k-means algorithm [15]-[16].
Image segmentation is one of the most important tasks in Most of these methods are parameterized with number of
image processing and is used in both gray images and color expected clusters. The categorization of segmentation
images. The gray images are used in domain-specific methods is shown in Figure 1.
applications such as medical sciences. Hence, most of the In [17], the images are converted to CIE L*u*v* color
segmentation techniques attend to the color images than the space and then the 3D histogram of the first two components
gray ones. is depicted and then the histogram is separated into different
The color and texture characteristics are the two main parts each containing one of the peaks.
basic features for the image segmentation process and the
former is more attended in previous works.
Multi-color histogram method is the one which is used
widely in color image segmentation process. We have used
this method in our approach with some changes.
Our paper is structured as follows: in section 2, we
provide related work. In section 3, we provide a summarized
discussion about color spaces. In section 4, we describe our
proposed segmentation method, followed by evaluation
results in section 5. Conclusion is given in section 6.

2. Related work
Although the research in this area has led to many
different image segmentation techniques presented in the
literature [2], no single algorithm can be considered good for
all applications and all images [3]. Segmentation methods
used for color images can be divided into two main
categories: image-domain based techniques and feature-space
based techniques. The former are further divided into pixel-
similarity based algorithms [4]-[6] and pixel-difference based
algorithms [7]-[9], and the latter are further divided into
clustering methods [10]-[12] and histogram multi-
thresholding [3],[13]-[14] which we have divided it into two
subcategories: 1) analyzing each channel independently and
Figure 1. Categorization of segmentation methods.
S.Z. Moghaddam et al. / IJRRCS, Vol. 3, No. 2, pp. 1576-1579, April 2012 1577

3. Color Spaces grow.


While there are many sources of information describing
color spaces, color models, like all mathematical
representations of physical phenomena, can be expressed in
many different ways, each with its advantages and
drawbacks. Different representations are useful for different
applications. Some of them are appropriate for human color
selection, and others do well in data processing applications.
Color spaces are a way to represent colors and are usually
three-dimensional spaces. The differences between color
spaces lie in the choice of the coordinate system. There are
many color spaces in the classical literatures, for example,
CIE L*a*b*, CIE L*u*v*, YCbCr, YpbPr, RGB, HSL, HSV,
CMYK, and so on EM [10-13]. The CIE L*a*b*, HSV, and
HIS color spaces are closely associated with the way of
human color perception.

4. Proposed Segmentation Method


We have employed the multi-thresholding histogram
technique for initial segmentation in each component of color
space. In this way, we examined the CIE L*a*b*, and HSV
colors spaces. However, due to the higher performance of
CIE L*a*b* color space in our investigation, we selected it as
our main color space in our proposed approach. Our method
consists of three steps: 1) specifying initial segments, 2)
growing regions using a method similar to morphology, and
3) merging the initial segments and generating the final
segments.

4.1. Specifying Initial Segments


First of all, images are converted to CIE L*a*b* space.
Due to the fact that histograms can intensively be noisy, the
boundaries of peaks are hardly recognizable. Hence, we
convolve a 9-pointing average filter with dc=0 on histogram.
The Equation (1) shows the formula of the applied filter.
Figure 2. (a) Histogram of a sample image. (b) the same histogram in (a)
after applying the average filter.
(1)
Applying the mentioned filter, the boundaries of peaks in 4.3. Merging Initial Segments
histogram become clearer and more apparent which make it The goal of this step is merging the initial segments to
easier to specify the peaks of histogram. Finally, the generate the final segments. To do this, firstly, initial segment
histogram is partitioned regarding to the acquired peaks. In are sorted based on their size. The extent of overlapping
other words, pixels of each component are partitioned into pixels between the smallest initial segment and other
several parts based on the pixels’ values. This partitioning is segments are calculated. If the maximum of overlapping
applied to the image. A sample image with its partitioned values exceeds from a specific threshold, then the smallest
image in every three components of L*a*b* are shown in initial segment merges with the one generated the maximum
figure 3. By overlapping the partitioned images of three value. This process is iterated for all other initial segments
components, the initial segments of the main image are from the smallest to the biggest one. Finally, the remained
acquired. For example, initial segments of the image in figure segments represent the final segments.
3 are displayed in figure 4.
5. Empirical Evaluation
4.2. Growing Regions
In this step, every initial segment is divided into 5*5 5.1. Benchmarks
squares. In each of the initial segments, squares that contain a For our evaluation, we have used the Berkeley
number of selected pixels more than a specific threshold will Segmentation Dataset (BSDS) [18] which is consists of 300
be selected entirely. In other words, if the number of pixels, natural images. In this dataset, each image is manually
that are common between a square and the respective segmented by different persons. Although the ground-truth
segment, exceeds from a beforehand identified threshold, the data is a diverse data collection, the produced human
region grows, if necessary, to encompass all space of the segmentations are highly consistent and similar.
square. Applying this process, each initial segment may
S.Z. Moghaddam et al. / IJRRCS, Vol. 3, No. 2, pp. 1576-1579, April 2012 1578

Figure 3. (a) a sample image. (b) segmented image in L* component. (c) segmented image in a* component. (d) segmented image in b* component.

Where α is a relative cost between R and P and F-measure


curve can be obtained by changing the algorithm parameters.

Table 1. For each segmentation Method the second column report the score
of the covering of ground-truth segments according to optimal image scale
(OIS) criteria
Method Aggregate F-measure
(OIS)
human 0.73
gPb-owt-ucm 0.64
Mean Shift 0.58
Felz-Hutt 0.58
Canny-owt-ucm 0.56
The proposed method 0.54
NCuts 0.53

We have implemented our algorithm in Matlab R2011b.


In our experiments, we report the quantity of Optimal Image
Figure 4. Initial segments of the sample image shown in figure 3.
Scale (OIS) or aggregate F-measure on the dataset for the
5.2. Precision and recall measures best scale in each image which is presented in table 1.
The goal of our research is to discriminating objects that
The precision recall is a well-accepted measure in image
are not similar to each other. In other words, we want to
segmentation, which considers two aspects of boundary
cluster similar objects. Therefore, objects with similar
qualities: Precision is the fraction of detections that are true
features are placed in the same segment. For example, all the
positives rather than false positives, whereas recall is the
buffaloes in figure 3 are placed in one segment. Due to the
fraction of true positives that are detected, rather than missed.
fact that in BSDS300 humans place each of the buffaloes in a
A combination of these two quantities is defined as the -
separate segment and we have evaluated our method using
measure in [19]
this dataset, our proposed method owns lower performance
compared with the most of the other methods. However, our
method does well in aggregating similar objects in one
segment.
S.Z. Moghaddam et al. / IJRRCS, Vol. 3, No. 2, pp. 1576-1579, April 2012 1579

6. Conclusion
In this paper, we have proposed a novel method for
segmenting an image into distinct dissimilar components.
Although our results do not show high performance, our
method is a promising approach for image segmentation, and
clustering similar objects efficiently.

References
[1] Linda G. Shapiro and George C. Stockman (2001): “Computer
Vision”, pp 279-325, New Jersey, Prentice-Hall, ISBN 0-13-030796-3
[2] Cheng, H.D., Jiang, X.H., Sun, Y., Wang, J.: ‘Color image
segmentation: advances and prospects’, Pattern Recognit., 2001, 34,
(12), pp. 2259–2281
[3] Mushrif, M.M., Ray, A.K.: ‘Color image segmentation: Rough set
theoretic approach’, Pattern Recognit. Lett., 2008, 29, (4), pp. 483–493
[4] Fan, J., Zeng, G., Body, M., Hacid, M.: ‘Seeded region growing: an
extensive and comparative study’, Pattern Recognit. Lett., 2005, 26,
(8), pp. 1139–1156
[5] Espindola, G.M., Camara, G., Reis, I.A., Bins, L.S., Monteiro, A.M.:
‘Parameter selection for region-growing image segmentation
algorithms using spatial autocorrelation’, Int. J. Remote Sens., 2006,
27, (14), pp. 3035–340
[6] Zhang, Z.H., Chen, C.B., Sun, J., Chan, K.L.: ‘EM algorithms for
Gaussian mixtures with split-and-merge operation’, Pattern Recognit.,
2003, 36, (9), pp. 1973–1983
[7] Shi, J., Malik, J.: ‘Normalized cuts and image segmentation’, IEEE
Trans. Pattern Analy. Mach. Intell., 2000, 22, (8), pp. 888–905
[8] Felzenszwalb, P.F., Huttenlocher, D.P.: ‘Efficient graph-based image
segmentation’, Int. J. Comput. Vis., 2004, 59, (2), pp. 167–181
[9] Rotem, O., Greenspan, H., Goldberger, J.: ‘Combining region and
edge cues for image segmentation in a probabilistic gaussian mixture
framework’. IEEE Conf. on Computer Vision and Pattern Recognition,
Minneapolis, MN, USA, 17–22 June 2007
[10] Chen, T.Q., Lu, Y.: ‘Color image segmentation: an innovative
approach’, Pattern Recognit., 2002, 35, (2), pp. 395–405
[11] Wang, X.Z., Wang, Y.D., Wang, L.J.: ‘Improving fuzzy c-means
clustering based on feature-weight learning’, Pattern Recognit. Lett.,
2004, 25, (2), pp. 1123–1132
[12] Yu, Z., Wong, H.: ‘A rule based technique for extraction of visual
attention regions based on real-time clustering’, IEEE Trans.
Multimedia, 2007, 9, (4), pp. 766–784
[13] Kurugollu, F., Sankur, B., Harmanci, A.E.: ‘Color image segmentation
using histogram multithresholding and fusion’, Image Vis. Comput.,
2001, 19, (13), pp. 915–928
[14] Baradez, M.O., McGuckin, C.P., Forraz, N., Pettengell, R., Hoppe, A.:
‘Robust and automated unimodal histogram thresholding and potential
applications’, Pattern Recognit., 2004, 37, (6), pp. 1131–1148
[15] Pappas, T.N.: ‘An adaptive clustering algorithm for image
segmentation’, IEEE Trans. Signal Process., 1992, 40, (4), pp. 901–
914
[16] Chang, M.M., Sezan, I., Tekalp, M.: ‘Adaptive bayesian segmentation
of color images’, J. Electron. Imaging, 1994, 3, (4), pp. 404–414
[17] Comaniciu, D., Meer, P.: ‘Mean shift: a robust approach toward
feature space analysis’, IEEE Trans. Pattern Analy. Mach. Intell.,
2002, 24, (5),pp. 603–619
[18] http://www.eecs.berkeley.edu/Research/Projects/CS/vision/bsds/BSDS
300-images.tgz.
[19] C. Van Rijsbergen, Information Retrieval, 2nd ed. Glasgow, Scotland,
U.K.: Dept. Comput. Sci., Univ. Glasgow, 1979.

Вам также может понравиться