In this embodiment, the concept of utilizing a lookup table to store Gamma function output values is abandoned. Difference values, each of which represents the difference between a Gamma function output value and an ideal output value, are stored instead. Since the bit length of each of the difference values is shorter than the bit length of each of the Gamma function output values, the space required to store a difference value is smaller than the space required to store a Gamma function output value. For example, the bit length of a Gamma function output value is 10 bits, and the bit length of a difference value is 4 bits. The concept of utilizing a lookup table to store difference values in place of Gamma function output values indeed economizes the use of storage space. In addition, the overall hardware cost is also reduced.
More specifically, each of the difference values stored in the lookup table 125 represents the difference between an ideal output value and a Gamma function output value, both of which correspond to one of a plurality of predetermined input values. In the following paragraphs, an ideal function F(x), which could be a linear function, is utilized to illustrate the relationship between the input values and the ideal output values, where x is an integer variable satisfying 0<=x<=255. In addition, a function GAMMA(x) is utilized to illustrate the relationship between the input values and the Gamma function output values. In this embodiment, the lookup table 125 stores a plurality of difference values DELTA(x1), DELTA(x2), DELTA(x3), . . . , DELTA(xN−1), and DELTA(xN), corresponding to a plurality of predetermined input values x1, x2, x3, . . . , xN−1, and xN, respectively. For an integer variable n satisfying 1<=n<=N, DELTA(xn) equals to GAMMA(xn)−F(xn). The plurality of predetermined input values x1, x2, x3, . . . , xN−1, and xN constitute a subset of a integer set that includes 0, 1, 2, 3, . . . , 254, and 255. In other words, the plurality of predetermined input values x1, x2, x3, . . . , xN−1, and xN may encompass all or part of the possible input values, which include 0, 1, 2, 3, . . . , 254, and 255. In one example, N=254, and x1=1, x2=2, x3=3, . . . xN−1=253, and xN=254. In another example, N=31, and x1=8e, x2=16, x3=32, . . . , xN−1=240, and xN=248.
Please refer to
Assume that the Gamma transform unit 120 has received an input value x, for example 32, which belongs to the plurality of predetermined input values. The Gamma transform unit 120 directly looks up the lookup table 125 to obtain the difference value DELTA(32) and then combines the difference value DELTA(32) with an ideal output value F(32) to obtain the required Gamma function output value GAMMA(32).
Assume that the Gamma transform unit 120 has receive an input value x, for example 35, which does not belong to the plurality of predetermined input values. The Gamma transform unit 120 first looks up the lookup table 125 to obtain a first difference value DELTA(32) corresponding to a first predetermined input value x=32 and a second difference value DELTA(40) corresponding to a second predetermined input value x=40. Then, the Gamma transform unit 120 combines the first difference value DELTA(32) with a first ideal output value F(32) to generate a first reference Gamma function output value GAMMA(32), and combines the second difference value DELTA(40) with a second ideal output value F(40) to generate a second reference Gamma function output value GAMMA(40). Finally, the Gamma transform unit 120 interpolates the reference Gamma function output values GAMMA(32) and GAMMA(40) to obtain the required Gamma function output value GAMMA(35). More specifically, the required Gamma function output value GAMMA(35) is obtained through calculating the following equations,
GAMMA(32)=DELTA(32)+F(32)
GAMMA(40)=DELTA(40)+F(40)
GAMMA(35)=(⅝)*GAMMA(32)+(⅜)*GAMMA(40)
The aforementioned input value x could be a pixel's gray level in the red domain, the green domain, or the blue domain. Since each of the color domains of the display apparatus 200 may correspond to a unique Gamma function, the aforementioned method could be used on each of the color domains to simulate the Gamma function of the very color domain.
As mentioned earlier, the bit length of each of the difference values is shorter than the bit length of each of the Gamma function output values. The storage space required to store a difference value is smaller than the storage space required to store a Gamma function output value. Therefore, compared to the method of the prior art, which stores Gamma function output values, the method of the present invention indeed retrenches the used storage space. In addition, the overall hardware cost is also reduced through applying the method proposed in the present invention.
Those skilled in the art will readily observe that numerous modifications and alterations of the device and method may be made while retaining the teachings of the invention. Accordingly, the above disclosure should be construed as limited only by the metes and bounds of the appended claims.
| Number | Date | Country | Kind |
|---|---|---|---|
| 095117117 | May 2006 | TW | national |