1. Technical Field
The disclosure generally relates to gamma table generation, and particularly to a method of establishing a gamma table for a display device.
2. Description of the Related Art
Gamma tables are generally established in display devices such as liquid crystal displays (LCDs), since each display device has a different panel, with a correspondingly different gamma curve. Gamma tables may be obtained by testing different display devices, and integrating the results into the display device in the form of firmware. However, in such cases, the gamma curve can not be optimally adjusted according to individual characteristics. Moreover, the gamma table is obtained after testing and calculating quantities of experimental data from different display devices, increasing time and cost requirements.
To establish a gamma table, a luminance characteristic curve is required. Luminance values for 1024 gray scales are measured, and connected to generate the luminance characteristic curve. However, measurement and calculation for the 1024 gray levels can be slow, and the resulting measurement data may occupy considerable memory resources. To speed up measurement and computation, a small number of gray levels can be measured and sampled among the total number of 1024 gray levels, with the luminance characteristic curve established by interpolation. However, interpolated luminance characteristic curves generally differ considerably from the standard gamma curve.
Therefore, there is room for improvement within the art.
Many aspects of a method of establishing a gamma table can be better understood with reference to the following drawings. The components in the drawings are not necessarily drawn to scale, the emphasis instead being placed upon clearly illustrating the principles of the exemplary method of establishing a gamma table. Moreover, in the drawings, like reference numerals designate corresponding parts throughout the several views. Wherever possible, the same reference numbers are used throughout the drawings to refer to the same or like elements of an embodiment.
Further referring to
In step S102, a gamma correction function of the display device 30 is temporarily disabled by an exterior circuit or an appropriate application, such that the gamma table correction function is not accessible before the display device 30 begins to obtain the native luminance values of the display device 30 in the subsequent sampling.
In step S104, the number of reference sampling points is set. In this exemplary embodiment, a total of 64 reference sampling points are set to increase computing speed and reduce memory resource usage. The reference sampling point 0 through the reference sampling point 63 respectively corresponds to gray scale 0, gray scale 4, gray scale 8, . . . , gray scale 248, and gray scale 252 of the single-color images of the display device 40. Moreover, the number of reference sampling points can also be set as 2, 4, 8, 16, . . . , 32, 2n, where n is a whole number, and 1≦n≦10. For example, the number of reference sampling point can be set to 128 to improve accuracy, so that the reference sampling points respectively correspond to gray scale 0, gray scale 2, gray scale 4, . . . , gray scale 250, gray scale 252, and gray scale 254, where M is a whole number, and 3≦M≦2n, and 1≦n≦5.
In step S106, single gray scale images are generated corresponding to multiple reference sampling points on the display device 40. In this exemplary embodiment, the signal generator 20 provides the gamma voltage signal corresponding to gray scale 0, gray scale 4, gray scale 8, . . . , gray scale 248, and gray scale 252, and generate corresponding images. The display device 30 receives and displays the images of the gray scales according to the gamma voltage signal.
In step S108, luminance values of the images displayed on the display device 30 are obtained and stored in the register 22. The luminance values of the gray scale images corresponding to the total 64 sampling points (namely, the luminance values corresponding to gray scale image 0, gray scale image 4, gray scale image 8, . . . , gray scale image 248, and gray scale image 252) are obtained by the color analyzer 40. The luminance values are then transferred to the register 22 of the signal generator 20, resulting from generating an initial luminance characteristic curve corresponding to the display device 30.
Vertical coordinate values P of the luminance characteristic curve 1 represent different luminance values corresponding to the sampling points from 1 to 63 and beyond.
In step S110, the sampling points are divided and corresponding discrete points are calculated based on the Bezier curve. The sampling points are divided into multiple control groups, each including M (e.g., M=4) sampling points as control points (where M is a whole number, and 3≦M≦2n, and 1≦n≦5), with the discrete points obtained by calculating the square root, the cube root, the fourth root, . . . , the M−1th root of the Bezier curve. In this exemplary embodiment, to obtain other non-sampling points for establishing the luminance characteristic curve 1, in detail, the total of 1024 points (including the previous 64 sampling points) of the luminance characteristic curve 1 is obtained using arithmetic interpolation. The 1024 points are evenly distributed in equal gray scale intervals.
As an example, if a total of 64 sampling points from 0 though 63 is divided into multiple control groups, and each control group includes 4 sampling points, the initial sampling point of any one control group is the same as the final sampling point of the previous successive control group. Thus, the sampling points are grouped as: the first control group: T0, T1, T2, and T3; the second control group: T3, T4, T5, and T6; the third control group: T6, T7, T8, and T9; . . . and so on.
Further referring to
In step S112, a luminance characteristic curve is established by sequentially connecting all 960 discrete points and 64 sampling points, whereby a complete luminance characteristic curve of the display device 30, such as the luminance characteristic curve 1 in the
In step S114, the sampling points or the discrete points on the luminance characteristic curve with the same luminance values are located based on a standard gamma curve.
In step S116, the nearest adjacent discrete points or sampling points with the same luminance values on the luminance characteristic curve are located.
In step S118, corresponding gray scales on the luminance characteristic curve are obtained using the arithmetic interpolation. Further referring to
In step S120, all the gray scales on the luminance characteristic curve corresponding to each luminance value are obtained and recorded on the luminance characteristic curve 1 based on the standard gamma curve 2, and the signal generator 20 determines whether all the location points on the standard gamma curve 2 have been measured. If all the location points have been located, step S122 is implemented. If not, step S114 is repeated.
In step S122, a gamma table is established. The gamma table of the display device 30 is generated by comparing the gray scales of the luminance characteristic curve and the standard gamma curve. All the gray scales stored in the signal generator 20 are arranged in order from smallest to largest, together constituting the gamma table. The gamma table is stored in the memory 32 of the display device 30.
In summary, the method as disclosed provides a luminance characteristic curve corresponding to a display device 30 using Bezier curve interpolation. A total of 1024 gray scales are reduced to a small number of sampling points, which are further divided into groups, each group including three or more sampling points and not more than the total of the sampling points. The sampling points in each group are control points for the Bezier curve operation to generate other gray scales. A standard gamma curve is used to locate the gray scales on the luminance characteristic curve with a same luminance value, such that the gamma table corresponding to the display device 30 is established. Thus, establishment of the luminance characteristic curve is not only efficient, but also highly accurate.
It is to be understood, however, that even though numerous characteristics and advantages of the exemplary disclosure have been set forth in the foregoing description, together with details of the structure and function of the exemplary disclosure, the disclosure is illustrative only, and changes may be made in detail, especially in matters of shape, size, and arrangement of parts within the principles of exemplary disclosure to the full extent indicated by the broad general meaning of the terms in which the appended claims are expressed.
Number | Date | Country | Kind |
---|---|---|---|
200910306643.8 | Sep 2009 | CN | national |