The present invention relates to methods of processing digital color images, and more particularly to methods of adjusting the color saturation and sharpness of a digital color image.
To cope with poor color quality of digital images, color saturation adjustment is necessary. RGB color space is the most common space used to represent image data but color saturation adjustment is not an easy task to perform in RGB color space. Traditional color saturation adjustment methods transform the original image data from RGB color space to HIS color space or YCrCb color space, multiply the saturation by a constant α, and then transform the processed image from HIS or YCrCb color space back to RGB color space.
However, there exist two shortcomings in this kind of processing. First, color space transformation is a necessary step in such saturation adjustments, and requires additional computing power. Second, these traditional methods multiply the saturation by a constant α for the whole image, and do not consider regional differences.
For improvement, some investigators have spent efforts to improve these two problems. To solve the first problem, Kim [1] proposes a method for adjusting the saturation of a digit image in an RGB color space. This method can directly adjust the saturation by decomposing an RGB color sample vector
The need is met according to the present invention by providing a digital image processing method of enhancing color saturation and sharpness directly in RGB color space, the most popular color space used to represent digital color images. The method comprises the steps of: developing a surround function to analyze the local brightness uniformity in a digital image on a pixel-by-pixel basis; generating an intermediate image using the brightness uniformity; calculating enhancement values in each of RGB channels with a gain function on a pixel-by-pixel basis; and adding the enhancement values to the respective RGB channels for each pixel to produce an adjusted digital color image with enhanced color saturation and sharpness.
The present invention has the advantages that it is performed directly in RGB color space, that it does not require extra steps of performing computationally inefficient color space transformation, that it does not cause color hue shifts, that it is computationally efficient, and that it is performed on a pixel-by-pixel basis.
For persons of ordinary skill in the art to understand the purpose, features and effects of the present invention, the invention is described in details as follows, along with examples and figures.
In order to circumvent the shortcomings of conventional color saturation adjustments that require color space transformation, create color hue shifts and do not perform on a pixel-by-pixel basis, the present invention proposes an image processing method for digital images. It imitates the adaptiveness of human eyes to improve the color adjustment and sharpness of digital images by adjusting to various surrounding conditions. With the concept of adaptiveness, the present invention is able to perform color saturation adjustment and sharpness enhancement of images without the need of color space transformation.
Analogous to the adaptiveness in human vision, the adjustment of color saturation can relate to the brightness of surrounding environments. To adjust color saturation and enhance sharpness simultaneously, a pixel, which is brighter than its surrounding pixels, should receive higher color saturation while a pixel, which has the same brightness and is less brighter than its surrounding pixels, should receive lower color saturation. After the color saturation is adjusted for all pixels according to the brightness of their surrounding pixels, the sharpness is therefore enhanced because of the better distribution of color saturation in the whole image. In step 201, an image can be described as
where * represents convolution, D(x,y) is an intermediate image, I(x,y) represents brightness values in image 10, R(x,y), G(x,y) and B(x,y) are R, G and B values in image 10, and F(x,y) is the surround function used to calculate the brightness relationship. A one-dimensional or two-dimensional low-pass filter is chosen as F(x,y) to calculate brightness relationship of individual pixel brightness to that of surrounding pixels, followed by step 203 involving the gain function. In step 203, the adjustment values in R, G and B channels of each pixel are based on
CGain×(R(x,y)−D(x,y))
CGain×(G(x,y)−D(x,y))
CGain×(B(x,y)−D(x,y)) Eq. 2
where D(x,y) is the intermediate image obtained in Eq. 1 and CGain is a gain coefficient whose main function is to control the level of adjustment of color saturation.
In step 205, the adjustment values in R, G, and B channels obtained in Eq. 2 are added to the original R, G and B values, forming a final adjusted image. In summary, method 20 can be written as
where
The main feature of the present invention is the capability of performing pixel-by-pixel, computationally efficient color saturation adjustment and sharpness enhancement directly via RGB channels while maintaining the color hue in the original picture. The following will describe further the advantages of using Eq. 3 as a processing method.
In general, when adjusting color saturation, hue must remain unchanged to avoid hue shifts. RGB color space is the most popular method to describe digital color images; however, most of image processing methods operating directly on RGB channels cause hue shift problem. Therefore, HSI color space is often chosen for color manipulation. The relationship between RGB color space and HSI color space is
where I is intensity, S is saturation and H is hue. To explain the advantage of using Eq. 3, we first substitute Eq. 3 into Eq. 4:
where
According to the above explanation, intensity will not be changed by using Eq. 3 when I(x,y) is equal to the intensity value of surrounding pixels. When I(x,y) is larger then the intensity value of surrounding pixels, it will lead to
[R(x,y)+G(x,y)+B(x,y)]>3D(x,y) Eq. 9
and
Next, we would like to explain the effect of the present invention described in Eq. 3 on saturation. Substituting Eq. 3 into Eq. 5 leads to
and
[min(
i.e. the adjusted saturation
At last, we would like to explain the effect of the present invention on hue. Substituting Eq. 3 into Eq. 6 gets
where
In summary, the present invention described in Eq. 3 can enhance the sharpness and saturation of images in a pixel-by-pixel fashion, increase color depth and gradation, keep the hue of images unchanged and operate in RGB color space without the need of color space transformation.
Moreover, method 20 in the present invention can be realized in an electronic device, which can further be integrated into a digital camera, a monitor, a television or any other image output device.
It should be noted that the functionality of the present invention is exemplified, but not limited to, the instance provided in this patent document. Definitions for certain words and phrases are provided throughout this patent document, and those of ordinary skill in the art should understand that in many, if not most instances, such definitions apply to prior, as well as future uses of such defined words and phrases.
Number | Date | Country | |
---|---|---|---|
60723773 | Oct 2005 | US |