1. Field of Invention
The invention relates to a gamma correction method for correcting digital images and, in particular, to a gamma correction method that employs the locality statistics characteristic.
2. Related Art
Gamma corrections pertain to the control and adjustment of colors in an image input/output (IO) system. It often relates to the control of the brightness in an image. If the output display of an image is not corrected in this way, the presented image often looks dim or the colors do not saturate because of the distortion occurring during signal transmissions. The procedure mainly adjusts the color output of the image by tuning the gamma values. A common method is to insert a step of checking a gamma table during the image IO process. Normally, a pixel is comprised of three subpixels representing the three primitive colors: red, green and blue. Therefore, the correction requires a red gamma table, a green gamma table, and a blue gamma table.
Taking a conventional gamma correction procedure as an example, at the same moment of inputting a digital image, the system separates the pixel into three subpixels of the three primitive colors and corrects them separately. After extracting the pixels in a digital image, the gamma tables of the respective colors are used to correct the colors. Each gamma table contains many sets of digital image subpixel values and the corresponding gamma correction values. When a digital image subpixel value is entered, the corresponding gamma correction value is obtained through a binary search. The gamma correction value is then stored in memory. This completes a table search correction procedure. However, it takes about 8 times of binary search clocks on the average to look for the corresponding gamma correction value for each subpixel. Therefore, each digital image pixel needs about 24 search clocks. This is very inefficient in practice.
In view of the foregoing, the invention provides a method that uses the locality statistics characteristic to enhance the gamma corrections. The invention employs a newly added cache queue to partially replace the original gamma tables. The cache queue is comprised of several digital image pixels and the corresponding gamma correction values extracted by the system in the beginning. Using the property that nearby digital image pixels have colors close to one another, the cache queue operation model is used to partially replace the time-consuming table searching mechanism in the gamma correction procedure. Thus, the invention achieves the objective of rapid searching in a table and can speed up the gamma corrections. The disclosed method first establishes a cache queue, extracts digital image pixels, and searches for gamma correction values for the digital image pixels. Finally, the gamma correction values corresponding to the extracted digital image pixels are stored to satisfy the cache queue.
The invention will become more fully understood from the detailed description given hereinbelow illustration only, and thus are not limitative of the present invention, and wherein:
Here we use an embodiment to illustrate the invention. The disclosed method uses the property that the color values of nearby digital image pixels are close to one another and the gamma tables in the original system memory. As shown in
24(searching clocks)*20%+1(searching clock)*80%
while the conventional method requires
24(searching clocks)*100%
It is easily seen that the disclosed method is five times faster than the conventional one.
Certain variations would be apparent to those skilled in the art, which variations are considered within the spirit and scope of the claimed invention.
Number | Name | Date | Kind |
---|---|---|---|
5774112 | Kasson | Jun 1998 | A |
5949496 | Kim | Sep 1999 | A |
6304300 | Warren et al. | Oct 2001 | B1 |
6344857 | Matono et al. | Feb 2002 | B1 |
6720969 | Lavelle et al. | Apr 2004 | B1 |
6727959 | Eskin | Apr 2004 | B1 |
6900747 | Lee | May 2005 | B1 |
6944336 | Chiu | Sep 2005 | B1 |
6970208 | Pether et al. | Nov 2005 | B1 |
7038735 | Coleman et al. | May 2006 | B1 |
7046255 | D'Souza et al. | May 2006 | B1 |
20020145678 | Suzuki et al. | Oct 2002 | A1 |
Number | Date | Country | |
---|---|---|---|
20050001936 A1 | Jan 2005 | US |