Colour Image Segmentation using A-IFSs - EUSFLAT

Report 3 Downloads 69 Views
IFSA-EUSFLAT 2009

Colour Image Segmentation using A-IFSs Pedro Couto, Pedro Melo-Pinto1

Humberto Bustince, Edurne Barrenechea, Miguel Pagola2

1.CITAB Research Centre, UTAD University Vila Real, Portugal 2.Departamento de Autom´atica y Computaci´on, UPNA University Pamplona, Spain Email: {pcouto,pmelo}@utad.pt, {bustince,edurne.barrenechea,miguel.pagola}@unavarra.es

Abstract— The problem of segmentation is an important research field and often a critical and decisive preprocessing step for many image processing applications. During the past years, the use of colour images instead of gray images is growing fast in many research areas. Moreover, the use of segmentation over colour images is advised when additional colour information conveyed is necessary to further discriminate the image regions. Recently, fuzzy logic theory, and Atanassov’s intuitionistic fuzzy sets (A-IFSs), have been successfully applied to image segmentation and, in this paper we propose a general methodology for RGB colour image segmentation based on A-IFSs. The proposed methodology is based on a multilevel colour thresholding framework that uses Atanassov’s intuitionistic index values for representing the uncertainty present in the assigning of the pixels to the different regions. This framework is to be applied to each RGB component separately to finally aggregate the results of the three components. The number of thresholds is auto established by the methodology based on the image entropy. Experimental results are presented. Keywords— Atanassov’s Intuitionistic Fuzzy Sets, Color Image Segmentation, Fuzzy Logic, Multi-Thresholding.

1 Introduction Color image segmentation deals with the subdivision of an image into disjoined regions according to the pixels colour with the goal of finding the image objects. As a result of the segmentation, the original set of pixels in the image is partitioned into a finite set of separated regions (objects). Within the framework of fuzzy theory [1, 2, 3, 4], segmentation algorithms that use the concept of fuzzy entropy [1, 3, 5] are widely used in image processing applications. In previous works [6] we have proposed methodologies for image segmentation that use A-IFSs [7, 8, 9]. In those methodologies, Atanassov’s intuitionistic fuzzy index values are used for representing the uncertainty/impresision on determining whether a pixel of the image belongs to an object of that image. The general framework presented in [6] is the basis for colour segmentation framework proposed in this paper where it is extended to a multi-level thresholding framework since, often, images include several regions and, thus, it is necessary to compute more than one threshold in order to correctly segment the image. In this methodology we use RGB images in such way that each RGB component is primarily segmented separately. After the three components are segmented we then aggregate the three segmented components into the final segmented image. For each component, the number of computed thresholds is ISBN: 978-989-95079-6-8

automatically determined by the methodology on the basis of the images intuitionistic fuzzy entropy. This entropy is obtained trough the Atanassov’s intuitionistic fuzzy index values. The remainder of this paper is organized as follows: In Section 2 we describe the proposed methodology. Section 3 presents the experimental results obtained and, finally, in Section 4 some conclusions and some lines of future work are presented.

2 Proposed methodology In this section we present the proposed methodology for colour image segmentation that besides its low computational cost is also able to auto determine the number of required thresholds based on the image intuitionistic fuzzy entropy. Since this methodology deals with each RGB component separately, we will only describe the algorithm for one of the components. The exact same algorithm is to be applied to the other two components. This methodology successively applies the bi-level thresholding algorithm proposed in [6], for the computation of one threshold, an unspecified number of times to an image, resulting in a set of thresholds for each RGB component. After the number of required thresholds needed for each RGB component are computed, the total number of thresholds is calculated and, on the basis of that number, the three component segmentations are combined in order to create a resulting gray segmented image. The combination of the components is made by adding all three intensities and afterwards normalizing them back to the original scale. Different ways of combining the three RGB thresholds can be explored. Thus, in the following sub-sections, we will first describe the bi-level thresholding algorithm used and, in the last subsection the multi-level thresholding algorithm. 2.1 Bi-level Thresholding Algorithm In this section we describe the general framework for image thresholding using A-IFSs and restricted dissimilarity functions proposed in [6]. The goal is to obtain the better threshold in order to separate the object from the background. We will denote by (x, y) the coordinates of each pixel on the image Q, being q(x, y) the gray level of the pixel (x, y) so that 0 ≤ q(x, y) ≤ L − 1 for each (x, y) ∈ Q where L is the image grayscale. In this methodology Atanassov Intuitionistic Fuzzy Sets are used in the following way: In order to choose/construct the

963

IFSA-EUSFLAT 2009 Thus, the value represented by Atanassov’s intuitionistic inmembership function of each pixel of the image to the associated fuzzy set, three numerical values are assigned to each dex indicates the knowledge/ignorance of the expert when assigning a pixel either to the background or the object. The one of them. Atanassov’s intuitionistic index value associated with a pixel • A value for representing the expert knowledge of the has the value of zero, when the expert is absolutely sure of membership of the pixel to the background. A member- that pixel belonging (either to the background or the object). ship function, constructed using dissimilarity functions, The Atanassov’s intuitionistic index value increases with reis used to obtain this value (see [10]). spect to the ignorance/intuition of the expert as to whether the pixel belongs to the background or the object. If the ex• Dissimilarity functions are also used by the expert to con- pert doesn’t know if a pixel belongs to the background or the struct a membership function to retrieve a value for rep- object, its membership to both must be represented with the resenting the expert knowledge of the membership of the value 0.5 and, it is said that the expert used the greatest ignopixel to the object. rance/intuition allowed in the construction of the membership functions, of the set associated with that pixel, to the back• The expert knowledge/ignorance, in determining the ground and the object resulting in a Atanassov’s Intuitionabove mentioned membership functions, is represented istic Fuzzy Index maximum value. For this reason, A-IFSs by a third value obtained trough Atanassov’s intuitionis(Atanassov’s Intuitionistic Fuzzy Set [8, 13]) are used. tic index. However, the ignorance/intuition should have the least possible influence on the choice of the membership degree. In this In this sense, L fuzzy sets QBt associated with the backmethodology the ignorance/intuition will have a maximum inground and L fuzzy sets QOt associated with the object are fluence of 25 percent. constructed. Each one of these fuzzy sets is associated with a Under these conditions, within the set of all the possible gray level t of the grayscale L used. The membership funcexpressions(see [6]), the following expression is used to caltions of these sets are defined by means of restricted dissimiculate π: larity functions and, two of the possible expressions one might use are: π(q) = ∧(1 − µQBt (q), 1 − µQOt (q)).    This π is now used to construct an A-IFS with each one of mB (t) q , µQBt (q) = F d the fuzzy sets QBt and QOt . L−1 L−1    mO (t) q , µQOt (q) = F d ˜ Bt = {(q, µ ˜ (q), ν ˜ (q))|q = 0, 1, · · · , L − 1}, Q QBt QBt L−1 L−1 given by

where t mB (t)

=

q=0

t

qh(q)

q=0

h(q)

and

L−1 mO (t)

=

q=t+1 qh(q) L−1 q=t+1 h(q)

(2)

being h(q) the number of pixels of the image with the gray level q, F (x) = 1−0.5x and, the restricted dissimilarity function d(x, y) = |x − y| (see [6, 11, 12]). Due to these constructions, the membership functions constructed are always greater than or equal to 0.5 and, a pixel unequivocally belongs to one of the regions (object or background) if and only if its intensity q is equal to the mean of intensities of the that region (mO (t) or mB (t)). When the difference between the pixel’s intensity q and the mean of intensities of the region is maximal, then the value of its membership function to that region is minimal. Thus, the lesser the distance between a pixel’s intensity q and the mean of intensities of the region, the greater the value of its membership to that region. In this methodology, it is considered that the membership functions (µQBt and µQOt ) indicate the expert’s degree of knowledge of the pixel belonging to the regions, meaning that, the Atanassov’s intuitionistic fuzzy index (π) represents the ignorance/intuition present in the construction of these fuzzy sets. ISBN: 978-989-95079-6-8

µQ˜ Bt (q) = µQBt (q) νQ˜ Bt (q) = 1 − µQ˜ Bt (q) − π(q)

(1)

˜ Ot = {(q, µ ˜ (q), ν ˜ (q))|q = 0, 1, · · · , L − 1}, Q QOt QOt given by µQ˜ Ot (q) = µQOt (q) νQ˜ Ot (q) = 1 − µQ˜ Ot (q) − π(q) At this stage, the Atanassov’s intuitionistic fuzzy index is used to calculate the entropy IE of each one of the L Atanassov’s intuitionistic fuzzy sets associated with the image. The following expression is used to calculate the entropy ˜ Bt ) ≤ 0.25. IE, so that 0 ≤ IE(Q ˜ Bt ) = IE(Q

L−1  1 h(q) · π(q) N × M q=0

(3)

where N × M are the image dimensions in pixels. This way, the entropy on A-IFSs is interpreted as a measure of the degree of a A-IFS that a set has with respect to the fuzzyness of the said set (see [14]). Under these conditions, the entropy will be null when the set is a FSs and will be maximum when the set is totally intuitionistic.

964

IFSA-EUSFLAT 2009 Finally, the gray level associated with the Atanassov’s in˜ Bt of lowest entropy IE is selected as tuitionistic fuzzy set Q the best threshold. 2.2

Original

Segmented

Multi-level Thresholding Algorithm

In this approach, the goal is to obtain a set of thresholds in order to separate all the image objects. This method is based on a divide and conquer strategy and its main idea is to successively apply the algorithm proposed in [6] and presented in the last section, for the computation of one threshold, an unspecified number of times to an image. In Fig. 1 we illustrate the methodology computational process progress. [0,L-1] t1 [t1+1,L-1] t4

[0,t1-1] t2 [t1+1,t2-1] t3

[0,t2-1]

[t1+1,t3-1]

[t1+1,t4-1]

[t3+1,t2-1]

[t4+1,L-1]

23 th Figure 2: Original and segmented ”Lena” image. the image decomposed in its RGB components and, in the second column, each RGB component segmentation result is presented. For all the ”Lena” segmented images the number of computed thresholds is also presented. Original

Segmented

Figure 1: Computational process progress First, the algorithm is applied to the original image resulting in the determination of the threshold value ti . This threshold value is then used to create two sub-images: the sub-image with intensity values lower than ti and the sub-image with intensity values greater than ti . Then, the algorithm is to be applied to the sub-image which has the greater amplitude be11 th tween gray-levels entropy values (difference between the intensity value of maximum entropy and the one of minimum entropy). Hence, The proposed algorithm consecutively divides the resulting sub-images by means of the threshold value ti obtained through the application of the algorithm for the computation of one threshold to each one of them. The algorithms stopping criteria is based on the sub-images gray-levels entropy values in such way that the process stops 4 th when the difference between the entropy of the computed threshold value ti and the maximum entropy of the sub-image that generated it, is inferior to the difference between the maximum and minimum entropies of the entire image divided by a constant K. After experimental evaluation, the value of the constant K was set to 2. The number of computed thresholds is closely related to the value of this constant K. This value is directly proportional to the number of computed thresholds since, the maximum dif8 th ference of global entropy allowed for each sub-image to produce a new threshold is inversely proportional to the value of Figure 3: Original and segmented RGB components of ”Lena” K. Thus, the value of the constant K can be chosen according image. to the purpose of the application where the algorithm is to be Regarding the number of computed thresholds in each RGB applied. component we can conclude that, as one can see looking at he original image, the red component is the one that has more in3 Experimental results formation regarding the segmentation of the image and, thereIn order to illustrate the methodology we used the ”Lena” im- fore the red component was the one with more computed age in Fig. 2 and Fig. 3. thresholds. We think that this is an indicator of the goodness In Fig. 2 the original ”Lena” image and the segmentation of the methodology since it was able to accurately auto deresult are presented. In Fig. 3, in the first column, we present termine the required number of thresholds in each component ISBN: 978-989-95079-6-8

965

IFSA-EUSFLAT 2009 separately. Looking at Fig. 3, we can also see that the RGB components are highly related. We consider this to be the major drawback of segmenting images in the RGB colour space. To test the performance of the proposed approach, more than a hundred images where segmented. However, in order to illustrate the obtained results, 5 images from the original set of images (taken form the Berkeley Segmentation Dataset: http://www.eecs.berkeley.edu/ Research/Projects/ CS/vision/grouping/segbench/) were selected and used as test images (see Fig. 4). Original

Segmented

the same sense as fuzzy entropy is used in the fuzzy algorithms and, consequently, allowed us to endow the methodology with the capability of dealing with uncertainty. The proposed methodology successively applies a bi-level thresholding algorithm an undetermined number of times to an image RGB component subdividing it into several disjoined regions. Moreover, the algorithm is able to auto determine the number of thresholds required to segment each RGB image component. Considering the experimental results, we can say that, in general terms, the proposed algorithm provides suitable results and therefore can be considered when colour image segmentation applications are needed. The proposed methodology is parameterizable through the setting of a constant K. The value of this constant is directly proportional to the optimal number of thresholds computed. Thus, the value of the constant K should always depend of the application needs. Future work is intended to study the incorporation of heuristics in the algorithm through the setting of the constant K value. Different combinations of the resulting thresholds of each one of the RGB components can be an object of future work in order to incorporate the perceptual differences among the three components. Due to the high correlation between the three RGB components, further work is also intended to apply an extension of this algorithm to images in the HSV colour space. Being the HSV colour space a more intuitive color space, it’s our belief that a more coherent segmentation will be achieved.

Acknowledgment This work has been partially supported by Acc¸o˜ es integradas Luso-Espanholas 2007, Acciones Integradas Hispano-Portuguesas, ref. HP2006-0128 (MEC), and POCI 2010 (Programa Operacional Ciˆencia e Investigac¸a˜ o 2010) References [1] J. Bezdek, J. Keller, R. Krisnapuram, and N. Pal. Fuzzy Models and algorithms for pattern recognition and image processing, The Handbooks of Fuzzy Sets Series. Kluwer Academic Publishers, Boston/London/Dordrecht, 1999. [2] Z. Chi, H. Yan, and T. Pham. Optimal image thresholding. Fuzzy algorithms: with application to image processing and pattern recognition, pages 45–84, 1998. [3] L. Huang and M. Wang. Image thresholding by minimizing the measure of fuzziness. Pattern recognition, 28(1):41–51, 1995.

Figure 4: Original and segmented test images. In Fig 4 we present the results from the application of the proposed methodology to complex images where, the value of the constant K was also set at 2 and, where we can see that the main features of the images are preserved.

4

Conclusions and Future Work

Since, an image usually contains more than one region, in this paper we presented a new extension of an existing method, that uses A-IFSs for multi-level colour image segmentation. The algorithm first segments each RGB component separately and finally combines them in order to obtain the final segmented image. The use of A-IFSs allowed us to use entropy in ISBN: 978-989-95079-6-8

[4] S. Zenzo, L. Cinque, and S. Levialdi. Image thresholding using fuzzy entropies. IEEE Transactions on Systems, Man and Cybernetics, 28(1):15–23, 1998. [5] M. Forero. Fuzzy Filters for Image Processing, chapter Fuzzy thresholding and histogram analysis, pages 129–152. Springer, 2003. [6] H. Bustince, M. Pagola, P. Melo-Pinto, E. Barrenechea, and P. Couto. Fuzzy Sets and Their Extensions: Representation, Aggregation and Models, in Studies in Fuzziness and Soft Computing, chapter Image threshold computation by modelizing knowledge/unknowledge by means of A-IFSs, pages 627–644. Springer-Verlag, Berlin Heidelberg New York, 2007. [7] K. Atanassov. Intuitionistic fuzzy sets. VII ITKR’s Session, Deposed in Central Sci. Techn. Library of Bulg. Acd. of Sci., Sofia, pages 1684–1697, 1983.

966

IFSA-EUSFLAT 2009 [8] K. Atanassov. Intuitionistic fuzzy sets. Fuzzy Sets and Systems, 20:87–96, 1986. [9] P. Burillo and H. Bustince. Construction theorems for intuitionistic fuzzy sets. Fuzzy Sets and Systems, 84:271–281, 1996. [10] E. Barrenechea. Image Thresholding with Interval-valued Fuzzy Sets. Edge Detection. Contrast. PhD thesis, Universidad P´ublica de Navarra, 2005. [11] H. Bustince, E. Barrenechea, and M. Pagola. Relationship between restricted dissimilarity functions, restricted equivalence functions and en −functions: Image threshold invariant. Pattern Recognition Letters, In Press 2007. [12] P. Couto. Image segmentation using Atanassov intuitionistic fuzzy sets. PhD thesis, Tr´as-os-Montes e Alto Douro University, Vila Real, Portugal, 2006. [13] K. Atanassov. Intuitionistic fuzzy sets. Theory and applications. Springer-Verlag, Berlin Heidelberg New York, 1 edition, January 1999. [14] P. Burillo and H. Bustince. Entropy on intuitionistic fuzzy sets and on intervalvalued fuzzy sets. Fuzzy Sets and Systems, 78:81–103, 1996.

ISBN: 978-989-95079-6-8

967