TW526656B - Brightness nonuniformity correction method of the input equipment for unknown tone curve - Google Patents

Brightness nonuniformity correction method of the input equipment for unknown tone curve Download PDF

Info

Publication number
TW526656B
TW526656B TW90121544A TW90121544A TW526656B TW 526656 B TW526656 B TW 526656B TW 90121544 A TW90121544 A TW 90121544A TW 90121544 A TW90121544 A TW 90121544A TW 526656 B TW526656 B TW 526656B
Authority
TW
Taiwan
Prior art keywords
tone curve
input device
color
tone
image
Prior art date
Application number
TW90121544A
Other languages
Chinese (zh)
Inventor
Yi-Ching Liao
Jyh-Jiun Lee
Chia-Lun Chen
Chao-Hua Wen
Original Assignee
Ind Tech Res Inst
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 Ind Tech Res Inst filed Critical Ind Tech Res Inst
Priority to TW90121544A priority Critical patent/TW526656B/en
Application granted granted Critical
Publication of TW526656B publication Critical patent/TW526656B/en

Links

Abstract

A brightness non-uniformity correction method of the input equipment for unknown tone curve is disclosed, which comprises: firstly, estimating the tone curve of the input equipment; then correcting the gray card image captured by the input equipment using this tone curve; storing the tone curve and the gray card image after correcting the tone curve as the tone curve of the input equipment and the gray card image after correcting the tone curve, so as to resolve the brightness non-uniformity problem of the image captured by the input equipment.

Description

526656 五、發明說明(1) 【發明領域】 本發明係為一種未知色調曲線輸入設備之党度不均勻 性修正方法,係應用於影像輸入設備,如:數位相機、數 位攝影機等等。 【發明背景】 一般而言,在利用輸入設備擷取影像時,常會發生所 擷取的影像具有亮度不均勻的問題,如「第1 A、1 B、1 C 圖」所示,其主要原因有··環境光源的不均勻所造成的亮 度不均勻問題、入射光進入鏡頭之角度不同所造成的亮度 不均勻問題、以及影像感測裝置所造成的亮度不均勻問題_ 等。 為了解決前述的亮度不均勻問題,而發展出下列專 利: 如美國專利案第4 5 2 4 3 8 8號專利案中揭露一種修正設 備,此種修正設備係先掃目苗一亮度均勻的灰卡,並利用每 個像素所得的掃瞄值,修正所擷取影像的亮度不均勻性問 題。 又、如美國專利案第5 0 0 1 7 6 8號專利案中揭露一種影 像讀取設備,主要係透過掃目苗一顏色均句的灰卡,並將灰 卡的掃瞄值轉換成LOG值,以減法代替以往除法的運算,鲁 使運算速度加快。 如美國專利案第5 4 3 0 5 5 9號專利案中揭露一種影像讀 取設備,主要係透過掃瞄一亮度均勻的灰卡,取得各像素 的RGB值,然後分別修正R、G、B各色平面的亮度不均勻問526656 V. Description of the Invention (1) [Field of the Invention] The present invention is a method for correcting non-uniformity of an unknown tone curve input device, and is applied to an image input device, such as a digital camera, a digital video camera, and the like. [Background of the Invention] Generally speaking, when using an input device to capture an image, it often occurs that the captured image has uneven brightness, as shown in "Figures 1 A, 1 B, 1 C". The main reason is There are problems of uneven brightness caused by unevenness of ambient light sources, problems of uneven brightness caused by different angles of incident light entering the lens, and problems of uneven brightness caused by image sensing devices. In order to solve the aforementioned problem of uneven brightness, the following patents have been developed: For example, the US Patent No. 4 5 2 4 3 8 8 discloses a correction device. Card, and use the scanning value obtained by each pixel to correct the brightness unevenness of the captured image. Another example is the U.S. Patent No. 500 1 7 6 8 which discloses an image reading device, which is mainly used to scan the gray card with a uniform color and convert the scanned value of the gray card into LOG. Value, subtraction is used to replace the previous division operation, which makes the operation faster. For example, in the U.S. Patent No. 5 4 3 0 5 59 patent, an image reading device is disclosed, which mainly scans a gray card with uniform brightness to obtain the RGB value of each pixel, and then corrects R, G, and B respectively. The uneven brightness of each color plane

526656 五、發明說明(2) 題。 前述專利均假設輸入裝置的色調曲線為線性,也就是 被攝影像的實際亮度與輸入裝置取得影像的亮度關係是線 性關係,如「第2 A圖」所示;然而,絕大多數影像輸入裝 置的色調曲線為非線性,如「第2 B圖」所示,也就是被攝 影像的實際亮度與輸入裝置取得影像的亮度關係不是線性 關係。當輸入裝置的色調曲線非線性時,使用拍攝灰卡取 得的亮度資訊便無法有效去除輸入影像的亮度不均勻問 題,尤其是影像偏暗及偏亮部份。基於上述原因,本發明 特別針對未知色調曲線的輸入設備提出有效的亮度不均勻φ 性修正方法,以解決輸入影像之亮度不均勻性問題。 【發明之目的及概述】 本發明的主要目的即為提供一種未知色調曲線輸入設 備之亮度不均勻性修正方法,以解決輸入設備所擷取影像 之亮度不均勻性問題。 根據本發明所揭露的未知色調曲線輸入設備之党度不 均勻性修正方法,主要係先估算輸入設備的色調曲線;然 後,修正影像之色調曲線;接著,均句化影像之亮度;最 後,儲存色調曲線,以作為輸入設備之色調曲線。 而為估算輸入裝置的色調曲線,本發明揭露兩種輸入春 裝置色調曲線估算方法,其一悉使用單一色調灰卡、色 稿、與此色稿的量測資料來修正亮度不均勻性;其二悉使 用一多階色調灰卡及此灰卡之量測資料來修正亮度不均勻 性。526656 V. Description of Invention (2). The aforementioned patents assume that the tone curve of the input device is linear, that is, the relationship between the actual brightness of the photographed image and the brightness of the image obtained by the input device is linear, as shown in "Figure 2A"; however, most image input devices The tone curve of is non-linear, as shown in "Figure 2B", that is, the relationship between the actual brightness of the photographed image and the brightness of the image obtained by the input device is not a linear relationship. When the tone curve of the input device is non-linear, the brightness information obtained using the shooting gray card cannot effectively remove the uneven brightness of the input image, especially the dark and bright parts of the image. Based on the above reasons, the present invention proposes an effective brightness unevenness φ correction method especially for input devices with unknown tone curves to solve the problem of brightness unevenness of input images. [Objective and Summary of the Invention] The main object of the present invention is to provide a method for correcting the brightness unevenness of an unknown tone curve input device to solve the problem of brightness unevenness of an image captured by the input device. According to the method for correcting the non-uniformity of the unknown tone curve input device disclosed in the present invention, the tone curve of the input device is first estimated; then, the tone curve of the image is corrected; then, the brightness of the image is equalized; and finally, stored Tone curve as the tone curve of the input device. In order to estimate the tone curve of the input device, the present invention discloses two methods for estimating the tone curve of the input device. One method is to use a single tone gray card, a color manuscript, and measurement data of the color manuscript to correct the brightness unevenness. Secondly, a multi-level tone gray card and the measurement data of the gray card are used to correct the brightness unevenness.

第5頁 526656 五、發明說明(3) 前述使用單一色調灰卡、色稿、與色稿的量測資料來 修正亮度不均勻性的方法包括有下列步驟:首先,估算輸 入設備之色調曲線,也就是使用色稿影像與色稿量測資料 估算色調曲線;接著,修正色調曲線,即以前述色調曲線 修正灰卡影像及色稿影像之色調曲線;然後,均勻化亮 度,也就是利用色調曲線修正後之灰卡影像除去色調曲線 修正後之色稿影像的亮度不均勻性;再利用色調曲線修正 後且亮度均勻化之色稿影像與色稿之量測資料中各色塊的 色度值產生色彩校正參數,並利用此色彩校正參數修正各 色塊的色度值,然後計算色稿影像與其量測資料中各色塊φ 的平均誤差值,及判定平均誤差值和先前誤差值之關係, 於平均誤差值小於先前誤差值時,重新估算色調曲線,並 再次自修正色調曲線開始進行上述之流程,而於平均誤差 值大於先前誤差值時,則將此色調曲線儲存為此輸入設備 的色調曲線,並結束此流程,此時所得到的色調曲線即為 所估得的色調曲線,可用來解決輸入設備所擷取影像之亮 度不均句性問題。 而前述使用一多階色調灰卡及此灰卡之量測資料來修 正亮度不均勻性的方法包括有下列步驟:首先,利用多階 色調灰卡影像及此灰卡之量測資料估算出色調曲線;接 籲 著,以此色調曲線修正多階色調灰卡影像之色調曲線;然 後,由多階色調灰卡影像中取出亮度變化資訊產生一色調 曲線修正後之單一色調灰卡影像,此時所估得的色調曲線 與所產生之色調曲線修正後單一色調灰卡影像可供後續進Page 5 526656 V. Description of the invention (3) The method for correcting brightness non-uniformity using the measurement data of a single-tone gray card, color draft, and color draft includes the following steps: First, estimate the tone curve of the input device, That is, the tone curve is estimated using the color image and the color measurement data. Then, the tone curve is corrected, that is, the tone curve of the gray card image and the color image is corrected by the aforementioned tone curve. Then, the brightness is uniformized, that is, the tone curve is used. The gray card image after the correction removes the brightness unevenness of the color draft image after the correction of the tone curve; and then uses the color tone image of the color draft image after correction of the tone curve and uniform brightness to generate the chromaticity value of each color block in the measurement data Color correction parameters, and use this color correction parameter to correct the chromaticity value of each color block, and then calculate the average error value of the color draft image and each color block φ in its measurement data, and determine the relationship between the average error value and the previous error value. When the error value is less than the previous error value, re-evaluate the tone curve and start the above process again from the modified tone curve When the average error value is greater than the previous error value, the tone curve is stored as the tone curve of the input device and the process is ended. The tone curve obtained at this time is the estimated tone curve and can be used to solve the input. The brightness of the image captured by the device is not uniform. The aforementioned method for correcting brightness unevenness by using a multi-level tone gray card and measurement data of the gray card includes the following steps: First, the hue is estimated by using a multi-level tone gray card image and the measurement data of the gray card. Curve; then, the tone curve of the multi-level tone gray card image is corrected by this tone curve; then, the brightness change information is extracted from the multi-level tone gray card image to generate a single tone gray card image after correction of the tone curve. The estimated tone curve and the resulting tone curve are corrected for a single tone gray card image for subsequent processing

第6頁 526656 五、發明說明(4) 行去除輸入影像的亮度不均勻性使用。 為使對本發明的目的、構造特徵及其功能有進一步的 了解’茲配合圖示詳細說明如下: 【實施例詳細說明】 根據本發明所揭露的未知色調曲線輸入設備之亮度不 均勻性修正方法,Λ方法係應用於-修正裝置1,此裝置1 2可叹置於輸入没備2之中,抑或是獨立但可選擇性地與 設備2相連結者,如「第3圖」及「第4圖」所示,此 衣係包括有:儲存單元11、輸入單元12、以及運算單 π 1 3。 与德ί利用輸入設備2所摘取之單—&1周灰卡影像與色稿 :洛料’以及色稿的量測資料日夺’則儲存單元11用以儲 调曲線及誤差值之相關資料’該色調曲線之初始值悉 y稿影像與色稿量測資料估算而得,而誤差值之 叹為無限大。 像暨? : : : 3 T供將輪入設備2所擷取之-灰卡影 中了 土稿衫像貝料與此色稿之量測資料輸入儲存單元i i ’而前述之量測資料係由耷彩署、、目丨丨辟抑r丄. 量蜊所得。 田邑形里測儀為(如.頻譜計) 以運f异早元13丄用以自健存單元11中取得相關資料並加 曲味异,制用w述之色調曲線修正此兩影像資料之色調 正;ί,再以色調曲線修正後之灰卡影像修正經色調曲線修 ίί之色稿影像’"除去色稿影像之亮度不均句性,並以 詞曲線修正後且亮度均勾化之色稿影像中各色塊的色度Page 6 526656 V. Description of the invention (4) Use to remove the brightness unevenness of the input image. In order to further understand the purpose, structural features, and functions of the present invention, the detailed description is illustrated as follows: [Detailed description of the embodiment] According to the brightness unevenness correction method of the unknown tone curve input device disclosed by the present invention, The Λ method is applied to the correction device 1. This device 12 can be placed in the input device 2 or can be independently but selectively connected to the device 2, such as "Figure 3" and "4 As shown in the figure, the clothing system includes: a storage unit 11, an input unit 12, and an operation sheet π 1 3. The order that Yude uses the input device 2— & 1 week gray card image and color draft: Loss material and measurement data of color draft are captured daily, then the storage unit 11 is used to store the adjustment curve and the error value. Relevant data 'The initial value of the tone curve is estimated from the y draft image and color measurement data, and the sigh of the error value is infinite. Like cum? : : : 3 T is provided for the data captured by the turn-in device 2-the gray card shadow has the soil sample shirt material and the color measurement data input into the storage unit ii ', and the aforementioned measurement data is provided by 耷 彩Department ,, head 丨 丨 抑 丄 r 丄. Measure the amount of clams obtained. The Tianyi Xingli measuring instrument is (such as a spectrum meter). It is used to obtain the relevant data from the health storage unit 11 and add different flavors to it. This system uses the tone curve of w to correct the two image data. The tone is positive, and then the gray card image after the tone curve correction is used to correct the color draft image after the tone curve has been corrected. 'Remove the unevenness of the brightness of the color draft image, and use the word curve to correct the brightness. The chromaticity of each color block in the colorized image

526656 五、發明說明(5) 值(如:RGB值)與色稿量測資料產生一色彩校正參數以 修正色稿影像,且比對色稿量測資料和前述修正後且亮度 均勻之色稿影像的色度值得到一平均誤差值,再判定此平 均值與儲存單元1 1中之誤差值的大小,在此平均值小於誤 差值時,將誤差值設為此平均值,且以色稿量測資料及色 調曲線修正後且亮度均勻色稿影像,配合先前經修正之色 調曲線計算新色調曲線,並儲存於儲存單元1 1中,以供此 運算單元1 3再次進行更適合輸入設備2之色調曲線的運 算;在此平均值大於誤差值時,將此時的色調曲線及經色 調曲線修正後的灰卡影像存於儲存單元1 1中,以將其儲存 | 為輸入設備2之色調曲線與色調曲線修正後灰卡影像,供 後續進行去除輸入影像的亮度不均勻性時使用。 另外,在利用輸入設備2所擷取之多階色調灰卡影 像,以及此灰卡之量測資料時,則儲存單元1 1用以儲存色 調曲線之相關貧料。 輸入單元1 2,用以供將輸入設備2所擷取之一多階色 調灰卡影像和此灰卡之量測資料輸入儲存單元1 1中,而前 述之量測資料係由色彩量測儀器(如:頻譜計)量測所 得。 運算單元1 3,用以自儲存單元1 1中取得相關資料並加_ 以運算,係利用多階色調灰卡影像及此灰卡之量測資料計 算出色調曲線,並以此色調曲線修正多階色調灰卡影像之 色調曲線,再由多階色調灰卡影像中取出亮度變化資訊以 產生一色調曲線修正後之單一色調灰卡影像,並將前述之526656 V. Description of the invention (5) The value (such as RGB value) and color measurement data generate a color correction parameter to correct the color image, and compare the color measurement data with the previously corrected color manuscript with uniform brightness. An average error value is obtained for the chromaticity value of the image, and the magnitude of the error value between the average value and the storage unit 11 is determined. When the average value is less than the error value, the error value is set to the average value, and the color draft is used. The measured data and the tone curve are corrected and the brightness is uniform. The new tone curve is calculated with the previously corrected tone curve and stored in the storage unit 1 1 for the operation unit 1 3 to perform again. It is more suitable for the input device 2 Calculation of the tone curve; when the average value is greater than the error value, the tone curve at this time and the gray card image corrected by the tone curve are stored in the storage unit 1 1 to store it | as the tone of the input device 2 The gray card image after the curve and tone curve correction is used for subsequent removal of the brightness unevenness of the input image. In addition, when using the multi-tone gray card image captured by the input device 2 and the measurement data of the gray card, the storage unit 11 is used to store the relevant lean material of the color curve. The input unit 12 is used for inputting a multi-level tone gray card image captured by the input device 2 and measurement data of the gray card into the storage unit 11, and the aforementioned measurement data is provided by a color measuring instrument. (Such as: spectrum meter) measured. The arithmetic unit 13 is used for obtaining relevant data from the storage unit 11 and adding _ to calculate. The arithmetic unit calculates a tone curve by using a multi-level tone gray card image and measurement data of the gray card, and corrects the tone curve based on the tone curve. The tone curve of the gray tone gray card image is obtained by extracting the brightness change information from the multi-level gray card image to generate a single tone gray card image with a tone curve correction.

第8頁 526656Page 8 526656

五、發明說明(6) 色調曲線與色調曲線修正後之單一色調灰卡影傍 存單元1 1中,以作為輸入設備2之色調曲線與色調曲、/ 正後之灰卡影像,供後續進行去除輪入影像的亮度不& 性時使用。 又:勻 而如「第5圖」所示,根據本發明所揭露的未知色調 曲線輪入設備之党度不均勻性修正方法,主要係利用未°矣 色調曲線輸入設備所擷取之單一色調灰卡影像與色稿影$ 資料,以及此色稿量測資料,此方法係包括有下列步驟·· 首先,開始此流程(步驟1 0 〇 ) ; ^ · 之後,估算輪入設備之色調曲線(步驟1 〇 !),也就囊 疋利用色稿影像與色稿量測資料估算輸入設備之色調曲 線,以及將誤差值設為無限大; 接著’修正色調曲線(步驟1 〇 2 ),也就是利用前述 之色調曲線修正灰卡影像及色稿影像之色調曲線; 然後,均勻化亮度(步驟1 〇 3 ),也就是利用色調曲 線修正後之灰卡影像除去色調曲線修正後之色稿影像的亮 度不均勻性,此係將色稿影像的各個顏色維度之亮度不均 勻性除去,主要係利用Γ 1,j= I i,j*(Wmax/Wi,j )這個公 式加以修正,其中W l,j是位在灰卡影像中之第i列第;i行的 像素值,Wmax是灰卡影像中之最大像素值,I i,j是位在色鲁 稿影像中之第i列第j行的像素值,而Γ i,j則是亮度均勻 值; 再產生色彩校正參數以修正色稿影像(步驟1 〇 4 ), 也就是利用色調曲線修正後且亮度均勻化之色稿影像中各V. Description of the invention (6) The tone curve and tone curve correction unit of a single tone gray card shadow storage unit 11 is used as the tone curve and tone curve of the input device 2 and the gray card image immediately after it is for subsequent processing. Use when removing the brightness & Also: As shown in "Figure 5", according to the method for correcting the unevenness of the degree of the unknown tone curve wheeling device disclosed in the present invention, the method mainly uses a single tone captured by the input device of the ungraded tone curve Gray card image and color image data, and the color measurement data, this method includes the following steps: First, start this process (step 1 0 〇); ^ · After that, estimate the tone curve of the turn-in equipment (Step 1 〇!), That is, using the color image and color measurement data to estimate the tone curve of the input device, and set the error value to infinite; then 'correct the tone curve (step 1 〇2), also That is, the tone curve of the gray card image and the color draft image is corrected by using the aforementioned tone curve; then, the brightness is uniformized (step 103), that is, the gray card image after the tone curve correction is used to remove the color draft image after the tone curve correction. The brightness non-uniformity of this color is to remove the brightness non-uniformity of each color dimension of the color image. It is mainly corrected by the formula Γ 1, j = I i, j * (Wmax / Wi, j), where W l, j is the i-th column in the gray card image; the pixel value of row i, Wmax is the maximum pixel value in the gray-card image, I i, j is the i-th column in the Sero image The pixel value of the j-th row, and Γ i, j are the uniform brightness values; color correction parameters are generated to correct the color draft image (step 104), that is, the color draft image corrected by the tone curve and uniformized in brightness. Nakago

第9頁 526656 五、發明說明(7) 色塊的色度值(如:RGB值)與色稿之量測資料產生色彩 校正參數,並以此色彩校正參數修正色稿影像中各色塊之 色度值; 並計算平均誤差值(步驟1 〇 5 ),也就是計算色調曲 線的正確性,利用將色稿影像中各色塊之色度值轉換成另 一色彩空間C I E L A B的色度值,以及將先前色稿影像之量 測資料的色度值也轉換成另一色彩空間C I E LAB的色度 值,並以下列公式做兩者差別性之運算:A E * a b = ((L-Ll ) 2+ (A-Al ) 2+ (B-Bl )2)1/2,並作平均誤差 值與誤差值之大小的判斷(步驟1 Ο 6 ),若所有色塊的Α φ E*ab平均後之值小於一誤差值(係為一預設之誤差值,其 值為無限大)時,則將誤差值重新設定為此值(步驟1 0 9 ),且進行步驟1 1 0,但若平均誤差值大於誤差值,則將 此色調曲線及色調曲線修正後灰卡影像儲存為此輸入設備 的色調曲線及色調曲線修正後灰卡影像,供後續進行去除 輸入影像的亮度不均勻性時使用(步驟1 〇 7 ),並結束此 流程(步驟1 0 8 ), 再次估算色調曲線(步驟1 1 0 ),以色稿量測資料及 色調曲線修正後且亮度均句化之色稿影像,配合修正色調 曲線步驟(步驟1 0 2 )中之色調曲線重新估算色調曲線,籲 並將此色調曲線設定成輸入設備之色調曲線,且回到步驟 1 0 2,以利用此時之色調曲線重新修正灰卡和色稿影像之 色調曲線,並進行後續之步驟,以估算出更符合輸入設備 實際之色調曲線的色調曲線。Page 9 526656 V. Description of the invention (7) The chromaticity value (such as RGB value) of the color block and the color measurement data are used to generate color correction parameters, and the color correction parameters are used to correct the color of each color block in the color image. And calculate the average error value (step 105), that is, calculate the correctness of the tone curve, use the chromaticity value of each color block in the color image to convert the chromaticity value of another color space CIELAB, and The chromaticity value of the measurement data of the previous color image is also converted into the chromaticity value of another color space CIE LAB, and the difference between the two is calculated using the following formula: AE * ab = ((L-Ll) 2+ (A-Al) 2+ (B-Bl) 2) 1/2, and judge the average error value and the magnitude of the error value (step 1 〇 6). If all the color patches are averaged by φ E * ab When the value is less than an error value (which is a preset error value with an infinite value), the error value is reset to this value (step 1 0 9), and step 1 1 0 is performed, but if the average error If the value is greater than the error value, the tone curve and the corrected tone card image are stored as the tone of the input device. The gray card image after the line and tone curve correction is used for subsequent removal of the brightness unevenness of the input image (step 1 07), and the process is ended (step 10 8), and the tone curve is estimated again (step 1 1 0 ), Use the color measurement data and the color curve image after the tone curve is corrected and the brightness is equalized, and re-estimate the tone curve with the tone curve in the step of modifying the tone curve (step 102), and call for setting this tone curve Into the tone curve of the input device, and return to step 102 to re-correct the tone curve of the gray card and color image using the tone curve at this time, and carry out the subsequent steps to estimate the tone that is more in line with the actual input device Curved tone curve.

第10頁 526656 五、發明說明(8) 因此本發明係可於此輸入設備下一次擷取另一影像 時,對此影像進行亮度均勻化,以解決輸入設備所擷取影 像之亮度不均勻性問題。 當然,若由步驟1 0 1進行至步驟1 0 2便跳至步驟1 0 7, 以儲存色調曲線色調曲線及色調曲線修正後灰卡影像,並 結束流程時,這些步驟其實就已將線性的色調曲線更改成 非線性之色調曲線,因此,由這些步驟中所得之色調曲線 已較習知技術中之線性的色調曲線更符合輸入設備之實際 的色調曲線。不過,此時之步驟1 0 2中僅需利用前述之色 調曲線修正灰卡影像之色調曲線。 而如「第6圖」所示,本發明之另一未知色調曲線輸 入設備之亮度不均勻性修正方法,主要係利用未知色調曲 線輸入設備所擷取之多階色調灰卡影像以及此灰卡之量測 資料估算輸入裝置的色調曲線以及修正具亮度不均句性問 題的色調曲線修正後灰卡影像,此方法係包括有下列步 驟·· 首先,開始此流程(步驟2 0 0 ); 之後,估算輸入設備之色調曲線(步驟2 0 1 ),也就 是利用多階色調灰卡影像及此灰卡之量測資料計算出色調 曲線, 接著,修正色調曲線(步驟2 0 2 ),也就是利用前述 之色調曲線修正多階色調灰卡影像之色調曲線; 然後,擷取經色調曲線修正之多階色調灰卡影像中各 像素的亮度變化資訊,以產生色調曲線修正後之單一色調Page 10 526656 V. Description of the invention (8) Therefore, the present invention can uniformize the brightness of this image when the next time the input device captures another image, so as to solve the uneven brightness of the image captured by the input device. problem. Of course, if you go from step 101 to step 102, you skip to step 107 to store the tone curve tone curve and the gray card image after the tone curve correction, and when the process ends, these steps are actually linear. The tone curve is changed to a non-linear tone curve. Therefore, the tone curve obtained in these steps is more in line with the actual tone curve of the input device than the linear tone curve in the conventional technology. However, in step 102 at this time, it is only necessary to use the aforementioned tone curve to correct the tone curve of the gray card image. As shown in "Figure 6", the brightness unevenness correction method of another unknown tone curve input device of the present invention mainly uses a multi-level tone gray card image captured by the unknown tone curve input device and the gray card. The measurement data is used to estimate the tone curve of the input device and to correct the gray card image after correction of the tone curve with brightness unevenness. This method includes the following steps: · First, start the process (step 2 0 0); , Estimate the tone curve of the input device (step 201), that is, calculate the tone curve using the multi-level tone gray card image and the measurement data of this gray card, and then correct the tone curve (step 2 0 2), that is, The tone curve of the multi-level tone gray card image is corrected by using the aforementioned tone curve; then, the brightness change information of each pixel in the multi-level tone gray card image corrected by the tone curve is captured to generate a single tone after the tone curve correction.

第11頁 526656 五、發明說明(9) 灰卡影像(步驟2 0 3 ); 並且將色調曲線以及色調曲線修正後之單一色調灰卡 影像分別儲存為輸入設備之色調曲線以及色調曲線修正後 之單一色調灰卡影像,供後續進行去除輸入影像的亮度不 均勻性時使用(步驟2 0 4 ); 最後,結束此流程(步驟2 0 5 )。 當然,此方法中所使用之多階色調灰卡係可為以灰卡 中心點依序劃分出數個相等或不相等之色塊,且各個相鄰 色塊之色彩並不相同(如「第7A、7B、7C圖」所示),抑 或是將灰卡劃分成數個相等或不相等之條狀色塊,且各條鲁 狀色塊係可與灰卡之邊界互相平行或不互相平行(如「第 7D、7E、7F圖」所示)。 【達成之功效】 根據本發明所提供之方法係能去除外在光源所造成之 亮度不均勻、鏡頭所造成的亮度不均勻、及影像感測元件 所造成的亮度不均勻等問題,以使輸入設備所擷取之影像 的亮度能夠均勻化,讓輸入設備所擷取之影像能夠更符合 直接觀看實體所得的影像。 以上所述者,僅為本發明其中的較佳實施例而已,並 非用來限定本發明的實施範圍;即凡依本發明申請專利範_ 圍所作的均等變化與修飾,皆為本發明專利範圍所涵蓋。Page 11 526656 V. Description of the invention (9) Gray card image (step 203); and the tone curve and the single tone gray card image after the tone curve correction are stored as the tone curve of the input device and the tone curve after the correction. The single-tone gray card image is used for subsequent removal of the brightness unevenness of the input image (step 2 0 4); finally, the process is ended (step 2 0 5). Of course, the multi-level tone gray card used in this method can be divided into several equal or unequal color blocks in order by the center point of the gray card, and the color of each adjacent color block is not the same (such as "the first Figures 7A, 7B, and 7C "), or divide the gray card into several equal or unequal strip-shaped color patches, and each of the rut-shaped color patches can be parallel or non-parallel to the boundary of the gray card ( (As shown in "Figures 7D, 7E, 7F"). [Achieved effect] The method provided by the present invention can remove problems such as uneven brightness caused by an external light source, uneven brightness caused by a lens, and uneven brightness caused by an image sensing element, so as to enable input. The brightness of the image captured by the device can be uniformized, so that the image captured by the input device can more closely match the image obtained by directly viewing the entity. The above are only the preferred embodiments of the present invention, and are not intended to limit the scope of implementation of the present invention; that is, all equivalent changes and modifications made in accordance with the scope of the patent application for the present invention are within the scope of the present invention patent. Covered.

第12頁 526656 圖式簡單說明 【圖式簡單說明】 第1A、1B、1C圖為造成亮度不均勻性之示意圖; 第2 A、2 B圖為線性色調曲線與非線性色調曲線之示意圖; 第3、4圖為修正裝置與輸入設備之關係及修正裝置之構成 圖; 第5圖為本發明之流程圖; 第6圖為本發明之另一流程圖;以及 第7A、7B、7C、7D、7E、7F圖為本發明之多階色調灰卡的 色塊排列圖。 【圖式符號說明】 修正裝置1 儲存單元11 輸入單元1 2 運算單元1 3 輸入設備2Page 526656 Brief description of the drawings [Simplified description of the drawings] Figures 1A, 1B, and 1C are schematic diagrams that cause brightness unevenness; Figures 2 A and 2 B are schematic diagrams of the linear tone curve and the non-linear tone curve; Figures 3 and 4 are the relationship between the correction device and the input device and the structure of the correction device; Figure 5 is the flowchart of the present invention; Figure 6 is another flowchart of the present invention; and Figures 7A, 7B, 7C, and 7D , 7E, 7F are the color block arrangement diagrams of the multi-level tone gray card of the present invention. [Illustration of Symbols] Correction device 1 storage unit 11 input unit 1 2 arithmetic unit 1 3 input device 2

Claims (1)

526656 六、申請專利範圍 1. 一種未知色調曲線輸入設備之亮度不均勻性修正方法, 該方法包括有下列步驟: 估算該輸入設備之一色調曲線; 修正色調曲線:以經估算所得之該色調曲線修正由 該輸入設備所擷取之一灰卡影像;以及 儲存··將該色調曲線以及色調曲線修正後之該灰卡 影像分別儲存為該輸入設備之色調曲線以及色調曲線修 正後之該灰卡影像。 2. 如申請專利範圍第1項所述未知色調曲線輸入設備之亮 度不均勻性修正方法,其中該估算該輸入設備之一色調 $ 曲線的步驟係為以與該灰卡影像之相同取像環境下,由 該輸入設備所擷取之一色稿影像和該色稿之一量測資料 估算該輸入設備之該色調曲線之初始值。 3 .如申請專利範圍第1項所述未知色調曲線輸入設備之亮 度不均勻性修正方法,其中該估算該輸入設備之一色調 曲線的步驟係為以與該灰卡影像之相同取像環境下,由 該輸入設備所擷取之一色稿影像和該色稿之一量測資料 估算該輸入設備之該色調曲線初始值,且該修正色調曲 線步驟更包括以經估算所得之該色調曲線修正於與該灰 卡影像之相同取像環境下,由該輸入設備所擷取之一色 $ 稿影像之色調曲線的步驟。 4.如申請專利範圍第1項所述未知色調曲線輸入設備之亮 度不均勻性修正方法,其中該估算該輸入設備之一色調 曲線的步驟係為以與該灰卡影像之相同取像環境下,由526656 6. Scope of patent application 1. A method for correcting brightness unevenness of an unknown tone curve input device, the method includes the following steps: estimating a tone curve of the input device; correcting the tone curve: using the estimated tone curve Correcting a gray card image captured by the input device; and storing the tone card and the gray card image after the correction of the tone curve are stored as the input device's tone curve and the gray card after correction of the tone curve, respectively. image. 2. The method for correcting brightness unevenness of an unknown tone curve input device as described in item 1 of the scope of patent application, wherein the step of estimating a tone $ curve of the input device is to use the same acquisition environment as the gray card image Next, an initial value of the tone curve of the input device is estimated from a color draft image captured by the input device and measurement data of the color draft. 3. The method for correcting the brightness unevenness of an unknown tone curve input device as described in item 1 of the scope of patent application, wherein the step of estimating a tone curve of the input device is under the same acquisition environment as the gray card image , Estimating an initial value of the tone curve of the input device from a color draft image captured by the input device and a measurement data of the color draft, and the step of correcting the tone curve further includes correcting the estimated tone curve to In the same acquisition environment as the gray card image, the step of the tone curve of one color $ draft image captured by the input device. 4. The method for correcting brightness unevenness of an unknown tone curve input device as described in item 1 of the scope of the patent application, wherein the step of estimating a tone curve of the input device is performed under the same acquisition environment as the gray card image ,by 第14頁 526656 六、申請專利範圍 該輸入設備所擷取之一色稿影像和該色稿之一量測資料 估算該輸入設備之該色調曲線初始值,且該修正色調曲 線步驟更包括以經估算所得之該色調曲線修正該色稿影 像之色調曲線的步驟,而該修正色調曲線步驟之後,更 包括下列步驟: 均勻化亮度:利用色調曲線修正後的該灰卡影像除 去色調曲線修正後之該色稿影像的亮度不均句性; 產生一色彩校正參數以修正該色稿影像:利用色調 曲線修正後且亮度均勻的該色稿影像與該色稿之一量測 資料產生該色彩校正參數,並以該色彩校正參數修正該φ 色稿影像中各色塊之色度值; 計算一平均誤差值:計算該色稿影像與該量測資料 中各色塊之色度值的誤差值,並作誤差值的平均計算; 確認該平均誤差值大於一誤差值。 5 .如申請專利範圍第4項所述未知色調曲線輸入設備之亮 度不均勻性修正方法,其中該計算一平均誤差值的步驟 係為將該色稿影像中各色塊之色度值轉換成一另一色彩 空間的色度值,以及將該量測資料中各色塊之色度值轉 換成該另一色彩空間的色度值,並計算兩者之誤差值, 以作誤差值的平均計算。 _ 6 .如申請專利範圍第5項所述未知色調曲線輸入設備之亮 度不均勻性修正方法,其中該另一色彩空間係為C I E LAB° 7.如申請專利範圍第4項所述未知色調曲線輸入設備之亮Page 14 526656 VI. Scope of patent application One color draft image captured by the input device and one measurement data of the color draft estimate the initial value of the tone curve of the input device, and the step of correcting the tone curve further includes the estimated The obtained tone curve corrects the tone curve of the color draft image. After the step of correcting the tone curve, the method further includes the following steps: Uniform brightness: The gray card image corrected by the tone curve is used to remove the tone curve corrected. The unevenness of the brightness of the color draft image is generated; a color correction parameter is generated to correct the color draft image: the color correction parameter is generated by using the measurement data of the color draft image and one of the color draft after the tone curve is corrected and the brightness is uniform, And correct the chromaticity value of each color block in the φ color draft image with the color correction parameter; calculate an average error value: calculate the error value of the chromaticity value of the color draft image and each color block in the measurement data, and make an error Calculation of the average value; confirm that the average error value is greater than an error value. 5. The method for correcting brightness unevenness of an unknown tone curve input device as described in item 4 of the scope of patent application, wherein the step of calculating an average error value is to convert the chromaticity value of each color block in the color image into another The chromaticity value of a color space, and the chromaticity value of each color block in the measurement data are converted into the chromaticity value of the other color space, and the error value of the two is calculated for the average calculation of the error value. _ 6. The brightness unevenness correction method of the unknown tone curve input device as described in item 5 of the scope of patent application, wherein the other color space is CIE LAB ° 7. The unknown tone curve as described in item 4 of the scope of patent application Brightness of input device 第15頁 526656 六、申請專利範圍 度不均勻性修正方法,其中該確認該平均誤差值大於一 誤差值的結果為否時,則進行下列步驟: 將該誤差值設為該平均誤差值;以及 再次估算該色調曲線··以該量測資料及色調曲線修 正後且亮度均勻化之該色稿影像,配合該修正色調曲線 中之該色調曲線重新估算色調曲線,且進行該修正色調 曲線步驟後之後續步驟。 8. —種未知色調曲線輸入設備之亮度不均勻性修正方法, 該方法包括有下列步驟: 估算該輸入設備之一色調曲線:以該輸入設備所擷 _丨 取之一多階色調灰卡影像及此影像之一量測資料計算該 色調曲線; 修正色調曲線:以該色調曲線修正該多階色調灰卡 影像之色調曲線; 擷取色調曲線修正後之該多階色調灰卡影像中各像 素的亮度變化資訊,以產生一色調曲線修正後之單一色 調灰卡影像;以及 儲存:將該色調曲線以及色調曲線修正後之該單一 色調灰卡影像分別儲存為該輸入設備之色調曲線以及色 調曲線修正後之該單一色調灰卡影像。 _ 9 .如申請專利範圍第8項所述未知色調曲線輸入設備之亮 度不均勻性修正方法,其中該灰卡係為以其中心點依序 劃分出複數個色塊。 1 〇 .如申請專利範圍第9項所述未知色調曲線輸入設備之亮Page 15 526656 6. The method for correcting the non-uniformity of the patent application range, wherein when the result of confirming that the average error value is greater than an error value is No, then perform the following steps: set the error value to the average error value; and Estimating the tone curve again ... Using the measurement data and the tone image after the tone curve is corrected and the brightness is uniformized, re-estimate the tone curve with the tone curve in the modified tone curve, and after performing the step of correcting the tone curve The next steps. 8. A method for correcting brightness unevenness of an unknown tone curve input device, the method includes the following steps: Estimating a tone curve of the input device: taking a multi-level tone gray card image captured by the input device And the measured data of one of the images to calculate the tone curve; modify the tone curve: use the tone curve to correct the tone curve of the multi-level tone gray card image; capture each pixel in the multi-order tone gray card image after the tone curve correction Brightness change information to generate a single tone gray card image after a tone curve correction; and storage: storing the tone curve and the single tone gray card image after the tone curve correction are stored as the tone curve and tone curve of the input device, respectively The corrected single-tone gray card image. _9. The method for correcting the brightness unevenness of an unknown tone curve input device as described in item 8 of the scope of the patent application, wherein the gray card is divided into a plurality of color blocks in order by their center points. 10. The brightness of the unknown tone curve input device as described in item 9 of the scope of patent application 第16頁 526656 六、申請專利範圍 度不均勻性修正方法,其中該複數個色塊係為相等。 1 1.如申請專利範圍第1 0項所述未知色調曲線輸入設備之 亮度不均勻性修正方法,其中該複數個色塊中各相鄰色 塊之色彩並不相同。 1 2 .如申請專利範圍第9項所述未知色調曲線輸入設備之亮 度不均勻性修正方法,其中該複數個色塊係為不相等。 1 3 .如申請專利範圍第1 2項所述未知色調曲線輸入設備之 亮度不均勻性修正方法,其中該複數個色塊中各相鄰色 塊之色彩並不相同。 1 4.如申請專利範圍弟8項所述未知色調曲線輸入設備之壳 度不均勻性修正方法,其中該灰卡劃分成複數個條狀色 塊。 1 5 .如申請專利範圍第1 4項所述未知色調曲線輸入設備之 亮度不均勻性修正方法,其中該複數個條狀色塊係為相 等。 1 6 .如申請專利範圍第1 5項所述未知色調曲線輸入設備之 亮度不均勻性修正方法,其中該複數個條狀色塊係為與 該灰卡之邊界互相平行。 1 7 .如申請專利範圍第1 5項所述未知色調曲線輸入設備之 亮度不均勻性修正方法,其中該複數個條狀色塊係為與 $ 該灰卡之邊界不互相平行。 1 8 .如申請專利範圍第1 4項所述未知色調曲線輸入設備之 亮度不均勻性修正方法,其中該複數個條狀色塊係為不 相等。Page 16 526656 6. Scope of Patent Application Degree unevenness correction method, wherein the plurality of color patches are equal. 1 1. The method for correcting brightness unevenness of an unknown tone curve input device as described in item 10 of the scope of patent application, wherein the adjacent color blocks in the plurality of color blocks have different colors. 12. The brightness unevenness correction method of an unknown tone curve input device as described in item 9 of the scope of the patent application, wherein the plurality of color patches are unequal. 13. The method for correcting brightness unevenness of an unknown tone curve input device as described in item 12 of the scope of patent application, wherein the adjacent color blocks of the plurality of color blocks have different colors. 1 4. The method for correcting the shell unevenness of the unknown tone curve input device according to item 8 of the scope of patent application, wherein the gray card is divided into a plurality of strip-shaped color blocks. 15. The method for correcting brightness unevenness of an unknown tone curve input device as described in item 14 of the scope of patent application, wherein the plurality of stripe color patches are equal. 16. The method for correcting brightness unevenness of an unknown tone curve input device as described in item 15 of the scope of the patent application, wherein the plurality of stripe color patches are parallel to the boundary of the gray card. 17. The method for correcting brightness unevenness of an unknown tone curve input device as described in item 15 of the scope of patent application, wherein the plurality of stripe color patches are not parallel to the gray card boundary. 18. The method for correcting brightness unevenness of an unknown tone curve input device as described in item 14 of the scope of patent application, wherein the plurality of stripe color patches are unequal. 第17頁 526656 六、申請專利範圍 1 9 .如申請專利範圍第1 8項所述未知色調曲線輸入設備之 亮度不均勻性修正方法,·其中該複數個條狀色塊係為與 該灰卡之邊界互相平行。 2 0 .如申請專利範圍第1 8項所述未知色調曲線輸入設備之 亮度不均勻性修正方法,其中該複數個條狀色塊係為與 該灰卡之邊界不互相平行。Page 17 526656 6. Application for Patent Scope 19. As described in the method of brightness unevenness correction of unknown tone curve input device as described in Item 18 of the scope of application for patent, where the plurality of stripe color patches are related to the gray card The boundaries are parallel to each other. 20. The method for correcting brightness unevenness of an unknown tone curve input device as described in item 18 of the scope of patent application, wherein the plurality of stripe color patches are not parallel to the boundary of the gray card. 第18頁Page 18
TW90121544A 2001-08-31 2001-08-31 Brightness nonuniformity correction method of the input equipment for unknown tone curve TW526656B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
TW90121544A TW526656B (en) 2001-08-31 2001-08-31 Brightness nonuniformity correction method of the input equipment for unknown tone curve

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
TW90121544A TW526656B (en) 2001-08-31 2001-08-31 Brightness nonuniformity correction method of the input equipment for unknown tone curve

Publications (1)

Publication Number Publication Date
TW526656B true TW526656B (en) 2003-04-01

Family

ID=28450622

Family Applications (1)

Application Number Title Priority Date Filing Date
TW90121544A TW526656B (en) 2001-08-31 2001-08-31 Brightness nonuniformity correction method of the input equipment for unknown tone curve

Country Status (1)

Country Link
TW (1) TW526656B (en)

Similar Documents

Publication Publication Date Title
US20210029271A1 (en) Devices and methods for high dynamic range video
US8768055B2 (en) Image sensor apparatus and method for scene illuminant estimation
CN111292246B (en) Image color correction method, storage medium, and endoscope
US7729535B2 (en) Color characterization of high dynamic range image capture devices
Kao et al. Design considerations of color image processing pipeline for digital cameras
TWI549511B (en) Image sensing apparatus and color-correction matrix correcting method and look-up table establishing method
CN100542304C (en) Image processing apparatus and image pick-up device
JP5899894B2 (en) Imaging apparatus, image processing apparatus, image processing program, and image processing method
JP3943167B2 (en) Color conversion method
US9288456B2 (en) Image processing apparatus and method
JP5526598B2 (en) Matrix coefficient setting method and image display device
TW526656B (en) Brightness nonuniformity correction method of the input equipment for unknown tone curve
JP2003224867A (en) White balance correction method
JP3951993B2 (en) IMAGING DEVICE AND COLOR DATA MEASURING METHOD USED FOR THIS IMAGING DEVICE
TWI405144B (en) Image correcting method, image correcting unit and image capture apparatus using the same
Lee et al. Design and implementation of color correction system for images captured by digital camera
JP2001078235A (en) Method and system for image evaluation
JP4426009B2 (en) Image processing method and apparatus, and recording medium
TW583870B (en) Auto white balance calibration method of the image capturing device
JP2018137580A (en) Image processor, image processing method, and program
KR101005625B1 (en) A method for color compensation based on color characteristic curve of a camera
JPH09284429A (en) Picture evaluation device
TW202205212A (en) Image correction device, image correction method, program and recording medium
JP2022186166A (en) Imaging apparatus, control method for the same, program, and storage medium
JPH07135668A (en) Color picture input device, offset value detection method used for the device, brightness peak balance detection circuit and white balance detection method

Legal Events

Date Code Title Description
GD4A Issue of patent certificate for granted invention patent
MM4A Annulment or lapse of patent due to non-payment of fees