TWI566232B - Image brightness adjustment circuit - Google Patents

Image brightness adjustment circuit Download PDF

Info

Publication number
TWI566232B
TWI566232B TW101136425A TW101136425A TWI566232B TW I566232 B TWI566232 B TW I566232B TW 101136425 A TW101136425 A TW 101136425A TW 101136425 A TW101136425 A TW 101136425A TW I566232 B TWI566232 B TW I566232B
Authority
TW
Taiwan
Prior art keywords
value
adjustment
input color
color values
gain
Prior art date
Application number
TW101136425A
Other languages
Chinese (zh)
Other versions
TW201415454A (en
Inventor
王信中
Original Assignee
矽創電子股份有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 矽創電子股份有限公司 filed Critical 矽創電子股份有限公司
Priority to TW101136425A priority Critical patent/TWI566232B/en
Publication of TW201415454A publication Critical patent/TW201415454A/en
Application granted granted Critical
Publication of TWI566232B publication Critical patent/TWI566232B/en

Links

Description

影像亮度調整電路 Image brightness adjustment circuit

本發明係一種影像調整電路,尤指一種影像亮度調整電路。 The invention relates to an image adjustment circuit, in particular to an image brightness adjustment circuit.

在高度科技化的現今社會中,電子產品已逐漸融入人們的居家生活,從提供娛樂的電視、遊戲機,到工作上使用的電腦或是智慧型手機等,都顯示出人們在日常生活上對這些電子產品的依賴性。其中,無論是工作上的需求,或是生活上的娛樂,電視、投影機、液晶顯示器等顯示裝置皆為不可或缺的電子產品。 In today's highly technologicalized society, electronic products have gradually integrated into people's home life, from televisions that provide entertainment, to game consoles, to computers used at work, or to smart phones. The dependence of these electronic products. Among them, whether it is the demand for work or the entertainment in life, display devices such as televisions, projectors, and liquid crystal displays are indispensable electronic products.

其中,又以液晶顯示器為現今社會之主流,但使用液晶顯示器雖可增加螢幕的尺寸,但與使用陰極射線管之電視機相比,影像亮度會降低,然而,隨著人們對影像品質的要求愈來愈高,發展出許多影像亮度處理技術,對於過暗的影像,只要經過適當的影像處理,就能提升影像之亮度。 Among them, liquid crystal display is the mainstream of today's society, but the use of liquid crystal display can increase the size of the screen, but the brightness of the image will be lower than that of the TV using the cathode ray tube. However, with the image quality requirements Increasingly, many image brightness processing techniques have been developed. For an image that is too dark, the brightness of the image can be improved by appropriate image processing.

影像亮度調整的方法有很多種,例如中華民國專利公開號第200403626號之具色彩維持之可調式對比與亮度加強方法,請參閱第一圖,中華民國專利公開號第200403626號之第一實施例之對比與亮度加強裝置100包括第一影像轉換電路10,最大值輸出電路20,第一發光位準轉換電路30,第二影像轉換電路40,第二發光位準轉換電路50與位準平滑電路60。第一影像轉換電路10接收RGB影像信號(RGB),將RGB信號轉換成YCbCr色彩間距(color space),並輸出數位發光位準Y與色差資訊至第一發光位準轉換 電路30。色差資訊包括兩個色差成份Cb與Cr。Cb代表藍色信號與參考信號間之差異,而Cr代表紅色信號與參考信號間之差異。因此,第一影像轉換電路10將8位元RGB資料轉換成8位元YCbCr資料。最大值輸出電路20接收輸入之RGB影像信號(RGB),將RGB影像信號之位準彼此比較,並將具有RGB影像信號(RGB)中之最大位準之信號M1輸出至第二發光位準轉換電路50。 There are a variety of methods for image brightness adjustment, such as the color-maintaining adjustable contrast and brightness enhancement method of the Republic of China Patent Publication No. 200403626, please refer to the first figure, the first embodiment of the Republic of China Patent Publication No. 200403626 The contrast and brightness enhancement apparatus 100 includes a first image conversion circuit 10, a maximum value output circuit 20, a first light emission level conversion circuit 30, a second image conversion circuit 40, a second light emission level conversion circuit 50, and a level smoothing circuit. 60. The first image conversion circuit 10 receives the RGB image signal (RGB), converts the RGB signal into a YCbCr color space, and outputs the digital light level Y and the color difference information to the first light level conversion. Circuit 30. The color difference information includes two color difference components Cb and Cr. Cb represents the difference between the blue signal and the reference signal, and Cr represents the difference between the red signal and the reference signal. Therefore, the first image conversion circuit 10 converts 8-bit RGB data into 8-bit YCbCr data. The maximum value output circuit 20 receives the input RGB image signals (RGB), compares the levels of the RGB image signals with each other, and outputs the signal M1 having the largest level among the RGB image signals (RGB) to the second light level level conversion. Circuit 50.

第一發光位準轉換電路30接收第一影像轉換電路10之輸出信號YCbCr,並依據輸出信號YCbCr與第一控制信號CHM而輸出所得到Y’CbCr至第二影像轉換電路40。亦即,第一發光位準轉換電路30依既定增益C_gain而只減少發光資訊Y之位準。 The first light-emitting level conversion circuit 30 receives the output signal YCbCr of the first image conversion circuit 10, and outputs the obtained Y'CbCr to the second image conversion circuit 40 according to the output signal YCbCr and the first control signal CHM. That is, the first light-emitting level conversion circuit 30 reduces only the level of the light-emitting information Y in accordance with the predetermined gain C_gain.

由上述可知,中華民國專利公開號第200403626號之裝置需要設置第一影像轉換電路10與第二影像轉換電路40,第一影像轉換電路10將8位元RGB資料轉換成8位元YCbCr資料,與將所接收之信號轉換成RGB影像信號,第二影像轉換電路40再將接受到的Y’CbCr轉換為R1G1B1並輸出至顯示裝置。然而,此種方式不論是電路複雜度亦或是在成本上都有很大的進步空間。 It can be seen from the above that the device of the Republic of China Patent Publication No. 200403626 requires a first image conversion circuit 10 and a second image conversion circuit 40, and the first image conversion circuit 10 converts 8-bit RGB data into 8-bit YCbCr data. And converting the received signal into an RGB image signal, the second image conversion circuit 40 converts the received Y'CbCr into R 1 G 1 B 1 and outputs it to the display device. However, this method has a lot of room for improvement in terms of circuit complexity or cost.

因此,近年來發展出一種不需轉換色彩值(RGB)而可直接對色彩值進行調整而對亮度調整之裝置,但是一般直接利用色彩值進行亮度調整的方法為直接對複數色彩值(R、G、B)分別加上同一個調整值,然而此種方式若色彩值(R、G、B)分別為(240、150、100),而調整值為30時,紅色色彩值R加上調整值後為270,但由於色彩值之上限為255,因此加上調整值後紅色色彩值R會停留在255,而綠色色彩值G與藍色色彩值B則持續上升為180與,而產生亮度過飽和的問題,故,需要一種發明以解決上述之問題。 Therefore, in recent years, a device that can directly adjust the color value without adjusting the color value (RGB) has been developed, but generally the method of directly adjusting the brightness using the color value is directly to the complex color value (R, G, B) respectively add the same adjustment value, but if the color value (R, G, B) is (240, 150, 100), and the adjustment value is 30, the red color value R is adjusted. The value is 270, but since the upper limit of the color value is 255, the red color value R will stay at 255 after adding the adjustment value, and the green color value G and the blue color value B will continue to rise to 180 and produce brightness. The problem of supersaturation, therefore, requires an invention to solve the above problems.

為了解決上述問題,本發明針對上述之問題提供了一種電路 複雜度與成本低,且可解決影像亮度過飽和的問題之影像亮度調整電路。 In order to solve the above problems, the present invention provides a circuit for the above problems. Image brightness adjustment circuit with low complexity and cost, and can solve the problem of image brightness oversaturation.

本發明之主要目的,係提供一種影像亮度調整電路,其藉由將複數輸入色彩值(R、G、B)之其中之一進行補數運算,以達到調整影像之亮度的目的,且不會有亮度過飽和的問題。 The main object of the present invention is to provide an image brightness adjustment circuit for performing the complement operation of one of the plurality of input color values (R, G, B) to achieve the purpose of adjusting the brightness of the image without There is a problem of over-saturation of brightness.

為了達到上述各目的及其功效,本發明揭示一種影像亮度調整電路,其包含一第一調整電路與一加法單元。第一調整電路接收複數輸入色彩值,並將該些輸入色彩值之其中之一進行補數運算,以產生一第一調整值;加法單元耦接第一調整電路,並接收第一調整值與該些輸入色彩值而將第一調整值加至該些輸入色彩值中,而產生複數輸出色彩值。以達到調整影像之亮度的目的,且不會有亮度過飽和的問題。 In order to achieve the above objects and their effects, the present invention discloses an image brightness adjustment circuit including a first adjustment circuit and an addition unit. The first adjusting circuit receives the complex input color value, and performs a complement operation on one of the input color values to generate a first adjustment value; the adding unit is coupled to the first adjusting circuit, and receives the first adjusting value and The input color values are added to the input color values to generate a plurality of output color values. In order to achieve the purpose of adjusting the brightness of the image, there is no problem of over-saturation of the brightness.

10‧‧‧第一調整電路 10‧‧‧First adjustment circuit

101‧‧‧第一選擇單元 101‧‧‧First choice unit

103‧‧‧運算單元 103‧‧‧ arithmetic unit

105‧‧‧第一增益調整單元 105‧‧‧First gain adjustment unit

30‧‧‧加法單元 30‧‧‧Addition unit

301‧‧‧第一加法器 301‧‧‧First Adder

303‧‧‧第二加法器 303‧‧‧Second adder

305‧‧‧第三加法器 305‧‧‧ third adder

50‧‧‧顯示面板 50‧‧‧ display panel

70‧‧‧第二調整電路 70‧‧‧Second adjustment circuit

701‧‧‧第二選擇單元 701‧‧‧Second selection unit

703‧‧‧第二增益調整單元 703‧‧‧second gain adjustment unit

第一圖:其係為習知影像亮度調整方法之電路方塊圖;第二圖:其係為本發明第一實施例之電路方塊圖;第三圖:其係為本發明第一實施例之輸入色彩值與輸出色彩值之關係圖;第四圖:其係為本發明第二實施例電路方塊圖;及第五圖:其係為本發明第二實施例之輸入色彩值與輸出色彩值之關係圖;第六圖:其係為本發明第三實施例之輸入色彩值與輸出色彩值之關係圖;第七(A)圖:其係為本發明第二實施例之影像示意圖; 第七(B)圖:其係為本發明第二實施例之影像直方圖;第八(A)圖:其係為本發明第二、三實施例調整前之影像示意圖;第八(B)圖:其係為本發明第二、三實施例調整前之影像直方圖;第九(A)圖:其係為本發明第三實施例之影像示意圖;以及第九(B)圖:其係為本發明第三實施例之影像直方圖。 The first figure is a circuit block diagram of a conventional image brightness adjustment method; the second figure is a circuit block diagram of the first embodiment of the present invention; and the third figure is the first embodiment of the present invention. The relationship between the input color value and the output color value; the fourth figure is a circuit block diagram of the second embodiment of the present invention; and the fifth figure: the input color value and the output color value of the second embodiment of the present invention FIG. 6 is a diagram showing the relationship between the input color value and the output color value according to the third embodiment of the present invention; and FIG. 7(A) is a schematic diagram of the image according to the second embodiment of the present invention; Figure 7 (B) is an image histogram according to a second embodiment of the present invention; and Figure 8 (A) is a schematic diagram of the image before adjustment according to the second and third embodiments of the present invention; Figure: is a histogram of the image before adjustment according to the second and third embodiments of the present invention; ninth (A) is a schematic view of the image of the third embodiment of the present invention; and ninth (B): It is an image histogram of the third embodiment of the present invention.

為使 貴審查委員對本發明之結構特徵及所達成之功效有更進一步之瞭解與認識,謹佐以較佳之實施例及配合詳細之說明,說明如後:請參閱第二圖,其係為本發明之第一實施例之影像亮度調整電路的方塊圖,如圖所示,本發明之影像亮度調整電路連接一顯示面板50,以提供複數輸出色彩值(R'、G'、B')至顯示面板50。本發明之影像亮度調整電路包含一第一調整電路10以及一加法單元30。第一調整電路10接收複數輸入色彩值(R、G、B),該些輸入色彩值(R、G、B)包含一紅色輸入色彩值R、一綠色輸入色彩值G與一藍色輸入色彩值B,第一調整電路10選擇該些輸入色彩值(R、G、B)之其中之一,而對該些輸入色彩值(R、G、B)之其中之一進行補數運算,於本實施例中,第一調整電路10選擇該些輸入色彩值(R、G、B)之一最大值,並第一調整電路10對輸入色彩值(R、G、B)之最大值進行1的補數(1’s complements)運算後,再乘以一第一增益值GK而產生一第一調整值X。加法單元30接收輸入色彩值(R、G、B)與第一調整值X,並將第一調整值X分別加至輸 入色彩值(R、G、B)而產生複數輸出色彩值(R'、G'、B'),以調整該些輸入色彩值(R、G、B),並傳送該些輸出色彩值(R'、G'、B')至顯示面板50。其中,該些輸出色彩值(R'、G'、B')包含一紅色輸出色彩值R'、一綠色輸出色彩值G'與一藍色輸出色彩值B'。顯示面板50可為任何形式之顯示面板,例如液晶顯示面板。 For a better understanding and understanding of the structural features and the achievable effects of the present invention, please refer to the preferred embodiments and the detailed descriptions as follows: please refer to the second figure, which is A block diagram of an image brightness adjustment circuit according to a first embodiment of the present invention, as shown, the image brightness adjustment circuit of the present invention is coupled to a display panel 50 to provide a plurality of output color values (R', G', B') to The display panel 50. The image brightness adjustment circuit of the present invention comprises a first adjustment circuit 10 and an addition unit 30. The first adjustment circuit 10 receives a plurality of input color values (R, G, B) including a red input color value R, a green input color value G, and a blue input color. a value B, the first adjustment circuit 10 selects one of the input color values (R, G, B), and performs a complement operation on one of the input color values (R, G, B). In this embodiment, the first adjusting circuit 10 selects one of the maximum values of the input color values (R, G, B), and the first adjusting circuit 10 performs the maximum value of the input color values (R, G, B). After the 1's complements operation, multiplying by a first gain value G K produces a first adjustment value X. The adding unit 30 receives the input color value (R, G, B) and the first adjustment value X, and adds the first adjustment value X to the input color value (R, G, B) respectively to generate a complex output color value (R' , G', B'), to adjust the input color values (R, G, B), and transmit the output color values (R', G', B') to the display panel 50. The output color values (R', G', B') include a red output color value R', a green output color value G', and a blue output color value B'. The display panel 50 can be any form of display panel, such as a liquid crystal display panel.

承上所述,第一調整電路10包含一第一選擇單元101、一運算單元103以及一第一增益調整單元105。第一選擇單元101接收該些輸入色彩值(R、G、B),並選擇該些輸入色彩值(R、G、B)之最大值,並將最大值輸出。運算單元103對最大值進行1的補數運算後,輸出一運算值,舉例而言,在8位元的狀況下,是以(255-最大值)來獲得補數運算值。第一增益調整單元105接收運算值,並將運算值乘以第一增益值GK而輸出第一調整值X。其中,第一增益調整單元105為一乘法器,但是亦可為一內存有增益值之暫存器,而第一增益值GK為-1至1間之任意數。 As described above, the first adjustment circuit 10 includes a first selection unit 101, an operation unit 103, and a first gain adjustment unit 105. The first selection unit 101 receives the input color values (R, G, B), and selects the maximum values of the input color values (R, G, B), and outputs the maximum value. The arithmetic unit 103 performs a complement operation of 1 on the maximum value, and outputs an operation value. For example, in the case of 8 bits, the complement operation value is obtained by (255-maximum value). The first gain adjustment unit 105 receives the operation value, and multiplies the operation value by the first gain value G K to output the first adjustment value X. The first gain adjustment unit 105 is a multiplier, but may also be a register with a gain value, and the first gain value G K is any number between -1 and 1.

加法單元30包含一第一加法器301、一第二加法器303以及一第三加法器305。第一加法器301接收紅色輸入色彩值R與第一調整值X,並將紅色輸入色彩值R與第一調整值X相加而產生紅色輸出色彩值R',第二加法器303接收綠色輸入色彩值G與第一調整值X,並將綠色輸入色彩值G與第一調整值X相加而產生綠色輸出色彩值G',第三加法器305接收藍色輸入色彩值B與第一調整值X,並將藍色輸入色彩值B與第一調整值X相加而產生藍色輸出色彩值B',其中,該些輸出色彩值(R'、G'、B')也可表示為(R+X、G+X、B+X)。 The adding unit 30 includes a first adder 301, a second adder 303, and a third adder 305. The first adder 301 receives the red input color value R and the first adjustment value X, and adds the red input color value R to the first adjustment value X to generate a red output color value R', and the second adder 303 receives the green input. The color value G is compared with the first adjustment value X, and the green input color value G is added to the first adjustment value X to generate a green output color value G', and the third adder 305 receives the blue input color value B and the first adjustment. a value X, and the blue input color value B is added to the first adjustment value X to generate a blue output color value B', wherein the output color values (R', G', B') can also be expressed as (R+X, G+X, B+X).

請一併參閱第三圖,其顯示本發明之第一實施例之影像亮度調整電路之紅色輸入色彩值R、綠色輸入色彩值G、藍色輸入色彩 值B、第一調整值X、紅色輸出色彩值R'、綠色輸出色彩值G'與藍色輸出色彩值B'間的關係。其中,垂直軸上之值255是色彩值之上限,若紅色輸入色彩值R為155,綠色輸入色彩值G為95與藍色輸入色彩值B為35,而第一增益值GK設定為0.5(圖中未示),所以,該些輸入色彩值(R、G、B)中的最大值為紅色輸入色彩值R為155,之後,對輸入色彩值(R、G、B)中之最大值進行1的補數運算後,再乘以第一增益值GK而產生第一調整值X,也就是X=(255-R)*GK,即X=(255-155)*0.5=50,接著將第一調整值X分別加至該些輸入色彩值(R、G、B)而產生該些輸出色彩值(R'、G'、B'),即紅色輸出色彩值R'=R+X=155+50=205,綠色輸出色彩值G'=G+X=95+50=145,藍色輸出色彩值B'=B+X=35+50=85。 Please refer to the third figure, which shows the red input color value R, the green input color value G, the blue input color value B, the first adjustment value X, and the red output of the image brightness adjustment circuit of the first embodiment of the present invention. The relationship between the color value R', the green output color value G', and the blue output color value B'. Wherein, the value 255 on the vertical axis is the upper limit of the color value. If the red input color value R is 155, the green input color value G is 95 and the blue input color value B is 35, and the first gain value G K is set to 0.5. (not shown), so the maximum value of the input color values (R, G, B) is the red input color value R is 155, and then the largest of the input color values (R, G, B) After the value is subjected to a complement operation of 1, multiplied by the first gain value G K to generate a first adjustment value X, that is, X=(255-R)*G K , that is, X=(255-155)*0.5= 50, then adding the first adjustment value X to the input color values (R, G, B) respectively to generate the output color values (R', G', B'), that is, the red output color value R' = R+X=155+50=205, green output color value G'=G+X=95+50=145, blue output color value B'=B+X=35+50=85.

由上述可知,由於本發明之第一實施例是將該些輸入色彩值(R、G、B)中之最大值做1的補數運算後,乘以第一增益值GK得到第一調整值X,接著再將第一調整值X分別加至輸入色彩值(R、G、B)中,其中,對最大值取1的補數也就是用色彩值之上限255減去最大值,其用意是為了取該些輸入色彩值(R、G、B)的最大亮度調整空間,以避免產生亮度過飽和的問題,並且第一增益值GK為-1至1間之任意數,因此,將進行補數運算後之最大值乘以GK後所得之第一調整值X加至輸入色彩值(R、G、B)所得之輸出色彩值(R'、G'、B')必然不會超過上限值255,所以本發明不會產生亮度過飽和的問題。 As can be seen from the above, since the first embodiment of the present invention performs the complement operation of the maximum value of the input color values (R, G, B) by 1, multiplying the first gain value G K to obtain the first adjustment. The value X, and then the first adjustment value X is added to the input color value (R, G, B), respectively, wherein the complement of the maximum value of 1 is the upper limit of the color value 255 minus the maximum value, The intention is to take the maximum brightness adjustment space of the input color values (R, G, B) to avoid the problem of brightness oversaturation, and the first gain value G K is any number between -1 and 1, therefore, The output color value (R', G', B') obtained by multiplying the maximum value after the complement operation by G K and adding the first adjustment value X to the input color value (R, G, B) will not Exceeding the upper limit of 255, the present invention does not cause the problem of over-saturation of luminance.

此外,本發明之運算單元103並不侷限進行1的補數運算,亦可進行2的補數運算,所以,運算單元103做任何補數運算皆為本發明所要保護的範圍。 Further, the arithmetic unit 103 of the present invention is not limited to performing a complement operation of one, and may perform a two-part complement operation. Therefore, any arithmetic operation performed by the arithmetic unit 103 is within the scope of the present invention.

請參閱第四圖,其係為本發明之第二實施例之影像亮度調整 電路的方塊圖,如圖所示,本實施例與第一實施例不同之處,在於此實施例之影像亮度調整電路中更包含一第二調整電路70。第二調整電路70接收該些輸入色彩值(R、G、B),並將該些輸入色彩值(R、G、B)之一最小值乘以一第二增益值GW而產生一第二調整值Y。 Please refer to FIG. 4 , which is a block diagram of an image brightness adjustment circuit according to a second embodiment of the present invention. As shown in the figure, the image brightness adjustment in this embodiment is different from the first embodiment. The circuit further includes a second adjustment circuit 70. The second adjusting circuit 70 receives the input color values (R, G, B), and multiplies a minimum value of the input color values (R, G, B) by a second gain value G W to generate a first Second, adjust the value Y.

承上所述,第二調整電路70包含一第二選擇單元701以及一第二增益調整單元703。第二選擇單元701接收該些輸入色彩值(R、G、B),並選擇該些輸入色彩值(R、G、B)之一最小值,並將最小值輸出至第二增益調整單元703。第二增益調整單元703接收最小值,並將最小值乘以第二增益值GW而產生第二調整值Y,並輸出第二調整值Y至加法單元30。其中,第二增益調整單元703為一乘法器,但是亦可為一內存有增益值之暫存器,而第二增益值GW為-1至1間之任意數。 As described above, the second adjustment circuit 70 includes a second selection unit 701 and a second gain adjustment unit 703. The second selection unit 701 receives the input color values (R, G, B), selects one of the input color values (R, G, B), and outputs the minimum value to the second gain adjustment unit 703. . The second gain adjustment unit 703 receives the minimum value, multiplies the minimum value by the second gain value G W to generate the second adjustment value Y, and outputs the second adjustment value Y to the addition unit 30. The second gain adjustment unit 703 is a multiplier, but may also be a register with a gain value stored therein, and the second gain value G W is an arbitrary number between -1 and 1.

接著,加法單元30之第一加法器301接收紅色輸入色彩值R、第一調整值X與第二調整值Y,並將紅色輸入色彩值R、第一調整值X與第二調整值Y相加而產生紅色輸出色彩值R',第二加法器303接收綠色輸入色彩值G、第一調整值X與第二調整值Y,並將綠色輸入色彩值G、第一調整值X與第二調整值Y相加而產生綠色輸出色彩值G',第三加法器305接收藍色輸入色彩值B、第一調整值X與第二調整值Y,並將藍色輸入色彩值B、第一調整值X與第二調整值Y相加而產生藍色輸出色彩值B',而輸出色彩值(R'、G'、B')可表示為(R+X+Y、G+X+Y、B+X+Y)。 Next, the first adder 301 of the adding unit 30 receives the red input color value R, the first adjustment value X and the second adjustment value Y, and inputs the red input color value R, the first adjustment value X and the second adjustment value Y. Adding a red output color value R', the second adder 303 receives the green input color value G, the first adjustment value X and the second adjustment value Y, and inputs the green input color value G, the first adjustment value X and the second The adjustment value Y is added to generate a green output color value G', and the third adder 305 receives the blue input color value B, the first adjustment value X and the second adjustment value Y, and inputs the blue color value B, the first The adjustment value X is added to the second adjustment value Y to produce a blue output color value B', and the output color value (R', G', B') can be expressed as (R+X+Y, G+X+Y) , B+X+Y).

請一併參閱第五圖,其顯示本發明之第二實施例之影像亮度調整電路之紅色輸入色彩值R、綠色輸入色彩值G、藍色輸入色彩值B、第一調整值X、第二調整值Y、紅色輸出色彩值R'、綠色輸 出色彩值G'與藍色輸出色彩值B'間的關係。其中,垂直軸上之值255是色彩值之上限,若紅色輸入色彩值R為155,綠色輸入色彩值G為95,藍色輸入色彩值B為35,而第一增益值GK設定為0.5、第二增益值GW設定為-0.6(圖中未示)時,該些輸入色彩值(R、G、B)的最大值與最小值分別為紅色輸入色彩值R為155與藍色輸入色彩值B為35。之後,對該些輸入色彩值(R、G、B)中之最大值進行1的補數運算後,乘以第一增益值GK而產生第一調整值X,X=(255-R)*GK,X=(255-155)*0.5=50,將該些輸入色彩值(R、G、B)中之最小值乘以第二增益值GW而輸出一第二調整值Y,也就是Y=B*GW,Y=35*(-0.6)=-21,接著將第一調整值X與第二調整值Y分別加至該些輸入色彩值(R、G、B)而產生該些輸出色彩值(R'、G'、B'),即紅色輸出色彩值R'=R+X+Y=155+50-21=184,綠色輸出色彩值G'=G+X+Y=95+50-21=124,藍色輸出色彩值B'=B+X+=35+50-21=64。 Please refer to the fifth figure, which shows the red input color value R, the green input color value G, the blue input color value B, the first adjustment value X, and the second of the image brightness adjustment circuit of the second embodiment of the present invention. The relationship between the adjustment value Y, the red output color value R', the green output color value G', and the blue output color value B'. Wherein, the value 255 on the vertical axis is the upper limit of the color value. If the red input color value R is 155, the green input color value G is 95, the blue input color value B is 35, and the first gain value G K is set to 0.5. When the second gain value G W is set to -0.6 (not shown), the maximum and minimum values of the input color values (R, G, B) are respectively red input color value R is 155 and blue input. The color value B is 35. Then, after performing a 1's complement operation on the maximum value of the input color values (R, G, B), multiplying the first gain value G K to generate a first adjustment value X, X=(255-R) *G K , X=(255-155)*0.5=50, multiplying the minimum of the input color values (R, G, B) by the second gain value G W and outputting a second adjustment value Y, That is, Y=B*G W , Y=35*(-0.6)=-21, and then the first adjustment value X and the second adjustment value Y are respectively added to the input color values (R, G, B). The output color values (R', G', B') are generated, that is, the red output color value R'=R+X+Y=155+50-21=184, and the green output color value G'=G+X+ Y=95+50-21=124, blue output color value B'=B+X+=35+50-21=64.

由上述可知,由於本發明之第二實施例是將輸入色彩值(R、G、B)中之最大值做1的補數運算後,乘以第一增益值GK而得到第一調整值X,並將輸入色彩值(R、G、B)中之最小值乘以第二增益值GW而得到第二調整值Y,接著再將第一調整值X與第二調整值Y分別加至輸入色彩值(R、G、B)中,其中,對最大值取1的補數也就是用色彩值之上限255減去最大值,而GK與GW為-1至1間之任意數,因此,於此實施例中將GK設定為正數,將GW設定為負數之情況中,將補數運算後之最大值乘以GK所得之第一調整值X與將最小值乘以GW所得之第二調整值Y,加至輸入色彩值(R、G、B)所得之輸出色彩值(R'、G'、B')必然不會超過上限值255,所以本發明不會產生亮度過飽和的問題。 As can be seen from the above, since the second embodiment of the present invention performs the complement operation of the maximum value of the input color values (R, G, B) by 1, multiplying the first gain value G K to obtain the first adjustment value. X, and multiplying the minimum value of the input color values (R, G, B) by the second gain value G W to obtain the second adjustment value Y, and then adding the first adjustment value X and the second adjustment value Y, respectively. To the input color value (R, G, B), where the complement of the maximum value is 1 is the upper limit of the color value 255 minus the maximum value, and G K and G W are between -1 and 1 Therefore, in this embodiment, G K is set to a positive number, and in the case where G W is set to a negative number, the first adjustment value X obtained by multiplying the maximum value after the complement operation by G K is multiplied by the minimum value. The second adjustment value Y obtained by G W , the output color value (R′, G′, B′) obtained by adding the input color value (R, G, B) must not exceed the upper limit value 255, so the present invention There is no problem with over-saturation of the brightness.

請一併參閱第六圖,其顯示本發明之第三實施例之影像亮度調整電路之紅色輸入色彩值R、綠色輸入色彩值G、藍色輸入色彩值B、第一調整值X、第二調整值Y、紅色輸出色彩值R'、綠色輸出色彩值G'與藍色輸出色彩值B'間的關係,此實施例與第二實施例之差異僅在於,此實施例將第一增益值GK設定為-0.5,而將第二增益值GW設定為0.6。之後,對該些輸入色彩值(R、G、B)中之最大值進行1的補數運算後,乘以第一增益值GK而產生第一調整值X,X=(255-R)*GK,X=(255-155)*(-0.5)=-50,將該些輸入色彩值(R、G、B)中之最小值乘以第二增益值GW而輸出一第二調整值Y,也就是Y=B*GW,Y=35*0.6=21,接著將第一調整值X與第二調整值Y分別加至該些輸入色彩值(R、G、B)而產生該些輸出色彩值(R'、G'、B'),即紅色輸出色彩值R'=R+X+Y=155-50+21=126,綠色輸出色彩值G'=G+X+Y=95-50+21=66,藍色輸出色彩值B'=B+X+=35-50+21=6。 Please refer to the sixth figure, which shows the red input color value R, the green input color value G, the blue input color value B, the first adjustment value X, and the second of the image brightness adjustment circuit of the third embodiment of the present invention. The relationship between the adjustment value Y, the red output color value R', the green output color value G' and the blue output color value B', this embodiment differs from the second embodiment only in that the first gain value is used in this embodiment. G K is set to -0.5, and the second gain value G W is set to 0.6. Then, after performing a 1's complement operation on the maximum value of the input color values (R, G, B), multiplying the first gain value G K to generate a first adjustment value X, X=(255-R) *G K , X=(255-155)*(-0.5)=-50, multiplying the minimum of the input color values (R, G, B) by the second gain value G W and outputting a second Adjusting the value Y, that is, Y=B*G W , Y=35*0.6=21, and then adding the first adjustment value X and the second adjustment value Y to the input color values (R, G, B), respectively. The output color values (R', G', B') are generated, that is, the red output color value R'=R+X+Y=155-50+21=126, and the green output color value G'=G+X+ Y=95-50+21=66, blue output color value B'=B+X+=35-50+21=6.

由上述可知,於第三實施例中將GK設定為負數,將GW設定為正數之情況中,將補數運算後之最大值乘以GK所得之第一調整值X與將最小值乘以GW所得之第二調整值Y,加至輸入色彩值(R、G、B)所得之輸出色彩值(R'、G'、B')為將影像調暗。 As can be seen from the above, in the third embodiment, G K is set to a negative number, and in the case where G W is set to a positive number, the first adjustment value X obtained by multiplying the maximum value after the complement operation by G K and the minimum value are obtained. The second adjustment value Y obtained by multiplying G W is added to the output color values (R', G', B') of the input color values (R, G, B) to dim the image.

另外,請一併參閱第七(A)圖至第九(B)圖,其中第八(A)圖為本發明之第二與第三實施例之影像亮度調整電路調整前之影像示意圖,也就是輸入色彩值(R、G、B)為(155、95、35)之影像,第八(B)圖則為其對應之影像直方圖,而第七(A)、(B)圖為第二實施例調整後之影像示意圖及其直方圖,第九(A)、(B)則為第三實施例調整後之影像示意圖及其直方圖。 In addition, please refer to the seventh (A) to ninth (B) drawings, wherein the eighth (A) is a schematic diagram of the image before the adjustment of the image brightness adjusting circuit of the second and third embodiments of the present invention, That is, the input color value (R, G, B) is the image of (155, 95, 35), the eighth (B) chart is the corresponding image histogram, and the seventh (A), (B) is the first The image diagram and its histogram after adjustment in the second embodiment, and the ninth (A) and (B) are the image diagrams and their histograms of the third embodiment.

如第七(A)圖與第八(A)圖所示,經本發明之第二實施例的亮 度調整後,第七(A)圖的亮度明顯高於第八(A)圖,且不會有亮度過飽和的問題。 As shown in the seventh (A) and eighth (A) drawings, the brightening of the second embodiment of the present invention After the degree adjustment, the brightness of the seventh (A) picture is significantly higher than the eighth (A) picture, and there is no problem of over-saturation of the brightness.

而從第九(A)圖與第八(A)圖可看出,經本發明之第三實施例的亮度調整後,第九(A)圖的亮度明顯低於第八(A)圖,且從第九(B)圖與第八(B)圖可得知,經過第三實施例將第一增益值GK設定為負數而將第二增益值GW設定為正數之方式調整後,其亮點會較第八(B)圖(調整前)為向右移,而其暗點會較第八(B)圖(調整前)為向左移,也就是直方圖的寬度拉長,而使影像的對比度增加。 As can be seen from the ninth (A) and eighth (A) diagrams, after the brightness adjustment of the third embodiment of the present invention, the brightness of the ninth (A) picture is significantly lower than the eighth (A) picture, and As can be seen from the ninth (B) and eighth (B) diagrams, after the first gain value G K is set to a negative number and the second gain value G W is set to a positive number by the third embodiment, The bright spot will shift to the right compared to the eighth (B) map (before adjustment), and the dark point will shift to the left as compared to the eighth (B) map (before adjustment), that is, the width of the histogram is elongated, and The contrast of the image is increased.

綜上所述,本發明之影像亮度調整電路,其利用將該些輸入色彩值中之最大值作1的補數運算後乘以第一增益值而得到第一調整值,再將第一調整值分別加至該些輸入色彩值中,以達到對影像進行亮度調整的目的。由於,第一增益值為-1至1間之任意數,所以第一調整值為最大值進行1的補數運算後再乘以一個-1至1間的值所得之值,因此,第一調整值加至輸入色彩值中所得之輸出色彩值必然不會超過色彩值的上限。且,本發明之影像亮度調整電路更可將該些輸入色彩值中之最小值乘以第二增益值後所得到之第二調整值與第一調整值分別加至該些輸入色彩值中,以達到對影像進行亮度調整的目的。藉由上述之方式本發明之影像亮度調整電路不僅可達到對影像進行亮度調整的目的,且更可解決習知亮度調整之裝置會有亮度過飽和的問題。 In summary, the image brightness adjustment circuit of the present invention obtains the first adjustment value by multiplying the maximum value of the input color values by 1 and multiplying the first gain value, and then adjusting the first adjustment value. Values are added to the input color values to achieve the purpose of brightness adjustment of the image. Since the first gain value is an arbitrary number between -1 and 1, the first adjustment value is a value obtained by performing a complement operation of 1 and multiplying by a value between -1 and 1, so that the first value is The output color value obtained by adding the adjustment value to the input color value must not exceed the upper limit of the color value. Moreover, the image brightness adjustment circuit of the present invention may further add the second adjustment value obtained by multiplying the minimum value of the input color values by the second gain value and the first adjustment value to the input color values, respectively. In order to achieve the purpose of brightness adjustment of the image. In the above manner, the image brightness adjustment circuit of the present invention can not only achieve the purpose of brightness adjustment of the image, but also solve the problem that the device for conventional brightness adjustment has over-saturation of brightness.

惟以上所述者,僅為本發明之一較佳實施例而已,並非用來限定本發明實施之範圍,舉凡依本發明申請專利範圍所述之形狀、構造、特徵及精神所為之均等變化與修飾,均應包括於本發明之申請專利範圍內。 However, the above description is only a preferred embodiment of the present invention, and is not intended to limit the scope of the present invention, and the shapes, structures, features, and spirits described in the claims are equivalently changed. Modifications are intended to be included in the scope of the patent application of the present invention.

本發明係實為一具有新穎性、進步性及可供產業利用者,應 符合我國專利法所規定之專利申請要件無疑,爰依法提出發明專利申請,祈 鈞局早日賜准專利,至感為禱。 The invention is a novelty, progressive and available for industrial use, and should be In accordance with the requirements of patent applications stipulated in China's Patent Law, it is undoubtedly the application for invention patents in accordance with the law, and the praying office will grant patents as soon as possible.

10‧‧‧第一調整電路 10‧‧‧First adjustment circuit

101‧‧‧第一選擇單元 101‧‧‧First choice unit

103‧‧‧運算單元 103‧‧‧ arithmetic unit

105‧‧‧第一增益調整單元 105‧‧‧First gain adjustment unit

30‧‧‧加法單元 30‧‧‧Addition unit

301‧‧‧第一加法器 301‧‧‧First Adder

303‧‧‧第二加法器 303‧‧‧Second adder

305‧‧‧第三加法器 305‧‧‧ third adder

50‧‧‧顯示面板 50‧‧‧ display panel

Claims (8)

一種影像亮度調整電路,其包含:一第一調整電路,接收複數輸入色彩值,並將該些輸入色彩值之一最大值進行補數運算,以產生一第一調整值;一加法單元,耦接該第一調整電路據以接收該第一調整值與該些輸入色彩值,並將該第一調整值加至該些輸入色彩值而產生複數輸出色彩值;以及一第二調整電路,接收該些輸入色彩值,並選擇該些輸入色彩值之一最小值而乘以一增益值而產生一第二調整值,並傳送該第二調整值至該加法單元,該加法單元更將該第二調整值分別加至該些輸入色彩值而調整該些輸出色彩值;其中,該第一調整值與該第二調整值之一為正值,且另一為負值。 An image brightness adjustment circuit, comprising: a first adjustment circuit, receiving a plurality of input color values, and performing a complement operation on a maximum value of the input color values to generate a first adjustment value; an adding unit, coupling Receiving the first adjustment circuit to receive the first adjustment value and the input color values, and adding the first adjustment value to the input color values to generate a complex output color value; and a second adjustment circuit to receive Inputting a color value, selecting a minimum value of the input color values, multiplying a gain value to generate a second adjustment value, and transmitting the second adjustment value to the adding unit, the adding unit further The two adjustment values are respectively added to the input color values to adjust the output color values; wherein, one of the first adjustment values and the second adjustment value is a positive value, and the other is a negative value. 如申請專利範圍第1項所述之影像亮度調整電路,其中該第一調整電路對該些輸入色彩值之該最大值進行1的補數運算。 The image brightness adjustment circuit of claim 1, wherein the first adjustment circuit performs a 1's complement operation on the maximum value of the input color values. 如申請專利範圍第1項所述之影像亮度調整電路,其中該第一調整電路包含:一第一選擇單元,接收該些輸入色彩值,並選擇該些輸入色彩值之該最大值而輸出;以及一運算單元,接收該第一選擇單元輸出之該些輸入色彩值之該最大值,並對該第一選擇單元輸出之該些輸入色彩值之該最大值進行補數運算,以產生該第一調整值。 The image brightness adjustment circuit of claim 1, wherein the first adjustment circuit comprises: a first selection unit, receiving the input color values, and selecting the maximum value of the input color values for output; And an operation unit, receiving the maximum value of the input color values output by the first selection unit, and performing a complement operation on the maximum value of the input color values output by the first selection unit to generate the first An adjustment value. 如申請專利範圍第3項所述之影像亮度調整電路,其中該第一調整電路更包含:一第一增益調整單元,接收該運算單元產生之一運算值,並將該運算值乘以一增益值而輸出該第一調整值。 The image brightness adjustment circuit of claim 3, wherein the first adjustment circuit further comprises: a first gain adjustment unit, receiving the operation unit to generate an operation value, and multiplying the operation value by a gain The first adjustment value is output as a value. 如申請專利範圍第4項所述之影像亮度調整電路,其中該第一增益調整單元之該增益值為-1至1間之一任意數。 The image brightness adjustment circuit of claim 4, wherein the gain value of the first gain adjustment unit is any one of -1 to 1. 如申請專利範圍第4項所述之影像亮度調整電路,其中該第一增益調整單元為一暫存器或一乘法器。 The image brightness adjustment circuit of claim 4, wherein the first gain adjustment unit is a register or a multiplier. 如申請專利範圍第1項所述之影像亮度調整電路,其中該第二調整電路包含:一第二選擇單元,接收該些輸入色彩值,並選擇該些輸入色彩值之該最小值而輸出;以及一第二增益調整單元,接收該最小值,並將該最小值乘以該增益值而產生該第二調整值。 The image brightness adjustment circuit of claim 1, wherein the second adjustment circuit comprises: a second selection unit that receives the input color values and selects the minimum value of the input color values for output; And a second gain adjustment unit that receives the minimum value and multiplies the minimum value by the gain value to generate the second adjustment value. 如申請專利範圍第1項所述之影像亮度調整電路,其中該增益值為-1至1間之一任意數。 The image brightness adjustment circuit of claim 1, wherein the gain value is any one of -1 to 1.
TW101136425A 2012-10-02 2012-10-02 Image brightness adjustment circuit TWI566232B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
TW101136425A TWI566232B (en) 2012-10-02 2012-10-02 Image brightness adjustment circuit

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
TW101136425A TWI566232B (en) 2012-10-02 2012-10-02 Image brightness adjustment circuit

Publications (2)

Publication Number Publication Date
TW201415454A TW201415454A (en) 2014-04-16
TWI566232B true TWI566232B (en) 2017-01-11

Family

ID=55182085

Family Applications (1)

Application Number Title Priority Date Filing Date
TW101136425A TWI566232B (en) 2012-10-02 2012-10-02 Image brightness adjustment circuit

Country Status (1)

Country Link
TW (1) TWI566232B (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5712659A (en) * 1994-06-09 1998-01-27 Mitsubishi Denki Kabushiki Kaisha Apparatus and method for adjusting contrast of R,G,B signals
TW200643848A (en) * 2005-06-01 2006-12-16 Wintek Corp Method and apparatus for four-color data conversion
TW200712627A (en) * 2005-09-22 2007-04-01 Au Optronics Corp Display panel and method to improve viewing quality thereof
TW200715874A (en) * 2005-09-29 2007-04-16 Sony Corp Display image correcting device, image display device, and display image correcting method
TW200818873A (en) * 2006-10-11 2008-04-16 Realtek Semiconductor Corp Image adjustment apparatus and method thereof

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5712659A (en) * 1994-06-09 1998-01-27 Mitsubishi Denki Kabushiki Kaisha Apparatus and method for adjusting contrast of R,G,B signals
TW200643848A (en) * 2005-06-01 2006-12-16 Wintek Corp Method and apparatus for four-color data conversion
TW200712627A (en) * 2005-09-22 2007-04-01 Au Optronics Corp Display panel and method to improve viewing quality thereof
TW200715874A (en) * 2005-09-29 2007-04-16 Sony Corp Display image correcting device, image display device, and display image correcting method
TW200818873A (en) * 2006-10-11 2008-04-16 Realtek Semiconductor Corp Image adjustment apparatus and method thereof

Also Published As

Publication number Publication date
TW201415454A (en) 2014-04-16

Similar Documents

Publication Publication Date Title
US9666113B2 (en) Display, image processing unit, and display method for improving image quality
US9940870B2 (en) Display unit, image processing unit, and display method for improving image quality
US10347198B2 (en) Image displaying methods and display devices
TWI399100B (en) Image processing method
US20070076226A1 (en) Smart clipper for mobile displays
WO2007069478A1 (en) Image processing device and image display device
WO2017101534A1 (en) Colour signal conversion method and device for liquid crystal display screen
CN109637437B (en) Image display control method, device, medium and display screen control system
JPWO2009075027A1 (en) Luminance information display apparatus and method
JP5878586B2 (en) Image color adjustment method and electronic apparatus therefor
JP2013015848A (en) Color calibrator of display device
WO2019179059A1 (en) Fuzzy control-based saturation enhancement method and device
US7911486B2 (en) Method and device for images brightness control, image processing and color data generation in display devices
TWI424426B (en) Method for adjusting the color of image
CN107274857B (en) Method for adjusting output image of display and display system
WO2016165357A1 (en) Image processing method and apparatus, terminal and storage medium
JP2007259434A (en) Image processing apparatus and method of the same
TWI566232B (en) Image brightness adjustment circuit
US8284316B2 (en) Real-time image processing circuit capable of enhancing brightness contrast and color saturation
CN103021375B (en) Image intensity regulating circuit
US9626892B2 (en) Optimization method and system of real-time LCD white balance selection
CN112581914B (en) Image processing method and device
TWI544451B (en) Image processing method
TWI475555B (en) Display system and method for controlling display unit
TWI610575B (en) Image processing apparatus and image processing method

Legal Events

Date Code Title Description
MM4A Annulment or lapse of patent due to non-payment of fees