1. Technical Field
The present disclosure relates to a method for color enhancement for a display device.
2. Description of the Related Art
A display device used in a computer generally includes several display picture modes such as video mode, photo mode, scenery mode, internet mode, and game mode etc., for displaying images under different viewing requirements. The display device enhances a predetermined color under each display mode. For example, skin color is enhanced selectively under the photo mode, and green color is enhanced selectively under the scenery mode. A user may set a proper display picture mode according to the working status, to have a better view than the original view. The user must be knowledgeable ahead of time as to the required visual effects desired to be accomplished and also familiar with all of the display picture modes so as to set a proper display mode during use.
However, the above conventional method of color enhancement is static, thus the enhanced color remain unchanged when the display picture mode has been set. The image displayed may have variable picture mode requirements therein, therefore, in this situation, the static color enhancement may be improper. For example, the green color is selectively enhanced during the scenery mode, but when the scenery is switched to white snow or blue sky, the existing color enhancement is then improper.
Therefore, there is room for improvement within the art.
The components in the drawings are not necessarily drawn to scale, the emphasis instead being placed upon clearly illustrating the principles of the present disclosure. Moreover, in the drawings, like reference numerals designate corresponding parts throughout the views, and both the views are schematic.
Referring to
In step 110, a first display frame is obtained from the display device. The display frames are continuously outputted by the display device with a frequency of 30 Hz or 60 Hz, for example, forming a continuous frame stream. In this step, sequential sampling may be used to obtain the first display frame (present frame), and to go through a set of calculations to obtain the subsequent next frame (next frame), and every frame presented can be selected as the first display frame in turn or periodic sampling may be used to obtain the first display frame instead, and the frames presented are selected as the first frame at a predetermined interval. For example, in a continuous frame stream I1, I2, I3, I4, I5 . . . , the first display frame can be I1, I2, I3, I4, I5 . . . in turn under sequential sampling, or the first display frame can be I1, I3, I5 . . . , or I2, I4, I6 . . . , or even I1, I4, I7 . . . under periodic sampling. The first display frame has a plurality of pixels distributed in rows, and each pixel has one individual color value of three primary colors red, green and blue.
In step 120, a trichromatic coordinate of the pixel of the first display frame in the CIE (Commission International d'Eclairage) 1931 chroma space is calculated. In other embodiments, the trichromatic coordinate of the pixel may be calculated in CIE LUV, CIE 1964 UVW or CIE LAB color space. The trichromatic coordinate of the pixel may be calculated by the following equations:
r=R/(R+G+B), (1)
g=G/(R+G+B), (2)
b=B/(R+G+B) (3)
or:
x=(0.490r+0.310g+0.200b)/(0.667r+1.132g+1.200b), (4)
y=(0.117r+0.812g+0.010b)/(0.667r+1.132g+1.200b). (5)
Wherein R, G, B are the primary color values of the pixel; and x, y are the trichromatic coordinates of the pixel.
All the rows of pixels in the first display frame may be selected and calculated, or pixel rows may be selected via interlaced sampling at the same interval and the trichromatic coordinate of the pixels calculated. As a result, the “betweenframe” sampling method of step 110 combined with the “in-frame” sampling method disclosed in this step can provide improved implementation flexibility.
In step 130, the color of each pixel as to see which of the color zone in the color space that it belongs to is determined. Referring to
In step 140, a dominant color according to the counter value totals of each color zone is determined. The dominant color may be determined by one of the three rules below. First rule: if a color has a counter value equal to or greater than a total sum of the counter values for all of the other colors, that color is then chosen as a dominant color. Second rule: if a color has a counter value greater than 20% of the total sum of all the counter values of all colors (and including the counter value of the color itself), that color is chosen as a dominant color. Third rule: if a color has a counter value greater than that of any counter value of each of the other colors, that color is chosen as a dominant color. In another embodiment, the dominant color may be determined by the second rule and the third rule cooperatively.
In step 150, the color of a second display frame following the first frame is enhanced according to the dominant color. If the dominant color in the step 140 is a primary color, for example, the dominant color is red, then a pixel in the second frame has the R, G, B values (200, 15, 15), and the corresponding trichromatic coordinate of the pixel is (0.627, 0.212). Referring to
In the above embodiments, the first display frame is selected and analyzed in the method for color enhancement, and then a dominant color is determined. The second display frame is then enhanced according to the dominant color, such that the second display frame can be dynamically color enhanced.
Finally, while particular embodiments have been described, the description is illustrative and is not to be construed as limiting. For example, various modifications can be made to the embodiments by those of ordinary skill in the art without departing from the true spirit and scope of the invention as defined by the appended claims.
Number | Date | Country | Kind |
---|---|---|---|
200910306127.5 | Aug 2009 | CN | national |