Login| Sign Up| Help| Contact|

Patent Searching and Data


Title:
COLOR IMAGE PROCESSING METHOD AND APPARATUS THEREOF
Document Type and Number:
WIPO Patent Application WO/2000/046749
Kind Code:
A1
Abstract:
A color image processing method and apparatus thereof are provided. The color image processing method includes the steps of (a) sorting image pixels according to the color distance between the image pixels and a central pixel, (b) grouping the sorted pixels into groups in which the difference in the intragroup color distance is minimum and the difference in the intergroup color difference is maximum, and (c) performing filtering by replacing a central pixel value with a predetermined pixel value determined by pixel valves of pixels in the groups. The color image processing method can reduce the generation of edge blurring of the image in removing impulse noise from an image and filtering the same.

Inventors:
SHIN HYUN DOO
CHOI YANG LIM
DENG YINING
MANJUNATH B S
Application Number:
PCT/KR2000/000090
Publication Date:
August 10, 2000
Filing Date:
February 03, 2000
Export Citation:
Click for automatic bibliography generation   Help
Assignee:
SAMSUNG ELECTRONICS CO LTD (KR)
UNIV CALIFORNIA (US)
International Classes:
G06T5/00; G06T5/20; H04N11/04; G06T7/00; G06T7/40; G06V10/56; (IPC1-7): G06T1/00; G06T7/60
Foreign References:
EP0522702A21993-01-13
Other References:
Content-Based Access of Image and Video Libraries, 1998, Proceedings IEEE Workshop on Published: 1998, pages 3-8, VAILAYA A., JAIN A., HONG JIANG ZHANG., "On image classification city vs. landscape".
Image Processing, 1996, Proceedings International Conference on Published: 1996, Volume 1, pages 761-764, Vol. 2, MALIK J., FORSYTH D.A., FLECK M.M., GREENSPAN H., LEUNG T., CARSON C., BELONGIE S., BREGLER C., "Finding objects in image databases by grouping".
Signals, Systems and Computers, 1988, Twenty-Second Asilomar Conference on Published: 1988, Volume 1, pages 305-309, KHOTANZAD A., BOUARFA A., "A Oarallel, Non-parametric, Non-Iteratrve Algorithm with Application to Image Segmentation".
See also references of EP 1153364A4
Attorney, Agent or Firm:
Lee, Young Pil (The Cheonghwa Building 1571-18 Seocho-dong Seocho-gu Seoul 137-073, KR)
Download PDF:
Claims:
What is claimed is:
1. A color image processing method comprising the steps of: (a) sorting image pixels according to the color distance between the image pixels and a central pixel : (b) grouping the sorted pixels into groups in which the difference in the intragroup color distance is minimum and the difference in the intergroup color difference is maximum ; and (c) performing filtering by replacing a central pixel value with a predetermined pixel value determined by pixel values of pixels in the groups.
2. The color image processing method according to claim 1 further comprising the step of defining a window having a predetermined size within an input color image, wherein the image pixels are pixels within the window.
3. The color image processing method according to claim 1. before the step (b). further comprising the step of removing pixels having a difference in color distance from the central pixel greater than or equal to a predetermined threshold, with respect to a predetermined number of pixels at the beginning and latter parts among the sorted pixels.
4. The color image processing method according to claim 3, wherein the predetermined number is less than or equal to L/2, in which L is a predetermined positive integer indicating the size of an LXL window.
5. The color image processing method according to claim 2, before the step (b). further comprising the step of removing pixels having a difference in color distance from the central pixel greater than or equal to a predetermined threshold. with respect to a predetermined number of pixels at the beginning and latter parts among the sorted pixels.
6. The co) or image processing method according to any of claims 1 through 5, wherein the step (b) includes grouping the sorted pixels using a function based on a Fisher's discriminant estimation method.
7. The color image processing method according to claim 1, wherein the step (b) comprises the substeps of: (b1) setting a first group consisting of Oth through (i1) th pixels, and a second group consisting of ith through Kth pixels, wherein i is an integer from 0 through K and K= L21 ; (b2) obtaining the respective averages of the color distance differences for pixels of the first and second groups by the following Expressions: (b3) obtaining the respective variances of the cotor distance differences for pixels of the first and second groups are obtained by the following Expressions: (b4) calculating a value J (i) by the following Expression. using the obtained average and variance: (b5) obtaining the value of i which makes J maximum by the following Expression: arg m(n)= {max J(i)}<BR> i<BR> <BR> <BR> <BR> <BR> and selecting pixels ranging from a pixel having a small color distance to a pixel having the obtained value of i to determine the same as a peer group P (n).
8. The color image processing method according to claim 7, after the step (b5), further comprising the steps of: selecting i pixels ranging from the pixel having the minimum color distance among the pixels sorted according to the color distance from the central pixel and setting the largest value of the color distances of the selected pixels as the maximum color distance within the peer group; and performing color quantization by weighting the color vectors of the respective pixels by exp (T (n)), wherein T (n) is the maximum color distance within the peer group.
9. The color image processing method according to claim 7, after the step (b5), further comprising the steps of: selecting i pixels ranging from the pixel having the minimum color distance among the pixels sorted according to the color distance from the central pixel and setting the largest value of the color distances of the selected pixels as the maximum color distance within the peer group; and obtaining the average of T (n) values of the whole image and performing color quantization using a value obtained by multiplying the average with a predetermined constant as the number of clusters, wherein T (n) is the maximum color distance within the peer group.
10. The color image processing method according to claim 7, after the step (b5), further comprising the steps of: selecting pixels whose number corresponds to the size of the peer group, ranging from the pixel having the minimum color distance among the pixels sorted according to the color distance from the central pixel and setting the largest value of the color distances of the selected pixels as the maximum color distance within the peer group; and weighting the color vectors of the respective pixels by exp (T (n)), wherein T (n) is the maximum color distance within the peer group, and performing color quantization using a value obtained by multiplying the average of the T (n) values of the whole image with a predetermined constant as the number of clusters.
11. The color image processing method according to claim 7, wherein the step (c) includes replacing the central pixel Xo (n) with a new pixel X0 (n) by the following Expression: where pi (n) are the pixels constituting the peer group and, W are predetermined weights corresponding to pj (n).
12. The color image processing method according to claim 1, wherein the step (c) includes replacing the color vector of the central pixel with an average weighted by a predetermined weight that is larger for a pixel closer to the central pixel and is smaller for a pixel distant from the central pixel.
13. The color image processing method according to claim 12, wherein the predetermined weight is a value determined by a standard Gaussian function.
14. The color image processing method according to claim 1, further comprising the step of performing color quantization by weighting the color vectors of the respective pixels by exp (T (n)), wherein T (n) is the maximum color distance within one group.
15. A color image processing method comprising the steps of: (a) receiving a color image frame and segmenting the same into a plurality of color images by a predetermined segmentation method; (b) sorting image pixels according to the color distance between the image pixels and a central pixel, with respect to an image selected among the segmented color images; (c) grouping the sorted pixels into groups in which the difference in the intragroup color distance is minimum and the difference in the intergroup color difference is maximum; and (d) performing filtering by replacing a central pixel value with a predetermined pixel value determined by pixel values of pixels in the groups.
16. The color image processing method according to claim 15, before the step (b), further comprising the step of defining a window having a predetermined size within the selected color image, wherein the image pixels are pixels within the window.
17. The color image processing method according to claim 15, before the step (b). further comprising the step of removing pixels having a difference in the color distance from the central pixel greater than or equal to a predetermined threshold, with respect to a predetermined number of pixels at the beginning and latter parts among the sorted pixels.
18. The color image processing method according to claim 17, wherein the predetermined number is less than or equal to L/2, in which L is a predetermined positive integer indicating the size of an LXL window.
19. The color image processing method according to claim 15, before the step (b), further comprising the step of removing pixels having a difference in color distance from the central pixel greater than or equal to a predetermined threshold, with respect to a predetermined number of pixels at the beginning and latter parts among the sorted pixels.
20. The color image processing method according to any of claims 15 through 19, wherein the step (b) includes grouping the sorted pixels using a function based on a Fisher's discriminant estimation method.
21. The color image processing method according to claim 15, wherein the step (b) comprises the substeps of: (b1) setting a first group consisting of Oth through (il) th pixels, and a second group consisting of ith through Kth pixels, wherein i is an integer from 0 through K and K= 01; (b2) obtaining the respective averages of the color distance differences for pixels of the first and second groups by the following Expressions: (b3) obtaining the respective variances of the color distance differences for pixels of the first and second groups are obtained by the following Expressions: (b4) calculating a value J (i) by the following Expression, using the obtained average and variance: (b5) obtaining the value of i which makes J (i) maximum by the following Expression: arg m (n) = tmax J (i)}<BR> <BR> <BR> i and selecting pixels ranging from a pixel having a small color distance to a pixel having the obtained value of i to be determined as a peer group P (n).
22. The color image processing method according to claim 15, wherein the step (c) includes replacing the color vector of the central pixel with an average weighted by a predetermined weight that is larger for a pixel closer to the central pixel and is smaller for a pixel distant from the central pixel.
23. The color image processing method according to claim 22, wherein the predetermined weight is a value determined by a standard Gaussian function.
24. The color image processing method according to claim 15, wherein the step (c) includes replacing the central pixel XO (n) with a new pixel X Ó (n) by the followingExpression: where pi (n) are the pixels constituting the peer group and ; W are predetermined weights corresponding to pj (n).
25. The color image processing method according to claim 21, after the step (b5), further comprising the steps of: selecting i pixels ranging from the pixel having the minimum color distance among the pixels sorted according to the color distance from the central pixel and setting the largest value of the color distances of the selected pixels as the maximum color distance within the peer group; and performing color quantization by weighting the color vectors of the respective pixels by exp (T (n)), wherein T (n) is the maximum color distance within the peer group.
26. The color image processing method according to claim 21, after the step (b5), further comprising the steps of: selecting i pixels ranging from the pixel having the minimum color distance among the pixels sorted according to the color distance from the central pixel and setting the largest value of the color distances of the selected pixels as the maximum color distance within the peer group; and obtaining the average of T (n) values of the whole image and performing color quantization using a value obtained by multiplying the average with a predetermined constant as the number of clusters.
27. The color image processing method according to claim 19, after the step (b5), further comprising the steps of: selecting pixels whose number corresponds to the size of the peer group, ranging from the pixel having the minimum color distance among the pixels sorted according to the color distance from the central pixel and setting the largest value of the color distances of the selected pixels as the maximum color distance within the peer group; and weighting the color vectors of the respective pixels by exp (T (n)), wherein T (n) is the maximum color distance within the peer group, and performing color quantization using a value obtained by multiplying the average of the T (n) values of the whole image with a predetermined constant as the number of clusters.
28. The color image processing method according to claim 24, after the step (b5), further comprising the steps of: selecting i pixels ranging from the pixel having the minimum color distance among the pixels sorted according to the color distance from the central pixel and setting the largest value of the color distances of the selected pixels as the maximum color distance within the peer group; and obtaining the average of T (n) values of the whole image and performing color quantization using a value obtained by multiplying the average with a predetermined constant as the number of clusters.
29. The color image processing method according to claim 24, after the step (b5), further comprising the steps of: selecting i pixels ranging from the pixel having the minimum color distance among the pixels sorted according to the color distance from the central pixel and setting the largest value of the color distances of the selected pixels as the maximum color distance within the peer group; and obtaining the average of T (n) values of the whole image and performing color quantization using a value obtained by multiplying the average with a predetermined constant as the number of clusters.
30. A color image processing method comprising the steps of: (a) defining a window having a predetermined size within an input color image; (b) selecting pixels having a color vector similar to that of the central pixel within the window and defining the selected pixels as a group ; and (c) performing filtering of blurring using only the pixels within the defined group.
31. A computer readable medium having program codes executable by a computer to perform a color image processing method, the method comprising the steps of: (a) defining a window having a predetermined size within an input color image; (b) sorting image pixels according to the color distance between the image pixels and a central pixel; (c) grouping the sorted pixels into groups in which the difference in the intragroup color distance is minimum and the difference in the intergroup color difference is maximum; and (d) performing filtering by replacing a central pixel value with a predetermined pixel value determined by pixel values of pixels in the groups.
32. The computer readable medium according to claim 31, wherein before the step (c), the color image processing method further comprises the step of removing pixels having a difference in the color distance from the central pixel greater than or equal to a predetermined threshold, with respect to a predetermined number of pixels at the beginning and latter parts among the sorted pixels.
33. The computer readable medium according to claim 31, wherein the color image processing method further comprises the steps of: selecting i pixels ranging from the pixel having the minimum color distance among the pixels sorted according to the color distance from the central pixel and setting the largest value of the color distances of the selected pixels as the maximum color distance within the selected group; and performing color quantization by weighting the color vectors of the respective pixels exp (T (n)), wherein T (n) is the maximum color distance within the peer group.
34. The computer readable medium according to claim 31, wherein the color image processing method further comprises the steps of: selecting i pixels ranging from the pixel having the minimum color distance among the pixels sorted according to the color distance from the central pixel and setting the largest value of the color distances of the selected pixels as the maximum color distance within the selected group; and obtaining the average of T (n) values of the whole image and performing color quantization using a value obtained by multiplying the average with a predetermined constant as the number of clusters.
35. The computer readable medium according to claim 31, wherein the color image processing method further comprises the steps of: selecting pixels whose number corresponds to the size of the peer group, ranging from the pixel having the minimum color distance among the pixels sorted according to the color distance from the central pixel and setting the largest value of the color distances of the selected pixels as the maximum color distance within the selected group; and weighting the color vectors of the respective pixels by exp (T (n)), wherein T (n) is the maximum color distance within the selected group, and performing color quantization using a value obtained by multiplying the average of the T (n) values of the whole image with a predetermined constant as the number of clusters.
36. The computer readable medium according to claim 31, wherein the color image processing method further comprises the step of receiving a color image frame and segmenting the same into a plurality of color images by a predetermined segmentation method, wherein the color image is an image selected from the plurality of color images.
37. A color image processing apparatus comprising: sorting means for setting a window of a predetermined size within an input color image and sorting image pixels in the window according to the color distance between the image pixels and a central pixel ; grouping means for grouping the sorted pixels into groups in which the difference in the intragroup color distance is minimum and the difference in the intergroup color difference is maximum; and filtering means for performing filtering by replacing a central pixel value with a predetermined pixel value determined by pixel values of pixels in the groups.
38. The color image processing apparatus according to claim 37, further comprising quantizing means for performing color quantization by weighting the color vectors of the respective pixels by exp (T (n)), wherein T (n) is the maximum color distance within a group having the smallest difference in the color vector from the central pixel within the window.
39. The color image processing apparatus according to claim 37, further comprising quantizing means for obtaining the average of T (n) values of the whole image and performing color quantization using a value obtained by multiplying the average with a predetermined constant as the number of clusters, wherein T (n) is the maximum color distance within a group having the smallest difference in the color vector from the central pixel within the window.
40. The color image processing apparatus according to claim 37, further comprising quantizing means for weighting the color vectors of the respective pixels by exp (T (n)), and performing color quantization using a value obtained by multiplying the average of T (n) values of the whole image with a predetermined constant as the number of clusters, wherein T (n) is the maximum color distance within a group having the smallest difference in the color vector from the central pixel within the window.
41. The color image processing apparatus according to claim 37, further comprising impulse noise removing means for removing pixels having a difference in the color distance from the central pixel greater than or equal to a predetermined threshold, with respect to a predetermined number of pixels at the beginning and latter parts among the sorted pixels.
42. The color image processing apparatus according to claim 37, further comprising segmenting means for receiving a color image frame and segmenting the same into a plurality of color images by a predetermined segmentation method, wherein the color image is an image selected from the plurality of color images.
Description:
COLOR IMAGE PROCESSING METHOD AND APPARATUS THEREOF Technical Field The present invention relates to an image processing method, and more particularly, to a color image processing method which is a pre-processing method required for retrieving a color feature descriptor used in indexing and searching a color image.

Background Art In object-based digital image compression standards such as MPEG-7, color feature descriptors for indexing and searching color images are defined. A color feature descriptor is retrieved from an input image.

In the color image processing method. in order to retrieve a color feature descriptor. an input image is segmented into a plurality of regions. quantized color vectors for the segmented regions are obtained. and then the color feature descriptor of a pertinent region is determined using the quantized color vectors. However. noise components may exist in the image. Also, good color quantization is important in accurately representing color information in the image. Thus, pre-processing such as filtering or noise removal is necessarily performed before quantization.

Conventionally, in order to remove noise from an image, filtering methods such as vector median filtering or vector directional filtering have been employed.

However, since filtering method used in conventional color image processing methods are uniformly applied to an image, non-noisy pixels may be modifie, which causes edge blurring in the original image.

Disclosure of the Invention To solve the above problem. it is an objective of the present invention to provide a color image processing method and apparatus, by which filtering can be performed without edge blurring of the color image and noise in the color image can be eliminated. the method heint} a pre-processing method required for retrieving a

color feature descriptor for indexing and searching the color image.

It is another object of the present invention to provide a computer readable medium having a program executable by a computer to perform the color image processing method.

A feature of the present invention is embodied by a color image processing method includes the steps of (a) sorting image pixels according to the color distance between the image pixels and a central pixel, (b) grouping the sorted pixels into groups in which the difference in the intragroup color distance is minimum and the difference in the intergroup color difference is maximum, and (c) performing filtering by replacing a central pixel value with a predetermined pixel value determined by pixel values of pixels in the groups.

The color image processing method may further include the step of defining <BR> <BR> <BR> <BR> a window having a predetermined size within an input color ima « e. wherein the image pixels are pixels within the window.

Before the step (b), the method preferably further includes the step of removing pixels having a difference in color distance from the central pixel greater than or equal to a predetermined threshold. with respect to a predetermined number of pixels at the beginning and latter parts among the sorted pixels.

The predetermined number is preferably less than or equal to L/2. in which L is a predetermined positive number indicating the size of an LxL window.

Before the step (b), the method preferably further includes the step of removing pixels having a difference in color distance from the central pixel greater than or equal to a predetermined threshold, with respect to a predetermined number of pixels at the beginning and latter parts among the sorted pixels.

Also, the step (b) may include grouping the sorted pixels using a function based on a Fisher's discriminant estimation method.

The step (b) may include the sub-steps of (b-1) setting a first group consists? <BR> <BR> <BR> <BR> of Oth through (i-I) th pixels, and a second group consistino of ith thlough Kth pixels, wherein i is an integer from 0 through K and K=Lr-1, (b-2) obtaining the respective averages of the color distance differences for pixels of the first and second groups hy the followin (l Expressions : . (b-3) obtaining the respective variances of the color distance differences for pixels of the first and second groups are obtained by the following Expressions:

calculating a value J (i) by the followin Expression, using the obtained average and variance: and (b-5) obtaining the value of i which makes Jf maximum by the foHowing Expression: , and selecting pixels ranging from a pixel having a small color distance to a pixel having the obtained value of i to determine the same as a peer group P (n).

Also, after the step (b-5). the method may further include the steps of selecting i pixels ranging from the pixel having the minimum color distance among the pixels sorted according to the color distance from the central pixel and setting the largest value of the color distances of the selected pixels as the maximum color distance within the peer group, and performing color quantization by weighting the color vectors of the respective pixels by exp (-T (n)), wherein T (n) is the maximum color distance within the peer group.

Alterllatively « after the step (b-5). the method may further include the steps of selectin i pixels ranging from the pixel having the minimum color distance among the pixels sorted according to the color distance from the central pixel and setting the largest value ot the color distances of the selected pixels as the maximum color distallcc withill the peer group, and obtaining the average of I (n) values of the

whole image and performing color quantization using a value obtained by multiplying the average with a predetermined constant as the number of clusters, wherein T (n) is the maximum color distance within the peer group.

Also, after the step (b-5), the method may further include the steps of selecting pixels whose number corresponds to the size of the peer group, ranging from the pixel having the minimum color distance among the pixels sorted according to the color distance from the central pixel and setting the largest value of the color distances of the selected pixels as the maximum color distance within the peer group, and weighting the color vectors of the respective pixels by exp (-T (n)), wherein T (n) is the maximum color distance within the peer group, and performing color quantization using a value obtained by multiplying the average of the T (n) values of the whole image with a predetermined constant as the number of clusters.

The step (c) preferably includes replacing the central pixel X" (ll) with a new pixel X',, (i7) by the following Expression: where pi (n) are the pixels constituting the peer group and W are predetermined weights corresponding to pi (n).

Also, the step (c) preferably includes replacing the color vector of the central pixel with an average weighted by a predetermined weight that is larger for a pixel closer to the central pixel and is smaller for a pixel distant from the central pixel.

The predetermined weight is preferably a value determined by a standard Gaussian function.

The color image processing method may further include the step of performing color quantization by weighting the color vectors of the respective pixels by exp (-T (n)). wherein T (n) is the maximum color distance within one group.

According to another aspect of the present invention, there is provided a color

image processing method including the steps of (a) receiving a color image frame and segmenting the same into a plurality of color images by a predetermined segmentation method. (b) sorting image pixels according to the color distance between the image pixels and a central pixel, with respect to an image selected among the segmented color images, (c) grouping the sorted pixels into groups in which the difference in the intragroup color distance is minimum and the difference in the intergroup color difference is maximum, and (d) performina filtering by rep) acing a central pixel value with a predetermined pixel value determined by pixel values of pixels in the groups.

According to still another aspect of the present invention, there is provided a color image processing method including the steps of (a) defining a window having a predetermined size within an input color image, (b) selecting pixels having a color vector similar to that of the central pixel within the window and defining the selected pixels as a group, and (c) performing filtering of h) urring using on) y the pixels within the defined group.

The present invention is also embodied by a computer readable medium having program codes executable by a computer to perform a color image processing method. the method including the steps of (a) defining a window having a predetermined size within an input color image, (b) sorting image pixels according to the color distance between the image pixels and a central pixel. (c) grouping the sorted pixels into groups in which the difference in the intragroup color distance is minimum and the difference in the intergroup color difference is maximum, and (d) performing filtering by replacing a central pixel value with a predetermined pixel value determined by pixel values of pixels in the groups.

Alternatively, the present invention provides a color image processing apparatus including sorting means for setting a window of a predetermined size within an input color image and sorting image pixels in the window according to the color distance between the image pixels and a central pixel. grouping means for grouping the sorted pixels into groups in which the difference in the intragroup color distance is minimum and the difference in the intergroup color difference is <BR> <BR> <BR> maximum, and fijtering means for performing fihering by reptacing a central pixel

value with a predetermined pixel value determined by pixel values of pixels in the groups.

Brief Description of the Drawings 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: FIGS. IA and 1B are flow diagrams showing a color image processing method according to the present invention : and FIG. 2 is a block diagram of a co) or image processing apparatus according to the present invention.

Best mode for carrying out the Invention Hereinafter, embodiments of the present invention will be described in detail with reference to the accompanying drawings.

Referring to FIG. lA illustrating a color image processing method according to the present invention, a color image is input (step 100). The color image may be in one region selected among image regions segmented by an appropriate segmentation method.

Next, with respect to color vectors of all pixels in a LXL window in an input <BR> <BR> <BR> color image. the color distance di (n) from the color vector X () (n) of a pixel positioned at a position n at the center of the LxL window is represented by Expression (1) (step 102): Distance(Xi(n), X0(n))......(1) wherein L is an arbitrary positive integer. and assuming that K=L2-1. i is an integer <BR> <BR> <BR> from 0 through K. Also, for convenience'sake of explanation, X"(/?), which<BR> <BR> <BR> <BR> represents the color vector of a pixel positioned at a position l ? at the center of the LxL window in an input color image. may be used to represent the corresponding pixel positioned at the center, that is a central pixel.

Next, the corresponding color vectors of all pixels in the window are sorted in an ascending order accordino to the magnitude of the color distance di (i ?) (step 104). Hereinbelow, the color vectors sorted in ascending order will be represented by Xi (n).

Now, with respect to the color vectors sorted in ascendino order, color distance difference is calculated by Expression (2) (step 106): fi(n) =(n) = di-1(n) - di(n)...... (2) and then color vectors in which fi(n) is greater than a predetermined threshold Q are <BR> <BR> <BR> <BR> removed (step 108). That is. the color vectors in which, f greater than a predetermined threshold Q are considered impulse noise to then be removed.

Accordina to experimental confirmation. it is more preferably to perform the step 108 with respect to the beginning L/2 pixels and the latter L/2 pixels in ascending <BR> <BR> <BR> <BR> order. than to perform it with respect to all the (L--1) pixels in the l {L xvilldow. except of the central pixel X" (in.).

Also. according to the present invention. in order to prevent edge blurring of an image, filtering is performed on pixels in a peer group to be described later, rather than on all the pixels in the LxL window. The peer groups are obtained as follows.

First, the pixels sorted in ascendhlo order according to their color distance from the color vector of the central pixel are divided into two groups. The first group consists of Oth through (7-7,) th pixels, and the second group consists of ith through Kth pixels.

Next. the average of the color distance differences for pixels of the first group and the average of the color distance differences for pixels of the second group are obtained as represented by Expressions (3a) and (3b). respectively: and the variance of the color distance differences for pixels of the first group and the variance of the color distance difference for pixels of the second group are obtained as represented by Expressions (3c) and (3d), respectively:

wherein i is a newly defined integer ranging from 0 through K.

Then. using the obtained average and variance. a value J represented by Expression (4) is calculated (step 110):

wherein i is an integer ranging from 1 through K. The Expression (4) is based on Fisher's discriminant estimation method.

Here. the actual range of i is from 1 through the numbers obtained by subtracting the number corresponding to color vectors of the pixels considered as impulse noise for removal from K. However, since the number corresponding to color vectors of the pixels considered as impulse noise and removed is not so large, it is assumed that the range of i is from 1 through K.

Next, the value of i which makes J maximum is obtained by Expression (5):

to then determine the obtained value of i as the magnitude of a peer group P (n) (step 112). In other words, when i is reset to variables ranging from 0 through the value <BR> <BR> obtained in the step l 19. the peer group P (n) consists of pixels pj (l1).<BR> <BR> <P> Referring to FIG. 1 B, the central pixel X" (n) is replaced with a new pixel

X (n) by Expression (6): where Wu are the standard Gaussian weights corresponding to p ; (n) (step 114). Here, the standard Gaussian weights Wi are determined by a standard Gaussian function.

A pixel closer to the center of an image has a larger standard Gaussian weight and a pixel distant from the center has a smaller standard Gaussian weight. The procedure of replacing pixels in such a manner is smoothing or filtering.

Supposing the maximum color distance in each peer group d""", (n) is T (n). exp (-T (n)) is applied to the color vectors of the respective pixels dring color quantization (step 116). The maximum color distance d,,,,,,, (n) in each peer group indicates the largest value of the color distances of pixels whose number correspond to the size of the peer group ranging from the pixel having the minimum color distance, among the pixels sorted in ascending order according to their color distance from the central pixel. Thus, the smaller the maximum color distance d,,,, (n) in each peer group, the shorter the color distance from the central pixel, so that d (,,)-, (n) is an indicator of the smoothness of an image. Also, since exp (-T (n)) is weighted to the color vectors of the respective pixels. the pixels in smooth regions are more heavily weighted than the pixels in highly noisy regions. Weighting the pixels in highly noisy regions more lightly than the pixels in the smooth regions is based on the analysis result of eye-perception, that is. the eye-perception is more sensitive to changes in detailed regions than in smooth regions.

According to the present invention, during quantization. the value obtained by multiplying a predetermined constant with the average of T (n) values of all images is preferably used as the number of clusters. In other words, during quantization, fewer clusters are used in smooth regions where the T (n) value is small, and more clusters are used in highty noisy regions where the T (n) value is large.

In the color image processing method according to the present invention, only the pixels having large color distances from the central pixel are removed, and then a peer group having a color vector similar to that of the central pixel is defined to then perform filtering thereon. Thus, edge blurring of an image rarely occurs due to removal and filtering of impulse noise. Also, according to the present invention, the information on the extent of quantization to be performed on an image can be obtained.

The color image processing method is programmable by a computer program.

Codes and code segments constituting the computer program can be easily derived by a computer programmer in the art. Also, the program is stored in computer readable media and is readable and executable by the computer, thereby embodying the color image processing method. The media include magnetic recording media. optical recording media. carrier wave media, and the like.

Also. the color image processing method can be implemented on a color image processing apparatus. FIG. 2 is a block diagram of a color image processing apparatus according to the present invention. Referring to FIG. 2, the color image processing apparatus according to the present invention includes a segmenting unit 200. a sorting unit 202, an impulse noise removing unit 204. a grouping unit 206, a filtering unit 208 and a quantizing unit 210.

In the operation of the color image processing apparatus, the segmenting unit 200 receives a color image frame and segments the color image frame into a plurality of color images by a predetermined segmentation method.

The sorting unit 202 sets an LXL window (L is a predetermined positive integer.) within the color images. and sorts the pixels within the window according to the color distance between each pixel and the central pixel. Thus. the sorting unit 202 outputs color vectors of the sorted pixels.

The impulse noise removing unit 204 removes the pixels that have a difference in color distance from the central pixel greater than a predetermined threshold. with respect to the beginning L/2 pixels and the latter L/2 pixels among the sorted pixels.

The grouping unit 206 receives color vectors of all the noise-removed pixels

in the LXL window and divides the same into two groups in which the difference in the intragroup color distance is minimum and the difference in the intergroup color difference is maximum, by calculating the function represented by the Expression (4) using the variance and average of the color distances between the sorted pixels.

The filtering unit 208 performs filtering by replacing the central pixels with pixels in a group having a small difference from the color vector of the central pixels in the window.

The quantizing unit 210 weights the color vectors of the respective pixels by exp (-T (n)), in which T (n) is the maximum color distance within a group having a small difference in the color vector from the central pixel within the window, and performs quantization using the value obtained by multiplying a predetermined constant with the average of T (n) values of ale images as the number of clusters.

In the above-described color image processing apparatus according to the present invention. since the pixels haviez large color distances from the central pixel are removed. a peer group having a color vector similar to that of the central pixel is defined to then perform filtering thereon. Thus. edge blurring of an image rarely occurs due to removal and filtering of impulse noise. Also. according to the present invention, the information on the number of clusters for quantization to be performed can be obtained based on the smoothness or details of an image to be processed. Thus. quantization is can be effectively performed using the information.

As described above, according to the present invention, in removing impulse noise from an image and filtering the same. the generation of edge blurring of the image can be reduced.

Industrial Applicabilitv The present invention can be applied to the fields of color image indexing or searching applications.