1. Field of the Invention
The present invention relates to a color image segmentation method, and more particularly, to a color image segmentation method for segmenting a color image.
2. Description of the Related Art
The segmentation of a color image is a very important part of digital image processing and its applications. A first type of conventional color image segmentation method has a problem in that it is not easy to segment a color image containing texture. A second type of conventional color image segmentation method for performing an automatic segmentation does not perform well when used to process an input image containing noise. A third type of conventional color image segmentation method requires a user to prepare the image by manual segmentation. Though this third method produces satisfactory results even with respect to an input image containing noise, an automatic segmentation is not performed, therefore, this third method requires significant processing time.
To solve the above problems, it is an object of the present invention to provide a color image segmentation method capable of automatically segmenting a color image containing texture and performing well even with respect to an input image containing noise.
It is another object of the present invention is to provide a color image processing method containing the color image segmentation method.
It is still another object of the present invention is to provide a medium in which a computer program performing the color image segmentation method is stored.
Accordingly, to achieve the above objects, according to one aspect of the present invention, there is provided a color image segmentation method. The color image segmentation method comprises the steps of: (a) calculating a first value representing a degree of difference between the color of a pixel and peripheral pixels based on a plurality of pixel values of an input image; (b) obtaining a converted image by converting the first value into a value of a predetermined scale; and (c) segmenting the converted image. Preferably, the step (c) segments the converted image based on a region growing method.
It is preferable that the color image segmentation method, prior to the step (a), further comprises the step of (p-a) quantizing pixel values of an image into a predetermined number of representative pixel values; wherein the pixel values are quantized pixel values.
The representative pixel values preferably consist of 10–20 values.
It is preferable that the color image segmentation method, prior to the step (a), further comprises the steps of: (p-a-1) defining a window containing a center pixel; and (p-a-2) calculating the first value representing the degree of difference from the color of peripheral pixels with respect to pixels in the defined window.
It is also preferable that the step (a) comprises the steps of: (a-1) defining a window B which is centered at a pixel p and has a size of d×d where d is a positive integer preferably between 3 and 10, inclusive; and (a-2) classifying a pixel position z into a C number of classes when i is a number between 1 and C, and Z is a set of all pixels in the window B; and (a-3) obtaining a J-value with respect to each pixel in a class-map as:
where mi is the average of positions of Ni data points in class Zi,
The predetermined scale is preferably a gray scale having values between 0 and 255.
In order to achieve the above object, according to another aspect of the present invention, there is provided a color image segmentation method. The color image segmentation method comprises the steps of: (a) quantizing pixel values of an image into a predetermined number of representative pixel values; (b) calculating a value representing a degree of difference between the color of pixels in a predetermined size window using quantized representative pixel values; (c) obtaining a converted image by converting the calculated value into a value of a predetermined scale; and (d) segmenting the converted image using a segmentation method based on a region growing method.
In order to achieve another object, there is provided an object-based color image processing method for processing a color image according to a color image segmentation method. The color image segmentation method comprises the steps of: (a) calculating a predetermined value representing a degree of difference between a pixel and the color of peripheral pixels based on a plurality pixel values of an input image; (b) obtaining a converted image by converting a calculated value into a value of a predetermined scale; and (c) segmenting the converted image.
In order to achieve still another object, there is provided a medium for storing program codes performing a color image segmentation method for segmenting a color image into a plurality of regions. The medium includes computer readable program means for: (a) quantizing pixel values of an image into a predetermined number of representative pixel values; (b) calculating a value representing a degree of difference between the color of pixels in a predetermined size window using quantized representative pixel values; (c) obtaining a converted image by converting a calculated value into a value of a predetermined scale; and (d) segmenting the converted image using a segmentation method based on a region growing method.
The above objects and advantages of the present invention will become more apparent by describing in detail preferred embodiments thereof with reference to the attached drawings in which:
Referring to
More preferably, a window centered at a pixel to be processed in an entire image is defined. That is, when d is a positive integer, preferably between 3 and 10 (inclusive), a window B which is centered at a pixel p or at approximately pixel p and has a size of d×d, is defined. Also, an assumption is made that i is a number between 1 and C, and Z is a set of all the pixels in the window B. An assumption is made that Z is classified into a C number of classes. In other words, Z is classified into C classes Zi, i=1 . . . C.
Also, an assumption is made that a specific class variable mi is the average of positions of Ni data points in class Zi as:
The more general counterpart of mi may be represented by m.
Also, ST and SW are defined by:
respectively.
Next, a J-value with respect to each pixel in a class-map is obtained (step 108). The J-value with respect to each pixel in the class-map is defined as follows:
The J-values obtained by equation 4 are converted into a gray scale value between 0 and 255, so that a gray scale image having values and capable of being referred to as a J-image is obtained (step 110). The J-image has the same form as a three-dimensional topographic map containing valleys and mountains that actually represent region centers and region boundaries, respectively.
Lastly, the J-image is segmented based on a region growing method (step 112). The region growing method is known to one of ordinary skill in the art as a method used for the segmentation of a digital image, therefore, an explanation thereof is not given.
It is necessary to check whether segmentation has been performed well with respect to each region in the segmented class-maps and to represent the same as quantized values. For this purpose, when Jk is the J-value obtained with respect to a k-region, and Mk is the number of pixel points of a k-th region, and N is the total number of pixel points in the class-map, the averaged J-value is calculated as:
The calculated values are represented as quantized values representative of whether a segmentation is performed well with respect to each region in the segmented class-maps or not.
In the case of the segmented class-map shown in
That is, as described referring to
In the above color image segmentation method according to the present invention, a robust segmentation is possible even when segmenting an image containing much noise or texture. Furthermore, an automatic segmentation is possible without user's assistance, such as segmentation performed manually by a user. Therefore, the segmentation can be performed rapidly. The color image segmentation method can be applied to object-based image processing such as that used in MPEG-7.
In the above embodiment, the calculation of specific functions are explained as examples, however, this is only for purposes of explanation. The scope of the present invention defined in the appended claims is not limited to the embodiment, and it is obvious that one of ordinary skill in the art can use another modified function representing the degree of difference from the color of peripheral pixels.
For instance, in equation 3, SW may be represented by
Furthermore, the above color image segmentation method can be embodied in a computer program. Codes and code segments comprising the program can be easily inferred by a skilled computer programmer in the art. Also, the program can be stored in computer readable media, read and executed by a computer, and it can thereby realize the color image processing method. The media can include magnetic media, optical media, and carrier waves, or other media used for machine-readable forms.
As described above, according to the present invention, a color image can be automatically segmented without a user's assistance and is robust and effective even with respect to an input image containing noise.
This is a non-provisional application claiming benefit of provisional application 60/130,643 filed on Apr. 23, 1999.
| Number | Name | Date | Kind |
|---|---|---|---|
| 5206918 | Levene | Apr 1993 | A |
| 5432893 | Blasubramanian et al. | Jul 1995 | A |
| 5544284 | Allebach et al. | Aug 1996 | A |
| 5767992 | Tanaka et al. | Jun 1998 | A |
| 5768412 | Mitsuyama et al. | Jun 1998 | A |
| 5850475 | Kasao | Dec 1998 | A |
| 6047085 | Sato et al. | Apr 2000 | A |
| 6088137 | Tomizawa | Jul 2000 | A |
| 6124945 | Ishihara et al. | Sep 2000 | A |
| 6134347 | Niwamoto | Oct 2000 | A |
| 6184940 | Sano | Feb 2001 | B1 |
| 6266442 | Laumeyetr et al. | Jul 2001 | B1 |
| 6330008 | Razdow et al. | Dec 2001 | B1 |
| 6332036 | Sakamoto | Dec 2001 | B1 |
| 6351556 | Loui et al. | Feb 2002 | B1 |
| 6353700 | Zhou | Mar 2002 | B1 |
| 6452970 | Kaup | Sep 2002 | B1 |
| 6587222 | Nishikawa | Jul 2003 | B2 |
| Number | Date | Country |
|---|---|---|
| 1209894 | Mar 1999 | CN |
| 0082010 | Nov 1999 | KR |
| Number | Date | Country | |
|---|---|---|---|
| 60130643 | Apr 1999 | US |