[go: up one dir, main page]

TW200818926A - Transformation method of a multiple primary color signal and color transformation device using the same - Google Patents

Transformation method of a multiple primary color signal and color transformation device using the same Download PDF

Info

Publication number
TW200818926A
TW200818926A TW95137796A TW95137796A TW200818926A TW 200818926 A TW200818926 A TW 200818926A TW 95137796 A TW95137796 A TW 95137796A TW 95137796 A TW95137796 A TW 95137796A TW 200818926 A TW200818926 A TW 200818926A
Authority
TW
Taiwan
Prior art keywords
value
color
grayscale
values
gray scale
Prior art date
Application number
TW95137796A
Other languages
Chinese (zh)
Inventor
Kuo-Hsuan Peng
you-ye Chen
Original Assignee
Chi Mei Optoelectronics Corp
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 Chi Mei Optoelectronics Corp filed Critical Chi Mei Optoelectronics Corp
Priority to TW95137796A priority Critical patent/TW200818926A/en
Publication of TW200818926A publication Critical patent/TW200818926A/en

Links

Landscapes

  • Image Processing (AREA)

Abstract

A transformation method of a multiple primary color signal is for transforming at least three input grayscale values I_1, I_2, and I_3 of the multiple primary color signal. First, the input grayscale values I_1, I_2, and I_3 are compared, meanwhile among the input grayscale values, I_i is set as a maximal input grayscale value, I_j is set as a medium input grayscale value, and I_k is set as a minimal input grayscale value. Then, three compensation values δI_i, δ I_j, and δI_k respectively for the maximal, medium, and minimal input grayscale values I_i, I_j, and I_k are calculated. Next, output grayscale values O_i, O_j, and O_k respectively corresponding to the maximal, medium, and minimal input grayscale values I_I, I_j, and I_k are determined, such that O_i=I_i+δI_I, O_j=I_j-δI_j, and O_k=I_k-δI_k. Finally, magnitudes of the three output grayscale values O_i, O_j, and O_k are determined, meanwhile one of the three output grayscale values O_i, O_j, and O_k, which is larger than a maximal grayscale value, is set as the maximal grayscale value, or one of the three output grayscale values O_i, O_j, and O_k, which is smaller than a minimal grayscale value, is set as the minimal grayscale value.

Description

200818926,200818926,

—* iW2879PA ‘ 九、發明說明: 【發明所屬之技術領域】 本發明是有關於一種多原色訊號之轉換方法及應用 其之色彩轉換裝置,且特別是有關於一種轉換多原色訊號 之輸入灰階值的方法及應用其之色彩轉換裝置。 【先前技術】 傳統的顯示器多採用具紅色(Red; R)、綠色(Green· ⑩ G)、及藍色(Blue; B)之二原色晝素陣列之顯示面板,欲顯 示之影像資料亦以代表三原色之數位訊號如灰階值 (grayscale value)等輸出至顯示器,使對應之晝素顯出正確 的色彩。 但不同的顯示器對同樣的三原色訊號可能具有不同 的顯色能力,例如色域較小的手機或筆記型電腦螢幕會有 影像顏色不飽和的失真問題,而色域過大的有激發光二極 體顯示器專,反之有色彩過飽和的情形。且在不同的使用 領域中,使用者對色彩偏好的要求也可能不同。所以顯示 器大夕均對原始的二原色訊號做進一步的處理,例如根據 微軟(Microsoft)及惠普(Hewlett-Packard)公司所合作公佈 的標準sRGB色空間來予以調整及校正後再行輸出,以在 硬體所能呈現的色域中顯出最佳色彩。-* iW2879PA ' IX. Description of the Invention: [Technical Field] The present invention relates to a method for converting a multi-primary color signal and a color conversion device using the same, and more particularly to an input gray scale for converting a multi-primary signal The method of value and the color conversion device using the same. [Prior Art] Conventional displays mostly use display panels with red (R), green (Green 10 G), and blue (Blue; B) primaries. The image data to be displayed is also A digital signal representing the three primary colors, such as a grayscale value, is output to the display so that the corresponding pixel displays the correct color. However, different monitors may have different color rendering capabilities for the same three primary color signals. For example, a mobile phone or a notebook screen with a small color gamut may have distortion of image color saturation, and an gamut with an excitation light diode display. Special, and vice versa. And in different fields of use, users may have different requirements for color preferences. Therefore, the monitor will further process the original two primary color signals, for example, according to the standard sRGB color space published by Microsoft and Hewlett-Packard, and then output and output. The best color is displayed in the color gamut that the hardware can present.

其中,較貼近人眼實際感受的色彩系統為HSV空間, 即採用色相(Hue; H)、彩度(Chromaticity 或 Saturation; S)、 及亮度(Value; V)的表示法。因此現行技術•多將代表RGBAmong them, the color system that is closer to the human eye actually feels HSV space, that is, the representation of hue (H), chroma (Chromaticity or Saturation; S), and brightness (Value; V). So the current technology • will represent RGB

TW2879PA 6 200818926TW2879PA 6 200818926

—逆刪肌,rW2879PA % 三原色之輸入訊號轉換至對應之HSV空間作處理,例如 增強彩度S值後,再將輸入訊號轉換回以RGb三原色表 示之色彩空間。 然而,根據色彩學的定義所發展出的RGB空間與Hsv 空間之間的轉換關係為一種非線性轉換。所以,對於執行 轉換功能的硬體必然造成一定的負擔量,使訊號的處理效 率無法有效提升。此外,亦有利用查表法減少硬體所執行 的非線性運异’但此種查表法屬三維查表法,所需使用的 内插法及佔用的記憶體皆相當龐大,並不符合成本考量。 因此,如何以較少的硬體資源達到高效率的三原色訊 唬之處理運算,而控制顯示器之顯現色彩,實為目前業界 欲積極達成之目標。^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ , 【發明内容】 有鑑於此,本發明的目的就是在提供一種多原色訊號 之轉換方法及應用其之色彩轉換裝置。係依據Hsv空間 的釤度定義,例如在rgb空間裡直接轉換影像之三原色 訊號之輪入灰階值而輸出至顯示面板。藉此,除了以較經 硬體資源達到高效率的訊號處理運算,違到降低成本 合電路實現效益外,且能任意調整多原色訊號所呈現 得到==以顯示面板之不同顯色能力而使 、夕’、色訊號之至少三輪人灰階值㈣yscale- Destroy the muscle, rW2879PA % The input signals of the three primary colors are converted to the corresponding HSV space for processing. For example, after the saturation S value is increased, the input signal is converted back to the color space represented by the three primary colors of RGb. However, the conversion relationship between the RGB space and the Hsv space developed according to the definition of color science is a nonlinear transformation. Therefore, the hardware that performs the conversion function inevitably imposes a certain amount of burden, so that the processing efficiency of the signal cannot be effectively improved. In addition, there is also a use of look-up table method to reduce the nonlinearity of the hardware implementation. However, this type of look-up method is a three-dimensional table lookup method. The interpolation method and the memory used are quite large and do not meet the requirements. Cost considerations. Therefore, how to achieve high-efficiency processing of the three primary color signals with less hardware resources and control the display color of the display is the current goal of the industry. ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^, SUMMARY OF THE INVENTION In view of the above, an object of the present invention is to provide a method for converting a multi-primary color signal and a color conversion device using the same. It is defined according to the degree of Hsv space. For example, in the rgb space, the rounded grayscale values of the three primary color signals of the image are directly converted and output to the display panel. In this way, in addition to achieving high-efficiency signal processing operations with more hardware resources, the cost reduction and circuit realization benefits are eliminated, and the multi-primary color signals can be arbitrarily adjusted to obtain == with different color rendering capabilities of the display panel. At least three rounds of grayscale values of the eve, and the color signal (four) yscale

TW2879PA 200818926TW2879PA 200818926

:W2879PA value)I__l、I—2、及1—3。首先,判斷此些輸入灰階值〗工、 1一2、及I一3之一大小關係,並設定i—i為此些輪入灰階值 之一最大輸入灰階值、IJ為此些輸入灰階值之—中間輸入 灰階值值、及I—k為此些輪入灰階值之一最小輪入灰階值 值。接著,計算I_i、IJ、及I一k之三補償量,三補償量 分別為5I-i、5IJ、及dl—k。然後’決定最大輪入灰階 值I-i、中間輸入灰階值值IJ、及最小輸入灰階值值卫k 之對應輸出灰階值Oj'Oj、及〇_k,使得CUh=IJ+(5I「 _ 0」=u- 5 IJ、及〇-k=I〜k_ 5 I-k。最後,判斷此些輸出灰 階值0-i、0J、及O—k之大小,若〇—i、〇」、或〇 k大 於最大灰階值,則設定此些輸出灰階值〇一i、0J、或〇 k 為最大灰階值,若0一i、0J、或O—k小於最小灰階值, 則設定此些輸出灰階值〇J、0J、或Ο-k為最小灰階值。 根據本發明的另一目的,提出一種色彩轉換裝置,用 以轉換多原色訊號之至少三輸入灰階值(grayseale、 馨―狀)1」、I—2、及1一3為對應之三輸出灰階值〇—i、OJ、 及O—k。色彩轉換裝置包括輸入單元、控制單元、記憶單 元、計算單元以及輸出單元。輸入單元用以接收多原色訊 號。控制單元板據多原色訊號之此些輸入灰階值I丨、1 2、 — — 及IJ3產生記憶體位址及選擇訊號。記憶單元係儲存有至 少一個一維查詢表,並根據一維查詢表、記憶體位址及選 擇訊號輸出對應資料。計算單元根據對應資料計算出此些 輸出灰階值Oj、0J、及OJk。輸出單元用以輸出此些輸 出灰階值〇」、〇」、及〇_k。其中,此些輸入灰階值1_1、 TW2879PA 8:W2879PA value) I__l, I-2, and 1-3. First, determine the size relationship of the input grayscale value, 1-2, and I-3, and set i-i to enter the grayscale value of one of the grayscale values, IJ for this. Enter the grayscale value—the intermediate input grayscale value, and I—k the minimum rounded grayscale value for one of the rounded grayscale values. Next, three compensation amounts of I_i, IJ, and I-k are calculated, and the three compensation amounts are 5I-i, 5IJ, and dl-k, respectively. Then 'determine the maximum rounding grayscale value Ii, the intermediate input grayscale value IJ, and the minimum input grayscale value value k corresponding output grayscale values Oj'Oj, and 〇_k, so that CUh=IJ+(5I" _ 0"=u- 5 IJ, and 〇-k=I~k_ 5 Ik. Finally, determine the size of the output grayscale values 0-i, 0J, and O-k, if 〇-i, 〇", Or 〇k is greater than the maximum grayscale value, then set the output grayscale values 〇i, 0J, or 〇k to the maximum grayscale value, if 0i, 0, or O_k is less than the minimum grayscale value, then Setting such output grayscale values 〇J, 0J, or Ο-k as the minimum grayscale value. According to another object of the present invention, a color conversion device is provided for converting at least three input grayscale values of a multi-primary color signal ( Grayseale, 馨-like) 1", I-2, and 1-3 are the corresponding three output grayscale values 〇—i, OJ, and O—k. The color conversion device includes an input unit, a control unit, a memory unit, and a calculation. The unit and the output unit are configured to receive the multi-primary color signal. The control unit board generates the memory according to the input gray scale values I丨, 1 2, — and IJ3 of the multi-primary signal. Address and selection signal. The memory unit stores at least one one-dimensional lookup table, and outputs corresponding data according to the one-dimensional lookup table, the memory address and the selection signal. The calculation unit calculates the output grayscale values Oj, 0J according to the corresponding data. And OJk. The output unit is configured to output the output grayscale values 〇", 〇", and 〇_k, wherein the input grayscale values 1_1, TW2879PA 8

W2879PA 200818926 I一2、及1—3係對應色彩三角形之一色彩座標,色彩三角形 具有數個色相區,對應此些輸入灰階值][—!、、及k3 之色彩座標係位於此些色相區其中之一色相區。控制單元 係根據色彩座標及色相區以產生記憶體位址及選擇訊號。 為讓本發明之上述目的、特徵、和優點能更明顯易 懂,下文特舉較佳實施例,並配合所附圖式,作詳細說明 如下: 【實施方式】 本發明係提出一種多原色訊號之轉換方法及應用其 之色彩轉換裝置。主要基於HSV空間之彩度定義,直接 於例如RGB空間裡轉換所輸入之三原色訊號之輸入灰階 值再輸出至顯示面板。此外,僅使甩一維查表法及少量的 乘法與加法運算,以較經濟的硬體資源達到高效率的訊號 處理運算。藉此,能任意調整多原色訊號之彩度,減少各 種顯示面板因不同顯色能力而產生的色彩失真問題,並在 顯示器所能呈現的色域中顯出最佳之色彩。 請參照第1圖,其繪示乃依照本發明之多原色訊號之 轉換方法的流程圖。主要係轉換多原色訊號之至少三輸入 灰階值(8以75〇&1^¥&1\16)1-1、1_2、及1一3而達到調整色彩 之效果。 如第1圖所示,首先,開始進入步驟110,判斷此些 輸入灰階值I 1、I 2、及1_3之一大小關係,並設定I i — — 、 一 為此些輸入灰階值之一最大輸入灰階值、IJ為此些輸入灰 TW2879PA 9 200818926,W2879PA 200818926 I-2, and 1-3 correspond to one color coordinate of the color triangle. The color triangle has several hue regions, corresponding to the input gray scale values][-!, and k3 color coordinates are located in these hue One of the hue areas of the zone. The control unit generates a memory address and a selection signal based on the color coordinates and the hue area. The above-mentioned objects, features, and advantages of the present invention will become more apparent and understood. The conversion method and the color conversion device using the same. It is mainly based on the chroma definition of the HSV space, and is directly converted to the input grayscale value of the input three primary color signals, for example, in the RGB space, and then output to the display panel. In addition, only one-dimensional look-up table method and a small number of multiplication and addition operations are used to achieve high-efficiency signal processing operations with economical hardware resources. Thereby, the chroma of the multi-primary signal can be arbitrarily adjusted, the color distortion caused by different color rendering capabilities of various display panels can be reduced, and the best color can be displayed in the color gamut that the display can present. Referring to Figure 1, there is shown a flow chart of a method for converting a multi-primary signal in accordance with the present invention. Mainly to convert the multi-primary color signal to at least three input grayscale values (8 to 75 〇 & 1 ^ ¥ & 1 \ 16) 1-1, 1_2, and 1 - 3 to achieve the effect of adjusting the color. As shown in FIG. 1 , first, proceeding to step 110, determining the magnitude relationship of one of the input gray scale values I 1 , I 2 , and 1_3, and setting I i — — , for which the gray scale values are input. A maximum input grayscale value, IJ for this input gray TW2879PA 9 200818926,

—* J.W2879PA • 階值之一中間輸入灰階值、及I_k為此些輸入灰階值之一 最小輸入灰階值。 接著,進入步驟120中,計算Ij、IJ、及I_k之三 補償量,三補償量分別為(5U、(5IJ、及5I_k。 然後,進入步驟130中,決定最大輸入灰階值IJ、中 間輸入灰階值值IJ、及最小輸入灰階值值Lk之對應輸出 灰階值 Ο—i、OJ、及 〇—k,使得 〇—i=I—i+(5 I—i、OJ=IJ-51」、及0』=1_>(51』〇 • 最後,進入步驟140中,判斷此些輸出灰階值〇_i、 0」、及0_k之大小,若〇J、0」、或0_k大於最大灰階 值,則設定此些輸出灰階值OJ、OJ、或ojc為最大灰 階值,若Oj、0J、或0_k小於最小灰階值,則設定此 些輸出灰階值〇j、0J、或〇_k為最小灰階值,而結束 多原色訊號之轉換方法。此步驟140主要避免顯示面板無 法處理具有不正常的輸出灰階值之多原色訊號。 至於步驟120中如何計算三補償量51_卜dlj、及占 • I一k,以下係列舉較佳實施例為例做詳細說明,然下歹丨j文字 與圖示僅為說明之用,並不會限定本發明之欲保護範圍。 ' . ·. ' 1一實施例 於第一實施例中,係以多原色包括一紅色(Red; R)、 一綠色(Green; G)、及一藍色(Blue; B),且 1-1、1—2、及 I 3 係為對應此三原色訊號之輸入灰階值,為例作說明。由 HSV空間的定義可知,彩度(〇11:〇111&1;1(:办)€係為 TW2879PA 10—* J.W2879PA • One of the order values is the intermediate input grayscale value, and I_k is one of the input grayscale values. The minimum input grayscale value. Next, proceeding to step 120, calculating three compensation amounts of Ij, IJ, and I_k, and the three compensation amounts are respectively (5U, (5IJ, and 5I_k. Then, proceeding to step 130, determining the maximum input grayscale value IJ, intermediate input) The grayscale value IJ and the corresponding input grayscale value Lk correspond to the output grayscale values Ο—i, OJ, and 〇—k, such that 〇—i=I—i+(5 I—i, OJ=IJ-51 ”, and 0 』=1_> (51 〇 • Finally, proceed to step 140 to determine the size of the output grayscale values 〇_i, 0”, and 0_k, if 〇J, 0”, or 0_k is greater than the maximum For the grayscale value, set the output grayscale values OJ, OJ, or ojc to the maximum grayscale value. If Oj, 0J, or 0_k is less than the minimum grayscale value, set the output grayscale values 〇j, 0J, Or 〇_k is the minimum grayscale value, and the multi-primary signal conversion method is ended. This step 140 mainly prevents the display panel from being able to process the multi-primary signal having the abnormal output grayscale value. How to calculate the three compensation amount in step 120 51_卜dj, and 占·I_k, the following series of examples are given as a detailed description, but the text and illustration are only The use of the present invention does not limit the scope of protection of the present invention. In the first embodiment, the first primary embodiment includes a red color (Red; R) and a green color (Green; G). And a blue color (Blue; B), and 1-1, 1-2, and I 3 are input gray scale values corresponding to the three primary color signals, for example, as defined by the definition of HSV space, chroma ( 〇11: 〇111&1;1(:do)€ is TW2879PA 10

TW2879PA 200818926 (I—i-I一k) ’且売度v為i—i,而色相η亦以jj、jj、及工k 表示,以下係附圖說明。TW2879PA 200818926 (I-i-I-k) ' and the degree of v is i-i, and the hue η is also represented by jj, jj, and k, which will be described below.

請參照第2圖,其繪示乃依照本發明之色彩三角形示 意圖。係依據HSV空間之定義,取同一亮度之色相_彩度 所構成的色彩三角形平面為例,其中色相以角度表示,彩 度以跟代表白色之w點之距離表示。此外,色彩三角形具 有六色相區p,其中ρ=1,2Λ4,5,6,如第2圖所示。具體 而言:當 P=1 時,I—Id—2>1一3 ;當 ρ=2 時,L2>Ug I一3 ;當 p=3 時,I一2 2 I一3 > L1 ;當 p=4 時,L3 > g 〇 ; § p-5 日$ ’ I一3 g 1—1 > 1一2 ;以及當 p=:6 時,I一l > i一3 ^ i 2。 而位於色相區1〜6其中之一的色彩其色相Hi定義如;: 對於色相區U,5,H,。吟^θ,且0分別為 0°,120°,240° ;以及 對於色相區2,4,6,Η=60°χ. 60。,180。,300、 1-1 1-1 k 且0分別為Referring to Figure 2, there is shown a color triangle in accordance with the present invention. For example, according to the definition of HSV space, take the color triangle plane formed by the hue_chroma of the same brightness as an example, wherein the hue is represented by an angle, and the chroma is represented by the distance from the point w representing white. Further, the color triangle has a six-color phase region p, where ρ = 1, 2 Λ 4, 5, 6, as shown in Fig. 2. Specifically: when P = 1, I - Id - 2 > 1 - 3; when ρ = 2, L2 > Ug I - 3; when p = 3, I - 2 2 I - 3 >L1; When p=4, L3 > g 〇; § p-5 day $ 'I -3 g 1-1 > 1 - 2 ; and when p=:6, I -l > i -3 ^ i 2. The hue of the color located in one of the hue regions 1 to 6 is defined as:; for the hue region U, 5, H,.吟^θ, and 0 is 0°, 120°, 240°, respectively; and for the hue area 2, 4, 6, Η = 60° χ 60. , 180. , 300, 1-1 1-1 k and 0 are respectively

因此,顯然可藉由調整I—i、、及IJc而控制HSV 空間中對應之色彩變化。例如,欲達到僅增加彩度c且維 持色相Η及亮度V之效果,即能以維持u並減少u及 I一k而達成。此時,:[_i、IJ、及IJc之三補償量中係設定 5I_i=0 ,而51」·及51一k亦能以一維查表法得出。於是, 係提供一第一查詢表,第一查詢表係包括數個數對 (x,f(x)) ’其中f函數之定義域範圍為系統所能顯示之一最 小灰階值至一最大灰階值,且值域範圍為最小灰階值至最 大灰階值。例如系統為8位元灰階顯示能力時,則f函數 TW2879PA 11 'Therefore, it is apparent that the corresponding color change in the HSV space can be controlled by adjusting I-i, and IJc. For example, in order to achieve the effect of merely increasing the chroma c and maintaining the hue and the brightness V, it can be achieved by maintaining u and reducing u and I-k. At this time, the [[i], IJ, and IJc three compensation amounts are set to 5I_i=0, and 51"· and 51-k can also be obtained by one-dimensional look-up table method. Therefore, the first query table is provided, and the first query table includes a plurality of pairs (x, f(x)) 'where the domain of the f function is one of the minimum gray scale values to a maximum that the system can display Grayscale value, and the range of values is the minimum grayscale value to the maximum grayscale value. For example, if the system is 8-bit grayscale display capability, then the f function TW2879PA 11 '

fW2879PA 200818926 之定;域,:[:’255]且值域範圍為[叫 明蒼知、弟3圖,其絡千 -查詢表之函數表示圖:第發實,例之第 函數’且定義域範圍為[。,255]及值:心: 作說明。第一查詢表係為代表f函數之圖开;;曲,ϋ為例 標的數對(x,f(x))集合。此時,例如欲取杯= 第3圖所示。㈣表進仃查表而得出,如 =設定三補償量5IJ…」,為: δ IJ: J-i—k 占 I一k=f(I J-IJc) xf(U-I—k);及 (公式1) 如此一來,例如多原色訊號之輸入灰階值U、;[_2 及1_3位於色相區1的話(IJ=I一卜IJ=I—2、及^k=&) 及0-3所具有之色相Ho係為 ~ ]一1 - (/一 3-沒一 3) 一 利用公式1之補償量所決定出之輸出灰階值 而輸入灰階值I 1 ν I 2 -.一. 一二' 及1_3所具有之色相Hi係為e〇xLj-^,且以aqj b=I_2^_3、及 C=U七2(=a_b)作表示,可得 H〇 Hi 為· 60x Φ 一一X (5?_3 + δΙ_3)(ά)- (a + ^_3)(6) (α+沒—3)(α) 亦即’輸出灰階值〇_1、〇_2、及〇_3較輸入灰階 I 1、I 2、及I—3具有較高之彩度,且亮度及色相均維 TW2879PA 12 200818926 二连福航·丄W2879PA 不變。 或者,多原色訊號之輸入灰階值1—1、I一2、及1〜3俊 於色相區2的話(^4—2、、及,利用公式 1之補償量所決定出之輸出灰階值〇j、0-2、及〇〜3所 具有之色相Ho係為 [2 - / 60x 2-/ 3讀-3) ——+6〇 ,而輸入灰階值ij 所具有之色相Hi係為60x’-2 JJ+60,且以 _2、及 ,—2 -/一3 a,=I-2-1-3、b’H-U、及 C’=I_2-I_l(=a,-b,)作表示,可 得Ho-Hi為: —y }㈣-3)气60x座。 (α,+況一 3)(心 —υ 60χ (α’+〇(α,) 同樣可得,輸出灰階值〇 1、〇 2、及〇 3較輪入 維持不Ί。對於色相區3〜6之情形亦可得相同效果。 另一方面,若僅需調整色相而保持亮度及彩度的話, 係可設定三補償量们—i、51」、及5I-k為: δ l_i=0 ; 占 I J=uxf(I—i-I Jj);及 δϊ±=0〇 其中,ιι等於1或]〇 (公式2) 如此一來,例如多原色訊號之輸入灰階值2、 及I—3位於色相區ι(ι—卜I—i、及j—,且欲 增加色相Η的話,則可選定。此時,利用公式2之 TW2879PA 13 工、 200818926fW2879PA 200818926; domain,: [: '255] and the range of the range is [called Ming Cangzhi, brother 3 map, its function of thousands of thousands - lookup table function diagram: the first real, the example of the function 'and definition The domain scope is [. , 255] and value: heart: for explanation. The first lookup table is a graph representing the f function; ; Qu, ϋ is a set of pairs of numbers (x, f(x)). At this time, for example, to take a cup = Figure 3 is shown. (4) If the table is entered into the checklist, if = set the three compensation amount 5IJ...", it is: δ IJ: Ji-k occupies I_k=f(I J-IJc) xf(UI_k); and (formula 1) In this way, for example, the input gray scale value U of the multi-primary color signal; [_2 and 1_3 are located in the hue area 1 (IJ=I_IJ=I-2, and ^k=&) and 0-3 The hue Ho is 0 ~ -1 - (/1 - 3 - 3). The output gray scale value determined by the compensation amount of Equation 1 is input to the gray scale value I 1 ν I 2 -. The hue Hi of the two's and 1_3 is e〇xLj-^, and is represented by aqj b=I_2^_3, and C=U7 (=a_b), and H〇Hi is · 60x Φ An X (5?_3 + δΙ_3)(ά)- (a + ^_3)(6) (α+没有-3)(α), that is, the output grayscale values 〇_1, 〇_2, and 〇_ 3 Compared with the input gray scales I 1 , I 2 , and I - 3 , the chroma is higher, and the brightness and hue are both TW2879PA 12 200818926 Erlianfuhang·W2879PA unchanged. Or, if the input gray scale values of the multi-primary color signals are 1-1, I-2, and 1~3 in the hue area 2 (^4-2, and, the output gray scale determined by the compensation amount of the formula 1) The values 〇j, 0-2, and 〇~3 have hue Ho of [2 - / 60x 2-/ 3 read -3) - +6 〇, and the input gray scale value ij has the hue Hi system Is 60x'-2 JJ+60, and is _2, and, -2 - / -3 a, = I-2-1-3, b'HU, and C' = I_2 - I_l (= a, -b ,) for the representation, you can get Ho-Hi as: -y } (four)-3) gas 60x seat. (α, + condition one 3) (heart - υ 60 χ (α' + 〇 (α,)) is also available, the output gray scale values 〇 1, 〇 2, and 〇 3 are maintained better than the rounds. For the hue area 3 In the case of ~6, the same effect can be obtained. On the other hand, if only the hue needs to be adjusted to maintain the brightness and chroma, the three compensation amounts - i, 51", and 5I-k can be set as: δ l_i = 0 ; IJ=uxf(I—iI Jj); and δϊ±=0〇 where ιι is equal to 1 or 〇(Equation 2). For example, the input grayscale value 2 and I-3 of the multi-primary signal are located. The hue area ι(ι-i I-i, and j-, and if you want to increase the hue, you can select it. At this time, use the formula 2 TW2879PA 13 work, 200818926

二违顧m · iW2879PA 、0—2、及所具有之 而輸入灰階值I 1、I 2、 償量所決定出之輸出灰階值〇 i 色相 Ho 係為 60χ ^2+δΙ^=2ϊζΙ_3, / 1 — / ο 及所具有之色相 卬芍6ϋχ 60χ δΐ 2 1一/ 得 Ho-Hi 為 3亦即,輸出灰階值〇 j、0-2、及〇_3較輸入 灰階值I」、1—2、及1—3具有較大之色相角,且亮度及色 相均維持不變。 1-/2. Depending on m · iW2879PA, 0-2, and the input grayscale value I 1 , I 2 , the output gray scale value determined by the compensation amount 〇 i hue Ho system is 60 χ ^ 2 + δ Ι ^ = 2 ϊζΙ _ 3 , / 1 — / ο and the hue 卬芍 6 ϋχ 60 χ δ ΐ 2 1 / / Ho-Hi is 3, that is, the output gray scale values 〇j, 0-2, and 〇_3 are more than the input gray scale value I ", 1-2, and 1-3 have a larger hue angle, and the brightness and hue remain unchanged. 1-/

-60,而輸入灰階值j—丨、〗2、及 或者’當多原色訊號之輸入灰階值u、^2、及工3 位於色相區2 ( Ϊ少L2、IJ=Ij、及1>χ 3 ):且同樣政 增加色相Η時,可選定u=a。此時,利用公式2之補償量 所決定出之輸出灰階值〇—i、〇_2、及〇_3 色相 / 2-/ 3-60, and input the grayscale value j_丨, 〖2, and or 'when the multi-primary color signal input grayscale values u, ^2, and 3 are located in the hue area 2 (L2, IJ=Ij, and 1>;χ 3 ): When the same color increases the hue, u=a can be selected. At this time, the output gray scale values 〇—i, 〇_2, and 〇_3 hue are determined by the compensation amount of Equation 2. / 2-/ 3

Ho 係為 60xm—Μ 1—3所具有之色相m係為60x|^5^|+60 ’可得Ho-Hi為 6〇X厂frb °同樣使輸出灰階值〇_1、〇—2、及〇—3較輸 入灰階值1—1、1_2、及1_3具有較大之色相角,且亮度及 色相均維持不變。 再者,一併使用公式1及公式2亦可達成保持亮度 下,同時調整彩度及色相之效果。此時,係再提供一第二 查詢表,其包括數個數對(x,g⑻),其中g函數之定義域 範圍同樣為系統所能顯示之最小灰階值至最大灰階值,且 值域範圍為最小灰階值至最大灰階值。例如系統為8位元 灰階顯示能力時,則定義域範圍為[〇,255]且值域範圍為 [〇,255]。欲取得gG-i-I一k)之值,即可依據第二查詢表進行 查表而得出。The Ho system is 60xm—Μ 1-3 has a hue of 60x|^5^|+60′, and Ho-Hi is 6〇X factory frb °, which also outputs gray scale values 〇_1, 〇—2 And 〇-3 have a larger hue angle than the input grayscale values 1-1, 1_2, and 1_3, and the brightness and hue remain unchanged. Furthermore, using Equation 1 and Equation 2 together can also achieve the effect of maintaining the brightness and adjusting the chroma and hue. At this time, a second lookup table is further provided, which includes a plurality of pairs (x, g(8)), wherein the domain range of the g function is also the minimum grayscale value to the maximum grayscale value that the system can display, and the value The domain range is from the minimum grayscale value to the maximum grayscale value. For example, when the system is 8-bit grayscale display capability, the domain range is defined as [〇, 255] and the range of values is [〇, 255]. To obtain the value of gG-i-I-k), it can be obtained by looking up the table according to the second lookup table.

TW2879PA 14 200818926TW2879PA 14 200818926

TW2879PA 至此m補償量…、η」、及k為: (Π 卜〇; ~ i — I k xg(I—i-I—k)+uxf(I—i_l—k);及 3 I一k=g(I—i-I—k)。 其中,u等於i或q。 (公式3 ) 由上述可知’公式3可視為於保持色相及亮度下,先 對輸入灰階值作-彩度娜,然後於保持彩度及亮度下再 作-色相調整;當_序反之亦可。而第—及第二查詢表 =函數圖形曲線’亦可任意調整極大值之位置或曲線之性 2如此-來’係以簡單的-維查表法進行補償量的計算 而達到_整色彩之目的,大幅提升硬體之執行效率。 弟—實施例 其於第-實_中’對於具有不同色相之三原色訊號, 二=皆_相同的查詢表以進行補償量的計算。然而, 應各種顯示面板不同的顯色能力,例如對於具有鄰 ‘Hi相的三原色訊號,若顯色能力較不準確,便必 整此色相之彩度,亦即針對不同色相區提供對應 ’以分別進行補償量的計算。因此,於第二實施 二管附圖說明步驟12G中如何對多色相區進行補償量 β二’以達到全色域之㈣連續變化及色彩最佳化處理, 但本發明之技術並不侷限於此。 R)、一綠色(Green;TW2879PA So far m compensation amount..., η", and k are: (Π 〇 〇; ~ i - I k xg(I - iI - k) + uxf (I - i_l - k); and 3 I - k = g ( I—iI—k) where u is equal to i or q. (Formula 3) From the above, it can be seen that Equation 3 can be regarded as maintaining the hue and brightness, first inputting the grayscale value, and then maintaining the color. Degree and brightness - color adjustment; when _ sequence or vice versa. And - and the second query table = function graph curve ' can also arbitrarily adjust the position of the maximum value or the nature of the curve 2 so - to 'simple The -vicha table method performs the calculation of the compensation amount to achieve the purpose of _-color, and greatly improves the execution efficiency of the hardware. The younger--the embodiment is in the first-real _ in the three primary color signals with different hues, _ The same look-up table to calculate the compensation amount. However, different display color of various display panels, for example, for the three primary color signals with adjacent 'Hi phase, if the color rendering ability is less accurate, the color of the hue will be completed. Degree, that is, for the different hue areas to provide the corresponding 'to calculate the amount of compensation separately. Therefore, in the second implementation The figure illustrates how the multi-color phase region is compensated for the amount of β 2' in step 12G to achieve the (four) continuous variation and color optimization process of the full color gamut, but the technique of the present invention is not limited thereto. (Green;

同樣以多原色包括一紅色(汉ed; TW2879PA 15 200818926Also includes a red color in multiple primary colors (Han ed; TW2879PA 15 200818926

rW2879PA G)、及一監色(Blue; B)為例作說明,且為說明方便起見, I—卜1_2、及1—3即分別代表紅色、綠色、及藍色之三原 色訊號之輸入灰階值。此外,於第二實施例中係以:色 (R)、綠色(G)、藍色(B)、青色(Cyan; c)、洋紅色(Magenta; Μ)、及黃色(Yellow; γ)為主色相為例作說明,並據以區分 六色相區。亦即,如第2圖所示之六色相區丨〜6。 晴參照第4圖,其!會示乃依照本發明第二實施例之色 相區及其對應之查詢表之示意圖。此外,於公式3中,對 於¥度調整及色相觀係分別提供查詢表。因此,對於每 六主色相亦分別提供二查詢表供彩度及色相調整。亦即, 提=六查詢表ΜΗ—3、L_4、L—5、及U,以及 六查詢表M」、M_2、M_3、M_4、M 5、及M_6,且查 詢表L—i及屹1、1^及12、1^及心3、1^-及1^4: L—5及M-5、以及L-6及分別對應R、γΓο、C ΓΒ、 以及Μ六色相,如第4圖所示。 其中’查詢表L一 1〜L 6德公拓丨a (x,f_l(x)) ^ (x,f_2(x)); (x,〇W) $ 6(=且查詢表μ—i〜M_6係分料括 對 (x,g-l(x)) ^ (x,g_2(x)) > (x,g^3(x)) . (x,g^4(x)) . (χ g 5(χ)). 〜奴6函數之心二 灰階值至最大灰階值’且值域範圍為最小灰階值至 具Ϊ六主色相其中之—色相的三原色訊號rW2879PA G), and a color (Blue; B) for the sake of explanation, and for convenience of description, I - Bu 1_2, and 1-3 represent the input gray of the three primary color signals of red, green, and blue respectively. Order value. Further, in the second embodiment, color (R), green (G), blue (B), cyan (Cyan; c), magenta (Magenta; Μ), and yellow (Yellow; γ) are The main hue is exemplified as an example, and the six-phase phase is distinguished accordingly. That is, the six-color phase region 丨~6 as shown in Fig. 2. Referring to Figure 4, there is shown a schematic diagram of a hue region and its corresponding look-up table in accordance with a second embodiment of the present invention. Further, in Equation 3, a lookup table is provided for each of the ¥ degree adjustment and the hue system. Therefore, two look-up tables are provided for each of the six main hue for chroma and hue adjustment. That is, mentioning six query tables ΜΗ-3, L_4, L-5, and U, and six lookup tables M", M_2, M_3, M_4, M5, and M_6, and query tables L-i and 屹1 1^ and 12, 1^ and heart 3, 1^- and 1^4: L-5 and M-5, and L-6 and corresponding to R, γΓο, C ΓΒ, and Μ, respectively, as shown in Figure 4 Shown. Where 'query table L-1~L 6 德公拓丨 a (x,f_l(x)) ^ (x,f_2(x)); (x,〇W) $ 6 (=and lookup table μ-i~ M_6 is divided into pairs (x, gl(x)) ^ (x, g_2(x)) > (x, g^3(x)) . (x, g^4(x)) . (χ g 5(χ)). ~ slave 6 function heart two gray scale value to the maximum gray scale value 'and the range of values from the minimum gray scale value to the six primary color phase - the hue of the three primary color signals

即可依據所對應之查詢表作補償量之H 實施例中之公式3。當然,fl〜f6函數 =例如使用弟一 ——山数及g〜l〜g_6函數同 16Equation 3 in the H embodiment of the compensation amount can be made according to the corresponding lookup table. Of course, the fl~f6 function = for example, using the brother one - the mountain number and the g~l~g_6 function are the same as 16

TW2879PA 200818926TW2879PA 200818926

二連緬跳,I 木八可視需要各自對其函數之圖形曲線性質作任意調整 至於各色相區中之色彩,例如代表R色相與γ色相所 夾之色相區1中的一色彩I如何設定其補償量,係舉下述 作法為例。即將色彩I分解為尺及γ色相上之色彩組合, 而利用其所對應之查絲L—卜M」及L—2、M_2作補°償 量之内插法計算’且於第二實施例中,係以R及γ色相上 與色彩I同彩度之色彩為例作說明’但本發明之技術並不 偈限於此。In the case of two consecutive hops, I can easily adjust the color of the graph curve properties of each function to the color of each hue region. For example, how to set a color I in the hue region 1 between the R and gamma phases. For the amount of compensation, the following practices are taken as an example. That is, the color I is decomposed into a color combination on the ruler and the gamma phase, and is calculated by the interpolation method corresponding to the checksum L-Bu M" and L-2, M_2 as the compensation amount" and in the second embodiment In the case of the R and γ hue and the color I with the color I, the color is taken as an example. However, the technology of the present invention is not limited thereto.

請參照第5圖,其繪示乃第4圖中色相區色彩分 解圖。色彩I其相鄰R及Y色相上之同彩度色彩分別為色 彩S及色彩E,且將色彩j以其包含之u、匕2、及、3 分量表示後,色彩I、色彩S、及色彩E的關係如下: 1= I 2 :/一1 -/一 2 T 1-1 3Please refer to Fig. 5, which is a color map of the hue area in Fig. 4. Color I has the same chroma color on the adjacent R and Y hue as color S and color E, respectively, and color j is represented by its included u, 匕 2, and 3 components, color I, color S, and The relationship of color E is as follows: 1 = I 2 : / 1 - / 2 T 1-1 3

X / 2-厂 3X / 2- factory 3

XX

其中’ I一121-2>1一3。而色彩s及色彩E例如採用第 貝%例之公式3,分別依據對應之查詢表作色彩調整, 並轉換為色彩S,及色彩E,後,係以與色彩§及E組合出 色彩I同樣之權重比例組合出色彩^,。即設定色彩j經色 彩調整後轉換為Γ,如第5圖所示。另,為說明方便,設 ㈣一1-1一3、41=1一14—2、及 d2=l一24一3,亦即: Γ=4χ a 其中, / 一 3+(ι-“ι)χ/—収)L -L3+Wlx/Lg 一 1⑷ ,dl +TX /一1 - w2x/一 2⑷ s· -]一3 - g 一2((Where 'I-121-2>1 to 3. The color s and the color E are, for example, the formula 3 of the example of the first example, respectively, according to the corresponding query table for color adjustment, and converted into the color S, and the color E, and then the color I is combined with the color § and E The weight ratio is combined with the color ^,. That is, the set color j is converted to Γ after the color adjustment, as shown in Fig. 5. In addition, for convenience of explanation, let (4)-1-1-3, 41=1-14-2, and d2=l-24-3, that is: Γ=4χ a where / a 3+(ι-"ι ) χ / - receipt) L - L3 + Wlx / Lg a 1 (4), dl + TX / a 1 - w2x / a 2 (4) s · -] a 3 - g a 2 ((

Ul等於❻或卜‘等於❶或卜於第^圖中, 色彩S’較色彩S增加了色相角,亦即增加了 〇色相之分 TW2879PA ^ 200818926 —送臟飢· JW2879PA 量,故ul=0。而色彩E’較色彩E減少了色相角,亦即滅 少了 G色相之分量,故U2=l。於是,根據色彩〗,及色彩I 的分量差值,得出三補償量(Π J5 1_2、及d 1_3為: 51—1 =竺x(l-u2)xf一2(d); d d δ 12= (5 I__3=yxg_2(d)-|x[ulxf_l(d)-g_i(d)] 〇 利用上述之内插法,可對其他色相區作同樣處理 到查詢表之間的關係。具體而言, 而侍 當 p=l ’ ,則 L_ps=L_ls=L !且 L_pe=L_le=L_2 ’ M_Ps=M_ls=M_l 且 M_pe=M」e=:M 2, 亦即 f_ls=f_l 且 f—le=f_2,g_is=g一丄且 g—le=g—2 ; 當 P=2 ’ L_pe=L_2e=L_2,M_PS=M_2S=M_3 且 M_pe=M_2e=^ 2, 亦即 f一2s=f_3 且 f_2e=f_2,g_2s=g__3 且 g_2e=g—2 ;— ’ 當^ L3 > L1,iL_ps=L>L3 且 L_Pe=L_3e=L_4 ’ M_Ps=M_3s=M_3 且 M_pe,一3e==M 4, 亦即 f一3s=f_3 且 f_3e=f一4,g_3s=g—3 且 g一3e=g—4 ;〜 當 P=4,L3 >1_2 …’則 L』;=L—4;l $ 且 L_pe=L一4e=L一4 ’ M一ps=M一4s=M-5 且 M_pe=M_4e, 4, 亦即 f_4s=f一5 且 f_4e=f一4 ’ g_4s=g_5 且 g_4e=g—4 ;〜 當 P=5 ’ L3 g L1 > L2,則 5;^ & 且 L』e=L」e=L_6 ’ M_Ps==M一5s=M_5 且 M_pe,_5e, 6, 亦即 f一5s=f_5 且 f_5e=f_6,g—5s=g—5 且 g一5e=g 6 〜’Ul is equal to ❻ or 卜' is equal to ❶ or 卜 in the ^ picture, the color S' is increased by the hue angle of the color S, that is, the 〇 color phase is added TW2879PA ^ 200818926 - the amount of dirty hunger JW2879PA, so ul = 0 . The color E' reduces the hue angle compared to the color E, that is, the component of the G hue is eliminated, so U2 = l. Then, according to the color〗, and the component difference of the color I, the three compensation amounts are obtained (Π J5 1_2, and d 1_3 are: 51-1 = 竺 x (l-u2) xf - 2 (d); dd δ 12 = (5 I__3=yxg_2(d)-|x[ulxf_l(d)-g_i(d)] 〇 Using the above interpolation method, the other hue regions can be treated the same way to the relationship between the lookup tables. , and wait p=l ', then L_ps=L_ls=L ! and L_pe=L_le=L_2 ' M_Ps=M_ls=M_l and M_pe=M”e=:M 2, ie f_ls=f_l and f−le=f_2 , g_is=g丄 and g—le=g—2 ; when P=2 ' L_pe=L_2e=L_2, M_PS=M_2S=M_3 and M_pe=M_2e=^ 2, ie f_2s=f_3 and f_2e=f_2 , g_2s=g__3 and g_2e=g-2; - ' When ^ L3 > L1, iL_ps=L> L3 and L_Pe=L_3e=L_4 ' M_Ps=M_3s=M_3 and M_pe, a 3e==M 4, ie f A 3s=f_3 and f_3e=f-4, g_3s=g-3 and g_3e=g-4; ~ When P=4, L3 >1_2 ...' then L』;=L-4; l $ and L_pe =L - 4e = L - 4 ' M - ps = M - 4s = M - 5 and M_pe = M_4e, 4, that is, f_4s = f - 5 and f_4e = f - 4 ' g_4s = g_5 and g_4e = g - 4 ;~ When P=5 ' L3 g L1 > L2, then 5;^ & and L 』e=L"e=L_6 ' M_ Ps==M_5s=M_5 and M_pe,_5e, 6, ie f_5s=f_5 and f_5e=f_6, g-5s=g-5 and g_5e=g 6 〜’

TW2879PA 當 P=6 ’ I一1 > I_3 g l_2 ’ 則 L_ps=L—6s= 18 200818926TW2879PA when P=6 ’ I_1 > I_3 g l_2 ’ then L_ps=L—6s= 18 200818926

—mmm · rw2879PA L_pe=L一6e=L—6,M—ps=M一6s=M—l 且 Mjpe=M一6e=M一6, 亦即 f一6s=f—1 且 f—6e=f—6,g—6s=g一 1 且 g—。 如此一來,依據查詢表L_ps、查詢表L_pe、查詢表 M—ps及查詢表M」>e,即可取得 f—ps(I一i-1—k)、 fjpe(I一i-I—k)、g—pS(ij-i—k)、及 gjpe(I—i-I—k)之值,並設 定三補償量ά IJ、1 IJ、及(5 i_k為: 占 x(l-w2)x/一; • 5 I」—了xw2x’—ΜΔ)-手X[(l-wl)x/—;λί(Δ)υ(Δ)];及 5 I—k=专xg je.令X[wix/一㈣Δ)υ(Δ)]; (公式4) 其中,ul等於〇或1,u2等於〇 △ 1=1>1」、及△ 2=I」-IJc。 另,若考慮保持屬純色之三原色訊號,以顯示系統為 8位元灰階顯示能力為例,即三原色訊號之輸入灰階值 I一 1、I一2、及1-3中有任一為〇或255時,以公式4中之 • 三補償量(H—i、51」、及处k進行色彩調整的同時,可 能造成純色扭曲。係提供一第三查詢表,第三查詢表係分 別包括數個數對(x,h(x)),其中11函數之定義域範圍為最小 灰階值至最大灰階值,例如在8位元灰階顯示系統時的 [〇,255],且值域為[0,η。 —請參照第6圖,其繪示乃依照本發明第二實施例之第 二查詢表之函數表示圖。如第6圖所*,h函數為一非線 性函^,且定義域範圍為[〇,255]及值域範圍為队丨]。此 TW2879PA h函數之輸入值大於^等於Μ且小於或等於192 200818926—mmm · rw2879PA L_pe=L−6e=L—6, M—ps=M−6s=M—l and Mjpe=M−6e=M−6, ie f-6s=f-1 and f-6e= F-6, g-6s=g-1 and g-. In this way, according to the lookup table L_ps, the lookup table L_pe, the lookup table M_ps, and the lookup table M">e, f_ps(I ii-1 - k) and fjpe (I iiI - k) can be obtained. ), the values of g-pS(ij-i-k), and gjpe(I-iI-k), and set the three compensation amounts ά IJ, 1 IJ, and (5 i_k are: x(l-w2)x /1; • 5 I"—xw2x'—ΜΔ)-hand X[(l-wl)x/—;λί(Δ)υ(Δ)]; and 5 I—k=specific xg je. Wix / one (four) Δ) υ (Δ)]; (Formula 4) wherein ul is equal to 〇 or 1, u2 is equal to 〇 Δ 1 = 1 > 1", and Δ 2 = I" - IJc. In addition, if it is considered to maintain the three primary color signals of a solid color, the display system is an 8-bit gray scale display capability, that is, any of the input gray scale values I-1, I-2, and 1-3 of the three primary color signals is 〇 or 255, the color compensation of the three compensation amounts (H-i, 51) and k at the same time in Equation 4 may cause a solid color distortion. A third look-up table is provided, and the third query table is respectively Including a plurality of pairs of numbers (x, h(x)), wherein the domain of the 11 function ranges from a minimum grayscale value to a maximum grayscale value, such as [〇, 255] in an 8-bit grayscale display system, and The value range is [0, η. - Please refer to Fig. 6, which is a functional representation of the second lookup table in accordance with the second embodiment of the present invention. As shown in Fig. 6, the h function is a nonlinear function. ^, and the domain range is [〇, 255] and the range of values is 丨]. The input value of this TW2879PA h function is greater than ^ equal to Μ and less than or equal to 192 200818926

二達編號.i,W2879PA 時’所得輸出值為1 ’且h(25 5)=11(0)=0。 至此,係依據第三查詢表,取得11(111^1[255-:〇,1一幻) 之值,min[255-I—i,I—k]為(255-1—i)及IJk之最小值,旅設 定三補償量、5IJ、及5I_k為: 5 I一i=h(min[255-I—i,I—k])x^>x(i—“2)χ/—%(△); 手X[(l-ta)x厂ΜΔ)υ(Δ)]};及 Δ • (5 I^k=h(min[N-IJJ^k])x{ Δ |x[wlx/_MA)U^0]} ·, Δ (公式5) 其中,ul等於0或1,112等於〇或1,八=1少1一]<;、 △ 1=1」-1」、及△ 2=I」-I—k。 於是’若為純色之三原色訊號,即I〜i==255或I ’ 以公式5中之三補償量(51一i、(5 IJ、及5 得出之對應 φ 輸出灰階值〇一i、〇」、及0一k,顯然亦屬純色。而主,以 第6圖中所示的h函數之圖形曲線為例,在j }甚高或I一k 甚低時,h(min[255-I—i,I一k])皆急遽銳減,亦即對於高彩度 之三原色訊號,其最大輸入灰階值I—i之補償量i受到 抑制而不會造成彩度過飽和的問題。而仑函數之圖形曲線 在大部分释域皆為對應1之水平線係表示對於非純^之三 原色訊號係不作補償量占IJ的調整。當然,^至Μ〗的 範圍亦可視顯示器的顯色能力或使用需求作調整。' 底下係附圖說明應用第二實施例中公 盾 TW2879PA 20 200818926When the two numbers are .i, W2879PA, the resulting output value is 1 ' and h(25 5)=11(0)=0. So far, according to the third lookup table, obtain the value of 11 (111^1[255-:〇,1一幻), min[255-I-i, I-k] is (255-1—i) and IJk The minimum value, the brigade setting three compensation amount, 5IJ, and 5I_k are: 5 I - i = h (min [255 - I - i, I - k]) x ^ > x (i - "2) χ / - %(△); Hand X[(l-ta)x厂ΜΔ)υ(Δ)]}; and Δ • (5 I^k=h(min[N-IJJ^k])x{ Δ |x[ Wlx/_MA)U^0]} ·, Δ (Equation 5) where ul is equal to 0 or 1, 112 is equal to 〇 or 1, eight = 1 less 1] <;, Δ 1 = 1" -1", And Δ 2 = I" - I - k. Then 'if it is the three primary color signals of pure color, that is, I~i==255 or I' with the three compensation amount in formula 5 (51 Ii, (5 IJ, and 5 corresponding to φ output grayscale value 〇一i , 〇", and 0 ak, obviously also a solid color. And the main, taking the graphical curve of the h function shown in Figure 6 as an example, when j } is very high or I k is very low, h (min[ 255-I-i, I-k]) are sharply sharply reduced, that is, for the high-color three primary color signals, the compensation amount i of the maximum input grayscale value I-i is suppressed without causing chroma oversaturation. The graph curve of the lun function is the horizontal line system corresponding to 1 in most of the release fields. It means that the compensation for the non-pure three primary color signals does not compensate for IJ. Of course, the range of ^ to Μ can also be seen by the color rendering capability of the display or Use the requirements for adjustment.' Below is a description of the application of the second embodiment of the shield TW2879PA 20 200818926

二趙麻航-.i’W2879PA 號之轉換方法的色彩轉換裝置,但本發明之技術並不侷限 於此。 請參照第7圖,其繪示乃依照本發明之色彩轉換裝 置。色彩轉換裝置700包括輸入單元71〇、控制單元720、 記憶單元730、計算單元74〇以及輸出單元75〇。輸入單 70 71〇用以接收多原色訊號s。控制單元720係根據多原 色訊號S之此些輸入灰階值l丨、JJ2、及3產生記憶體 位址S1及選擇訊號S2。控制單元72〇例如包括耦接輸入 _ 單元71〇之位址產生器(Address Generator)720a及分類控 制益(Classification Controller)720b。記憶單元 730 則包括 數個記憶體730(1)〜730(6)以及記憶體介面731,且各記憶 體73〇(i)儲存有一維查詢表L_i及M_i,i=i〜6。 如前所述,依HS V空間之定義,輸入灰階值I_1、I—2、 及I一3係對應色彩三角形中之一色彩座標。而分類控制器 720b係設定有色相區的界定規則,如上述之RGBCMY六 φ 主色相所區分出之六色相區。藉此,分類控制器720b係 根據色彩座標對應之色相區來產生選擇訊號,記憶體介 面731係根據選擇訊號S2對部分之記憶體730(1)〜730(6) 進行存取。例如,對於屬於第4圖中色相區、之色彩,記 憶體介面731即根據選擇訊號S2選择記憶體730(1)及 730(2)進行存取。 此外,位址產生器720a主要根據輪入灰階值1_1、 I一2、及I—3所對應的HSV空間之色彩座標(如彩度 來產生記憶體位址S1。記憶體介面731係根據記憶體位址 TW2879PA … 200818926The color conversion device of the conversion method of the Zhao Mahang-.i'W2879PA number, but the technique of the present invention is not limited thereto. Referring to Figure 7, there is shown a color conversion device in accordance with the present invention. The color conversion device 700 includes an input unit 71A, a control unit 720, a memory unit 730, a calculation unit 74A, and an output unit 75A. The input sheet 70 71 is used to receive the multi-primary signal s. The control unit 720 generates the memory address S1 and the selection signal S2 based on the input grayscale values l丨, JJ2, and 3 of the multi-primary signal S. The control unit 72 includes, for example, an address generator 720a coupled to the input_unit 71 and a classification control controller 720b. The memory unit 730 includes a plurality of memories 730(1) to 730(6) and a memory interface 731, and each of the memories 73〇(i) stores a one-dimensional lookup table L_i and M_i, i=i~6. As described above, according to the definition of HS V space, the input gray scale values I_1, I-2, and I-3 are one color coordinate corresponding to one of the color triangles. The classification controller 720b is set with a definition rule of the hue area, such as the six-color phase area distinguished by the above-mentioned RGBCMY six φ main hue. Thereby, the classification controller 720b generates a selection signal based on the hue region corresponding to the color coordinates, and the memory interface 731 accesses the portion of the memory 730(1) to 730(6) according to the selection signal S2. For example, for the color belonging to the hue region in Fig. 4, the memory interface 731 is accessed by selecting the memory 730(1) and 730(2) according to the selection signal S2. In addition, the address generator 720a generates the memory address S1 mainly according to the color coordinates of the HSV space corresponding to the grayscale values 1_1, I-2, and 1-3. The memory interface 731 is based on the memory. Body address TW2879PA ... 200818926

二達獅肌.jfW2879PA • si於記憶體730(1)及730(2)所儲存之查詢表L—1、Μ—:ι、 L一2、及Μ一2中搜尋對應資料S3。對應資料S3例如包括 fj(l一i-I一k)、g一l(I—i-I一k)、f—2(Ij七k)、及 g—2(I—k), 以及公式4中之各參數ul、u2、Δ=ι—△ 1=1 i-IJ、 及Δ2=Ι」-Ι—k等。 此時,計算單元740係根據對應資料S3以公式4計 算出輸出灰階值Ο一i、OJ、及Ojc。輸出單元750則用以 輸出轉換為此些輸出灰階值Ο一i、〇j、及〇 k之多原色 _ 訊號S’。 然本發明所屬技術領域中具有通常知識者當可明 瞭’雖然弟一實施例以對人眼較易辨識之RGBCMY六色 相區為例作說明,但顯然可視需要重新選定不同之六主色 相或區分更多色相區。例如,以第4圖中之六主色相再增 加相鄰兩主色相之中間色相’而區分成12色相區,以及 對應增加查詢表。此時’同樣亦能將各色相區中之色彩分 解為相鄰兩主色相上之色雜合,並彻其所對應之^ 表作補償量之計算。此外,如公式4及5所*,由於内插 法的調整方式可驗轉換後㈣原色訊號亮度降低;此 時,係可改變U之值來加強發光亮度的平衡。而色彩轉 換裝置亦可簡搭配之㈣轉換公式於記憶單元中改變 記憶體及查詢表之使賴量或觸存之各參數值。如上 述’只要對乡原色喊直接錢其輪人灰階值之轉換處 理,而達到控制色彩之目的’皆不脫離本發明之技術範圍。 TW2879PA 〇〇 200818926,Erda lion muscle.jfW2879PA • si searches for the corresponding data S3 in the look-up tables L-1, Μ-::ι, L-2, and Μ2 stored in the memory 730(1) and 730(2). The corresponding data S3 includes, for example, fj (l-iI-k), g-l (I-iI-k), f-2 (Ij-7k), and g-2 (I-k), and each of the formulas 4 The parameters ul, u2, Δ = ι - Δ 1 = 1 i - IJ, and Δ2 = Ι" - Ι - k, and the like. At this time, the calculation unit 740 calculates the output grayscale values Οi, OJ, and Ojc by Equation 4 based on the corresponding data S3. The output unit 750 is configured to output a plurality of primary color _ signals S' converted to the output gray scale values Οi, 〇j, and 〇k. However, those skilled in the art to which the present invention pertains can clarify that although an embodiment of the present invention is exemplified by an RGB CMY six-color phase region which is easily recognizable to the human eye, it is obvious that it is possible to reselect different six main hue or distinguish as needed. More hue areas. For example, the sixth hue of the two main hue phases is further increased by the sixth main hue in Fig. 4 to be divided into 12 hue regions, and the lookup table is added correspondingly. At this time, the color in each hue region can also be decomposed into the color mixture on the adjacent two main hue, and the corresponding amount can be calculated as the compensation amount. In addition, as shown in Equations 4 and 5, the adjustment of the interpolation method can be used to verify that the brightness of the primary color signal is reduced. At this time, the value of U can be changed to enhance the balance of the luminance. The color conversion device can also be simply matched with the (4) conversion formula to change the value of each parameter of the memory and the lookup table in the memory unit. As described above, the term "controlling the color" is not necessary for the purpose of controlling the color as long as the original color is called the direct conversion of the color of the person. TW2879PA 〇〇 200818926,

一^.rmw/u * TW2879PA 本發明上述實施例所揭露之多原色訊號之轉換方法 及應用其之色彩轉換裝置,主要基於HSV空間的彩度定 義,例如在RGB空間裡直接轉換影像之三原色訊號之輸 入灰階值而輸出至顯示面板,並僅使用簡單的一對一查表 法及少量的乘法與加法運算,經評估後仍在適當的複雜度 内。藉此,以較經濟的硬體資源達到高效率的訊號處理運 算,達到降低成本並符合電路實現效益。此外,且能任意 _ 凋整多原色訊號所呈現之色彩’減少各種顯示面板因不同 顯色能力而產生的色彩失真問題,並在顯示器所能呈現的 色域中顯出最佳之色彩。當然,採用其他多原色訊號之顯 不系統亦可如上述二實施例,依據與HSV空間的轉換關 係,對多原色訊號之輪入灰階值進行轉換處理。 綜上所述’雖然本發明已以較佳實施例揭露如上,然 其並非用以限定本發明。本發明所屬技術領域中具有通常 知識者,在不股離本發明之精神和範圍内,當可作各種之 _ 更動與潤飾。因此,本發明之保護範圍當視後附之申請專 利範圍所界定者為準。^.rmw/u * TW2879PA The multi-primary color signal conversion method and the color conversion device using the same according to the above embodiments of the present invention are mainly based on the chroma definition of the HSV space, for example, directly converting the three primary color signals of the image in the RGB space. The grayscale value is input and output to the display panel, and only a simple one-to-one look-up table method and a small number of multiplication and addition operations are used, and the evaluation is still within the appropriate complexity. In this way, high-efficiency signal processing is achieved with more economical hardware resources, which reduces costs and meets circuit implementation benefits. In addition, the color presented by any of the multiple primary color signals can be reduced to reduce the color distortion caused by different color rendering capabilities of various display panels, and the best color can be displayed in the color gamut that the display can present. Of course, the display system using other multi-primary signals can also perform the conversion processing on the round grayscale values of the multi-primary color signals according to the conversion relationship with the HSV space as in the above two embodiments. The invention has been described above by way of a preferred embodiment, and is not intended to limit the invention. Those having ordinary skill in the art to which the invention pertains may make various changes and refinements without departing from the spirit and scope of the invention. Therefore, the scope of the invention is defined by the scope of the appended claims.

TW2879PA 23 200818926TW2879PA 23 200818926

一班顧肌· rW2879PA ’【圖式簡單說明】 第1圖繪示乃依照本發明之多原色訊號之轉換方法的 流程圖。 第2圖繪示乃依照本發明之色彩三角形示意圖。 第3圖繪示乃依照本發明第一實施例之第一查詢表之 函數表示圖。 第4圖繪示乃依照本發明第二實施例之色相區及其對 應之查詢表之示意圖。 • 第5圖繪示乃第4圖中色相區1之色彩分解圖。 第6圖繪示乃依照本發明第二實施例之第三查詢表之 函數表不圖。 第7圖繪示乃依照本發明之色彩轉換裝置。 【主要元件符號說明】(無) TW2879PA 24一顾顾肌·rW2879PA '[Simple Description of the Drawing] Fig. 1 is a flow chart showing a method for converting a multi-primary signal according to the present invention. Figure 2 is a schematic illustration of a color triangle in accordance with the present invention. Figure 3 is a diagram showing the function of the first look-up table in accordance with the first embodiment of the present invention. Figure 4 is a diagram showing the hue area and its corresponding look-up table in accordance with the second embodiment of the present invention. • Figure 5 shows a color exploded view of the hue area 1 in Figure 4. Figure 6 is a diagram showing the function of the third look-up table in accordance with the second embodiment of the present invention. Figure 7 illustrates a color conversion device in accordance with the present invention. [Main component symbol description] (none) TW2879PA 24

Claims (1)

200818926 三達編號:TW2879PA 十、申請專利範圍: 1. 一種多原色訊號之轉換方法,用以轉換該多原色訊 號之至少二輸入灰階值(graySCale value)I j、1—2、及I 3, 該轉換方法包括: (a) 判斷該些輸入灰階值I一;[、〗一2、及I一3之一大小關 係,並設定IJ為該些輸入灰階值之一最大輸入灰階值、 IJ為該些輪入灰階值之一中間輸入灰階值、及I_k為該些 馨 輸入灰階值之一最小輸入灰階值; (b) 計算I—i、I」、及I—k之三補償量,該三補償量分 別為 j5 IJ、及 5 I_k ; (c) 決定該最大輸入灰階值Ij、該中間輸入灰階值值 IJ、及該最小輸入灰階值I_k之對應輸出灰階值〇j、〇j、 及 Ο一k,使得 〇一i=I—i-(Π—i、〇J=I」-5 I」、及 〇—k=I—k-(51 一 k ;以及 ⑷判斷該些輸出灰階值OJ、〇J、及〇_k之大小, _ 若0—i、0 J、或〇—k大於一最大灰階值,則設定該些輸 出灰階值〇」、0」、或0-k為該最大灰階值,若〇」、〇」、 或OJc小於一最小灰階值,則設定該些輸出灰階值〇j、 0J、或Ojc為該最小灰階值。 2·如申請專利範圍第」項所述之轉換方法,其中該多 原色係包括一紅色(Red; R)、一綠色(Green; G)、及一藍色 (Blue; B) ° TW2879PA 25 200818926 三達編號♦· TW2879PA 3. 如申請專利範圍第1項所述之轉換方法,其中該步 驟(b)包括: 提供一第一查詢表,該第一查詢表係包括複數個數對 (x,f(x)),其中f函數之定義域範圍為一最小灰階值至一最 大灰階值,且值域範圍為該最小灰階值至該最大灰階值。 4. 如申請專利範圍第3項所述之轉換方法,其中f函 _ 數為非線性函數。 . 5. 如申請專利範圍第3項所述之轉換方法,其中該步 驟(b)更包括: 依據該第一查詢表,取得f(U-I_k)之值。 6. 如申請專利範圍第5項所述之轉換方法,其中該步 驟(b)更包括: • 設定該些補償量、51」、及5I_k為: 5 I J=0 ; 5 I」=uxf(I—i-I一k);及 δI_k=0° 其中,u等於1或-1。 7. 如申請專利範圍第5項所述之轉換方法,其中該步 驟(b)更包括· 設定該些補償量5 IJI、5IJ、及(5I_k為: TW2879PA 26 200818926 三達編號:TW287卯A δ I_i=〇 ; ;及 5 I—卜f(I一i-i—k)。 8·如申請專利範圍第5項所述之轉換方法,其中該步 驟(b)更包括: 提供一第二查詢表,該第二查詢表係包括複數個數對 ⑩ (x,g(x))’其中g函數之定義域範圍為一最小灰階值至一最 大灰階值’且值域範圍為該最小灰階值至該最大灰階值; 依據該第二查詢表,取得g(I_i-IJc)之值;以及 設定該些補償量(Hj、5IJ、及5I_k為: 5 I一k=g(l一i-i-k)。 其中,II等於1或_1 〇 9·如申請專利範圍第8項所述之轉換方法,其中g 函數為非線性函數。 - - - 10·如申請專利範圍第1項所述之轉換方法,其中該 轉換方法更包括: 提供六查詢表 L—1、L 2、L 3、L 4、L 5、jL6, —~ — — -— — — 以及六查詢表 Μ—1、M—2、M—3、M—4、M-5、及 M-6, 該些查詢表L—1〜L—6係分別包括複數個數對(x,f_i(x))、 TW2879PA _ 200818926 三達編號:TW2879PA (x,f—2(x))、(x,f—3(x))、(x,f—4(x))、(x,f—5(x))、及(x,f—6(χ)), 且該些查詢表M-l〜M-6係分別包括複數個數對 (x,g—l⑻)、(x,g一2⑻)、(x,g一3⑻)、(x,g—4(x))、(x,g—5(χ))、 及(x,g—6(x)),其中f—1〜f一 6及g—l〜g—6函數之定義域範圍 為一最小灰階值至一最大灰階值,且值域範圍為該最小灰 階值至該最大灰階值。 11 ·如申請專利範圍第1 〇項所述之轉換方法,其中今 步驟(a)更包括: 判斷該些輸入灰階值I—1、1一2、及1一3之色相區, 其中 ρ=1,2,3,4,5,ό,且 當 P=1,I一 12 1一2>乂3,則 L—ps=L—1S=L〜1 且 [一卩6吐一16=1^一2’]^,=]\4一13=:]^1一1且]^1』6=^116=]^2 亦即 f—ls=f—l 且 f—ie=f—2,g一Is=g」且 g—ie== 2 · 當 ρ=2,I一2 > I一 1 2 I—3,則 L—ps=L—2s==I〇 且 • L_pe=Lj2e=L—2,M—ps=M一2s=M一3 且]VI—pe=Mj2e=M 2, 亦即 f一2s=f—3 且 f一2e=f—2,g一2s=g一3 且 g—2e=g 2 ; 當 p=3,1—2 2 I一3 > I一1,則 L—ps=L—3s==l〜3 且 !^)河一3柯一4,]^1』3=]^1一35=^」且>1,=]^一36=^4, 亦即 fL3S=f^3 且 ,g—3s=g—3 且 g—3e=g—4 ;— 當 p=4,I一3 > I一2 2 I一1,則 L—ps=L—4s==L〜5 且 L一pe=L—4e=L j,Mjps=M—4s=M—5 且 M—pe=M 4e=lV[ 4 亦即 f一4s-f一5 且 f一4e=f—4 ’ g一4s=g—5 且 g—4 ; 當 P=5,1—3 - I一 1 > I—2,則 且 TW2879PA 28 200818926 三達編號:TW2879PA L一pe-L—5e=L—6 ’ Μ一ps^M一5s=M一5 且 M—pe=M 6, 亦即 f—5s=f—5 且 f—5e=f一6,g—5s=g—5 且 g—5e=g—6 ;及 當 P=6,I一 1 > I—3 g I一2,則 L—ps=L—6s=Lj 且 L一Pe-L一’ M一ps=M一6s=M一 1 且 M—pe^M 6e=M 6, 亦即 f—6s=f—1 且 f—6e=f—6,g—6s=g」且 g—6e=g—6。 12·如申請專利範圍第n項所述之轉換方法,其中該 步驟(b)更包括: φ 依據查詢表L—ps、查詢表Ljpe、查詢表M—ps及查詢 表 M-Pe,取得 f js(l一i-I—k)、f一pe(I>I—k)、g—ps(i—H〜k)、 及 g-Pe(I—i-I—k)之值。 13·如申請專利範圍第i2項所述之轉換方法,其中該 步驟(b)更包括·· 人 設定該些補償量5IJ、5IJ、及(51』為: • 占匕卜苧x(l-“2)χ/一〆Δ); 5ΐ」=^ΧΜ2χ/—ΜΔ)-^χ[(1ι1)χ/—π(Δ)ι—ΜΔ)];及 占 I—k—了xg—pe(A)·专χ[“ΐχ/—^^⑷-容一㈣厶)]; 其中,ul等於〇或1,U2等於〇或1,k、 △ 1=1 一i-IJ、及△ 2==Ij4—k 〇 14·如申請專利範圍第12項所述之轉換方法,其中該 步驟(b)更包括·· TW2879f供—第三查詢表’該第三查詢表係分別包括複數個 29 200818926 三達編號:TW2879PA 數對(x,h(x)),其中h函數之定義域範圍為該最小灰階值至 該最大灰階值,且值域為[〇,1]; 依據該第三查詢表,取得⑴之 值,其中N1為該最小灰階值及N2為該最大灰階值, min[N2-I_i,I_k-Nl]為(N2-U)及(Ι>Ν1)之最小值;以及 設定該些補償量d l_i、5IJ、及”沙為: 5 U=h(min[N2-IJ5I_k-Nl])x^x(1_M2)x/_MA); • 5IJ=h(min[N2-I_i,I_.k-Nl])x{A2xu2x/_MA). △1 △ TX[(1_wl)x/_MA)-g_㈣Δ)]};及 <5 I_k=h(min[N2-U,I_k-Nl])x{ Δ2Χ^ ΜΔ). △ Δ1 r 了χΝχ/—μδ)ι—μδ)]}; 其.中:ul等於〇或等於〇或卜△=“·〇、 △ 1=1 一i-Ij、 15·如申請專利範圍第14項所述之轉換方法,其中h 函數為非線性函數,且當h函數之 + + 敌之輪入值為該最小灰階值 或該取大輸入灰阳值時’所得輪出值為零。 16.如申請專利範圍第15項所述之轉換方法,苴中 m=o及/2=255/當h函數之輪入值大於或等於63並 小於或4於192日守,所得輸出值為:。 17· —種色彩轉換裝置, TW2879PA 用以轉換一多原色訊號之至 30 200818926 三達編號:TW2879PA 少二輸入灰階值(grayScale valuell、L2、及j 3為對靡 之三輸出灰階值0—i、〇j、及〇-k,該色彩轉換裝置包括: 一輸入單元,用以接收該多原色訊號; 一控制單元,根據該多原色訊號之該些輪入灰階值 1-1、、及^產生一記憶體位址及一選擇訊號; 一記憶單元,係儲存有複數個一維查詢表,並根據該 些一維查詢表、該記憶體位址及該選擇訊號輸出一對應資 料; 一計算單元,根據該對應資料計算出該些輸出灰階值 〇-i、〇」、及0—k ;以及 一輸出單元,用以輸出該些輸出灰階值〇」、〇卜及 Ο Jc ; 一 其中,該些輸入灰階值L1、Ϊ—2、及!」係對應一色 彩三角形之-色彩座標,該色彩三角形具有複數個色相 區,對應該些輸入灰階值U、L2、及L3之該色彩座標 φ 係位於該些色相區其中之一色相區,該控制單元係根據該 色彩座標及該色相區以產生該記憶體位址及該選擇訊號。 18·如申請專利範圍第17項所述之色彩轉換裝置,其 中該控制單元更包括: 一位址產生器(Address Generator),耦接該輸入單元, 並根據該色彩座標以產生該記憶體位址;以及 一分類控制器(Classification Controller),_ 接該輸入 單元,並根據該色相區以產生該選擇訊號。 TW2879PA 31 200818926 三達編號:TW2879PA 19.如申請專利範圍第17項所述之色彩轉換裝置,其 中該記憶單元更包括: 複數個記憶體,係用以分別儲存該些一維查詢表;以 及 一記憶體介面,係根據該選擇訊號對部分之該些記憶 體進行存取,並根據該記憶體位址於各該部分之該些記憶 體之該一維查詢表中搜尋該對應資料,以輸出該對應資 TW2879PA 32200818926 Sanda number: TW2879PA X. Patent application scope: 1. A multi-primary color signal conversion method for converting at least two gray-scale values (graySCale value) I j, 1-2, and I 3 of the multi-primary color signal The conversion method includes: (a) determining the input gray scale value I1; [, 〗 1-2, and I 1-3, and setting IJ as one of the input gray scale values, the maximum input gray scale The value, IJ is the grayscale value of one of the rounded grayscale values, and I_k is the minimum input grayscale value of one of the input grayscale values; (b) Calculating I-i, I", and I -k three compensation amount, the three compensation amounts are j5 IJ, and 5 I_k; (c) determining the maximum input gray level value Ij, the intermediate input gray level value IJ, and the minimum input gray level value I_k Corresponding output grayscale values 〇j, 〇j, and Οk, such that 〇i=I—i-(Π—i, 〇J=I”-5 I”, and 〇—k=I—k-( 51 a k ; and (4) determine the size of the output gray scale values OJ, 〇 J, and 〇 _k, _ if 0 - i, 0 J, or 〇 - k is greater than a maximum gray scale value, then set the outputs Gray scale value〇 0", or 0-k is the maximum grayscale value. If 〇", 〇", or OJc is less than a minimum grayscale value, the output grayscale values 〇j, 0J, or Ojc are set to the minimum grayscale 2. The conversion method of claim 1, wherein the multi-primary color system comprises a red color (Red; R), a green color (Green), and a blue color (Blue; B) ° TW2879PA. 25 200818926 达达编号♦ TW2879PA 3. The conversion method of claim 1, wherein the step (b) comprises: providing a first lookup table comprising a plurality of pairs ( x, f(x)), wherein the domain of the f function ranges from a minimum grayscale value to a maximum grayscale value, and the range of values ranges from the minimum grayscale value to the maximum grayscale value. The conversion method of the third aspect, wherein the f-function _ number is a non-linear function. 5. The conversion method of claim 3, wherein the step (b) further comprises: according to the first query The table obtains the value of f(U-I_k). 6. The conversion method according to claim 5, wherein the step (b) is further These include: • Setting the compensation amounts, 51”, and 5I_k are: 5 IJ=0; 5 I”=uxf(I—iI_k); and δI_k=0° where u is equal to 1 or -1. The conversion method according to claim 5, wherein the step (b) further comprises: setting the compensation amounts 5 IJI, 5IJ, and (5I_k is: TW2879PA 26 200818926 Sanda number: TW287卯A δ I_i= 〇; ; and 5 I-Bu f (I ii-k). 8. The conversion method of claim 5, wherein the step (b) further comprises: providing a second lookup table comprising a plurality of pairs of numbers 10 (x, g(x) Wherein the range of the g function is a minimum gray scale value to a maximum gray scale value and the range of values ranges from the minimum gray scale value to the maximum gray scale value; according to the second lookup table, g(I_i) is obtained -IJc); and setting the compensation amounts (Hj, 5IJ, and 5I_k are: 5 I - k = g (l - iik). Where II is equal to 1 or _1 〇 9 · as claimed in claim 8 The conversion method of the item, wherein the g function is a non-linear function. The conversion method of claim 1, wherein the conversion method further comprises: providing six lookup tables L-1, L2 , L 3, L 4, L 5, jL6, —~ — — — — — — and six query tables—1, M-2, M-3, M-4, M-5, and M-6, Some of the lookup tables L-1 to L-6 include a plurality of pairs (x, f_i(x)), TW2879PA _ 200818926, three numbers: TW2879PA (x, f-2(x)), (x, f- 3(x)), (x, f-4(x)) , (x, f - 5 (x)), and (x, f - 6 (χ)), and the query tables M1 to M-6 respectively include a plurality of pairs (x, g - l (8)), ( x, g - 2 (8)), (x, g - 3 (8)), (x, g - 4 (x)), (x, g - 5 (χ)), and (x, g - 6 (x)), wherein The domain of the f-1 to f-6 and g-1 to g-6 functions ranges from a minimum grayscale value to a maximum grayscale value, and the range of values ranges from the minimum grayscale value to the maximum grayscale value. 11. The conversion method according to the first aspect of the patent application, wherein the step (a) further comprises: determining the hue regions of the input gray scale values I-1, 1-2, and 1-3, wherein ρ =1, 2, 3, 4, 5, ό, and when P=1, I~12 1~2; 乂3, then L_ps=L-1S=L~1 and [一卩6吐一16= 1^一2']^,=]\4一13=:]^1一1 and]^1』6=^116=]^2 ie f-ls=f-l and f_ie=f- 2, g - Is = g" and g - ie == 2 · When ρ = 2, I - 2 > I - 1 2 I - 3, then L - ps = L - 2s = = I 〇 and • L_pe = Lj2e = L - 2, M - ps = M - 2s = M - 3 and ] VI - pe = Mj2e = M 2, that is, f - 2s = f - 3 and f - 2e = f - 2, g - 2s = g - 3 and g - 2e = g 2 ; when p = 3, 1-2 2 I -3 > I -1, then L - ps = L - 3s = = l ~ 3 and ! ^) 河一3柯一4,]^1』3=]^1_35=^" and &gt ;1,=]^一36=^4, that is, fL3S=f^3 and g-3s=g-3 and g-3e=g-4; when p=4, I-3 > I 2 2 I -1, then L - ps = L - 4s = = L ~ 5 and L - pe = L - 4e = L j, Mjps = M - 4s = M - 5 and M - pe = M 4e = lV [ 4 that is, f - 4s - f - 5 and f - 4e = f - 4 ' g - 4s = g - 5 and g - 4 ; when P = 5, 1 - 3 - I - 1 > I - 2, then And TW2879PA 28 200818926 Sanda number: TW2879PA L-pe-L-5e=L-6' Μ ps^M-5s=M-5 and M-pe=M 6, ie f-5s=f-5 F-5e=f-6, g-5s=g-5 and g-5e=g-6; and when P=6, I-1 > I-3 g I-2, then L_ps=L- 6s=Lj and L-Pe-L-'M-ps=M-6s=M-1 and M-pe^M6e=M6, ie f-6s=f-1 and f-6e=f-6 , g-6s=g" and g-6e=g-6. 12. The conversion method as described in claim n, wherein the step (b) further comprises: φ obtaining f according to the lookup table L_ps, the lookup table Ljpe, the lookup table M_ps, and the lookup table M-Pe The values of js(l-iI-k), f-pe(I>I-k), g-ps(i-H~k), and g-Pe(I-iI-k). 13. The conversion method according to item i2 of the patent application scope, wherein the step (b) further comprises: setting the compensation amounts 5IJ, 5IJ, and (51) to: • occupying the divination x (l- "2) χ / 〆 Δ); 5 ΐ" = ^ ΧΜ 2 χ / - Μ Δ) - ^ χ [(1ι1) χ / - π (Δ) ι - Μ Δ)]; and I - k - xg - pe ( A)·Special [[ΐχ/—^^(4)-容一(四)厶)]; where ul is equal to 〇 or 1, U2 is equal to 〇 or 1, k, △ 1 = 1 i-IJ, and △ 2= =Ij4 - k 〇 14 · The conversion method according to claim 12, wherein the step (b) further comprises: TW2879f for the third lookup table 'the third query table respectively includes a plurality of 29 200818926 Sanda number: TW2879PA number pair (x, h(x)), where the domain of the h function is the minimum gray scale value to the maximum gray scale value, and the range is [〇, 1]; Look up the table and obtain the value of (1), where N1 is the minimum grayscale value and N2 is the maximum grayscale value, and min[N2-I_i, I_k-Nl] is the minimum of (N2-U) and (Ι>Ν1) And setting the compensation amounts d l_i, 5IJ, and “sand: 5 U=h(min[N2-IJ5I_k-Nl])x^x(1_M2)x/_MA); • 5IJ=h(min[N2-I_i,I_.k-Nl])x{A2xu2x/_MA). △1 △ TX[(1_wl)x/_MA)-g_(four)Δ)]}; and <5 I_k=h (min[N2-U,I_k-Nl])x{ Δ2Χ^ ΜΔ). △ Δ1 r χΝχ/—μδ) ι—μδ)]}; where: ul is equal to 〇 or equal to 〇 or △ △=“ · 〇, △ 1 = 1 i-Ij, 15 · The conversion method as described in claim 14, wherein the h function is a nonlinear function, and when the h function has a + + enemy rounding value is the minimum When the gray scale value or the large input gray value is taken, the resulting round out value is zero. 16. The conversion method described in claim 15 of the patent application, m=o and /2=255/when the function of h The round-up value is greater than or equal to 63 and less than or 4 is maintained at 192 days. The resulting output value is: 17·—A color conversion device, TW2879PA is used to convert a multi-primary signal to 30 200818926 Sanda number: TW2879PA The grayscale value (grayScale valuell, L2, and j3 are the output grayscale values 0-i, 〇j, and 〇-k of the pair, the color conversion device includes: an input unit for receiving the multi-primary signal a control unit, according to the multi-primary signal The round grayscale values 1-1, , and ^ generate a memory address and a selection signal; a memory unit stores a plurality of one-dimensional lookup tables, and according to the one-dimensional lookup table, the memory address And the selection signal outputs a corresponding data; a calculation unit calculates the output gray scale values 〇-i, 〇", and 0-k according to the corresponding data; and an output unit for outputting the output gray scales Value 〇", 〇卜 and Ο Jc ; one of which, the input grayscale values L1, Ϊ-2, and! Corresponding to the color coordinate of a color triangle, the color triangle has a plurality of hue regions, and the color coordinates φ corresponding to the input gray scale values U, L2, and L3 are located in one of the hue regions. The control unit generates the memory address and the selection signal according to the color coordinate and the hue region. The color conversion device of claim 17, wherein the control unit further comprises: an address generator coupled to the input unit and generating the memory address according to the color coordinates And a classification controller, which is connected to the input unit, and generates the selection signal according to the hue region. 。 。 。 。 。 。 。 。 。 。 。 。 。 。 。 。 。 。 。 。 。 。 。 。 。 。 。 。 。 。 。 。 。 。 。 。 。 。 。 。 。 。 。 。 。 The memory interface accesses a portion of the memory according to the selection signal, and searches for the corresponding data according to the memory address in the one-dimensional lookup table of the memory of each portion to output the Corresponding TW2879PA 32
TW95137796A 2006-10-13 2006-10-13 Transformation method of a multiple primary color signal and color transformation device using the same TW200818926A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
TW95137796A TW200818926A (en) 2006-10-13 2006-10-13 Transformation method of a multiple primary color signal and color transformation device using the same

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
TW95137796A TW200818926A (en) 2006-10-13 2006-10-13 Transformation method of a multiple primary color signal and color transformation device using the same

Publications (1)

Publication Number Publication Date
TW200818926A true TW200818926A (en) 2008-04-16

Family

ID=44769611

Family Applications (1)

Application Number Title Priority Date Filing Date
TW95137796A TW200818926A (en) 2006-10-13 2006-10-13 Transformation method of a multiple primary color signal and color transformation device using the same

Country Status (1)

Country Link
TW (1) TW200818926A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TWI410119B (en) * 2008-11-18 2013-09-21 Innolux Corp A color management system for tetrahedral interpolator using 3d-lut and the method thereof
TWI489445B (en) * 2014-09-23 2015-06-21 Delta Electronics Inc Instant color gamut mapping system and instant gamut mapping method

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TWI410119B (en) * 2008-11-18 2013-09-21 Innolux Corp A color management system for tetrahedral interpolator using 3d-lut and the method thereof
TWI489445B (en) * 2014-09-23 2015-06-21 Delta Electronics Inc Instant color gamut mapping system and instant gamut mapping method
US10319340B2 (en) 2014-09-23 2019-06-11 Delta Electronics, Inc. Real-time color mapping system and method

Similar Documents

Publication Publication Date Title
TWI289274B (en) Method and apparatus for converting from a source color space to a target color space
US10366673B2 (en) Display device and image processing method thereof
JP5406718B2 (en) Multi-primary color conversion method, multi-primary color conversion system, display device, and computer program
US20050225561A1 (en) Systems and methods for selecting a white point for image displays
TWI580246B (en) Color gamut conversion device and method for converting color gamut
JP2001083940A (en) Color image processing method, color image processing device, liquid crystal display device
KR102587865B1 (en) Display device and image processing method thereof
US20130044122A1 (en) Color adjustment circuit, digital color adjustment device and multimedia apparatus using the same
JPWO2011061954A1 (en) Image processing apparatus and image processing method
JPWO2014024577A1 (en) Color signal processing circuit, color signal processing method, display device, and electronic apparatus
TW201415449A (en) Image display unit, method of driving image display unit, signal generator, signal generation program, and signal generation method
CN110675797A (en) Color gamut mapping method, color gamut mapping assembly, display device and storage medium
JPWO2007032133A1 (en) Display device
TW201128627A (en) Method for adjusting the color of image
CN107437408B (en) Color modulation circuit, display driver and display device
JP2012118539A (en) Display color adjustment
TW200818926A (en) Transformation method of a multiple primary color signal and color transformation device using the same
US7209144B2 (en) Image-display apparatus, image-display method, and image-display program
TWI460712B (en) Method of compensating color gamut of display
KR101969456B1 (en) Image data converting device and display device including thereof
TWI425495B (en) Color temperature compensation method and applications thereof
TWI384888B (en) Method and module for regulating luminance
JP2012248911A (en) Image display device
KR20220060862A (en) Color gamut mapping method and device
JP6185239B2 (en) Image processing apparatus, image processing method, and program