1360806 _ 100年11月'21日梭正替換^ 六、發明說明: 【發明所屬之技術領域】 [〇〇〇1]本發明係關於一種數位影像裝置顏色校正表生成方法及 復合色測量分離方法。 [先前技術] [0002] 隨著數位影像裝置的使用越來越普及,人們對數位影像 裝置顯示畫面的質量的要求也越來越高。通常,在三原 色的色彩理論中’任何色彩都是由該三原色按一定的比 例混合出來的,其中該色彩的亮度取決於各單原色的亮 度和’該色彩的色度取決於各單原色的混合比例。在利 用三原色進行圖像顯示和圖像處理的數位影像裝置中, 該數位影像裝置將視頻訊號轉換成視覺效果上的圖像顯 , 示,該數位影像裝置顯示圖像顏色的亮度和色度取決於 該視頻訊號的強弱》將該視頻訊號按幅度256等分,使該 數位影像裝置顯示畫面從全黑到全白2 5 6等分,每一等分 稱為一個灰階。每一灰階顯示的色彩都是由該三原色按 一定的比例混合出來的《目前之數位影像裝置在各灰階 分別只顯示各單原色訊號對應的畫面時,對該數位影像 裝置顯示的亮度、色度分別進行測量、調整以達到提高 其顯示畫面質量的目的。 [0003] 然,目前之數位影像裝置在亮度、色度的測量過程中, 要分別測量其各灰階分別只顯示各單原色訊號對應的晝 面的亮度、色度,該測量過程速度較慢,花費時間較長 ’因而利用该測量方法生成顏色校正表,以對該數位影 像裝置顯示畫面的亮度和色度進行調整,所花費的時間 096109263 表單编號Α0101 第4頁/共24頁 1003431408-0 1360806 100年11月21日梭正替換頁 亦較長,不利於在生產線上的推廣應用。且在對該數位 影像裝置顯示畫面的色度進行調整時,要對各單原色分 別進行調整,不能精確調整出每一灰階各單原色的比例 ,該數位影像裝置顯示畫面的色彩匹配性差,顯示效果 不佳。 【發明内容】 [0004] 有鑑於此,提供一種可縮短測量時間,提高色彩匹配性 的數位影像裝置顏色校正表生成方法實為必要。 [0005] 且提供一種復合色測量分離方法亦為必要。 [0006] 一種數位影像裝置顏色校正表之生成方法,其包括以下 步驟:步驟S1,關閉待檢測的數位影像裝置本身所設定 之顏色校正功能;步驟S2,起始化該數位影像裝置顏色 校正表之生成系統;步驟S3,測量該數位影像裝置所能 顯示色域的基點;步驟S4,測量該數位影像裝置顯示等 灰階間隔白晝面的亮度、色度激勵值;步驟S5,計算該 數位影像裝置顯示的等灰階間隔的白晝面對應的紅、綠 、藍三種顏色的亮度值;步驟S6,將步驟S5中等灰階間 隔的紅、綠、藍三種顏色的亮度值分別進行插值計算以 獲得紅、綠、藍三條實際亮度特性曲線;步驟S7,計算 獲取紅、綠、藍三條理想亮度特性曲線;步驟S8,於該 實際亮度特性曲線上,查找與該理想亮度特性曲線上各 灰階亮度值最接近的點,並儲存該實際亮度特性曲線上1360806 _November 100 '21st shuttle replacement ^ VI, invention description: [Technical field of invention] [〇〇〇1] The present invention relates to a digital image device color correction table generation method and composite color measurement separation method . [Prior Art] [0002] With the increasing use of digital video devices, there is an increasing demand for the quality of display images of digital video devices. 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 an image display on the visual effect, indicating that the brightness and chromaticity of the color of the image display device are determined by the digital image device. In the strength of the video signal, the video signal is equally divided into two equal parts by 256, so that the digital video device displays a picture from black to white, and each part is called a gray level. The color displayed in each gray scale is mixed by the three primary colors in a certain proportion. "The current digital image device displays the brightness of the digital image device when only the screen corresponding to each single primary color signal is displayed in each gray scale. The chromaticity is measured and adjusted separately to achieve the purpose of improving the quality of the displayed picture. [0003] However, in the measurement process of brightness and chromaticity, the current digital image device separately measures the brightness and chromaticity of each face corresponding to each single primary color signal, and the measurement process is slow. It takes a long time to use the measurement method to generate a color correction table to adjust the brightness and chromaticity of the display screen of the digital image device. The time taken for the 096109263 Form No. 1010101 Page 4 / Total 24 Page 1003431408- 0 1360806 On November 21, 100, the shuttle replacement page was also longer, which is not conducive to the promotion 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, and the ratio of each single primary color of each gray level cannot be accurately adjusted, and the color matching of the display image of the digital image device is poor. The display is not good. SUMMARY OF THE INVENTION [0004] In view of the above, it is necessary to provide a digital image device color correction table generating method that can shorten measurement time and improve color matching. [0005] It is also necessary to provide a composite color measurement separation method. [0006] A method for generating a digital image device color correction table, comprising the steps of: step S1, turning off the color correction function set by the digital image device itself to be detected; and step S2, initializing the digital image device color correction table a generating system; step S3, measuring a 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 The luminance values of the three colors of the red, green, and blue colors corresponding to the gray scale interval of the gray scale interval displayed by the device are performed; in step S6, the luminance values of the red, green, and blue colors of the medium gray interval of step S5 are respectively interpolated to obtain Red, green, and blue three actual brightness characteristic curves; step S7, calculating three ideal brightness characteristic curves of red, green, and blue; step S8, searching for the gray level brightness on the ideal brightness characteristic curve on the actual brightness characteristic curve The closest point to the value and store the actual brightness characteristic
I 最接近的點所對應的數值;步驟S9,將步驟S8得到的數 值依其所對應灰階之從小到大的順序排列生成顏色校正 表。其中,步驟S4中分別測量256級灰階中的第0、4、8 096109263 表單编號A0101 第5頁/共24頁 1003431408-0 1360806 __ 100年11月'21日核正替换頁- .....248、252級灰階白畫面之亮度、色度激勵值。 [0007] —種數位影像裝置復合色測量分離方法,其包括以下步The value corresponding to the closest point of I; in step S9, the values obtained in step S8 are arranged in a descending order of the corresponding gray scales to generate a color correction table. Wherein, in step S4, the 0th, 4th, and 8th 096109263 in the 256-level gray scale are respectively measured. Form No. A0101 Page 5 / Total 24 Page 1003431408-0 1360806 __ 100 November '21 Day Nuclear Replacement Page - .. ...248, 252 grayscale white screen brightness, chrominance excitation value. [0007] A digital image device composite color measurement separation method, comprising the following steps
I 驟:步驟S1,測量該數位影像裝置所能顯示色域的基點 •’步驟S2,測量該數位影像裝置顯示復合色的亮度、色 度激勵值;步驟S3 ’計算該數位影像裝置顯示復合色對 應的單色的亮度值;步驟S4,採用貝齊爾插值計算法將 步驟S3中等灰階間隔的單色亮度值分別進行插值計算以 獲得該復合色對應的單色之實際亮度特性曲線;步驟S5 ’計算獲取該復合色對應的單色之理想亮度特性曲線; 步驟S6,於該實際亮度特性曲線上,查找與該理想亮度 特性曲線上各灰階亮度值最接近的點,並儲存該實際亮 度特性曲線上最接近的點所對應的數值;步驟S7,將步 驟S6得到的數值依其所對應灰階之從小到大的順序排列 生成顏色校正表。 [0008] 與先前技術相比,本發明之數位影像裝置顏色校正表之 生成方法,用該色彩分析儀對該數位影像裝置顯示的等 灰階間隔的白畫面的亮度、色度激勵值分別進行測量, 然後通過計算得到每一白畫面的紅、綠、藍三種顏色的 亮度,再通過插值方法得到所有灰階中紅、綠、藍三種 顏色的亮度,最後根據理想灰階亮度來校正該實際灰階 亮度而得到顏色校正表。由於只測量少數灰階白畫面的 亮度,且其它步驟通過數據採集分析計算機計算得到, 因此,用本發明之顏色校正表生成方法生成顏色校正表 的時間縮短,有利於對每一台數位影像裝置分別進行顏 色校正來提局其顯示影像的質量。利用該顏色校正表對 096109263 表單编號A0101 第6頁/共24頁 1003431408-0 1360806 • t» [0009] [0010] [0011] [0012] [0013] 100年.11月21日按正替换頁 Λ數位衫像裝置顯示晝面的色度進行調整時,分析每一 灰階各單原色的比例并通過調整比例來進行顏色調整, 提问了該數位影像裝置顯示畫面的色彩精確性,進而提 尚了顯示畫面的質量。 【實施方式】 本發明之數位影像裝置顏色校正表之生成方法需應用一 系統,該系統包括一數據採集分析計算機、一視頻訊號 發生斋、一色彩分析儀及—需測量調整的數位影像裝置 〇 該數據採集分析計算機包括一VGA(Video Graphics Array)顯卡及複數暫存器,該視頻訊號發生器可為該 VGA顯卡。該數位影像裝置包括一記憶體。該色彩分析儀 採用非接觸式量測設計,其提供一亮度、色度座標系χγζ ,其中,座標值X、Υ、Ζ分別表示紅、綠、藍三原色對該 數位影像裝置顯示畫面亮度、色度的激勵值。 '玄視頻訊號發生器為一標準視頻訊號發生源 *向該數位 影像裝置提供一白畫面。該色彩分析儀通過把探頭伸到 次數位影像裝置顯示面直接獲取當前數位影像裝置顯示 儿度、色度的激勵值,然後該色彩分析儀將該激勵值傳 送到該數據採集分析計算機的暫存器巾,由該數據採集 分析計算機完成數據處理。 請參閱m ’係本發明之數位影像裝置顏色校正表之生成 方法流程圖。 步驟S1 ’襲顏色校正功能。該數位影像裝置開始工作 096109263 表單編號A0101 第7頁/共24頁 1003431408-0 [0014] [0014]1360806 jl〇〇年 ΐΐ^.21 日 前’通過一軟體關閉該待檢測的數位影像裝置本身所設 定的顏色校正程序。 步驟S2,系統起始化。起始化該視頻訊號發生器、該色 於分析儀、遠數據採集分析计算機及該數位影像穿置。 設置該視頻訊號發生器產生由紅、綠、藍三原色的最大 信號復合成的視頻訊號’該視頻訊號使該數位影像事置 顯示最大亮度、色度的白畫面。將該視頻訊號按訊號強 弱64等分’使該數位影像裝置分別顯示〇、1、2、 、62 、63級灰階白畫面。該〇、1、2、 、62、63級灰階白畫 面的亮度、色度分別對應將該視頻訊號按訊號強弱256等 分後的第0、4、8、、248、252級灰階白畫面的亮度、 色度。 [0015] 步驟S3,獲取該數位影像裝置顯示亮度值。請—併參閱 圖1、圖2,其中圖2係本發明之數位影像裝置顏色校正表 之生成方法中獲取顯示亮度、色度的流程圖。該數位影 像裝置分別顯示G、卜2、、62、63級灰階白畫面時' 獲取每-灰階紅、綠、藍三原色的亮度、色度,該過程 又可細分為以下步驟: [0016] 步驟S3卜測量該數位影像裝置所能顯示色域的基點。該 視頻訊號發生器分別產生三個最強的單原色訊號,該三 個最強的單原色訊號分別使該數位影像裝置只顯示最大 売度、色度的紅、綠、藍三種顏色。在最強的紅色訊號 ,即S玄數位影像裝置顯示紅色亮度色度最大時,用該 色餐分析儀測量X、Υ、Ζ激勵值分別為Xr、Yr、Zr。同 理’在最強的綠、藍色訊號’即該數位影像裝置分別顯 096109263Step I: Step S1, measuring the base point of the color gamut that can be displayed by the digital image device • 'Step S2, measuring the brightness and chrominance excitation value of the composite color display by the digital image device; Step S3 'Calculating the digital display device to display the composite color Corresponding monochrome brightness value; step S4, using the Bezier interpolation calculation method, the monochrome brightness values of the medium gray interval of step S3 are respectively interpolated to obtain the actual brightness characteristic curve of the single color corresponding to the composite color; S5 'calculating the ideal brightness characteristic curve of the single color corresponding to the composite color; step S6, searching for the point closest to the gray level brightness value of the ideal brightness characteristic curve on the actual brightness characteristic curve, and storing the actual The value corresponding to the closest point on the brightness characteristic curve; in step S7, the values obtained in step S6 are arranged in order from the smallest to the largest gray level to generate a color correction table. [0008] 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 perform brightness and chrominance excitation values of the white screen of the gray scale interval displayed by the digital image device respectively. Measurement, and then calculate the brightness of each of the red, green and blue colors of each white picture, and then obtain the brightness of the red, green and blue colors of all the gray levels by interpolation method, and finally correct the actual according to the ideal gray level brightness. The gray scale brightness gives a color correction table. Since only the brightness of a few grayscale white pictures 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. Perform color correction separately to get the quality of the displayed image. Use this color correction table pair 096109263 Form No. A0101 Page 6 / Total 24 Page 1003431408-0 1360806 • t» [0009] [0010] [0012] [0013] 100 years. November 21st is replaced by positive When the Λ Λ 像 像 像 像 昼 昼 像 像 像 像 像 像 像 Λ Λ Λ Λ Λ Λ Λ Λ Λ Λ Λ Λ Λ Λ Λ Λ Λ Λ Λ Λ Λ Λ Λ Λ Λ Λ Λ Λ Λ Λ Λ Λ Λ Λ Λ The quality of the display screen is still available. [Embodiment] The method for generating a color correction table of a digital image device of the present invention needs to apply a system including a data acquisition and analysis computer, a video signal generation, a color analyzer, and a digital image device requiring measurement adjustment. The data acquisition and analysis computer includes a VGA (Video Graphics Array) graphics card and a plurality of scratchpads, 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 chromaticity coordinate system χγζ, wherein coordinate values X, Υ, and Ζ respectively indicate red, green, and blue primary colors to display picture brightness and color for the digital image device. The incentive value of the degree. 'Xuan video signal generator is a standard video signal source. * A white screen is provided to the digital video device. The color analyzer directly obtains the excitation value of the display and the 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 temporary storage of the data acquisition and analysis computer. The towel is processed by the data acquisition and analysis computer. Please refer to m ’ a flowchart of a method for generating a color correction table for a digital image device of the present invention. Step S1 ' strikes the color correction function. The digital image device starts to work 096109263 Form No. A0101 Page 7 / Total 24 Page 1003431408-0 [0014] [0014] 1360806 jl〇〇年ΐΐ^.21 A few days ago, the digital image device to be detected is closed by a software. The set color correction procedure. In step S2, the system is initialized. The video signal generator, the color analyzer, the remote data acquisition and analysis computer, and the digital image insertion are initialized. The video signal generator is arranged to generate a video signal composed of the maximum signals of the three primary colors of red, green and blue. The video signal causes the digital image to display a white picture with maximum brightness and chromaticity. The video signal is equally divided by the signal strength by 64 to cause the digital video device to display 〇, 1, 2, 62, 63 grayscale white pictures, respectively. The brightness and chromaticity of the 灰, 1, 2, 62, 62 grayscale white screen respectively correspond to the 0th, 4th, 8th, 248th, 252th grayscale white after the video signal is equally divided by the signal strength by 256. The brightness and chromaticity of the picture. [0015] Step S3, acquiring the brightness value of the digital image device. Please refer to FIG. 1 and FIG. 2, wherein FIG. 2 is a flow chart for obtaining display brightness and chromaticity in the method for generating a digital image device color correction table according to the present invention. When the digital image device displays G, Bu 2, 62, and 63 grayscale white screens 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: [0016 Step S3 measures the base point of the color gamut that the digital image device can display. The video signal generator generates three strongest single primary color signals, respectively, and the three strongest single primary color signals respectively cause the digital image device to display only the maximum intensity, chromaticity of red, green, and blue colors. When the strongest red signal, that is, the S-parameter image device, displays the red luminance chromaticity maximum, the X, Υ, and Ζ excitation values are measured by the color meal analyzer as Xr, Yr, and Zr, respectively. The same reason, 'the strongest green and blue signal', that is, the digital image device respectively shows 096109263
表單编號A0101 第8頁/共24 W ' Ά 1003431408-0 1360806 100年.11月21日核正替換頁 示綠、藍色亮度、色度最大時,用該色彩分析儀分別測 量X、Υ、Z激勵值分別為Xg、Yg、Zg及Xb、Yb、Zb。將 該激勵值Xr、Yr、Zr、Xg、Yg、Zg及Xb、Yb ' Zb儲存 在該數據採集分析計算機的暫存器中。 [0017] 步驟S32,設置第i級灰階白畫面。該視頻訊號發生器產 生一視頻訊號,該視頻訊號使該數位影像裝置顯示第i (i=0、l、2、 、62、63)級灰階白畫面。 [0018] 步驟S33,測量該灰階白畫面激勵值。該數位影像裝置顯 示第i級灰階白晝面時,用該色彩分析儀測量X、Y、Z激 勵值並將該激勵值儲存在該數據採集分析計算機的暫存 器中。設X、Y、Z激勵值分別為Xi、Yi、Zi。 [0019] 步驟S34,計算紅綠藍三色亮度值。用數據採集分析計算 機計算該數位影像裝置顯示第i級灰階白晝面時,紅、綠 、藍三種顏色的亮度值。設該·紅、綠、藍三種顏色對該 數位影像裝置顯示第i級白畫面亮度、色度的貢獻係數分 別為 K r 1、K g 1、1 用以下式子表示: ibi,則該貢獻係數Kri、Kgi、Kbi可 [0020]Form No. A0101 Page 8 / Total 24 W ' Ά 1003431408-0 1360806 100 years. On November 21, when the replacement page shows green, blue brightness, and maximum chromaticity, use the color analyzer to measure X and 分别 respectively. The Z excitation values are Xg, Yg, Zg, and Xb, Yb, and Zb, respectively. The excitation values Xr, Yr, Zr, Xg, Yg, Zg and Xb, Yb 'Zb are stored in a register of the data acquisition and analysis computer. [0017] Step S32, setting an i-th grayscale white screen. The video signal generator generates a video signal that causes the digital video device to display an i-th (i = 0, 1, 2, 62, 63) grayscale white picture. [0018] Step S33, measuring the grayscale white screen excitation value. When the digital image device displays the i-th gray scale white surface, the color analyzer is used to measure the X, Y, Z excitation values and store the excitation values in the temporary register of the data acquisition and analysis computer. Let the X, Y, and Z excitation values be Xi, Yi, and Zi, respectively. [0019] Step S34, calculating red, green and blue three color brightness values. The data acquisition and analysis computer calculates the brightness values of the red, green and blue colors when the digital image device displays the i-th gray scale white surface. The red, green, and blue colors are used to display the luminance coefficients of the i-th white screen luminance and chromaticity for the digital video device, respectively, K r 1 , K g 1, and 1 are represented by the following equation: ibi, the contribution The coefficients Kri, Kgi, Kbi can be [0020]
Ydi •. Mi 2Ydi •. Mi 2
翁¾.¾ K:rKr-KS翁3⁄4.3⁄4 K:rKr-KS
[0021] 設該數位影像裝置顯示第i級灰階白晝面時,該紅、綠、 藍三種顏色的亮度分別為Lri、Lgi、Lbi,則Lr i、Lgi 096109263 表單編號A0101 第9頁/共24頁. 1003431408-0 1360806 100年11月21 □核正替換頁 、Lb i可用以下式子表示: [0022] •Lri ~Xr Xg Xb -lx ~xf Lgi '— Yr Yg Yb Yi Lbi Zr Zg Zb_ Zi 歹玢妨。 [0023] 步驟S35,儲存該紅綠藍三色亮度值。將經計算得到的該 紅、綠、藍三種顏色的亮度值Lr i、Lg i、Lb i儲存在該 數據採集分析計算機的暫存器中。 [0024] 步驟S36,設置下一級灰階白畫面。該視頻訊號發生器產 生一視頻訊號,該視頻訊號使該數位影像裝置顯示第i + 1 級灰階白晝面。 [0025] 步驟S37,判斷測量是否結束。判斷該視頻訊號發生器的 暫存器中儲存的紅色對應的亮度值的總個數是否大於64 ,若否,則執行步驟S33 ;若是,則執行步驟S4。 [0026] 步驟S4,插值計算。該插值計算的過程於該數據採集分 析計算機中進行,具體方法如圖3所示。點P0、PI、P2、 P3、 、P62、P63分別表示該數位影像裝置顯示64級灰 階白畫面時,紅色對應的亮度值LrO、Lrl、Lr2、、 Lr62、Lr63。由該P0、PI、P2三點可確定一條貝齊爾 (Bezier)曲線。在該貝齊爾曲線上,於該P0與P1點之間 ,取等灰階間隔的15個點Ml、M2、 、Ml 5。根據相同原 096109263 表單编號A0101 第10頁/共24頁 1003431408-0 1360806 « 1 100年.11月21日按正替換頁 理,PI、P2、P3亦確定一條貝齊爾曲線,在該貝齊爾曲 線上,於該P1與P2點之間,亦取等灰階間隔的15個點 M17、 、M31,依次類推,則P0與P62之間的任意相鄰兩 .點間都插入15個點。點P61、P62、P63亦確定一貝齊爾 曲線,在該貝齊爾曲線上,於點P63兩側,分別取等灰階 間隔的15個點,則一共得到1 024個點Mm(m = 0、1、2、 、1 022、1 023)。該1 024個點形成一條曲線,即該數位 影像裝置紅色對應的實際亮度特性曲線。依據相同原理 ,可得綠、藍兩種顏色對應的實際亮度特性曲線。 [0027] 步驟S5,獲取顏色校正表。請一併參閱圖1、圖4,其中 圖4係本發明之數位影像裝置顏色校正表之生成方法中獲 取顏色校正表的流程圖。該獲取顏色校正表的過程於該 數據採集分析計算機中進行,其可細分為以下步驟: [0028] 步驟S51,獲取紅綠藍三條理想亮度特性曲線。紅色對應 的理想亮度特性曲線可通過以下式子得到: [0029] Ln = (Linax - Lmin) (n/255)'gamma + Lmin [0030] 其中,Lmax表示該數位影像裝置紅色訊號最大時,顯示 的最大亮度值,Lmin為0階時的亮度,n(n = 0、1、2、 、255)表示0到255級灰階中的任意一級灰階的級數,Ln 表示紅色的第η級灰階對應的亮度值,gamma為一常數, 通常取值為2. 2。當η依次取0到255之間的值時,設Ln的 值分別為L0、LI、 、L254、L255,則 L0、L1、、 L254、L255分別對應256個點Qn(n = 0、卜 2、 、255) ,該256個點所在的曲線即為紅色對應的理想亮度特性 096109263 表單編號A0101 第11頁/共24頁 1003431408-0 [0031]1360806 [0032] [0033] [0034] [0035] [0036] 1100年11月·21日核正替换f 曲線。依據相同原理,可得綠、藍兩種顏色對應的理想 亮度特性曲線。 步驟S52,設置灰階級數為η。設紅色待校正的灰階的級 數為η(η = 0、1、2、 、254、255)。 步驟S53,校正第η級灰階。請參閱圖5,係本發明校正灰 階亮度的方法示意圖。其中,該實線表示紅色對應的理 想亮度特性曲線,該虛線表示紅色對應的實際亮度特性 曲線。Qn(n = 0、1、2、 、255)表示紅色幻第η級灰階在 該理想亮度特性曲線上理想亮度Ln對應的點,Mm表示該 實際亮度特性曲線上1 024個點中的第ra點。根據Qn的亮度 值Ln,於該實際亮度特性曲線上的1024點中查找亮度值 與該理想亮度Ln值最接近的一點Mm,並將該Mm點對應 的數值m儲存在該數據採集分析計算機的暫存器中。 步驟S54,設置下一級灰階。設下一個待校正的灰階級數 為 n+1 〇 步驟S55,判斷校正是否完畢。判斷該灰階級數n + 1是否 大於255,若否,則執行步驟S53 ;若是,則執行步驟 S56 〇 步驟S56,生成顏色校正表。按照灰階級數η從0到255的 取值順序,將儲存在該數據採集分析計算機暫存器中的m 對應的取值依次排列,即得到紅色對應的顏色校正表。 依據相同原理,可得綠、藍兩種顏色對應的顏色校正表 〇 步驟S6,燒錄顏色校正表。將該步驟S56得到的紅、綠、 096109263 表單编號A0101 第12頁/共24頁 1003431408-0[0021] When the digital image device displays the i-th gray scale white surface, the brightness of the red, green and blue colors respectively is Lri, Lgi, Lbi, then Lr i, Lgi 096109263 form number A0101 page 9 / total Page 24, 1003431408-0 1360806 November 21, 2010 □ The nuclear replacement page, Lb i can be expressed by the following formula: [0022] • Lri ~Xr Xg Xb -lx ~xf Lgi '- Yr Yg Yb Yi Lbi Zr Zg Zb_ Zi 歹玢 。. [0023] Step S35, storing the red, green and blue three color brightness values. The calculated luminance values Lr i, Lg i, Lb i of the red, green and blue colors are stored in a register of the data acquisition and analysis computer. [0024] Step S36, setting a next-level grayscale white screen. The video signal generator generates a video signal that causes the digital video device to display an i-th level 1 gray scale white surface. [0025] Step S37, it is determined whether the measurement ends. It is determined whether the total number of luminance values corresponding to red stored in the buffer of the video signal generator is greater than 64. If not, step S33 is performed; if yes, step S4 is performed. [0026] 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 a 64-level grayscale white screen. 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 original 096109263 Form No. A0101 Page 10 / Total 24 Page 1003431408-0 1360806 « 1 100 years. November 21, according to the positive replacement page, PI, P2, P3 also determine a Bezier curve, in the shell On the Zil curve, between the points P1 and P2, 15 points M17, M31 of the gray-scale interval are also taken, and so on, and 15 points are inserted between any two adjacent points between P0 and P62. point. 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 1,024 points Mm are obtained (m = 0, 1, 2, 1, 022, 1 023). The 1,024 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. [0027] Step S5, obtaining a color correction table. Please refer 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, which can be subdivided into the following steps: [0028] 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 equation: [0029] Ln = (Linax - Lmin) (n/255) 'gamma + Lmin [0030] wherein Lmax indicates that the digital image device has the largest red signal, The maximum brightness value, Lmin is the brightness at 0th order, n(n = 0, 1, 2, 255) represents the order of any one of the 0 to 255 gray levels, and Ln represents the red nth level. The gamma is a constant, and the value is 2.2. When η sequentially takes a value between 0 and 255, let L_ values be L0, LI, L254, L255, respectively, then L0, L1, L254, L255 correspond to 256 points Qn respectively (n = 0, Bu 2 , 255), the curve of the 256 points is the ideal brightness characteristic corresponding to red 096109263 Form No. A0101 Page 11 / Total 24 Page 1003431408-0 [0031] 1360806 [0033] [0035] [0036] On November 21, 1100, the nuclear correction replaced the f curve. 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 gray scale brightness according to the present invention. Here, the solid line indicates an ideal luminance characteristic curve corresponding to red, and the broken line indicates an actual luminance characteristic curve corresponding to red. Qn (n = 0, 1, 2, 255) indicates the point at which the red magic η-level gray scale corresponds to the ideal luminance Ln on the ideal luminance characteristic curve, and Mm represents the first of the 1,024 points on the actual luminance characteristic curve. Ra point. According to the brightness value Ln of the 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 Mm point is stored in the data acquisition and analysis computer. In the scratchpad. In step S54, the next level gray scale is set. Let the next gray level to be corrected be n+1 〇 step S55, and judge whether the correction is completed. It is judged whether or not the gray level number n + 1 is greater than 255. If not, step S53 is performed; if yes, step S56 〇 step S56 is executed to generate a color correction table. According to the order of the gray level η from 0 to 255, the values corresponding to m stored in the data acquisition and analysis computer register are sequentially arranged to obtain a color correction table corresponding to red. According to the same principle, the color correction table corresponding to the green and blue colors can be obtained. Step S6, the color correction table is burned. Red, green, 096109263 Form No. A0101 obtained in this step S56 Page 12 of 24 1003431408-0
[0037]UOU0UO 藍三種顏色對應的顏 記憶體中β 色蚁正表燒錄在該數位影像裝置的 與先前技術相比,本發明+ & 巧之數位影像裝置顏色校正表之 生成方法,用該色彩分柝儀 攝對該數位影像裝置顯示的64 級灰蜡白畫面的亮度、色度分 J<'刀別進仃測量,然後通過計 算得到該64級灰階白畫面中每_ 白畫面的紅、綠、藍三 種顏色的亮度,再通過插值方法得到256級灰階中紅、綠 、藍三種顏色的亮度,最後根據理想灰階亮度來校正該 實際灰階亮度而付到顏色校正表。由於只測量6 4級灰階 白畫面的亮度,且其它步驟通過數據採集分析計算機計 异得到,因此,用本發明之顏色校正表生成方法生成顏 色校正表的時間縮短’有利於對每一台數位影像裝置分 別進行顏色校正來提高其顯示影像的質量。 [0038]本發明用色彩分析儀測量64級灰階白畫面的亮度、色度 激勵值,亦可只測量32級或128級灰階白畫面的亮度、色 度激勵值。步驟S4中於貝齊爾曲線上等灰階間隔取點, 亦可以於相鄰兩點確定的直線上等灰階間隔取點,並不 限於上述實施方式》本發明用色彩分析儀測量由紅綠藍 二原色復合成的白畫面,亦可測量由其他顏色形成的復 合色,並不限於上述實施方式。 [0039] 本發明步驟S51,獲取紅綠藍三條理想亮度特性曲線亦可 以通過以下式子得到: [0040] Kr255=Lr255/Ltotal [0041] Kg255 = Lg255/Ltotal 096109263 表單編號A0101 第13頁/共24頁 1003431408-0 loo年li月.21日核正替換頁· 1360806 [0042] Kb255 = Lb255/ Ltotal [0043] Ltotal = Lr255+ Lg255+ Lb255 = Lw255 [0044] 其中,Ltotal表示步驟S31中獲得的Yr 、Yg、Yb之和 ,Lr255、Lg255、Lb255 為分另'J 為步驟 S31 中 Yr、Yg、[0037] The UOU0UO blue color corresponding to the color memory of the β-color ant is burned in the digital image device, compared with the prior art, the method for generating the color correction table of the digital image device of the present invention is used. The color splitter takes a picture of the brightness and chromaticity of the 64-level gray-white picture displayed on the digital image device, and then calculates the _ white picture in the 64-level gray-scale white picture by calculation. The brightness of the three colors of red, green and blue, and then the brightness of the three colors of red, green and blue in the gray level of 256 by interpolation method, and finally correcting the actual gray level brightness according to the ideal gray level brightness and paying the color correction table . Since only the brightness of the 6th-level gray-scale white picture is measured, and other steps are obtained by the data acquisition and analysis computer, the time for generating the color correction table by the color correction table generation method of the present invention is shortened' favoring each unit. The digital image device performs color correction separately to improve the quality of the displayed image. [0038] The present invention uses a color analyzer to measure the luminance and chrominance excitation values of a 64-level grayscale white picture, and can also measure only the luminance and chrominance excitation values of a 32-level or 128-level grayscale white picture. In step S4, the grayscale interval is taken on the Bezier curve, and the grayscale interval may be taken on the straight line determined by the two adjacent points, and is not limited to the above embodiment. The present invention uses a color analyzer to measure the red color. The white screen in which the green and blue primary colors are combined can also measure the composite color formed by other colors, and is not limited to the above embodiment. [0039] 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: [0040] Kr255=Lr255/Ltotal [0041] Kg255 = Lg255/Ltotal 096109263 Form No. A0101 Page 13/Total 24 pages 1003431408-0 loo year li month. 21th nuclear replacement page · 1360806 [0042] Kb255 = Lb255 / Ltotal [0043] Ltotal = Lr255 + Lg255 + Lb255 = Lw255 [0044] where Ltotal represents the Yr obtained in step S31, The sum of Yg and Yb, Lr255, Lg255, and Lb255 are divided into another 'J is Yr, Yg in step S31,
Yb,Kr255、Kg255、Kb255 分別為 Lw255 中對應红、綠 、.藍三種顏色的比例,則第n級灰階白畫面中,紅色對應 的理想亮度 [0045] Lrn= Kr255xLwn ’ [0046] 其中,Lwn表示步驟S4中獲得的第η級灰階白畫面的亮度 。當η依次取0到255之間的值時,即得到紅色對應的理想 亮度特性曲線。依據相同原理,可得綠、藍兩種顏色對 應的理想亮度特性曲線。 [0047] 與先前技術相比,本發明利用該方法獲得理想亮度特性 曲線,進而生成顏色校正表,利用該顏色校正表對該數 位影像裝置顯示晝面的色度進行調整時,分析每一灰階 各單原色的比例并通過調整比例來進行顏色調整,提高 了該數位影像裝置顯示畫面的色彩精確性,進而提高了 顯示畫面的質量。 [0048] 綜上所述,本發明確已符合發明之要件,爰依法提出專 利申請。惟,以上該者僅為本發明之較佳實施方式,本 發明之範圍並不以上述實施方式為限,舉凡熟習本案技 藝之人士援依本發明之精神所作之等效修飾或變化,皆 應涵蓋於以下申請專利範圍内。 【圖式簡單說明】 表單编號Α0101 096109263 第14頁/共24頁 1003431408-0 1360806 • 100年11月2l·日修正替換頁 [0049] 圖1係本發明之數位影像裝置顏色校正表之生成方法流程 圖。 [0050] 圖2係本發明之數位影像裝置顏色校正表之生成方法中獲 取顯示亮度、色度的流程圖。 [0051] 圖3係本發明之數位影像裝置顏色校正表之生成方法中插 值計算的示意圖。 [0052] 圖4係本發明之數位影像裝置顏色校正表之生成方法中獲 取顏色校正表的流程圖。 [0053] 圖5係本發明校正灰階亮度的方法示意圖。 【主要元件符號說明】 [0054] 無 096109263 表單編號A0101 第15頁/共24頁 1003431408-0Yb, 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 nth grayscale white screen [0045] Lrn= Kr255xLwn ' [0046] Lwn represents the brightness of the nth grayscale white picture 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, the ideal brightness characteristic curve corresponding to the 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 analyzing each gray by using the color correction table to adjust the chromaticity of the digital image device. The ratio of each single primary color of the order is adjusted by adjusting the scale, thereby improving the color accuracy of the display image of the digital image device, thereby improving the quality of the display image. [0048] In summary, the present invention has indeed met the requirements of the invention, and the patent application is filed according to law. However, the above is only a preferred embodiment of the present invention, and the scope of the present invention is not limited to the above-described embodiments, and those skilled in the art will be able to make equivalent modifications or changes in accordance with the spirit of the present invention. It is covered by the following patent application. [Simple Description of the Drawings] Form No. 1010101 096109263 Page 14 of 24 1003431408-0 1360806 • November 2011 2l·Day Correction Replacement Page [0049] FIG. 1 is a generation of a color correction table for a digital image device of the present invention. Method flow chart. 2 is a flow chart showing the display brightness and chromaticity in the method for generating a digital image device color correction table according to the present invention. 3 is a schematic diagram of interpolation calculation in a method of generating a color correction table of a digital image device of the present invention. 4 is a flow chart showing a method of obtaining a color correction table in the method of generating a color correction table of the digital image device of the present invention. [0053] FIG. 5 is a schematic diagram of a method for correcting gray scale brightness according to the present invention. [Main component symbol description] [0054] None 096109263 Form number A0101 Page 15 of 24 1003431408-0