TWI414177B - Apparatus and method for gamma correction - Google Patents
Apparatus and method for gamma correction Download PDFInfo
- Publication number
- TWI414177B TWI414177B TW97111977A TW97111977A TWI414177B TW I414177 B TWI414177 B TW I414177B TW 97111977 A TW97111977 A TW 97111977A TW 97111977 A TW97111977 A TW 97111977A TW I414177 B TWI414177 B TW I414177B
- Authority
- TW
- Taiwan
- Prior art keywords
- gamma
- function
- curve
- gamma correction
- linear
- Prior art date
Links
Landscapes
- Picture Signal Circuits (AREA)
- Facsimile Image Signal Circuits (AREA)
Abstract
Description
本發明係有關於伽馬(gamma)校正,特別是使用可調(adjustable)及可適(adaptable)曲線函數之gamma校正。The present invention relates to gamma correction, particularly gamma correction using an adjustable and adaptable curve function.
大部分的顯示系統都具有一種非線性顯示特性,稱為gamma響應,其使得顯示系統所顯示之亮度並非完美地正比於輸入電壓。鑑於此gamma特性,因此影像信號於顯示之前通常都會使用gamma曲線來作補償,使得顯示系統之非線性特性得以逆向地得到補償。Most display systems have a non-linear display characteristic called gamma response that causes the display system to display a brightness that is not perfectly proportional to the input voltage. In view of this gamma characteristic, the image signal is usually compensated by the gamma curve before being displayed, so that the nonlinear characteristics of the display system are reversely compensated.
查表(lookup table)方式係傳統gamma校正的常用方式之一。然而,此查表方式需要相當大的記憶空間,且自記憶體讀取資料時需要耗用許多的讀取週期。片段式線性近似法(piecewise linear approximation)是傳統gamma校正的另一種常用方式。然而,此種方式需要許多的暫存器以儲存片段之端點(end points),且容易產生近似誤差。The lookup table method is one of the common methods of traditional gamma correction. However, this method of looking up requires a considerable amount of memory space, and it takes a lot of read cycles to read data from the memory. Piecewise linear approximation is another common way of traditional gamma correction. However, this approach requires a lot of registers to store the end points of the segments and is prone to approximation errors.
因此,亟需提出一種快速且簡便方式來進行gamma校正。Therefore, there is a need for a quick and easy way to perform gamma correction.
鑑於上述,本發明的目的之一為提供一種快速且簡便的gamma校正方式。此種gamma校正及其gamma曲線所需之計算遠比傳統gamma校正方法來得少。再者,使用者也可方便地縮放(scale)gamma曲線之形狀並調整其強度(strength)。In view of the above, one of the objects of the present invention is to provide a fast and simple gamma correction method. The calculations required for such gamma correction and its gamma curve are much less than for conventional gamma correction methods. Furthermore, the user can also easily scale the shape of the gamma curve and adjust its strength.
根據本發明實施例,使用一可調混合單元以混合線性gamma函數與非線性gamma函數,因而形成一可調gamma曲線。該非線性gamma函數可藉由混合參數來作調整,使得gamma曲線至線性gamma曲線之距離得以改變。該gamma曲線還可藉由強度參數來作調整,使得gamma曲線之曲度受到改變。In accordance with an embodiment of the invention, an adjustable mixing unit is used to mix the linear gamma function with the nonlinear gamma function, thus forming an adjustable gamma curve. The nonlinear gamma function can be adjusted by mixing parameters such that the distance from the gamma curve to the linear gamma curve is changed. The gamma curve can also be adjusted by the intensity parameter such that the curvature of the gamma curve is changed.
第一圖之方塊圖顯示本發明實施例之一的伽馬(gamma)校正裝置100,第二圖則顯示本發明實施例之 gamma校正方法200。本實施例之裝置100及方法200係用以補償顯示系統(例如液晶顯示器)的非線性特性。然而,本發明也可以適用於其他的系統。例如,本發明實施例所揭露之gamma校正也可直接或經修改後用以校正光感測器之非線性響應。另外,本實施例使用8位元來表示亮度值,因此總共有256灰階(亦即,0至255)。然而,也可根據特定系統設計需求而使用其他的位元數。The block diagram of the first figure shows a gamma correction device 100 according to an embodiment of the present invention, and the second diagram shows an embodiment of the present invention. Gamma correction method 200. The apparatus 100 and method 200 of the present embodiment are used to compensate for nonlinear characteristics of a display system such as a liquid crystal display. However, the present invention is also applicable to other systems. For example, the gamma correction disclosed in the embodiments of the present invention can also be directly or modified to correct the nonlinear response of the photo sensor. In addition, the present embodiment uses 8-bit to represent the luminance value, so there are a total of 256 gray levels (i.e., 0 to 255). However, other bit numbers can also be used depending on the specific system design requirements.
在本實施例中,gamma校正曲線(或轉換函數)定義如下:Y’=(255+a)*Y/(a+Y) (1) Y”=(Y’*(255-Y)+Y2 )/255 (2) Y'''=Y+(Y”-Y)*b (3) a=round(avgBrightness*p) (4)其中,Y代表輸入像素之亮度值(或luma值),Y’代表中間輸出值,Y”代表基本(base)gamma曲線的輸出值,Y'''代表輸出像素之亮度值,p為定義gamma校正強度(strength)之參數,及b為定義gamma曲線至線性gamma曲線之接近度(closeness)的參數。In the present embodiment, the gamma correction curve (or conversion function) is defined as follows: Y'=(255+a)*Y/(a+Y) (1) Y"=(Y'*(255-Y)+Y 2 )/255 ( 2) Y'''=Y+(Y"-Y)*b (3) a=round(avgBrightness*p) (4) where Y represents the luminance value (or luma value) of the input pixel, and Y' represents the intermediate output. Value, Y" represents the output value of the base gamma curve, Y''' represents the luminance value of the output pixel, p is the parameter defining the gamma correction intensity, and b is the definition of the gamma curve to the linear gamma curve The parameter of closeness.
第(4)式中的avgBrightness代表目前影像的平均亮度值。在本實施例中,於步驟20(第二圖)中,針對整個影像圖框或欲進行gamma校正之影像視窗部分的像素,以可適(adaptable)亮度值單元10(第一圖)來取得平均亮度值。在本說明書中,”單元”一詞可用以指電路、程式片段或其組合。此平均亮度值藉由亮度值”a”以影響式(1)的輸出值Y’,並進一步影響式(2)的Y”及式(3)的Y'''。裝置100及方法200可調適地(adaptable)針對變化之平均亮度值以自動改變其gamma校正。此可適性尤其在裝置100係從不同影像裝置輸入不同平均亮度之影像時特別有用。The avgBrightness in the equation (4) represents the average luminance value of the current image. In this embodiment, in step 20 (second diagram), the pixels of the entire image frame or the image window portion to be gamma corrected are obtained by an adaptable luminance value unit 10 (first image). Average brightness value. In this specification, the term "unit" can be used to refer to a circuit, a program segment, or a combination thereof. The average brightness value is influenced by the brightness value "a" to affect the output value Y' of the formula (1), and further affects Y" of the formula (2) and Y"' of the formula (3). The apparatus 100 and the method 200 may The adaptor automatically changes its gamma correction for varying average brightness values. This adaptability is particularly useful when the device 100 is input images of different average brightness from different imaging devices.
藉由步驟21至22對亮度值”a”作進一步調整。其中,於步驟21中,當需要調整gamma校正強度時,以步驟22取得強度參數p或由使用者輸入此參數,並傳送至可適(adaptable)亮度值單元10。在本實施例中,係使用式(4)將平均亮度值(avgBrightness)乘以強度參數p。式(4)中的運算子”round”係進行數學捨入(rounding)運算。然而,如果裝置100係為非整數系統,則捨入運算即可省略。至於強度參數p對於gamma校正之影響將於後面詳述。The luminance value "a" is further adjusted by steps 21 to 22. Wherein, in step 21, when it is necessary to adjust the gamma correction intensity, the intensity parameter p is obtained in step 22 or input by the user, and transmitted to the adaptable brightness value unit 10. In the present embodiment, the average luminance value (avgBrightness) is multiplied by the intensity parameter p using equation (4). The operator "round" in equation (4) performs a mathematical rounding operation. However, if the device 100 is a non-integer system, the rounding operation can be omitted. The effect of the intensity parameter p on the gamma correction will be detailed later.
式(2)中的Y”函數代表一基本(base)gamma曲線(步驟23及方塊12),其對應至第三圖中b=1之gamma曲線。在本實施例中,基本gamma曲線係為二階函數。然而,基本gamma曲線也可以更高階函數來表示。The Y" function in equation (2) represents a base gamma curve (steps 23 and 12), which corresponds to the gamma curve of b = 1 in the third figure. In this embodiment, the basic gamma curve is Second-order functions. However, the basic gamma curve can also be represented by higher order functions.
式(3)中的Y'''函數代表一般gamma曲線,其係由線性部分Y及非線性部分(Y”-Y)所組合或混合(blend)而成。函數Y'''之混合(步驟25)係將非線性部分(Y”-Y)乘以一混合參數b,其可由使用者輸入(步驟24)至可調混合單元14中。當b=1時,一般gamma曲線Y'''即變為基本gamma曲線Y”;當b=0時,一般gamma曲線Y'''即變為線性gamma曲線。如第三圖所示,gamma曲線Y'''(b≠0)至線性gamma曲線(b=0,亦即,未作任何gamma校正)之距離會隨混合參數b之增加而增加,反之,則隨混合參數b之減小而減小。第三圖也顯示出各gamma曲線會收斂於兩端(亦即圖例中的0和255)。The Y'' function in equation (3) represents a general gamma curve which is combined or blended by a linear portion Y and a nonlinear portion (Y"-Y). A mixture of functions Y''' Step 25) multiplies the non-linear portion (Y"-Y) by a mixing parameter b, which can be input (step 24) by the user into the adjustable mixing unit 14. When b=1, the general gamma curve Y''' becomes the basic gamma curve Y"; when b=0, the general gamma curve Y''' becomes a linear gamma curve. As shown in the third figure, gamma The distance from the curve Y''' (b≠0) to the linear gamma curve (b=0, that is, without any gamma correction) increases with the increase of the mixing parameter b, and vice versa. The third graph also shows that each gamma curve converges to both ends (ie, 0 and 255 in the legend).
如前所述,基本gamma曲線為亮度值”a”的函數,而當選擇強度調整時,亮度值”a”又為強度參數p的函數。第四圖顯示各種強度參數p所相對應的gamma曲線。Gamma曲線Y'''的曲度隨強度參數p之減小而增加,反 之,曲度隨強度參數p之增加而減小。在本實施例中,小於1的參數p使得gamma校正變得更強勢(aggressive),而大於1的參數p使得gamma校正變得較不強勢。As previously mentioned, the basic gamma curve is a function of the luminance value "a", and when the intensity adjustment is selected, the luminance value "a" is again a function of the intensity parameter p. The fourth graph shows the gamma curves corresponding to the various intensity parameters p. The curvature of the Gamma curve Y''' increases as the intensity parameter p decreases. The curvature decreases as the intensity parameter p increases. In the present embodiment, the parameter p of less than 1 makes the gamma correction become more aggressive, while the parameter p of more than 1 makes the gamma correction less robust.
藉此,本發明實施例提出一種快速且簡便以進行gamma校正的裝置及方法。本發明實施例所揭露之gamma校正及其gamma曲線所需之計算量遠比傳統gamma校正方法來得少。再者,使用者也可方便地縮放(scale)gamma曲線之形狀並調整其強度。另外,在本實施例中,使用單一的6位元暫存器即足以同時儲存混合參數b及強度參數p。本發明實施例之裝置及方法可調適地(adaptable)針對變化之平均亮度值以自動改變其gamma校正。Accordingly, embodiments of the present invention provide an apparatus and method for performing gamma correction quickly and easily. The amount of calculation required for the gamma correction and its gamma curve disclosed in the embodiments of the present invention is much less than that of the conventional gamma correction method. Furthermore, the user can conveniently scale and adjust the intensity of the gamma curve. In addition, in the present embodiment, the use of a single 6-bit register is sufficient to simultaneously store the mixing parameter b and the intensity parameter p. The apparatus and method of an embodiment of the present invention adaptably adjusts its gamma correction for varying average brightness values.
以上所述僅為本發明之較佳實施例而已,並非用以限定本發明之申請專利範圍;凡其它未脫離發明所揭示之精神下所完成之等效改變或修飾,均應包含在下述之申請專利範圍內。The above description is only the preferred embodiment of the present invention, and is not intended to limit the scope of the present invention; all other equivalent changes or modifications which are not departing from the spirit of the invention should be included in the following Within the scope of the patent application.
100‧‧‧gamma校正裝置100‧‧‧gamma correction device
10‧‧‧可適(adaptable)亮度值單元10‧‧‧adaptable brightness value unit
12‧‧‧基本gamma曲線12‧‧‧Basic gamma curve
14‧‧‧可調混合14‧‧‧Adjustable mixing
200‧‧‧gamma校正方法200‧‧‧gamma correction method
20-25‧‧‧gamma校正方法之步驟20-25‧‧‧Steps for gamma correction method
第一圖之方塊圖顯示本發明實施例之一的伽馬(gamma)校正裝置。The block diagram of the first figure shows a gamma correction device according to one embodiment of the present invention.
第二圖顯示本發明實施例之gamma校正方法。The second figure shows the gamma correction method of the embodiment of the present invention.
第三圖顯示各種混合參數所相對應的gamma曲線。The third graph shows the gamma curve corresponding to the various mixing parameters.
第四圖顯示各種強度參數所相對應的gamma曲線。The fourth graph shows the gamma curves corresponding to the various intensity parameters.
100‧‧‧gamma校正裝置100‧‧‧gamma correction device
10‧‧‧可適(adaptable)亮度值單元10‧‧‧adaptable brightness value unit
12‧‧‧基本gamma曲線12‧‧‧Basic gamma curve
14‧‧‧可調混合14‧‧‧Adjustable mixing
Claims (16)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
TW97111977A TWI414177B (en) | 2008-04-02 | 2008-04-02 | Apparatus and method for gamma correction |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
TW97111977A TWI414177B (en) | 2008-04-02 | 2008-04-02 | Apparatus and method for gamma correction |
Publications (2)
Publication Number | Publication Date |
---|---|
TW200943929A TW200943929A (en) | 2009-10-16 |
TWI414177B true TWI414177B (en) | 2013-11-01 |
Family
ID=44869137
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
TW97111977A TWI414177B (en) | 2008-04-02 | 2008-04-02 | Apparatus and method for gamma correction |
Country Status (1)
Country | Link |
---|---|
TW (1) | TWI414177B (en) |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108989607B (en) * | 2018-07-02 | 2020-08-11 | 杭州雄迈集成电路技术股份有限公司 | Method for obtaining automatic adjustment gamma curve based on image gray scale statistics |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US6100879A (en) * | 1996-08-27 | 2000-08-08 | Silicon Image, Inc. | System and method for controlling an active matrix display |
TWI222277B (en) * | 2001-01-12 | 2004-10-11 | Himax Tech Inc | Digital programmable Gamma curve correction device |
TWI278824B (en) * | 2004-03-30 | 2007-04-11 | Au Optronics Corp | Method and apparatus for gamma correction and flat-panel display using the same |
US20070091019A1 (en) * | 2005-10-20 | 2007-04-26 | Samsung Electronics Co., Ltd. | Display apparatus and control method thereof |
TW200743070A (en) * | 2006-05-05 | 2007-11-16 | Premier Image Technology Corp | Method for improving image quality differences on a LCD due to different view module |
-
2008
- 2008-04-02 TW TW97111977A patent/TWI414177B/en not_active IP Right Cessation
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US6100879A (en) * | 1996-08-27 | 2000-08-08 | Silicon Image, Inc. | System and method for controlling an active matrix display |
TWI222277B (en) * | 2001-01-12 | 2004-10-11 | Himax Tech Inc | Digital programmable Gamma curve correction device |
TWI278824B (en) * | 2004-03-30 | 2007-04-11 | Au Optronics Corp | Method and apparatus for gamma correction and flat-panel display using the same |
US20070091019A1 (en) * | 2005-10-20 | 2007-04-26 | Samsung Electronics Co., Ltd. | Display apparatus and control method thereof |
TW200743070A (en) * | 2006-05-05 | 2007-11-16 | Premier Image Technology Corp | Method for improving image quality differences on a LCD due to different view module |
Also Published As
Publication number | Publication date |
---|---|
TW200943929A (en) | 2009-10-16 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN107369408B (en) | Toning method, toning device, display driver and display system | |
US7084881B1 (en) | Method and apparatus for improved color correction | |
KR101367199B1 (en) | Image display device and method for revising display character thereof | |
KR101286536B1 (en) | Digital gamma correction system and correction method | |
TWI553622B (en) | Image processing device with image compensation function and image processing method thereof | |
US10304393B2 (en) | Brightness compensation method and circuit | |
US8154565B2 (en) | Apparatus and method for gamma correction | |
JP2008242458A (en) | Method for driving liquid crystal display, system for compensating for temperature variation in the liquid crystal display, and computer program product | |
JP6360321B2 (en) | Display device, display panel driver, image processing device, and image processing method | |
JP2019531510A (en) | Liquid crystal display device and compensation data storage method thereof | |
TWI557721B (en) | Gamma curve correction circuit and gamma curve correction method | |
CN103680371A (en) | Device and method for adjusting displaying feature of display | |
US20090153456A1 (en) | Method for generating over-drive data | |
KR20160059021A (en) | Display panel driving device and display device having the same | |
JP2008292680A (en) | Output value setting method, output value setting device and display device | |
US20140232741A1 (en) | Image Processing Method and Display Apparatus Using the Same | |
JP2004151167A (en) | Method and system for image correction | |
TWI414177B (en) | Apparatus and method for gamma correction | |
JP6815099B2 (en) | Color adjustment circuit, display driver and display device | |
JP3839024B2 (en) | Color correction method | |
KR20230043752A (en) | System and method for variable area-based compensation of burn-in in display panels | |
JP2018116133A (en) | Grayscale reference voltage generation circuit, driving device for liquid crystal display device, and liquid crystal display device | |
JP5447058B2 (en) | Gradation correction apparatus, display and gradation correction method | |
TWI657429B (en) | Display device and over driving method | |
TWI327868B (en) | Image processing method |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
MM4A | Annulment or lapse of patent due to non-payment of fees |