200839729 -九、發明說明: 【發明所屬之技術領域】 本發明係關於一種數位影像裝置顏色校正表生成方法 及復合色測量分離方法。 【先前技術】 隨著數位影像裝置的使用越來越普及,人們對數位影 像裝置顯示晝面的質量的要求也越來越高。通常,在三原 色的色彩理論中’任何色彩都是由該三原色按一定的比例 混合出來的,其中該色彩的亮度取決於各單原色的亮度 和,該色彩的色度取決於各單原色的混合比例。在利用三 原色進行圖像顯示和圖像處理的數位影像裝置中,該數位 影像裝置將視頻訊號轉換成視覺效果上的圖像顯示,該數 位影像裝置顯示圖像顏色的亮度和色度取決於該視頻訊號 的強弱。將該視頻訊號按幅度25 6等分,使該數位影像裝置 顯示晝面從全黑到全白256等分,每一等分稱為一個灰階。 每一灰階顯示的色彩都是由該三原色按一定的比例混合出 來的。目前之數位影像裝置在各灰階分別只顯示各單^色 訊號對應的晝面時,對該數位影像裝置顯示的亮度、色度 分別進行測量、調整以達到提高其顯示畫面質量的目: 然,目前之數位影像裝置在亮度、色度的測量過程中, 要分別測量其各灰階分別只顯示各單原色訊號對應的晝面 的亮度、色度,該測量過程速度較慢,花費時間較長,因 而利用該測量方法生成顏色校正表,以對該數位影像裝置 8 200839729 顧示晝面的亮度和色度進行調整,所花費的時間亦較長, 不利於在生產線上的推廣應用。且在對該數位影像裝置顯 示畫面的色度進行調整時,要對各單原色分別進行調敕., 不能精確調整出每-灰階各單原色的比例,該數位影ς裝 置顯示畫面的色彩匹配性差,顯示效果不佳。 t 【發明内容】 有鑑於此,提供一種可縮短測量時間,提高色彩匹配 性的數位影像裝置顏色校正表生成方法實為必要。 且提供一種復合色測量分離方法亦為必要。 種數位影像裝置顏色校正表之生成方法,其包括以 下步驟··步驟S1,關閉待檢測的數位影像裝置本身所設定 之顏色校正功能;步驟S2,起始化該數位影像裝置顏色校 正表之生成系統,·步驟S3,測量該數位影像裝置所能顯示 色域的基點;步驟S4,測量該數位影像裝置顯示等灰階間 隔白晝面的亮度、色度激勵值;步驟S5,計算該數位影像 裝置顯示的等灰階間隔的白晝面對應的紅、綠、藍三種顏 色的壳度值;步驟S6,將步驟S5中等灰階間隔的紅、綠、 監二種顏色的亮度值分別進行插值計算以獲得紅、綠、藍 三條實際亮度特性曲線;步驟S7,計算獲取紅、綠、藍三 條理想亮度特性曲線;步驟S8,於該實際亮度特性曲線 上,查找與該理想亮度特性曲線上各灰階亮度值最接近的 點,並儲存該實際亮度特性曲線上最接近的點所對應的數 值’步驟S 9 ’將步驟S 8得到的數值依其所對應灰階之從小 9 200839729 •到大的順序排列生成顏色校正表。 -種數位影像裝置復合色測量分離方法,其包括以下 步驟:步驟S1’測量該數位影像裝置所能顯示色域的基 點;步驟S2,測量該數位影像裝置顯示復合色的亮度、色 度激勵值;步則3,計算該触f彡像裝置顯*復合色對應 的單色的亮度值。 與先前技術相比,本發明之數位影像裝置顏色校正表 之生成方》,用肖色彩分析冑對該數位影像裝置顯示的等 灰階間隔的白晝面的亮度、色度激勵值分別進行測量,然 後通過计异得到每一白晝面的紅、綠、藍三種顏色的亮度, 再通^插值方法得到所有灰階中紅、綠、藍三種顏色的亮 度,最後根據理想灰階亮度來校正該實際灰階亮度而得到 顏色校正表。由於只測量少數灰階白晝面的亮度,且其它 步驟通過數據採集分析計算機計算得到,因此,用本發明 之顏色校正表生成方法生成顏色校正表的時間縮短,有利 於對每一台數位影像裝置分別進行顏色校正來提高其顯示 影像的質量。利用該顏色校正表對該數位影像裝置顯示晝 面的色度進行調整時,分析每一灰階各單原色的比例并通 過調整比例來進行顏色調整,提高了該數位影像裝置顯示 晝面的色彩精確性,進而提高了顯示晝面的質量。 【實施方式】 本發明之數位影像裝置顏色校正表之生成方法需應用 一系統’該系統包括一數據採集分析計算機、一視頻訊號 200839729 •七生器、一色彩分析儀及一需測量調整的數位影像裝置。 該數據採集分析計算機包括一 VGA(Video Graphics Array)顯卡及複數暫存器,該視頻訊號發生器可為該VgA 顯卡。該數位影像裝置包括一記憶體。該色彩分析儀採用 非接觸式量測設計,其提供一亮度、色度座標系χγζ,其 中,座標值X、Υ、Ζ分別表示紅、綠、藍三原色對該數^立 影像裝置顯示晝面亮度、色度的激勵值。 該視頻訊號發生器為一標準視頻訊號發生源,向該數 位影像裝置提供一白晝面。該色彩分析儀通過把探頭伸到 該數位影像裝置顯示面直接獲取當前數位影像裝置顯示亮 度、色度的激勵值,然後該色彩分析儀將該激勵值傳送到 該數據採集分析計算機的暫存器中,由該數據採集分析計 算機完成數據處理。 請參閱圖1,係本發明之數位影像裝置顏色校正表之生 成方法流程圖。 步驟S1,關閉顏色校正功能。該數位影像裝置開始工 作前,通過一軟體關閉該待檢測的數位影像裝置本身^設 定的顏色校正程序。 /步驟S2,系統起始化。起始化該視頻訊號發生器、該 色彩分析儀、該數據採集分析計算機及該數位影像裝置。 設置該視頻訊號發生器產生由紅'綠、藍三原色的最大信 ,復t成的視頻訊冑’該視頻訊號使該數位影像裝置顯示 最大儿度色度的白晝面。將該視頻訊號按訊號強弱等 分,使該數位影像裝置分別顯示〇、1、2、 、62、〇級灰 11 200839729 階白畫面。該0、1、2、···、62、63級灰階白晝面的亮度、 色度分別對應將該視頻訊號按訊號強弱256 4、8、…、、况級灰階白晝面的亮度、色度後 步驟S3 ’獲取該數位影像裝置顯示亮度值。請一併參 閱圖1、圖2’其中圖2係本發明之數位影像裝置顏色校正表 之生成方法中獲取顯示亮度、色度的流程圖。該數位影 裳置分別顯示0+2、...、^級灰階白晝面時,獲取 每-灰階紅、、綠、藍三原色的亮度、色度’該過程又可細 分為以下步驟·· 步驟S31,測量該數位影像裝置所能顯示色域的基 點:該,頻訊號發生器分別產生三個最強的單原色訊號, 該二個最強的單原色訊號分別使該數位影像裝置只顯示最 大焭度、色度的紅、綠、藍三種顏色。在最強的紅色訊 即該數位影像裝置顯示紅色亮度、色度最大時,用該^彩 分析儀測量X、γ、z激勵值分別為Xr、Yr、☆。同理,在 最強的綠、藍色訊號,即該數位影像裝置分別顯示綠、藍 色壳度、色度最大時,用該色彩分析儀分別測量χ、γ、z 激勵值分別為Xg、Yg、4及Xb ' Yb、Zb。將該激勵值Xr、200839729 - IX. Description of the Invention: [Technical Field] The present invention relates to a digital image device color correction table generation method and a composite color measurement separation method. [Prior Art] With the increasing popularity of digital video devices, there is an increasing demand for digital video devices to display the quality of the facets. Generally, in the color theory of the three primary colors, 'any color is mixed by the three primary colors in a certain ratio, wherein the brightness of the color depends on the brightness of each single primary color, and the chromaticity of the color depends on the mixing of the individual primary colors. proportion. In a digital image device that performs image display and image processing using three primary colors, the digital image device converts the video signal into a visual effect image display, and the brightness and chromaticity of the digital image device display image color depend on the The strength of the video signal. The video signal is equally divided by an amplitude of 25 6 so that the digital image device displays 256 equal parts from all black to all white, and each aliquot is called a gray scale. The color displayed in each gray scale is mixed by the three primary colors in a certain ratio. In the current digital image device, when only the facets corresponding to the single color signals are displayed in each grayscale, the brightness and chromaticity displayed by the digital image device are respectively measured and adjusted to achieve the purpose of improving the quality of the display image: In the current measurement process of brightness and chromaticity, the digital image device has to measure the brightness and chromaticity of each face corresponding to each single primary color signal, and the measurement process is slower and takes longer time. Therefore, the color correction table is generated by using the measurement method to adjust the brightness and chromaticity of the digital image device 8 200839729, which takes a long time, which is not conducive to popularization and application on the production line. Moreover, when the chromaticity of the display screen of the digital image device is adjusted, each single primary color is separately adjusted. The ratio of each primary color of each grayscale cannot be accurately adjusted, and the color of the digital display device displays the color of the screen. Poor matching and poor display. SUMMARY OF THE INVENTION In view of the above, it is necessary to provide a method for generating a color correction table for a digital image device which can shorten measurement time and improve color matching. It is also necessary to provide a composite color measurement separation method. A method for generating a color correction table of a digital image device includes the following steps: Step S1, turning off the color correction function set by the digital image device itself to be detected; and step S2, initializing the generation of the color correction table of the digital image device System, step S3, measuring the base point of the color gamut that the digital image device can display; step S4, measuring the brightness and chrominance excitation value of the grayscale interval white surface of the digital image device; and step S5, calculating the digital image device Displaying the shell values of the three colors of red, green and blue corresponding to the white-faced interval of the gray-scale interval; in step S6, interpolating the brightness values of the red, green and the two colors of the medium-gray interval in step S5 respectively Obtaining three actual brightness characteristic curves of red, green and blue; in step S7, calculating three ideal brightness characteristic curves of red, green and blue; and step S8, searching for the gray level on the ideal brightness characteristic curve on the actual brightness characteristic curve The point at which the brightness value is closest, and stores the value corresponding to the closest point on the actual brightness characteristic curve 'Step S 9 ' will step S The values obtained by 8 are small according to their corresponding gray scales. 9 200839729 • The color correction table is generated in a large order. - a digital image device composite color measurement separation method, comprising the steps of: step S1' measuring a base point of a color gamut that can be displayed by the digital image device; and step S2, measuring the brightness and chrominance excitation value of the composite color device by the digital image device Step 3, calculate the brightness value of the monochrome corresponding to the composite color of the touch device. Compared with the prior art, the generator of the color correction table of the digital image device of the present invention measures the brightness and the chrominance excitation value of the white-scale surface of the gray-scale interval displayed by the digital image device by using the color analysis. Then, the brightness of the three colors of red, green and blue of each chalk surface is obtained by calculation, and the brightness of three colors of red, green and blue in all gray scales is obtained by interpolation method, and finally the actual color is corrected according to the ideal gray scale brightness. The gray scale brightness gives a color correction table. Since only the brightness of a few gray scale white planes is measured, and other steps are calculated by the data acquisition analysis computer, the time for generating the color correction table by the color correction table generation method of the present invention is shortened, which is advantageous for each digital image device. Color correction is performed separately to improve the quality of the displayed image. When the color correction table is used to adjust the chromaticity of the display surface of the digital image device, the ratio of each single primary color of each gray level is analyzed and the color is adjusted by adjusting the scale, thereby improving the color of the digital image device to display the surface. Accuracy, which in turn improves the quality of the display surface. [Embodiment] The method for generating a color correction table of the digital image device of the present invention needs to apply a system. The system includes a data acquisition and analysis computer, a video signal 200839729, a seventh-generation device, a color analyzer, and a digital image to be measured and adjusted. Device. The data acquisition and analysis computer includes a VGA (Video Graphics Array) graphics card and a plurality of registers, and the video signal generator can be the VgA graphics card. The digital image device includes a memory. The color analyzer adopts a non-contact measurement design, which provides a luminance and chrominance coordinate system χγζ, wherein the coordinate values X, Υ, and Ζ respectively represent red, green, and blue primary colors to display the image device. The excitation value of brightness and chromaticity. The video signal generator is a standard video signal generating source, and provides a white plane to the digital image device. The color analyzer directly obtains the excitation value of the brightness and chromaticity of the current digital image device by extending the probe to the display surface of the digital image device, and then the color analyzer transmits the excitation value to the register of the data acquisition and analysis computer. The data processing is completed by the data acquisition and analysis computer. Referring to Fig. 1, a flow chart of a method for generating a color correction table of a digital image device of the present invention is shown. In step S1, the color correction function is turned off. Before the digital image device starts working, the color correction program set by the digital image device to be detected is turned off by a software. /Step S2, the system is initialized. The video signal generator, the color analyzer, the data acquisition and analysis computer, and the digital image device are initialized. The video signal generator is arranged to generate a maximum signal of red, green, and blue primary colors, and the video signal of the complex image is used to cause the digital image device to display the maximum color chromaticity of the white surface. The video signal is equally divided by the signal strength, so that the digital video device displays 〇, 1, 2, 62, and 2008 gray ash 11 200839729 white picture. The brightness and chromaticity of the 0, 1, 2, . . . , 62, and 63 gray scale white planes respectively correspond to the brightness of the video signal according to the signal strength 256 4, 8, ..., the gray level white surface of the gray scale. After the chromaticity, step S3 'acquires the digital image device to display the brightness value. Referring to Fig. 1 and Fig. 2', Fig. 2 is a flow chart for obtaining display brightness and chromaticity in the method for generating a digital image device color correction table of the present invention. When the digital shadow display sets 0+2, ..., ^ gray scale white surface, respectively, the brightness and chromaticity of each of the three primary colors of red, green and blue are obtained, and the process can be subdivided into the following steps. · Step S31, measuring a base point of the color gamut that can be displayed by the digital image device: the frequency signal generator respectively generates three strongest single primary color signals, and the two strongest single primary color signals respectively cause the digital image device to display only the maximum The red, green and blue colors of the twist and the chromaticity. In the strongest red signal, when the digital image device displays red brightness and maximum chromaticity, the X, γ, and z excitation values are measured by Xr, Yr, and ☆, respectively. Similarly, when the strongest green and blue signals, that is, the digital image device respectively display green, blue shell, and maximum chromaticity, the color analyzers respectively measure the excitation values of χ, γ, and z as Xg and Yg, respectively. 4 and Xb 'Yb, Zb. The excitation value Xr,
Yr、Zr、Xg、Yg、Zg及Xb、Yb、Zb儲存在該數據採集分 析計算機的暫存器中。 y驟S32,投置第i級灰階白晝面。該視頻訊號發生器 生視頻號,該視頻訊號使該數位影像裝置顯示第$ 〇0、1、2、···、62、63)級灰階白晝面。 步驟S33 ’測量該灰階白晝面激勵值。該數位影像裝 12 200839729 置顯不第i級灰階白晝面時,用該色彩分析儀測量χ、γ、Z 激勵值並將該激勵值儲存在該數據採集分析計算機的暫存 器中。設X、γ、Z激勵值分別為Xi、Yi、Zi。 步驟S34 ’計算紅綠藍三色亮度值。用數據採集分析 計算機計算該數位影像裝置顯示第丨級灰階白畫面時,紅、 綠、藍三種顏色的亮度值。設該紅、綠、藍三種顏色對該 數位影像裝置顯示第i級白晝面亮度、色度的貢獻係數分別 為Kri、Kgi、Kbi,則該貢獻係數Kd、Kgi、Kbi可用以下 式子表示:Yr, Zr, Xg, Yg, Zg and Xb, Yb, Zb are stored in the register of the data acquisition and analysis computer. In step S32, the i-th gray scale white surface is placed. The video signal generator generates a video number, and the video signal causes the digital image device to display a grayscale white surface of the first 、0, 1, 2, ..., 62, 63). Step S33' measures the gray scale white plane excitation value. The digital image device 12 200839729 When the i-th gray scale white surface is not displayed, the color analyzer is used to measure the χ, γ, Z excitation values and the excitation value is stored in the temporary register of the data acquisition and analysis computer. Let the X, γ, and Z excitation values be Xi, Yi, and Zi, respectively. Step S34' calculates the red, green and blue three-color luminance values. Data Acquisition Analysis The computer calculates the brightness values of the red, green, and blue colors when the digital image device displays the third-order grayscale white image. The red, green and blue colors are used to display the luminance and chrominance contribution coefficients of the i-th white chalk surface for the digital image device as Kri, Kgi, and Kbi, respectively, and the contribution coefficients Kd, Kgi, and Kbi can be expressed by the following formula:
Kri' Xr Xg xb' -1 Xi Kgi Yr Yg Yb * Yi Kbi Zr Zg Zb Zi 设該數位影像裝置顯示第i級灰階白畫面時,該紅、 綠、藍三種顏色的亮度分別為Lri、Lgi、[Μ,則Ld、Lgi、 Lbi可用以下式子表示:Kri' Xr Xg xb' -1 Xi Kgi Yr Yg Yb * Yi Kbi Zr Zg Zb Zi When the digital image device displays the i-th grayscale white picture, the brightness of the red, green and blue colors is Lri, Lgi , [Μ, then Ld, Lgi, Lbi can be expressed by the following formula:
Lri· 'Xr Xg Xb' 一 1 Xi Lgi = Yr Yg Yb * Yi Lbi Zr Zg Zb Zi *&> Yg Yb] 步驟S35,儲存該紅綠藍三色亮度值。將經計算得到 的該、、X 、、亲、藍二種顏色的亮度值Lri、Lgi、Lbi儲存在該 數據採集分析計异機的暫存器中。 抑步驟S36=置下—級灰階白晝面。該視頻訊號發生 益產生一視頻訊號,該視頻訊號使該數位影像裝置顯示第 i + Ι級灰階白畫面。 步驟S 3 7,判斷測晉旱不# 土 π〜里疋否結束。判斷該視頻訊號發生 器的暫存器中儲存的红多番μ _ α ^ 、、色對應的壳度值的總個數是否大於 13 200839729 64,若否,則執行步驟S33 ;若是,則執行步驟S4。 步驟S4,插值計算。該插值計算的過程於該數據採集 分析計算機中進行,具體方法如圖3所示。點P0、PI、P2、 P3、…、P62、P63分別表示該數位影像裝置顯示64級灰階 白晝面時,紅色對應的亮度值LrO、Lrl、Lr2、…、Lr62、 Lr63。由該P0、PI、P2三點可確定一條貝齊爾(Bezier)曲線。 在該貝齊爾曲線上,於該P0與P1點之間,取等灰階間隔的 15個點Ml、M2、…、M15。根據相同原理,PI、P2、P3 亦確定一條貝齊爾曲線,在該貝齊爾曲線上,於該P1與P2 點之間,亦取等灰階間隔的15個點M17、…、M31,依次類 推,則P0與P62之間的任意相鄰兩點間都插入15個點。點 P61、P62、P63亦確定一貝齊爾曲線,在該貝齊爾曲線上, 於點P63兩側,分別取等灰階間隔的15個點,則一共得到 1024個點 Mm(m=0、1、2、…、1022、1023)。該 1024個點 形成一條曲線,即該數位影像裝置紅色對應的實際亮度特 性曲線。依據相同原理,可得綠、藍兩種顏色對應的實際 亮度特性曲線。 步驟S5,獲取顏色校正表。請一併參閱圖1、圖4,其 中圖4係本發明之數位影像裝置顏色校正表之生成方法中 獲取顏色校正表的流程圖。該獲取顏色校正表的過程於該 數據採集分析計算機中進行,其可細分為以下步驟: 步驟S51,獲取紅綠藍三條理想亮度特性曲線。紅色 對應的理想亮度特性曲線可通過以下式子得到:Lri· 'Xr Xg Xb' - 1 Xi Lgi = Yr Yg Yb * Yi Lbi Zr Zg Zb Zi * &> Yg Yb] In step S35, the red, green and blue three-color luminance values are stored. The calculated brightness values Lri, Lgi, and Lbi of the X, X, and D colors are stored in a register of the data acquisition and analysis machine. S36 is set to set the gray scale white surface. The video signal generates a video signal that causes the digital video device to display an i + Ι grayscale white picture. Step S 3 7, judge the measurement of Jin drought not #土 π〜里疋不完. Determining whether the total number of shell values stored in the buffer of the video signal generator is greater than 13 200839729 64. If not, executing step S33; if yes, executing Step S4. Step S4, interpolation calculation. The process of interpolation calculation is performed in the data acquisition and analysis computer, and the specific method is shown in FIG. Points P0, PI, P2, P3, ..., P62, and P63 respectively indicate luminance values LrO, Lrl, Lr2, ..., Lr62, and Lr63 corresponding to red when the digital video apparatus displays 64 gray scale white planes. A Bezier curve can be determined from three points of P0, PI and P2. On the Bezier curve, between the points P0 and P1, 15 points M1, M2, ..., M15 of the gray-scale interval are taken. According to the same principle, PI, P2, and P3 also determine a Bezier curve. On the Bezier curve, between the points P1 and P2, 15 points M17, ..., M31 of the gray-scale interval are also taken. By analogy, 15 points are inserted between any two adjacent points between P0 and P62. Points P61, P62, and P63 also determine a Bezier curve. On the Bezier curve, 15 points of the gray-scale interval are taken on both sides of the point P63, and a total of 1024 points Mm are obtained (m=0). 1, 2, ..., 1022, 1023). The 1024 points form a curve, that is, the actual brightness characteristic curve corresponding to the red of the digital image device. According to the same principle, the actual brightness characteristic curves corresponding to the green and blue colors can be obtained. In step S5, a color correction table is acquired. Referring to FIG. 1 and FIG. 4 together, FIG. 4 is a flowchart of obtaining a color correction table in the method for generating a color correction table of the digital image device of the present invention. The process of obtaining the color correction table is performed in the data acquisition and analysis computer, and can be subdivided into the following steps: Step S51, three ideal brightness characteristic curves of red, green and blue are acquired. The ideal brightness characteristic curve corresponding to red can be obtained by the following formula:
Ln = (Lmax - Lmin)(n/255)Agamma + Lmin 14 200839729 其中,Lmax表示該數位影像裝置紅色訊號最大時, 顯示的最大亮度值,Lmin為0階時的亮度,n(n = 0、1、2、 …、255)表示0到255級灰階中的任意一級灰階的級數,Ln 表示紅色的第η級灰階對應的亮度值,gamma為一常數,通 常取值為2.2。當η依次取0到255之間的值時,設Ln的值分 別為 L0、L1、…、L254、L255,貝ij L0、L1、…、L254、 L255分另丨J對應256個點Qn(n=0、1、2、…、255),該256個 點所在的曲線即為紅色對應的理想亮度特性曲線。依據相 同原理,可得綠、藍兩種顏色對應的理想亮度特性曲線。 步驟S52,設置灰階級數為η。設紅色待校正的灰階的 級數為 η(η=0、1、2、…、254、255)。 步驟S53,校正第η級灰階。請參閱圖5,係本發明校 正灰階亮度的方法示意圖。其中,該實線表示紅色對應的 理想亮度特性曲線,該虛線表示紅色對應的實際亮度特性 曲線。Qn(n=0、1、2、…、255)表示紅色的第η級灰階在該 理想亮度特性曲線上理想亮度Ln對應的點,M m表示該實 際亮度特性曲線上1024個點中的第m點。根據Qn的亮度值 Ln,於該實際亮度特性曲線上的1024點中查找亮度值與該 理想亮度Ln值最接近的一點M m,並將該M m點對應的數 值m儲存在該數據採集分析計算機的暫存器中。 步驟S54,設置下一級灰階。設下一個待校正的灰階 級數為η +1。 步驟S55,判斷校正是否完畢。判斷該灰階級數η+1是 否大於255,若否,則執行步驟S53;若是,則執行步驟S56。 15 200839729 步驟S56,生成顏色校正表。按照灰階級數^從〇到ms 的取值順序,將儲存在該數據採集分析計算機暫存器中的 m對應的取值依次排列,即得到紅色對應的顏色校正表。 依據相同原理,可得綠、藍兩種顏色對應的顏色校正表。 步驟S6 ,燒錄顏色校正表。將該步驟S56得到的紅、 綠、藍三種顏色對應的顏色校正表燒錄在該數位影像裝置 的記憶體中。 " 與先前技術相比,本發明之數位影像裝置顏色校正表 之生成方法,用該色彩分析儀對該數位影像裝置顯示的料 級灰階白晝面的亮度、色度分別進行測量,然後通過計算 得到該64級灰階白晝面中每一白晝面的紅、綠、藍三種= 色的亮度,再通過插值方法得到256級灰階中紅、綠、藍三 種顏色的亮度,最後根據理想灰階亮度來校正該實際灰階 亮度而得到顏色校正表。由於只測量64級灰階白晝面的亮 度,且其它步驟通過數據採集分析計算機計算得到,因此, 用本發明之顏色校正表生成方法生成顏色校正表的時間縮 短,有利於對每一台數位影像裝置分別進行顏色校正來提 高其顯示影像的質量。 本發明用色彩分析儀測量64級灰階白晝面的亮度、色 度激勵值,亦可只測量32級或128級灰階白晝面的亮度、色 度激勵值。步驟S4中於貝齊爾曲線上等灰階間隔取點,亦 可以於相鄰兩點確定的直線上等灰階間隔取點,並不限於 上述實施方式。本發明用色彩分析儀測量由紅綠藍三原色 復合成的白晝面,亦可測量由其他顏色形成的復合色,並 16 200839729 •不限於上述實施方式。 本發明步驟S51,獲取紅綠藍三條理想亮度特性曲線 亦可以通過以下式子得到:Ln = (Lmax - Lmin)(n/255)Agamma + Lmin 14 200839729 where Lmax represents the maximum brightness value displayed when the red signal of the digital image device is maximum, and the brightness when Lmin is 0th order, n(n = 0, 1, 2, ..., 255) represents the order of any one of the gray levels of the 0 to 255 gray scale, Ln represents the luminance value corresponding to the red nth gray scale, and gamma is a constant, which is usually 2.2. When η sequentially takes a value between 0 and 255, it is assumed that the values of Ln are L0, L1, ..., L254, L255, respectively, and ij L0, L1, ..., L254, L255, respectively, 对应 J corresponds to 256 points Qn ( n=0, 1, 2, ..., 255), the curve where the 256 points are located is the ideal brightness characteristic curve corresponding to red. According to the same principle, an ideal brightness characteristic curve corresponding to two colors of green and blue can be obtained. In step S52, the number of gray levels is set to η. Let the number of gray scales to be corrected by red be η (η = 0, 1, 2, ..., 254, 255). In step S53, the nth gray scale is corrected. Please refer to FIG. 5, which is a schematic diagram of a method for correcting the gray scale brightness of the present invention. Wherein, the solid line represents an ideal brightness characteristic curve corresponding to red, and the broken line represents an actual brightness characteristic curve corresponding to red. Qn (n = 0, 1, 2, ..., 255) represents a point at which the red nth gray scale corresponds to the ideal luminance Ln on the ideal luminance characteristic curve, and M m represents 1024 points on the actual luminance characteristic curve. The m point. According to the brightness value Ln of Qn, a point Mm whose brightness value is closest to the ideal brightness Ln value is found in 1024 points on the actual brightness characteristic curve, and the value m corresponding to the M m point is stored in the data acquisition analysis. In the scratchpad of the computer. In step S54, the next level gray scale is set. Set the next gray level to be corrected to η +1. In step S55, it is judged whether or not the correction is completed. It is judged whether or not the gray level number η+1 is greater than 255. If not, step S53 is performed; if yes, step S56 is executed. 15 200839729 Step S56, generating a color correction table. According to the order of the gray class number ^ from 〇 to ms, the values corresponding to m stored in the data collection and analysis computer register are sequentially arranged, that is, the color correction table corresponding to red is obtained. According to the same principle, a color correction table corresponding to two colors of green and blue can be obtained. In step S6, the color correction table is burned. The color correction table corresponding to the three colors of red, green, and blue obtained in step S56 is burned in the memory of the digital image device. " Compared with the prior art, the method for generating a color correction table of the digital image device of the present invention uses the color analyzer to measure the brightness and chromaticity of the grayscale white surface of the material displayed by the digital image device, and then pass Calculate the brightness of red, green and blue colors of each white plane in the 64-level gray-scale white plane, and then obtain the brightness of red, green and blue in 256 gray scales by interpolation method, and finally according to the ideal gray The order brightness is used to correct the actual gray level brightness to obtain a color correction table. Since only the brightness of the 64-level gray scale white plane is measured, and other steps are calculated by the data acquisition analysis computer, the time for generating the color correction table by the color correction table generation method of the present invention is shortened, which is advantageous for each digital image. The device performs color correction separately to improve the quality of the displayed image. The invention uses a color analyzer to measure the brightness and chrominance excitation values of the 64-level gray scale white enamel surface, and can also measure only the brightness and chrominance excitation values of the 32-level or 128-level gray-scale white enamel surface. In step S4, points are taken at intervals of gray scales on the Bezier curve, and points may be taken at intervals of gray scales on straight lines determined by two adjacent points, and are not limited to the above embodiment. The present invention measures a white enamel surface composed of three primary colors of red, green and blue by a color analyzer, and can also measure a composite color formed by other colors, and 16 200839729 • Not limited to the above embodiment. In the step S51 of the present invention, obtaining three ideal brightness characteristic curves of red, green and blue can also be obtained by the following formula:
Kr255=Lr255/Ltotal Kg255=Lg255/Ltotal Kb255=Lb255/ Ltotal Ltotal = Lr255+ Lg255+ Lb255 = Lw255 其中,Ltotal表示步驟S31中獲得的Yr、Yg、Yb之和, Lr255、Lg255、Lb255為分另U 為步驟 S31 中 Yr、Yg、Yb, Kr255、Kg255、Kb255分別為Lw255中對應紅、綠、藍三 種顏色的比例,則第η級灰階白晝面中,紅色對應的理想亮 度Kr255=Lr255/Ltotal Kg255=Lg255/Ltotal Kb255=Lb255/ Ltotal Ltotal=Lr255+ Lg255+ Lb255=Lw255 where Ltotal represents the sum of Yr, Yg, and Yb obtained in step S31, and Lr255, Lg255, and Lb255 are steps. In S31, Yr, Yg, Yb, Kr255, Kg255, and Kb255 are the ratios of the three colors corresponding to red, green, and blue in Lw255, respectively, and the ideal brightness corresponding to red in the n-th gray-scale white-faced surface
Lrn= Kr255*Lwn, 其中,Lwn表示步驟S4中獲得的第η級灰階白晝面的亮 度。當η依次取0到255之間的值時,即得到紅色對應的理想 亮度特性曲線。依據相同原理,可得綠、藍兩種顏色對應 的理想亮度特性曲線。 與先前技術相比,本發明利用該方法獲得理想亮度特 性曲線,進而生成顏色校正表,利用該顏色校正表對該數 位影像裝置顯示畫面的色度進行調整時,分析每一灰階各 單原色的比例并通過調整比例來進行顏色調整,提高了該 數位影像裝置顯示晝面的色彩精確性,進而提高了顯示晝 面的質量。 綜上所述,本發明確已符合發明之要件,爰依法提出 17 200839729 t利申請。惟’以上該者僅為本發明之較佳實施方1太 之人士援依本發明之舉凡熟習本案技藝 蓋於以下#相範_ /之4效㈣或變化,皆應涵 【圖式簡單說明】 圖i係本㈣之触影縣置顏色校正表之生成方法流程 圖0 圖2係本發明之數位影像裝置顏色校正表之生成方法中獲取 顯不党度、色度的流程圖。 θ係^發明之數位影像裝置顏色校正表之生成方法中插值 計算的示意圖。 圖4係本發明之數位影像裝置顏色校正表之生成方法中獲取 顏色校正表的流程圖。 ^ 5係本發明校正灰階亮度的方法示意圖。 [主要元件符號說明】 jfe 18Lrn = Kr255*Lwn, where Lwn represents the luminance of the nth gray scale white plane obtained in step S4. When η sequentially takes a value between 0 and 255, an ideal luminance characteristic curve corresponding to red is obtained. According to the same principle, an ideal brightness characteristic curve corresponding to two colors of green and blue can be obtained. Compared with the prior art, the present invention uses the method to obtain an ideal brightness characteristic curve, thereby generating a color correction table, and using the color correction table to adjust the chromaticity of the display image of the digital image device, analyzing each single color of each gray level The proportion of the color adjustment is adjusted by adjusting the scale, which improves the color accuracy of the digital image display device, thereby improving the quality of the display surface. In summary, the present invention has indeed met the requirements of the invention, and has filed 17 200839729 t application. However, the above is only the preferred embodiment of the present invention. The person who is a member of the present invention is familiar with the present invention. The skill of the present invention is covered by the following #相范_ / 4 effects (four) or changes, all should be [simplified description Fig. i is a flow chart of the method for generating the color correction table of the twelfth county coloring table of the present invention. Fig. 2 is a flow chart for obtaining the degree of non-party and chromaticity in the method for generating the color correction table of the digital image device of the present invention. θ is a schematic diagram of interpolation calculation in the method of generating a color correction table for a digital image device. Fig. 4 is a flow chart showing the acquisition of a color correction table in the method of generating a color correction table of the digital image device of the present invention. ^ 5 is a schematic diagram of a method for correcting gray scale brightness of the present invention. [Main component symbol description] jfe 18