• 沒有找到結果。

Contrast-based color image segmentation

N/A
N/A
Protected

Academic year: 2021

Share "Contrast-based color image segmentation"

Copied!
4
0
0

加載中.... (立即查看全文)

全文

(1)

IEEE SIGNAL PROCESSING LETTERS, VOL. 11, NO. 7, JULY 2004 641

Contrast-Based Color Image Segmentation

Hsin-Chia Chen, Wei-Jung Chien, and Sheng-Jyh Wang

Abstract—In this letter, we propose a color image segmentation algorithm based on contrast information. Given a color image, we use contrast information, instead of the commonly used derivative information, to detect edges. To fit for human’s visual perception, the CIE color space is used and the1 color differ-ence is adopted as the measure of color contrast. A subjective ex-periment is made to demonstrate the weak correlation between the perceived color contrast and the levels of ( ). This ex-periment implies the feasibility of using a single-threshold scheme to suppress perceptually faint boundaries. A complete segmenta-tion scheme is proposed and the simulasegmenta-tion results demonstrate the superiority of this approach in providing reasonable and reliable color image segmentation.

Index Terms—CIE color space, color difference, color image segmentation, contrast.

I. INTRODUCTION

I

N RECENT YEARS, plenty of efforts have been focusing on the segmentation of color images. In general, current image segmentation algorithms can be roughly classified into three major categories: 1) image domain-based techniques; 2) feature space-based techniques; and 3) physics-based tech-niques [1]. For image domain-based techtech-niques [2]–[6], the similarity of neighboring pixels or the discontinuity of local information is used as the gauge for segmentation. Adjacent pixels with small intensity/color variations are merged together, while pixels with large enough variations are split apart. For feature space-based techniques [7]–[9], the data distribution of the entire image plays a crucial role. Clustering or grouping techniques are usually applied over the data distribution to allocate image data into groups. For physics-based techniques, the adopted mathematical tools are basically the same as the former two kinds of techniques, while an underlying physical model is used to account for the reflection properties of colored matter [1].

In this letter, we propose a new algorithm, which is an image domabased technique. In this algorithm, we use contrast in-formation, instead of the commonly used derivative informa-tion, as the gauge for color segmentation. So far, various forms of contrast have already been used for image enhancement [10], [11] and edge detection [3]. In [10], the contrast was defined as the ratio of high-frequency content and low-frequency content to fit human contrast sensitivity in spatial frequency, while in [11] a so-called simultaneous contrast was defined as the ratio

Manuscript received August 12, 2003; revised November 11, 2003. The as-sociate editor coordinating the review of this manuscript and approving it for publication was Prof. Scott T. Acton.

The authors are with the Department of Electronics Engineering, Institute of Electronics, National Chiao Tung University, Hsin-Chu 30050, Taiwan, R.O.C. (e-mail: [email protected]; [email protected]; [email protected]).

Digital Object Identifier 10.1109/LSP.2004.830116

of an object’s luminance against its surrounding luminance. On the other hand, in [3], the contrast was defined as the square of 1st derivative to represent the strength of edges. Here, we adopt a new form of contrast, which is defined as the data dif-ference across an edge. This contrast definition can be easily united with the widely used CIE measure, which is de-fined over the CIE uniform color space and is closely related to human’s visual perception [12]. As will be demon-strated at the end of this letter, the use of this contrast definition may provide reliable and reasonable segmentation results.

II. DIRECTIONALCONTRASTESTIMATION

As mentioned above, the gauge of segmentation is usually based on data variation in a local area. Similarity-based algo-rithms group together pixels with small data variation, while discontinuity-based algorithms detect places with large data variation. To measure data variation, the derivative information is commonly used. Nevertheless, direct uses of derivative values may not faithfully reflect the way human perceives object boundaries. Fig. 1(a) shows an intensity profile extracted from a real image. Basically, each edge on this profile comprises three major factors: 1) edge height, 2) edge slope, and 3) noise irritation. Among these three factors, edge height is more related to the way human perceives edges than the other two [4]. However, all these three factors influence the measurement of the 1st derivative around an edge. For example, the values of its 1st differentiation are plotted in Fig. 1(b). In the middle of Fig. 1(a), there appear two apparent edges: a sharp edge around and a smooth edge around . Even though these two edges have similar edge height, their 1st derivatives are quite different. Furthermore, the noise fluctuation around generates a 1st derivative value that is as large as the 1st derivative value around . These two examples imply that a direct use of the 1st derivative information could be very risky if we aim for accurate segmentation.

In this letter, we name the edge height as edge contrast. It is defined as the intensity or color difference between the high-curvature points on the two sides of the boundary, as shown in Fig. 2. To detect these high-curvature points, we use a 2nd derivative operator to estimate the curvature of the profile. This 2nd derivative is designed as

(1) Here, denotes the impulse function

otherwise (2)

while denotes a Gaussian function with zero mean and standard deviation .

(2)

642 IEEE SIGNAL PROCESSING LETTERS, VOL. 11, NO. 7, JULY 2004

Fig. 1. (a) Intensity profile extracted from a real image. (b) The estimated 1st derivative information. (c) The estimated contrast information with = 2:0.

Fig. 2. Definition of contrast.

By convoluting a profile with this operator, we have (3) Basically, can be imagined as the 2nd derivative of the pro-file . Moreover, the local extremes of correspond to the high-curvature points of . Fig. 1(c) shows the contrast information extracted from Fig. 1(a) using (3) with , which is determined empirically. It is obvious that Fig. 1(c) of-fers much more reliable information than Fig. 1(b).

Since the 2nd derivative is orientation-dependent, the contrast information at an image pixel has to be measured along various orientations. In the proposed algorithm, we detect boundaries by checking the relations between each pixel and its eight neigh-bors. Hence, four directional operators are used at each pixel to measure the curvature information at that pixel. These four di-rections are 0 , 45 , 90 and 135 , respectively. All these four directional contrast data are then grouped together in subsequent processes.

III. COLORCONTRAST IN THECIE LABCOLORSPACE

In color image segmentation, a proper choice of color space is also a crucial issue. In the selection of color space, we choose the CIE color space to work on due to its three major prop-erties: 1) separation of achromatic information from chromatic information, 2) uniform color space, and 3) similar to human vi-sual perception [12]. Here, represents the luminance compo-nent, while and represent color components. The formulae for converting an RGB image into the coordinates can be found in many color-related articles, like [12] and [13].

Fig. 3. Example of the test pattern in the subjective experiment.

In the CIE color space, the Euclidean distance

be-tween and , defined as

(4) is approximately equivalent to the perceptual difference be-tween these two colors [4], [12]. By incorporating this color difference formula into our contrast definition, we define the color contrast across an edge as

(5) To further explore the correlation between color contrast and the luminance level or color level, we made a subjective experi-ment. In our experiment, 10 observers are involved and the pat-terns are displayed over a calibrated ViewSonic PT775 monitor for comparisons. Here, the values of luminance/color contrast are coarsely quantized into eleven steps, 0, 5, 10, 15, …, 50. In

(3)

CHEN et al.: CONTRAST-BASED COLOR IMAGE SEGMENTATION 643

Fig. 4. Subjective experiment results for color contrast perception. (a) Perceived color contrast versus luminance level for 5 differentL contrasts. (b) Perceived color contrast versus luminance level for 5 differenta contrasts. (c) Perceived color contrast versus color level for 5 different L contrasts. (d) Perceived color contrast versus color level for 5 differenta contrasts.

the experiment, a set of eleven step images with different con-trast values but the same level value is used as reference. Each time, a step image with randomly specified contrast and level values is generated and is placed on the right side of each refer-ence pattern for comparison, as shown in Fig. 3. The observers are asked to choose one or two reference patterns whose per-ceptual contrast is most similar to the randomly generated step image. In total, 131 testing images are examined and the aver-aged results are shown in Fig. 4(a)–(d). It could be seen that our color contrast definition is roughly equivalent to the perceived color contrast and is weakly correlated with luminance/color levels. This implies that a single global threshold may work rea-sonably well over the whole image to suppress perceptually faint edges.

IV. COLORSEGMENTATIONALGORITHM

A. Segmentation Algorithm

Based on directional contrast information and a single-threshold scheme over estimated color contrast, the flowchart of the proposed algorithm is illustrated in Fig. 5.

The color space conversion is applied to the color image first. Then four directional operators are applied to each component of to extract directional contrast.

Fig. 5. Flow chart of the proposed algorithm.

(4)

644 IEEE SIGNAL PROCESSING LETTERS, VOL. 11, NO. 7, JULY 2004

Fig. 7. (a) Original image. (b) Segmentation result of the proposed algorithm, represented in pseudo-color, with  = 1:4 and threshold = 23. (c), (d), (e) Segmentation results of Deng and Manjunath’s algorithm [6], represented in pseudo-color, with different threshold values.

A single threshold is then applied over the estimated color contrast to detect boundaries. These directional data are then merged together via the connection and verification process. In the connection and verification process, these horizontal boundaries and vertical boundaries are checked first. Any two neighboring pixels without a boundary between them are connected together. Then, these 45 and 135 boundaries are checked to remove logically inconsistent connections.

Here we use Fig. 6 to illustrate the meaning of logically consistent connection. Take the triplet of Pixel-A, Pixel-B and Pixel-C as an example. Let “ ” denote there is no boundary between two neighboring pixels; “ ” denote there is a boundary between two neighboring pixels; and “ ” denote the logical AND. We have that

If is true,

then either or has to be true.

Otherwise, the connection between Pixel-A and Pixel-B is logically inconsistent.

In this verification step, all logically inconsistent connections are disconnected. Surviving connections are then merged to-gether to produce the final segmentation result.

B. Segmentation Results

Fig. 7(a) shows a color image. The segmented result of the proposed algorithm is shown in Fig. 7(b), represented in pseudo colors with and contrast-threshold 23. Even though these two parameters are determined empirically, the parameter setting process is quite simple. Usually, a larger is used to better suppress noise, while a smaller value is used to dis-tinguish tiny details. Similarly, a larger color-threshold is used to extract objects of larger intensity variations, while a small color-threshold is used to distinguish object details. In compar-ison, the parameter setting process is usually troublesome in many segmentation algorithms. Take Deng and Manjunath’s al-gorithm [6] as an example, as we choose a small quantization threshold, many tiny details are revealed but the uniform back-ground is split into several regions, as shown in Fig. 7(c). On the contrary, as we increase the value of quantization threshold, the background is merged together, but many tiny objects, like the palm in Fig. 7(e), are mistakenly merged. These two algo-rithms were performed on a PC with Intel Pentium III 800 Mhz and 256 MB memory. Given a 512 512 color image, the CPU

time for Deng and Manjunath’s algorithm is around 1 to 2 min, and for our proposed algorithm is around 10 to 20 s, without performing code optimization.

V. CONCLUSION

In this letter, we propose the use of contrast information for color image segmentation. We found that the contrast informa-tion is quite useful and reliable in detecting boundaries. To es-timate the color contrast in a 2-D image, we use four direc-tional operators to extract direcdirec-tional color contrast information. A single-threshold scheme is then applied over the estimated color contrast to detect directional boundaries. Finally, these di-rectional boundaries are merged together via a connection and verification process to form 2-D boundaries. The simulation re-sults demonstrate that this new algorithm is capable of providing reasonable and reliable results.

REFERENCES

[1] L. Lucchese and S. K. Mitra, “Color image segmentation: A state-of-the-artx survey,” in Proc. Indian National Science Academy

(INSA-A), vol. 67, A, New Delhi, India, Mar. 2001, pp. 207–221.

[2] J. Canny, “Computational approach to edge detection,” IEEE Trans.

Pat-tern Anal. Machine Intell., vol. PAMI-8, pp. 679–698, Nov. 1986.

[3] A. Cumani, “Edge detection in multispectral images,” CVGIP: Graph.

Models Image Process., vol. 53, no. 1, pp. 40–51, 1991.

[4] M. A. Ruzon and C. Tomasi, “Edge, junction, and corner detection using color distributions,” IEEE Trans. Pattern Anal. Machine Intell., vol. 23, pp. 1281–1295, Nov. 2001.

[5] W. Y. Ma and B. S. Manjunath, “Edge flow: A technique for boundary detection and image segmentation,” IEEE Trans. Image Processing, vol. 9, pp. 1375–1388, Aug. 2000.

[6] Y. Deng and B. S. Manjunath, “Unsupervised segmentation of color-tex-ture regions in images and video,” IEEE Trans. Pattern Anal. Machine

Intell., vol. 23, pp. 800–810, Aug. 2001.

[7] J. Shi and J. Malik, “Normalized cuts and image segmentation,” IEEE

Trans. Pattern Anal. Machine Intell., vol. 22, pp. 888–905, Aug. 2000.

[8] D. Comaniciu and P. Meer, “Mean shift: A robust approach toward fea-ture space analysis,” IEEE Trans. Pattern Anal. Machine Intell., vol. 24, pp. 603–619, May 2002.

[9] C. Carson, S. Belongie, H. Greenspan, and J. Malik, “Blobworld image segmentation using expectation-maximization and its application to image querying,” IEEE Trans. Pattern Anal. Machine Intell., vol. 24, pp. 1026–1038, Aug. 2002.

[10] J. Tang, E. Peli, and S. Acton, “Image enhancement using a contrast measure in the compressed domain,” IEEE Signal Processing Lett., vol. 10, pp. 289–292, Oct. 2003.

[11] W. M. Morrow, R. B. Paranjape, R. M. Rangayyan, and J. E. L. De-sautels, “Region-Based contrast enhancement of mammograms,” IEEE

Trans. Med. Imag., vol. 11, no. 3, pp. 392–406, Sep. 1992.

[12] G. Wyszecki and W. Stiles, Color Science: Concepts and Methods,

Quantitative Data and Formulae, 2nd ed. New York: Wiley, 1982. [13] (1999) SRGB—Default RGB Color Space. International Electro

tech-nical Commission (IEC) 61966-2-1. [Online]. Available: http://www. iec.ch

數據

Fig. 1. (a) Intensity profile extracted from a real image. (b) The estimated 1st derivative information
Fig. 4. Subjective experiment results for color contrast perception. (a) Perceived color contrast versus luminance level for 5 different L contrasts
Fig. 7. (a) Original image. (b) Segmentation result of the proposed algorithm, represented in pseudo-color, with  = 1:4 and threshold = 23

參考文獻

相關文件

好了既然 Z[x] 中的 ideal 不一定是 principle ideal 那麼我們就不能學 Proposition 7.2.11 的方法得到 Z[x] 中的 irreducible element 就是 prime element 了..

volume suppressed mass: (TeV) 2 /M P ∼ 10 −4 eV → mm range can be experimentally tested for any number of extra dimensions - Light U(1) gauge bosons: no derivative couplings. =>

For pedagogical purposes, let us start consideration from a simple one-dimensional (1D) system, where electrons are confined to a chain parallel to the x axis. As it is well known

The observed small neutrino masses strongly suggest the presence of super heavy Majorana neutrinos N. Out-of-thermal equilibrium processes may be easily realized around the

incapable to extract any quantities from QCD, nor to tackle the most interesting physics, namely, the spontaneously chiral symmetry breaking and the color confinement.. 

(1) Determine a hypersurface on which matching condition is given.. (2) Determine a

• Formation of massive primordial stars as origin of objects in the early universe. • Supernova explosions might be visible to the most

• elearning pilot scheme (Four True Light Schools): WIFI construction, iPad procurement, elearning school visit and teacher training, English starts the elearning lesson.. 2012 •