Information
-
Patent Application
-
20040057060
-
Publication Number
20040057060
-
Date Filed
October 15, 200222 years ago
-
Date Published
March 25, 200420 years ago
-
Inventors
-
Original Assignees
-
CPC
-
US Classifications
-
International Classifications
Abstract
A method for a fast color saturation control of digital color images using one color saturation factor has been achieved. Said method can be performed in any color space having three primaries as e.g. the R-G-B or in the CMY color space without the requirement to convert all the pixels of said color image into another color space as e.g. HSI to perform the color saturation control. Thus a significant computational effort for the conversion of the pixels from one color space into another and back can be avoided. Saving computational effort saves time and reduces the electrical power consumption. Right after the color saturation control process the corrected images can be viewed, if the colors are not satisfactory the process can be easily repeated using a modified color saturation factor. Said method can be used for new pictures taken by a digital camera as well as for downloaded pictures from any source. Additionally said method of color saturation control can be combined with a color correction process.
Description
BACKGROUND OF THE INVENTION
[0001] (1) Field of the Invention
[0002] This invention relates generally to digital color image processing and relates more particularly to a method for a fast digital color saturation control with low computational effort.
[0003] (2) Description of the Prior Art
[0004] Color is the perceptual result of light in the visible region of the spectrum, having wavelengths in the region of 400 nm to 700 nm, incident upon the retina. The spectral distribution of light relevant to the human eye is often expressed in 31 components each representing a 10 nm band.
[0005] The human retina has three types of color photoreceptors cone cells, which respond to incident radiation with somewhat different spectral response curves. Because there are exactly three types of color photoreceptor, three numerical components are necessary and sufficient to describe a color, providing that appropriate spectral weighting functions are used.
[0006] Pixel values in accurate gray-scale images are based upon broadband brightness values. Pixel values in accurate color images are based upon tristimulus values. Color images are sensed and reproduced based upon tristimulus values, whose spectral composition is carefully chosen according to the principles of color science. As their name implies, tristimulus values come in sets of three. In most imaging systems, tristimulus values are subjected to a non-linear transfer function that mimics the lightness response of vision. Most imaging systems use RGB values whose spectral characteristics do not exactly match the tristimulus values of the human eyes.
[0007] A combination of real world physical characteristics determines what the human vision system perceives as color. A color space is a mathematical representation of these characteristics. Color spaces are often three-dimensional. There are many possible color space definitions.
[0008] Digital imagery often uses red/green/blue color space, known simply as RGB. Said RGB space is illustrated in FIG. 1 prior art. The red/green/blue values start at zero at the origin and increase along the three axes. Because each color can only have values between zero and some maximum (255 for 8-bit depth), the resulting structure is a cube. We can define a color simply by giving its red, green, and blue values, or coordinates, within the color cube. These coordinates are usually represented as an ordered triplet. Several colors are shown in FIG. 1 prior art mapped into their locations in the 8-bit RGB cube, or color space. Black has zero intensity in red, green, or blue, so it has the coordinates (0,0,0). At the opposite corner of the color cube, white has maximum intensities of each color, or (255, 255, 255). Cyan, magenta and yellow, which are combinations of green and blue, red and blue, and red and green, respectively, are at (0, 255, 255), (255, 0, 255) and (255, 255,0). Finally, note that a middle gray is at the exact center of the cube at location (128, 128,128). Other colors can be described by specifying their coordinates within this cube.
[0009] The Cyan, Magenta, Yellow, known as CMY, is often used in printing. The CMY color space is related to the RGB space by being inverse of it. The origin of this color space is not black, but is white, and the primary axes of the coordinate system are not red, green and blue but are cyan, yellow and magenta. The color red in this space is a combination of yellow and magenta, while green is composed of yellow and cyan. In the printing industry, where images start with a white piece of paper (the origin) and ink is applied to generate colors, the CMY color space is commonly used.
[0010] Another color space, often used by artists, is Hue, Saturation and Intensity (or HSI). In this color space scenes are not described in terms of red, green, and blue, but as hue, saturation, and intensity (HSI). We see things as colors, or hues that either have a washed-out look or have deep, rich tones. This means having low or high saturation, respectively. Hue is the attribute of a visual sensation according to which an area appears to be similar to one of the perceived colors, red, green and blue, or a combination of them. Saturation is the colorfulness of an area judged in proportion to its brightness.
[0011] Images that digital cameras deal with are often obtained through tri-color filter sets, like RGB or CMY, and normally the processing of the images are done in either RGB or CMY color space. Some image operations are, however, complicated to perform in these color spaces, but become trivial in a different color space. This is the case with saturation control, which is best done in HSI space. This is obvious since saturation is one of the original coordinates of HSI. The conversion between color spaces, however, requires significant computer power that takes time and consumes significant electrical power in a battery-powered device as e.g. a digital camera.
[0012] By color saturation control is meant the process to increase or decrease the amount of color in an image without changing the image contrast. When saturation is lowered the amount of white in the colors is increased (washed out). By adjusting the color saturation the same image can be everything from a black and white image to a fully saturated image having strong colors.
[0013] The color saturation control is best explained using the Hue, Saturation, and Intensity (HSI) color space as shown in FIG. 2 prior art. HSI is a very different three-dimensional color space from RGB or CMY. FIG. 2 prior art illustrates a common representation of HSI color space. The cone shape has one central axis representing intensity. Along this axis are all gray values, with black at the pointed end of the cone and white at its base. The greater the distance along this line from the pointed end, or origin, the brighter or higher is the intensity. If the cone is viewed from above, it becomes a circle. Different colors, or hues, are arranged around this circle -the familiar color wheel used by artists. Hues are determined by their angular location on this wheel. Saturation, or richness of color, is defined as the distance perpendicular to the intensity axis. Colors near the central axis have low saturation and look pastel. Colors near the surface of the cone have high saturation.
[0014] In prior art said HSI color space is used to change the color saturation of an image. This is relatively simple to do in HSI color space. First, the original image would have to be converted to HSI. Second, the saturation would be modified. Said modification of the saturation is simple because saturation is one of three coordinates of the HSI color space and thus only one coordinate of the pixels has to be changed. The other two coordinates remain unchanged. Finally, the image would have to be converted back to RGB. The same process applies to the CMY color space, which is very close in structure to the RGB color space. The image would have to be converted from CMY to HSI, then the color saturation would have to be modified and finally it would have to be converted back to CMY. It is obvious that a significant computational effort is required for all these conversions.
[0015] U.S. Pat No. (5,555,031 to Van Rooij) describes how in a video signal processing circuit, an adaptive signal compression is realized by correcting the color saturation by multiplication of color difference signals (R-Y, G-Y) by a same correction factor in such a way that color signal values (R, G, B) remain below their respective maximally allowed values without the luminance (Y) being limited as well. Preferably, the correction factor is obtained in dependence upon a non-linearly compressed luminance signal (Y′).
[0016] U.S. Pat. No. (5,561,474 to Kojima et al.) discloses a video camera having a processing circuit, which converts electrical signals obtained from an imager into a luminance signal and color-difference signals. The color video camera further includes a memory, which stores a table of values designating color saturation levels and corresponding to a specific hue of a background color. The memory outputs a color saturation level based on the color difference signals obtained by imaging an object on a background of the specific hue. This color saturation level is compared with the luminance signal, and based on the comparison results the luminance signal and color difference signals are separated into components corresponding to the background area and components corresponding to the object area.
[0017] U.S. Pat. No. (5,852,502 to Beckett) shows an apparatus and a method for producing series of high-resolution color composite images. The digital camera has an optical assembly that directs visual images to a high-resolution monochrome sensor and a lower resolution color sensor. During the processing of the composite image, the monochrome grayscale value becomes the composite frame grayscale value, the color frame hue value becomes the composite frame hue value, and the color frame saturation value becomes the composite frame saturation value. Processing of the monochrome and color images is achieved on the pixel level. A processor calculates the grayscale value for each pixel in each successive monochrome and color image frame. The processor also calculates the hue value (color) and the saturation value (amount of color) for each pixel in each successive color image frame.
SUMMARY OF THE INVENTION
[0018] A principal object of the present invention is to achieve a method for a fast color saturation control of digital color images with low computational effort.
[0019] Another object of the present invention is to achieve a method to combine a fast color saturation control with a color correction of digital color images.
[0020] In accordance with the principal object of the invention a method for a fast color saturation control of digital color images in any color space having three primaries has been achieved. Said method comprises first to set a color saturation control factor f, followed by inserting said color saturation factor f in a suitable way in a color saturation matrix M. The next steps comprise to multiply said color saturation matrix with all pixel values of the image in the color space selected, to send said image to a display and view the colors and to select a new color saturation control factor and repeat process if colors are not satisfactory.
[0021] In accordance with the primary object of this invention a method for a fast color saturation control of digital color images in the R-G-B color space has been achieved. Said method, first, comprises as first step to set a color saturation control factor f, followed by inserting said color saturation factor in a suitable way in a color saturation matrix M. The next steps comprise to multiply said color saturation matrix with all pixel values of the image in the R-G-B color space, to send said image to a display to view the colors and to select a new color saturation control factor and repeat the process if the colors are not satisfactory.
[0022] In accordance with the primary object of this invention a method for a fast color saturation control of digital color images in the C-M-Y color space has been achieved. Said method, first, comprises as first step to set a color saturation control factor f, followed by inserting said color saturation factor in a suitable way in a color saturation matrix M. The next steps comprise to multiply said color saturation matrix with all pixel values of the image in the C-M-Y color space, to send said image to a display to view the colors and to select a new color saturation control factor and repeat the process if the colors are not satisfactory
[0023] In accordance with the objects of this invention a method to combine a fast color saturation control of digital color images with a color error correction in a color space having three primaries has been achieved. Said method, first, comprises as first step to obtain values of a color correction matrix, followed by calculating corrected values in a vector N for the primary colors of the color space selected. The next steps comprise to set a color saturation control factor f, to insert said color saturation factor f in a suitable way in said color saturation matrix M and to multiply said color saturation matrix with all pixel values of the image in the color space selected to obtain a vector S for each pixel. Furthermore the last steps comprise to multiply said vector S with said vector N for each pixel of the image to combine the color saturation control and color correction, to send said image to a display to view the colors and to select a new color saturation control factor and repeat color saturation control if the colors are not satisfactory.
BRIEF DESCRIPTION OF THE DRAWINGS
[0024] In the accompanying drawings forming a material part of this description, there is shown:
[0025]
FIG. 1 prior art illustrates a RGB color space.
[0026]
FIG. 2 prior art shows a HSI color space.
[0027]
FIG. 3 shows a flowchart of a method how to achieve color saturation control.
[0028]
FIG. 4 shows a flowchart of a method to combine color saturation control with a color correction process
DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0029] The preferred embodiments disclose a method to achieve a fast color saturation control with low computational effort.
[0030] As outlined in the prior art section the color saturation control is easy to perform in the HSI color space. But it is obvious that a significant computational effort is required for the conversions of all the pixels from RGB or CMY color space to HSI color space and back to the original space. This invention achieves the color saturation control performed all in the RGB or in the CMY color space without the requirement of conversions into other color spaces. The total computational effort is reduced significantly thereby and thus, the color saturation is performed much faster and the power consumption, especially important in battery powered devices, is much lower compared to prior art.
[0031] A novel approximation to color saturation control has been developed that can be applied directly in RGB, CMY or in any other color space based on three primaries:
S
1
=f×I
1
−(f−1)×(I1+I2+I3)/3
S
2
=f×I
2
−(f−1)×(I1+I2+I3)/3
S
3
=f×I
3
−(f−1)×(I1+I2+I3)/3
[0032] In this equation I1, I2, and I3 represent the color components of one single pixel in the image to be affected, f is a saturation control factor, and S1, S2, and S3 represent the color components as result of the color saturation process. For f=1 the image is not affected. For f<1.0 the color saturation is decreased and in the extreme case when f=0 all the color components are replaced by the average color component level in that pixel, and thus the image becomes a grayscale image. For f>1 the color saturation is enhanced due to the saturation factor f, but contrast is preserved due to the subtraction of a fraction of the average level. For a gray pixel all the components have the same value and thus will be unaffected.
[0033] Above-mentioned equation can be written in matrix form:
1
[0034] Said modified equation is a very suitable model to be used by a microprocessor or a dedicated circuit.
[0035]
FIG. 3 describes a method how to control the color saturation without the requirement to transfer the image into another color space. The first step 31 describes the setting of a saturation factor f. The supplier of imaging devices as e.g. TV sets, digital cameras, phones, etc. can offer the selection of said control factor by a menu. The next step 32 describes that said color saturation factor is used to build a matrix. In a preferred embodiment said color saturation matrix M has the following components as described above:
2
[0036] The following step 33 shows that all pixels of the image are transformed by a multiplication of all pixel values with said color saturation matrix M. In the next step 34 the modified image is sent to a display or printed and can be viewed. In step 35 illustrates the decision if the colors are satisfactory. If the answer is yes the saturation control is done. If the answer is no a new color saturation control factor f can be selected in step 36 and the whole process can be repeated going back to step 32.
[0037] The advantage of said method invented is that the colors used can be improved as seen by eye on a display or on a print. The same process applies for new images taken by a digital camera as well as for color images downloaded e.g. from the Internet, scanned by a scanner or digital images in a TV set, etc. Said saturation control can be used in any color space based on three primaries.
[0038] Said method invented can be combined with a color correction of images using a color correction matrix C. Said color correction matrix describes the error in the camera's reproduction of colors. The matrix is obtained through imaging of a calibrated color target. The coefficients of said matrix C are selected so that the color reproduction is optimized. Said matrix C is a 3×3 matrix correcting each of the three primary colors of the color space selected. For a RGB sensor the color correction matrix C is:
R
n
=C
11
×R+C
12
×G+C
13
×B
G
n
=C
21
×R+C
22
×G+C
23
×B
B
n
=C
31
×R+C
32
×G+C
33
×B
[0039] wherein Rn, Gn and Bn are the corrected values of Red, Green and Blue. The elements of said color correction C are specific for a certain camera. They are numerically high for cameras with poor color filters. By poor is meant bandpasses that differ much from those of ideal filters. The matrix is also affected by the spectral sensitivity of the sensor itself (without filters) and possibly by other optics. A vector N can be used for the processing of the corrected values of red, green and blue:
3
[0040] wherein Rn, Gn and Bn comprise the corrected values for Red, Green and blue as described above.
[0041] The color correction process can be combined with the color saturation control by multiplying said color correction vector N with said color saturation matrix M as described above. The result is a vector A containing modified color components as result of the color saturation control and the color correction process combined:
[0042]
A=M×N×I
[0043] or e.g. in a RGB color space:
4
[0044] wherein A1, A2 and A3 represent the modified color components of one single pixel in the image, f is said saturation control factor, RN, GN and BN represent said color correction values for red, green and blue and I1, I2 and I3 represent the color components of one single pixel in the image to be affected.
[0045]
FIG. 4 illustrates the method how to combine the color correction with the color saturation control of digital images. In step 40 the values of a color correction matrix are obtained e.g. through imaging of a calibrated target. In the next step 41 a vector N comprising corrected values for three primary colors of the color space selected is calculated. As described above in the section of the saturation control method the next three steps 42, 43 and 44 describe how a color saturation factor f is used to define a color saturation matrix and how all pixels are transformed modifying the saturation described in a vector S for each pixel. In step 45 for each pixel said vector S is multiplied with said correction vector N obtained in step 41 to combine color saturation control and color correction. In step 46 the image is sent to a display or to a print to check the colors obtained in step 47. In case the colors are satisfactory the process is done. In case the colors are not satisfactory a new color saturation factor can be selected in step 48 and the saturation control can be repeated by going back to step 44.
[0046] While the invention has been particularly shown and described with reference to the preferred embodiments thereof, it will be understood by those skilled in the art that various changes in form and details may be made without departing from the spirit and scope of the invention.
Claims
- 1. A method for a fast color saturation control of digital color images in any color space having three primaries comprising:
set a color saturation control factor f; insert said color saturation factor in a suitable way in a color saturation matrix M; multiply said color saturation matrix with all pixel values of the image in the color space selected; send image to a display and view colors; and select a new color saturation control factor and repeat process if colors are not satisfactory.
- 2. The method of claim 1 wherein said display is a print.
- 3. The method of claim 1 wherein said digital color image has been taken in a digital camera and the color saturation process is being performed using said digital camera.
- 4. The method of claim 1 wherein said digital color image has been downloaded from any source and the color saturation process is performed by a software supporting said method of claim 1.
- 5. The method of claim 1 wherein said color saturation factor f is inserted in said color saturation matrix M in the following way:
- 6. The method of claim 1 wherein the supplier of said imaging device provides said color saturation factor f in a menu to be selected.
- 7. The method of claim 6 wherein said imaging device is a digital camera.
- 8. The method of claim 6 wherein said imaging device is a phone.
- 9. The method of claim 6 wherein said imaging device is a computing device.
- 10. A method for a fast color saturation control of digital color images in the R-G-B color space comprising:
set a color saturation control factor f; insert said color saturation factor in a suitable way in a color saturation matrix multiply said color saturation matrix with all pixel values of the image in R-G-B color space; send image to a display and view colors; and select a new color saturation control factor and repeat process if colors are not satisfactory.
- 11. The method of claim 10 wherein said display is a print.
- 12. The method of claim 10 wherein said digital color image has been taken in a digital camera and the color saturation process is being performed using said digital camera
- 13. The method of claim 10 wherein said digital color image has been downloaded from any source and the color saturation process is performed by a software supporting said method of claim 10.
- 14. The method of claim 10 wherein said color saturation factor f is inserted in said color saturation matrix M in the following way:
- 15. The method of claim 10 wherein the supplier of said imaging device provides said color saturation factor f in a menu to be selected.
- 16. The method of claim 15 wherein said imaging device is a digital camera.
- 17. The method of claim 15 wherein said imaging device is a phone.
- 18. The method of claim 15 wherein said imaging device is a computing device.
- 19. A method for a fast color saturation control of digital color images in the C-M-Y color space comprising:
set a color saturation control factor f; insert said color saturation factor in a suitable way in a color saturation matrix M; multiply said color saturation matrix with all pixel values of the image in C-M-Y color space; send image to a display and view colors; and select a new color saturation control factor and repeat process if colors are not satisfactory.
- 20. The method of claim 19 wherein said display is a print.
- 21. The method of claim 19 wherein said digital color image has been taken in a digital camera and the color saturation process is being performed using said digital camera.
- 22. The method of claim 19 wherein said digital color image has been downloaded from any source and the color saturation process is performed by software supporting said method of claim 19.
- 23. The method of claim 19 wherein said color saturation factor f is inserted in said color saturation matrix M in the following way:
- 24. The method of claim 19 wherein the supplier of the imaging device provides said color saturation factor f in a menu to be selected.
- 25. The method of claim 24 wherein said imaging device is a digital camera.
- 26. The method of claim 24 wherein said imaging device is a phone.
- 27. The method of claim 24 wherein said imaging device is a computing device.
- 28. A method to combine a fast color saturation control of digital color images with a color error correction in a color space having three primaries comprising:
obtain values of a color correction matrix; calculate corrected values in a vector N for the primary colors of color space selected; set a color saturation control factor f; insert said color saturation factor in a suitable way in a color saturation matrix multiply said color saturation matrix with all pixel values of the image in the color space selected to obtain a vector S for each pixel multiply said vector S with said vector N for each pixel of the image to combine color saturation control and color correction; send image to a display and view colors; and select a new color saturation control factor and repeat color saturation control if colors are not satisfactory.
- 29. The method of claim 28 wherein said color space is the R-G-B color space.
- 30. The method of claim 28 wherein said color space is the C-M-Y color space.
- 31. The method of claim 28 wherein said display is a print.
- 32. The method of claim 28 wherein said digital color image has been taken in a digital camera and the color saturation process is being performed using said digital camera.
- 33. The method of claim 28 wherein said digital color image has been downloaded from any source and the color saturation control and the color error correction process is performed by software supporting said method of claim 28.
- 34. The method of claim 28 wherein said color saturation factor f is inserted in said color saturation matrix M in the following way:
- 35. The method of claim 28 wherein the supplier of said imaging device provides said color saturation factor f in a menu to be selected.
- 36. The method of claim 35 wherein said imaging device is a digital camera.
- 37. The method of claim 35 wherein said imaging device is a phone.
- 38. The method of claim 35 wherein said imaging device is a computing device.
Priority Claims (1)
Number |
Date |
Country |
Kind |
02368102.6 |
Sep 2002 |
EP |
|