TW560176B - Color correction method - Google Patents

Color correction method Download PDF

Info

Publication number
TW560176B
TW560176B TW90133199A TW90133199A TW560176B TW 560176 B TW560176 B TW 560176B TW 90133199 A TW90133199 A TW 90133199A TW 90133199 A TW90133199 A TW 90133199A TW 560176 B TW560176 B TW 560176B
Authority
TW
Taiwan
Prior art keywords
chroma
correction
color
patent application
color space
Prior art date
Application number
TW90133199A
Other languages
Chinese (zh)
Inventor
Wen-Hung Shie
Chiou-Shan Fu
Hung-Ji Yu
Original Assignee
Jeilin Technologies Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Jeilin Technologies Corp filed Critical Jeilin Technologies Corp
Priority to TW90133199A priority Critical patent/TW560176B/en
Application granted granted Critical
Publication of TW560176B publication Critical patent/TW560176B/en

Links

Landscapes

  • Facsimile Image Signal Circuits (AREA)
  • Image Processing (AREA)

Abstract

A color correction method is disclosed, which is applied in an image capturing device. The method comprises the following steps: a color space conversion step to convert the first digital three-primaries into the quantitative chroma value; a chroma computation step to calculate the quantitative chroma value for obtaining the chroma comparison value; a judging step to compare the chroma comparison value and the preset value. In the computation step of correction matrix, if the chroma comparison value is lower than the preset value, the first cost function comprising the limiting condition is used to obtain the first correction matrix. If the chroma comparison value is higher than the preset value, the second cost function without the limiting condition is used to obtain the second correction matrix. Then, the first correction matrix or the second correction matrix is multiplied by the first digitized three-primaries, so as to obtain the second digitized three-primaries and output the same.

Description

560176 經濟部中央標準局貝工消費合作社印製 8366twf.doc/009 Β7 五、發明説明(/ ) 本發明是有關於一種彩度校正方法,且特別是有關於 一種影像擷取裝置在色彩上的校正方法。 所謂的影像擷取裝置,係在現今已相當普及的數位相 機(Digital Sdll Camera)、彩色掃描器以及視訊攝影機 (Digital Video Camcoder)。經由近十年彩色影像技術及 網際網路的發展,使得彩色影像之間的交換也變得十分常 見,即使是個人,也能經由個人電腦將不同的彩色影像裝 置連結在一起,雖然現今對於影像在擷取及產生方面上的. 速度及解析度不斷的在增加中,但也由於這些影像在前置 動作上的技術加強,使得後置的技術被忽略,以至於影像 輸出的彩度仍未進步。 請合倂參考第1圖及第2圖,其中第1圖繪示的是一 般各類影像擷取裝置上常有的元件,包括電荷耦合元件 (Charge-Coupled Device ;簡稱 CCD) 101、類比/數位轉換 器(Analog/Digital Converter ;簡稱 A/D Converter) 102、 輸出裝置108,以及在影像擷取裝置上最重要的心臟…處理 單元104。 而第2圖所繪示的流程圖,即是對於影像擷取裝置在 處理擷取影像的部分步驟。當電荷耦合元件101擷取影像 成像素(pixel)處理時,會將擷取到的光子轉化成類比訊 號並加以放大(步驟s200),而類比/數位轉換器1〇2則會 在步驟s202中將類比訊號轉爲數位訊號,以利後續的處理 單元104對數位訊號進行步驟s204的色彩訊號內差(color signal interpolation)處理、步驟 s206 的白平衡(white 本紙張尺度適用中國國家標率(CNS)八4規格(210X297公嫠) 83. 3. 10,000 r4J5^— — (請先閲讀背面之注$項再填寫本頁) 訂 經濟部中央標準局貝工消费合作社印裝 560176 8366twf.doc/009 A7 B7 五、發明説明(V ) balance)以及步驟 S208 的彩度校正(c〇l〇r correction)。 其中,彩度校正是利用一個3*3的校正矩陣估計彩度 (chromatic)的適應效果,是關於人對彩色視線重要的一 環,但有些處理單元104甚至沒有彩色校正機制設計於內, 例如 Zoran and TI ( Texas Instruments ),或是只針對彩度 低的像素作校正考量,因爲設計者在設計時是假設像素最 後所呈現的彩度誤差是在一般人可接受的範圍,孰不知在 影像處理發展至今,除了速度之外,質感也是很重要的, 能將彩度的精準度調到最高,將是未來的一個重要課題。 有鑒於此,本發明提出一種彩度校正之方法,係在民 國90年7月17日發表於台大資訊工程硏究所碩士論文期 干丨J ’名稱爲「數位相機之色彩特性與校正」(Colorimetric Characterization for Digital Still Camera),其目的在於可 將輸出像素的彩度精準度提高,不管是彩度低或高的像 素,且不需浪費多餘的硬體成本。 此彩度校正之方法係適用於影像擷取裝置,其步驟包 括:彩色空間轉換步驟、彩度計算步驟、判斷步驟、校正 矩陣計算步驟以及第二數位化三原色取得步驟。 其中,上述之步驟係由圖丨中之處理單元104進行處 理與執行’且這些步驟係以程式碼的型態儲存於儲存單元 106 中。 當中的彩色空間轉換步驟,係用以轉換第一數位化三 原色爲彩度量化値,而彩度計算步驟,則是用以計算彩度 量化値’以得到彩度比較値,此彩度比較値係在判斷步驟 4 本紙張尺度適用中國國家標準(CNS ) A4規格(210X297公釐^ ' 83. 3 10,000 ---T——:_!裝·------訂-----^線 (請先閲讀背面之注項再填寫本頁) 經濟部中失標準局貝工消费合作社印製 560176 8 3 66twf. doc/0 〇 9 A7 B7 五、發明説明(^ ) 中,被用以與預設値進行比較。 在一校正矩陣計算步驟中,若彩度比較値低於預設 値,則利用包含限制條件之第一成本函數,得到第一校正 矩陣,若彩度比較値高於預設値,則利用不具限制條件之 第二成本函數,得到第二校正矩陣,再在第二數位化三原 色取得步驟中,端視彩度比較値低於或高於預設値,將第 一校正矩陣或第二校正矩陣,乘上第一數位化三原色,得 到第二數位化三原色並加以輸出。 本發明又提出一種彩度校正之方法,下述之步驟係由 圖1中之處理單元104進行處理與執行,且這些步驟係以 程式碼的型態儲存於儲存單元106中。 其步驟包括:將成本函數5 = 分解成複 ί=1 數個子成本函數,分別爲第一子成本函數幻=文(<2)、第二 /=1 子成本函數幻以及第三子成本函數们=:έ(<2),其中 »=1 1=1 L*、a*、b*係第一彩色空間轉換函數。 之後,分別對這些子成本函數進行微分,得到第二彩 色空間轉換函數X、Y、Z,再經由第一彩色空間轉換函數 及第二彩色空間轉換函數之間的一個關係式,得到第二彩 色空間轉換函數之値,此値會接著與一個輸出矩陣進行運 算,得到數位化三原色並進一步輸出此數位化三原色。 綜上可知,本發明可利用兩個校正矩陣,針對計算出 的彩度比較値高低加以選擇最適之校正矩陣,以得到最佳 的彩度準度。 5 (請先閱讀背面之注$項再填寫本頁) •裝_ 訂 本紙張尺度適用中國國家標準(CNS ) A4現格(210X297公釐) 83. 3. 10,000 560176 8366twf . doc/ 009 A7 _B7_ 五、發明説明(今) 另外,也可以將一個原來用以計算校正矩陣的成本函 數分解成3個子成本函數,因爲原來的成本函數具有3個 轉換函數,會使得其中一個在計算時受到其他兩個函數的 影響,而降低彩度的準度,可使每一個子成本函數只針對 一個轉換函數作計算,再利用兩個彩色空間轉換函數之間 的關係式,得到像素輸出的三原色。 爲讓本發明之上述和其他目的、特徵、和優點能更明 顯易懂,下文特舉較佳實施例,並配合所附圖式,作詳細 說明如下: 圖式之簡單說明: 第1圖繪示的是習知關於影像擷取裝置之一內部方塊 圖; 第2圖繪示的是習知關於圖1在影像擷取後處理步驟 上之一流程圖; 第3圖繪示的是習知關於單一電荷耦合元件擷取光子 形成像素之一示意圖;以及 第4圖繪示的是本發明關於彩度校正的處理步驟之一 流程圖;以及 經濟部中央標準局貝工消费合作社印^ (請先閲讀背面之注$項再填寫本頁) 第5圖繪示的是本發明關於彩度校正的處理步驟之另 一流程圖。 標號說明 1〇〇 :影像擷取裝置 1〇1 :電荷耦合元件 102 :類比/數位轉換器 本紙張尺度適用中國國家標隼(CNS ) A4規格(210X297公釐) 83. 3. 10,000 560176 8366twf . ς^( c/ 〇 〇 9 A7 B7 經濟部中央標準局員工消费合作社印裝 五、發明説明(Cj ) 104 :處理單元 1〇6 :儲存單元 108 :輸出裝置 110 :外部顯像裝置 步驟s200至步驟S208是習知之一處理步驟 步驟s400至步驟S416是本發明一較佳實施例之一處理步 驟 步驟S500至步驟s5〇8是本發明之另一較佳實施例之一處 理步驟 較佳實施例 請合倂參照第1圖及第2圖,其繪示的是一般影像擷 取裝置中處理影像的裝置及處理流程。 其中第1圖繪示的是一般各類影像擷取裝置上常有的 元件,包括電荷耦合元件101、類比/數位轉換器102、處理 單元104、儲存單元106以及輸出裝置108,其中在此的影 像擷取裝置1〇〇可以是數位相機(Digital Still Camera ;簡 稱DSC)或是掃描器,當這類的影像擷取裝置擷取影像資 料後,經由內部處理流程,會將處理過的影像傳輸至與其 連接之外部顯像裝置11〇,此外部顯像裝置Π〇可以是任何 可以顯示影像的裝置,例如現今的電視機螢幕或是電腦螢 幕等等。 在第2圖中所繪示的流程圖,就是影像擷取裝置100 內部處理被擷取影像的部分步驟’即當電荷耦合元件101 擷取影像成像素(Pixel)處理時’會將擷取到的光子轉化 7 _本紙張尺度(CNS ) A4祕(210X297公釐) 83. 3. 10,000 -------^ 裝— (請先閲讀背面之注意事項再填寫本頁) 訂- 經濟部中央標準局貝工消費合作社印製 560176 8366twf.doc/009 A7 _B7 五、發明説明(込) 成類比訊號並加以放大(步驟s200),而類比/數位轉換器 102則會在步驟S202中將類比訊號轉爲數位訊號,以利後 續的處理單元104,例如數位訊號處理器(Digitai Signal Processor ;簡稱DSP),對數位訊號進行步驟S204的色彩 訊號內差(color signal interpolation)處理、步驟 s206 的 白平衡(white balance)以及步驟s208的彩度校正(color correction) 〇 其中若影像擷取裝置100是一個掃描器,則其電荷耦 合裝置101可爲一個至少含三組掃描列的裝置,則可不需 進行所謂的色彩訊號內差處理,但如是數位相機中的電荷 耦合元件,則有可能係如圖3中,是一個單一的電荷耦合 元件,在一個單一方塊中有數個擷取圖像以形成像素的小 方塊,其中一個像素負責一個頻道,也就是一個像素只負 責擷取三原色中的一種顏色,因此需進行色彩訊號內差處 理,以求得其他兩種顏色的訊號,以圖3的電荷耦合元件 所擷取的影像資料爲例,當(行,列)爲(1,1 )像素所 擷取的原色資料爲G,則利用其周圍像素,即(行,列) 爲(1,2)及(2,1)的像素所擷取的原色資料來取得。 而所謂的白平衡處理,即是模擬人眼對在不同的環境 照明下對於白色色彩的認定,會以白色爲標準,讓其他色 彩也採取同樣的認定方式。例如,假設圖3 (行,列)爲(1, Ο的像素是一個白色像素,則將其已知之R、G、B三原 色各自乘上一個常數,使白平衡處理後的白色色彩輸出都 爲1 : 8 -------裝-- (請先閲讀背面之注$項再填寫本頁) ▼訂 本紙張尺度適用中國國家標隼(CNS)八4規格(210X29*7公釐) 83. 3. 10,000 經濟部中央標準局貝工消费合作社印裝 560176 8366twf.doc/009 八7 ___ B7 ___ 五、發明説明(A ) 即:Rw*常數r=l ;560176 Printed by Shellfish Consumer Cooperative, Central Standards Bureau, Ministry of Economic Affairs, 8366twf.doc / 009 B7 V. Description of the Invention (/) The present invention relates to a method for chroma correction, and in particular, to the color capture of an image capture device Correction method. The so-called image capture device is a digital camera (Digital Sdll Camera), a color scanner, and a digital video camera (Digital Video Camcoder) that are quite popular today. Through the development of color imaging technology and the Internet in the past ten years, the exchange of color images has become very common. Even individuals can connect different color imaging devices together through personal computers. In terms of capture and generation. Speed and resolution are constantly increasing, but because of the enhancement of the front-end technology of these images, the post-position technology is ignored, so that the chroma of the image output is still not progress. Please refer to Figure 1 and Figure 2 for reference. Figure 1 shows the components commonly used in general image capture devices, including Charge-Coupled Device (CCD) 101. Analog / A digital converter (Analog / Digital Converter; abbreviated as A / D Converter) 102, an output device 108, and the most important heart ... processing unit 104 on the image capture device. The flowchart shown in FIG. 2 is a part of the steps of the image capture device in processing the captured image. When the charge-coupled device 101 captures an image into pixels, it will convert the captured photons into analog signals and enlarge them (step s200), and the analog / digital converter 102 will be in step s202. The analog signal is converted into a digital signal, so that the subsequent processing unit 104 performs the color signal interpolation of step s204 on the digital signal and the white balance of step s206 (white. This paper applies the Chinese national standard (CNS) ) 8 4 specifications (210X297 gong) 83. 3. 10,000 r4J5 ^ — (Please read the note on the back before filling out this page) Order printed by the Central Standards Bureau of the Ministry of Economic Affairs, Shellfish Consumer Cooperatives 560176 8366twf.doc / 009 A7 B7 5. Invention description (V) balance) and chroma correction (c0l0r correction) in step S208. Among them, chroma correction uses a 3 * 3 correction matrix to estimate the chromatic adaptation effect. It is an important part of people's sight of color, but some processing units 104 do not even have a color correction mechanism designed in them, such as Zoran and TI (Texas Instruments), or only for low chroma pixels, because the designer assumes that the chroma error presented by the pixel is within the acceptable range of the average person at the time of design. So far, in addition to speed, texture is also very important. Being able to adjust the accuracy of chroma to the highest level will be an important issue in the future. In view of this, the present invention proposes a method for chroma correction, which was published on July 17, 1990 in the master ’s thesis of the National Taiwan University Information Engineering Research Institute. The name is "Color characteristics and correction of digital cameras" ( Colorimetric Characterization for Digital Still Camera), whose purpose is to improve the chroma accuracy of output pixels, whether it is low or high chroma pixels, without the need to waste extra hardware costs. This method for chroma correction is applicable to image capture devices, and its steps include: a color space conversion step, a chroma calculation step, a judgment step, a correction matrix calculation step, and a second digitized three primary color acquisition step. Among them, the above steps are processed and executed by the processing unit 104 in the figure, and these steps are stored in the storage unit 106 in the form of a code. The color space conversion step is used to convert the first digitized three primary colors into chroma quantization 値, and the chroma calculation step is used to calculate chroma quantization 値 'to obtain the chroma comparison 値, this chroma comparison 値It is in the judgment step 4. This paper size is applicable to the Chinese National Standard (CNS) A4 specification (210X297 mm ^ '83. 3 10,000 --- T ——: _! Installed · ------ order ----- ^ Line (please read the note on the back before filling this page) Printed by Shelley Consumer Cooperative of the Bureau of Standards and Loss of Standards of the Ministry of Economic Affairs 560176 8 3 66twf. Doc / 0 〇9 A7 B7 5. In the description of the invention (^) To compare with the preset 値. In a correction matrix calculation step, if the chroma comparison 値 is lower than the preset 値, then use the first cost function containing constraints to obtain the first correction matrix, if the chroma is 値 higher In the preset value, a second cost function is used without restriction to obtain a second correction matrix. Then, in the second digitizing three primary color obtaining step, the end-view chroma is relatively lower or higher than the preset value. A correction matrix or a second correction matrix, multiplied by the first digitized three primary colors to get The second digitizes the three primary colors and outputs them. The present invention also proposes a method for chroma correction. The following steps are processed and executed by the processing unit 104 in FIG. 1, and these steps are stored in the form of code in The storage unit 106. The steps include: decomposing the cost function 5 = into complex = 1 = several sub cost functions, which are the first sub cost function magic = text (< 2), the second / = 1 sub cost function magic And the third sub-cost functions =: ((< 2), where »= 1 1 = 1 L *, a *, b * are the first color space conversion functions. Then, these sub-cost functions are differentiated separately, The second color space conversion function X, Y, Z is obtained, and then through a relationship between the first color space conversion function and the second color space conversion function, one of the second color space conversion functions is obtained. An output matrix is operated to obtain the digitized three primary colors and further output the digitized three primary colors. In summary, the present invention can use two correction matrices to select the most suitable correction matrix for the calculated chroma comparison. Get the best degree of chroma. 5 (Please read the note on the back before filling this page) • The size of the paper is applicable to the Chinese National Standard (CNS) A4 (210X297 mm) 83. 3. 10,000 560176 8366twf .doc / 009 A7 _B7_ V. Description of the invention (today) In addition, a cost function used to calculate the correction matrix can also be decomposed into 3 sub-cost functions, because the original cost function has 3 conversion functions. Make one of them be affected by the other two functions in the calculation, and reduce the accuracy of the chroma, so that each sub-cost function can only be calculated for one conversion function, and then use the relationship between the two color space conversion functions. To get the three primary colors of the pixel output. In order to make the above and other objects, features, and advantages of the present invention more comprehensible, the following describes the preferred embodiments in detail with the accompanying drawings as follows: Brief description of the drawings: FIG. 1 Shows an internal block diagram of one of the image capture devices that is known; Figure 2 shows a flowchart of the processing steps after image capture that is known about Figure 1; Figure 3 shows the knowledge One schematic diagram of a single charge-coupled element capturing photons to form a pixel; and FIG. 4 shows a flowchart of the chroma correction process of the present invention; and the print by the Bayer Consumer Cooperative of the Central Standards Bureau of the Ministry of Economic Affairs ^ (Please (Please read the note on the back before filling in this page.) Figure 5 shows another flowchart of the chroma correction processing steps of the present invention. Symbol description 100: image capture device 101: charge-coupled device 102: analog / digital converter This paper size applies to China National Standard (CNS) A4 specification (210X297 mm) 83. 3. 10,000 560176 8366twf. ς ^ (c / 〇〇9 A7 B7 Printed by the Consumer Cooperatives of the Central Standards Bureau of the Ministry of Economic Affairs 5. Description of Invention (Cj) 104: Processing unit 106: Storage unit 108: Output device 110: External display device steps s200 to Step S208 is one of the known processing steps. Steps s400 to S416 are one of the preferred embodiments of the present invention. Processing steps S500 to s508 are one of the other preferred embodiments of the present invention. Please refer to Figure 1 and Figure 2 for a description of the image processing device and processing flow of the general image capture device. Figure 1 shows the image capture device The device includes a charge coupled device 101, an analog / digital converter 102, a processing unit 104, a storage unit 106, and an output device 108. The image capturing device 100 herein may be a digital still camera (Digital Still Camer a; DSC for short) or a scanner. After this type of image capture device captures image data, it will transmit the processed image to an external display device 11 connected to it through an internal processing flow. This external display device The image device Π〇 can be any device that can display images, such as the current TV screen or computer screen, etc. The flowchart shown in Figure 2 is the internal processing of the captured image by the image capture device 100 Part of the steps 'that is, when the charge-coupled device 101 captures an image into pixels' will process the captured photons 7 _ This paper size (CNS) A4 secret (210X297 mm) 83. 3. 10,000- ------ ^ 装 — (Please read the notes on the back before filling out this page) Order-Printed by the Shellfish Consumer Cooperative of the Central Standards Bureau of the Ministry of Economic Affairs 560176 8366twf.doc / 009 A7 _B7 V. Description of the Invention (込) The analog signal is amplified and amplified (step s200), and the analog / digital converter 102 converts the analog signal to a digital signal in step S202 to facilitate subsequent processing units 104, such as a digital signal processor (Digitai Signal Processor; simple (Referred to as DSP), the digital signal is subjected to the color signal interpolation process of step S204, the white balance of step s206 and the color correction of step s208. Among them, if the image capture device 100 Is a scanner, the charge-coupled device 101 can be a device with at least three groups of scan lines, so that the so-called color signal internal difference processing is not required, but if it is a charge-coupled element in a digital camera, it may be In Figure 3, there is a single charge-coupled element. In a single square, there are several small squares that capture images to form pixels. One pixel is responsible for a channel, that is, one pixel is responsible for capturing only one of the three primary colors. Therefore, it is necessary to perform color signal internal difference processing to obtain the signals of the other two colors. Taking the image data captured by the charge-coupled element in FIG. 3 as an example, when (row, column) is (1,1) pixels, The captured primary color data is G, and the surrounding pixels, that is, the pixels of (1, 2) and (2, 1) (row, column) are used to capture the primary color data. Get. The so-called white balance processing is to simulate the human eye's identification of white color under different ambient lighting. White color will be used as the standard, and other colors will adopt the same identification method. For example, assuming that the pixel in Figure 3 (row, column) is (1, 0) is a white pixel, then multiply its known R, G, and B primary colors by a constant, so that the white color output after white balance processing is 1: 8 ------- Package-(Please read the note on the back before filling in this page) ▼ The size of the paper is applicable to China National Standard (CNS) 8-4 (210X29 * 7mm) 83. 3. 10,000 Printed by the Shellfish Consumer Cooperative of the Central Standards Bureau of the Ministry of Economic Affairs 560176 8366twf.doc / 009 8 7 ___ B7 ___ V. Description of the invention (A) That is: Rw * constant r = l;

Gw*常數g=l ;以及 Bw*常數 b=l。 其中,w即是指白色色彩,而除了白色色彩的數位化三原色 (R’,G’ ’ B’)輸出値爲1外,其他乘上這些常數之色彩 皆會有不同之値輸出。 以上所指皆是處理單元104處理像素色彩上的前端作 業,接著會進行後端的彩度校正作業。 關於一般的彩度校正作業,是將白平衡後的數位化三 原色(R’,G’,B’)乘上一個包含限制條件之成本函數計 算得到之3*3校正矩陣Μ,以得到數位化三原色(R”,G”, Β,,)。 此包含限制條件之成本函數計算得到之3*3校正矩陣 Μ,其中此成本函數爲計算最小平方誤差之成本函數,是由 兩個彩色空間轉換函數而來,分別爲線性平方解(linear least-squares solution)的CIEXYZ以及非線性最小平方解 (nonlinear least-squares solution )的 CIELAB 〇 第一、假設電荷耦合元件可處理η個色彩小方塊(color patch),而U,·=(凡,α·,反·)是第^個小方塊的曝光値 (exposure value ),V, = (足,r“Z,·)則是相對應的 CIEXYZ 三色係數(tristimulus value),由上可找出不包括限制條 件的最佳化校正矩陣从爲M;U,· s V,·且誤差平方 是最小値 ί 二1 9 本紙張尺度適用中國國家榡準(CNS)A4規格(210X297公釐) 83. 3. 10,000 ___*—I:― (請先Μ讀背面之注$項再填窝本頁) -訂 560176 8 3 6 6twf. doc/0 0 9 A7 B7Gw * constant g = 1; and Bw * constant b = 1. Among them, w refers to the white color, and except for the digitized three primary colors (R ', G' 'B') of the white color, the output 値 is 1, and other colors multiplied by these constants will have different 値 outputs. The above refers to the processing of the front-end job on the pixel color by the processing unit 104, and then the chroma correction job of the back-end is performed. For general chroma correction operations, the digitized three primary colors (R ', G', B ') after white balance are multiplied by a 3 * 3 correction matrix M, which is calculated by a cost function containing constraints, to obtain digitization. Three primary colors (R ", G", B ,,). This 3 * 3 correction matrix M is obtained from the cost function containing the constraints. This cost function is a cost function for calculating the least square error. It is derived from two color space conversion functions, which are linear least-square solutions. CIEXYZ of squares solution) and CIELAB of nonlinear least-squares solution. First, suppose that a charge-coupled element can handle n color patches, and U, · = (where, α · (, Inverse ·) is the exposure value of the ^ th small square (exposure value), V, = (foot, r "Z, ·) is the corresponding CIEXYZ tristimulus value (tristimulus value). The optimization correction matrix including the constraint conditions is from M; U, · s V, · and the square of the error is the smallest 値 2 19 This paper size applies to the Chinese National Standard (CNS) A4 specification (210X297 mm) 83. 3. 10,000 ___ * — I: ― (please read the note on the back and fill in the page first)-Order 560 176 8 3 6 6twf. Doc / 0 0 9 A7 B7

五、發明説明($ ) 第二、當在檢測所有色差定義下,發現所有色彩彩度 皆是基於CIELAB彩色空間轉換函數,可由此得到一般式 爲ΔΤ2+Δα*2+ΔΖ^2 。由上可導出: dLV 3LV ^ /3Y XdZ (ΑΙ*”Αα:,Αί?:)ί 令:V. Description of the invention ($) Second, when all the color differences are detected, it is found that the chromaticity of all colors is based on the CIELAB color space conversion function. The general formula is ΔΤ2 + Δα * 2 + ΔZ ^ 2. It can be derived from the above: dLV 3LV ^ / 3Y XdZ (ΑΙ * ”Αα :, Αί? :) ί Order:

dY dbV db,/ /dX /dYdY dbV db, / / dX / dY

△Z,△ Z,

azy azy /dX /dY da{/ da、/ /dX /dYsty dty /dX /dY /dZazy azy / dX / dY da {/ da, // dX / dYsty dty / dX / dY / dZ

=> ΔΧ,. ΔΖ Λ(ν, Ϊ裝--- (請先閲讀背面之注$項再填寫本頁) 其中,J 稱爲 Newton-Raphson matrix。 綜上,即可得到一般性不具限制條件的誤差平方成本函數 爲· I έ (从:2 + )=Σ Wvr 遞.)r W兄-鳩,)] ί=1 j=1 而爲了得到最小的誤差平方,即把彩度準度提到最高,必 須使从爲以得到= 『,從中求得最 1=1 2=1 佳校正矩陣。 但爲了使先前經過白平衡處理的白色色彩,在輸出後 亦能保持其數位化三原色(R”,G”,Β”)之値仍爲1,是 以必須對此一般性的校正矩陣Μ;作修改,即加入一個限制 條件,即所求得的校正矩陣Μ必須符合下列條件c : m\\ +m\2 = ^white m2X +/T?22 +w23 =Ywhite ιη3] + m32 + = ^ Whue 10 本紙張尺度適用中國國家標準(CNS)A4規格(210X297公釐) 訂 ▼線- 經濟部中央標準局貝工消费合作社印製 83. 3. 10,000 560176 8366twf.doc/009 A7 B7 五、發明説明(气) 其中,/ = l,2,3,v = 1,2,3,而 U 是(1.0, 1·0, 1·0)Γ,較佳 的反轉矩陣Μ必須符合MU = (/_>,y_7e,Zw/n.ie)r。 接著,令b,y· = 1,2,3是Lagrange乘數,於是可以由下 式的誤差平方,得到具有限制條件的校正矩陣Μ: S^±[jX\t -MU,)f [^(γ -MU,.)]^2^K -l) 7=1 ;=1 其中,是校正矩陣M的第/列第y行元素,藉由廣爲採 用的策略,成本函數S對校正矩陣A/在一次微分等於0時, 可以得到具有限制條件的校正矩陣Μ之最佳解: 即: (請先閲讀背面之注$項再填寫本頁)= > Δχ ,. ΔZ Λ (ν, outfit --- (please read the note on the back before filling this page), where J is called Newton-Raphson matrix. In summary, you can get general without restrictions Conditional error squared cost function is: I έ (from: 2 +) = Σ Wvr.) R W brother-dove,)] ί = 1 j = 1 and in order to get the smallest squared error, the chroma accuracy When it comes to the highest, it must be obtained to get = ", from which the best 1 = 2 = 1 best correction matrix. However, in order to make the white color that has been subjected to the white balance processing previously, the digitized three primary colors (R ", G", B ") can still be maintained after the output is 1, so the general correction matrix M must be used for this; To make a modification, add a restriction condition that the obtained correction matrix M must meet the following conditions c: m \\ + m \ 2 = ^ white m2X + / T? 22 + w23 = Ywhite ιη3] + m32 + = ^ Whue 10 This paper size applies to China National Standard (CNS) A4 (210X297 mm) Order ▼ line-Printed by Shellfish Consumer Cooperative, Central Standards Bureau, Ministry of Economic Affairs 83. 3. 10,000 560176 8366twf.doc / 009 A7 B7 V. Invention Explanation (qi) where / = 1, 2, 3, v = 1, 2, 3, and U is (1.0, 1 · 0, 1 · 0) Γ, and the better inversion matrix M must conform to MU = ( / _ >, y_7e, Zw / n.ie) r. Then, let b, y · = 1, 2, 3 be Lagrange multipliers, so the error squared by the following formula can be used to obtain the correction matrix M with constraints: S ^ ± [jX \ t -MU,) f [^ (γ -MU,.)] ^ 2 ^ K -l) 7 = 1; = 1 where is the yth / column yth row element of the correction matrix M, With a widely adopted strategy, the cost function S versus the correction matrix A / When the first derivative is equal to 0, the best solution of the correction matrix M with restricted conditions can be obtained: That is: (Please read the note on the back before filling this page)

dM +22X,MU,Uf - 2dM + 22X, MU, Uf-2

厂 1Λ义3〕 Λ Α2 λ λλλ I I 0 =>Factory 1 Λ 3) Λ Α2 λ λλλ I I 0 = >

Λ Λ 13 Λ Λ λ I 但雖然由上述的做法可以得到使白色色彩在輸出後的 値亦維持1的狀態,但這也只是對於灰階色彩有最佳的校 正矩陣,但對其他高彩度的色彩卻不會提高其彩度準度。 經濟部中央標準局負工消費合作社印製 是以本發明即提出一種彩度校正之方法,不僅針對灰 階色彩進行提高準度,同時亦對高彩度的色彩提高其準 度。請參照第1圖及第3圖,其繪不的即是依照本發明一* 較佳實施例的一種彩度校正之方法,此方法係適用於影像 擷取裝置100,在影像擷取裝置100內含有處理數位化三原 色(R,,G,,B,)之處理單元104及連結於處理單元104 之儲存單元1〇6,以下所描述的步驟係以程式碼方式儲存於 83.3. 1〇,〇〇〇 本紙張尺度適用中國國家榡牟(CNS ) Α4说格(210X297公釐) 五 經濟部中央標準局貝工消費合作社印製 560176 8366twf.doc/009 Β7 發明说明(v〇) 儲存單兀106中,以使處理單元104可利用這些程式碼對 數位化三原色(R’,G’,B’)進行處理成數位化三原色(R,,, G”,B”),以輸出至外部顯像裝置110。 此彩度校正之方法包括:步驟S400的彩色空間轉換步 驟,先轉換數位化三原色(R,,G,,B,)爲彩度量化値, 即將數位化三原色(R,,G’,B,)利用某些演算法轉換得 到可爲彩度計量用的數値,例如,L*a*b*轉換法或是Ycbcr (売度彩度 b 彩度 r ;英文:luminous, chroma b,chroma r) 轉換法,作爲轉換用運算法,其中利用L*a*b*轉換法得到 的彩度量化値a*及b*。其運算成本會較YCbCr轉換法轉換 得到的Cr*及Cb*來的高,但所得到的彩度準度也相對較 高。 接著,步驟s402的彩度計算步驟,則是將轉換後得到 的彩度量化値加以計算,以得到彩度比較値T,其中彩度 比較値T =a*2+b*2,或是彩度比較値T =Cr*2+Cb*2。之後步 驟s402的判斷步驟,會將彩度比較値T與一個介於灰階及 高彩的預設値進行比較,比較結果,若彩度比較値T低於 預設値,表示此爲灰階彩度的色彩,進行步驟s406的校正 矩陣計算步驟,即利用包含限制條件C的成本函數得 到校正矩陣Μ,接著進一步在步驟s408的第二數位化三原 色取得步驟中,將校正矩陣^^數位化三原色(11’,0’,8’), 以得到數位化三原色(R”,G”,Β”),並在步驟S410中加 以輸出至外部顯像裝置110中。 但若彩度比較値Τ高於預設値,表示此爲高彩度色 12 本紙張尺度適用中國國家標隼(CNS ) A4規格(210X297公釐) -------------tr-----#線 (請先閲讀背面之注$項再埃寫本頁) 83. 3. 10,000 經濟部中央標準局只工消費合作社印裝 560176 五、發明説明(“) 彩,則進行步驟S412的校正矩陣計算步驟,即利用不具限 制條件C的成本函數S1,得到校正矩陣从7,接著進一步在 步驟S414的第二數位化三原色取得步驟中,將校正矩陣 从0數位化三原色(11,,(},,以),以得到數位化三原色(11,,, G”,B”),並在步驟S416中加以輸出至外部顯像裝置11〇 中。 如此,即可針對灰階色彩進行校正以提高準度,亦可 對高彩度的色彩進行校正以提高其準度。 請參考第1圖及第5圖,其繪示的即是依照本發明另 一較佳實施例的一種彩度校正之方法,亦是適用於影像擷 取裝置1〇〇,內含輸出裝置108、處理數位化三原色(R,, G’,B’)之處理單元104及連結於處理單元104之儲存單 元 106 〇 此彩度校正之方法包括:步驟s500,將上述中用以計 算校正矩陣,不具限制條件C的成本函數幻分解成3 個子成本函數,分別爲子成本函數= 子成本函數 1=1 ’ 幻2 = 以及子成本函數幻3 = 因爲原來的成本函 »=1 »=1 數幻具有3個轉換函數,會使得其中一個在計算時受到其 他兩個函數的影響,而降低彩度的準度,是以令每一個子 成本函數只針對一個轉換函數作計算,其中L*、?、b*係 CIELAB彩色空間轉換函數。 由於另一個彩色空間轉換函數CIEXYZ與R、G、B三 原色具有如下的關係,是以可以利用彩色空間轉換函數 本紙張尺度適用中國國家標準(CNS ) A4規格(210X297公釐) 83. 3. 10,000 (請先閲讀背面之注$項再填寫本頁) •裝. 訂 560176 經濟部中央標準局負工消费合作社印装 8 3 6 6twf. doc/ 0 0 9 A7 B7 五、發明説明(Vv) CIEXYZ所得到的彩色空間轉換函數之値X、γ、Z推衍出 輸出之數位化二原色(R”,G”,B”),但由於直接由彩色 空間轉換函數CIEXYZ所得到的彩色空間轉換函數之値 x、Y、Z並非唯一,是以利用計算CIELAB彩色空間轉換 函數來間接得到相對應的X、Y、Z値。 是以,接著在步驟S502中,分別對子成本函數幻1、 M2、S13進行微分,其中,^11對Y微分得到彩色空間轉 換函數,幻2對X、Y微分得到彩色空間轉換函數xa、 Ya ’M3對Y、Z微分得到彩色空間轉換函數Yb、Zb。 之後,在步驟s504中,利用彩色空間轉換函數CIELAB 及彩色空間轉換函數CIEXYZ之間的關係式(如下),得 到彩色空間轉換函數X、γ、Z之値: Γ=116/(7/7η)-16 a= 500[f{X/Xn)-f{Y/Yn)] b*=200[f{Y/Yn)^f{Z/Zn)] Αω) = |(ω)1/3 ω > 0.008856 [7.787(ω) + 16/ΐ16 ω< 0.008856 其中’(<Λ,Ζ„)係一參考常數,ω係一自變數。 之後將彩色空間轉換函數X、Υ、Ζ之値輸出至外部顯 像裝置110,經由外部顯像裝置110的判斷,需彩色空間轉 換函數X、Υ、ζ之値轉換爲r、G、Β三原色,是以以一 輸出矩陣乘上彩色空間轉換函數X、γ、ζ之値,得到數位 化三原色(R,,,G”,Β”)(步驟S506),並進一步輸出 (步驟 s5〇8 )。 14 本紙張纽適用中關家縣(CNS)从胁(2獻297公瘦) 83. 3. 10,000 —i I———^wi ϋ I ϋ ^ 線 (請先閲讀背面之注$項再填窝本頁) 560176 ° c / 〇 〇 < A7 B7 五、發明説明(\、) " ^絲上,雖然兩種方法是可各自獨立運作以使得各色彩 彩度較習知更精準,但亦可將兩種方法合倂運作,以使各 色彩彩度更爲精準。 ^上所述,本發明的優點在於使灰階色彩或高彩彩度 在校正後的色彩能更接近原始物件之色彩,使其彩度準度 更爲精準。 雖然本發明已以較佳實施例揭露如上,然其並非用以 限定本發明,任何熟習此技藝者,在不脫離本發明之精神 和範圍內’當可作各種之更動與潤飾,因此本發明之保護 範圍當視後附之申請專利範圍所界定者爲準。 --------ί^-裝-- (請先閲讀背面之注項再填窝本頁} -Ή - 經濟部中央標準局貝工消费合作社印製 15 83. 3. 10,000 本紙張尺度適用中國國家標率(CNS)A4規格(210X297公嫠)Λ Λ 13 Λ Λ λ I Although the above method can be used to maintain the state of white color after output is 1, it also has the best correction matrix for grayscale colors, but for other high-chroma colors But it will not improve its chroma accuracy. Printed by the Central Bureau of Standards, Ministry of Economic Affairs and Consumer Cooperatives is a method for chroma correction based on the present invention, which not only improves the accuracy of gray-scale colors, but also improves the accuracy of high-chroma colors. Please refer to FIG. 1 and FIG. 3, which cannot be drawn is a method for chroma correction according to a preferred embodiment of the present invention. This method is applicable to the image capture device 100, and the image capture device 100 It contains a processing unit 104 for processing the three primary colors (R, G, B,) and a storage unit 106 connected to the processing unit 104. The steps described below are stored in a code manner at 83.3. 1〇, 〇〇〇 This paper size applies to China's National Mou (CNS) A4 grid (210X297 mm) 5 Printed by the Shellfish Consumer Cooperative of the Central Standards Bureau of the Ministry of Economic Affairs 560176 8366twf.doc / 009 B7 Description of the invention (v〇) Storage unit 106, so that the processing unit 104 can use these codes to process the digitized three primary colors (R ', G', B ') into the digitized three primary colors (R ,,, G ", B") for output to an external display.像 装置 110。 The device 110. The method for chroma correction includes: the color space conversion step of step S400, which first converts the three primary colors (R, G, B,) into chroma quantization, that is, digitizes the three primary colors (R, G, B, ) Use some algorithms to convert to numbers that can be used for chroma measurement, for example, L * a * b * conversion method or Ycbcr (売 gradation chroma b chroma r; English: luminous, chroma b, chroma r ) Conversion method, as a conversion algorithm, in which the color scales 値 a * and b * obtained by the L * a * b * conversion method are used. Its operation cost will be higher than the Cr * and Cb * converted by the YCbCr conversion method, but the obtained chroma accuracy is also relatively high. Next, the chroma calculation step of step s402 is to calculate the chroma quantization 値 obtained after conversion to obtain a chroma comparison 値 T, where the chroma comparison 値 T = a * 2 + b * 2, or chroma Degree comparison 値 T = Cr * 2 + Cb * 2. In the following judgment step of step s402, the chroma comparison 値 T is compared with a preset 介于 between grayscale and high color. The comparison result, if the chroma comparison 値 T is lower than the preset 値, it indicates that this is a grayscale. For the chroma color, the correction matrix calculation step of step s406 is performed, that is, the correction matrix M is obtained by using the cost function including the constraint condition C, and then the correction matrix ^^ is digitized in the second digitizing three primary color obtaining step of step s408 The three primary colors (11 ', 0', 8 ') to obtain the digitized three primary colors (R ", G", B "), and output them to the external display device 110 in step S410. Above the preset size, it indicates that this is a high-chroma color. 12 This paper size is applicable to the Chinese National Standard (CNS) A4 specification (210X297 mm) ------------- tr ----- # Line (please read the note on the back before writing this page) 83. 3. 10,000 Printed by the Central Standards Bureau of the Ministry of Economic Affairs and printed by a consumer cooperative 560176 5. Description of the invention (") Color, then perform the correction matrix calculation of step S412 Step, that is, using the cost function S1 without constraints C, get The correction matrix is from 7, and then in the second digitizing three primary colors obtaining step of step S414, the correction matrix is digitized from 0 to three primary colors (11 ,, (} ,,) to obtain the digitized three primary colors (11 ,, G ", B"), and output it to the external display device 11 in step S416. In this way, the grayscale color can be corrected to improve the accuracy, and the high chroma color can also be corrected to improve the accuracy. Please refer to FIG. 1 and FIG. 5, which show a method for chroma correction according to another preferred embodiment of the present invention, and also applicable to an image capture device 100, which includes an output device 108. The processing unit 104 for processing the three primary colors (R, G ', B') and the storage unit 106 connected to the processing unit 104. The method of chroma correction includes: step s500, which is used to calculate the correction matrix. The cost function without restriction C is decomposed into three sub-cost functions, namely sub-cost function = sub-cost function 1 = 1 'magic 2 = and sub-cost function magic 3 = because the original cost function »= 1» = 1 Number Magic Three conversion functions will cause one of them to be affected by the other two functions in the calculation, and the accuracy of the chroma will be reduced so that each sub-cost function is calculated for only one conversion function, where L *,?, b * is a CIELAB color space conversion function. As another color space conversion function CIEXYZ has the following relationship with the three primary colors of R, G, and B, the color space conversion function can be used. This paper scale applies the Chinese National Standard (CNS) A4 specification ( 210X297 mm) 83. 3. 10,000 (Please read the note on the back before filling in this page) • Packing. Order 560176 Printed by the Central Standards Bureau of the Ministry of Economic Affairs and Consumer Cooperatives 8 3 6 6twf. Doc / 0 0 9 A7 B7 V. Description of the Invention (Vv) The color space conversion function 値 X, γ, and Z obtained by CIEXYZ are derived from the digitized two primary colors (R ", G", B "), but because the color space is directly converted The color space conversion functions Zx, Y, and Z obtained by the function CIEXYZ are not unique, and the corresponding X, Y, and Z 値 are obtained indirectly by calculating the CIELAB color space conversion function. Therefore, in step S502, the sub-cost functions magic 1, M2, and S13 are differentiated respectively, where ^ 11 differentiates Y to obtain a color space conversion function, and magic 2 pairs X and Y to obtain a color space conversion function xa, Ya'M3 differentiates Y and Z to obtain color space conversion functions Yb and Zb. Then, in step s504, the relationship between the color space conversion function CIELAB and the color space conversion function CIEXYZ (as shown below) is used to obtain the color space conversion function X, γ, and Z: Γ = 116 / (7 / 7η) -16 a = 500 [f (X / Xn) -f (Y / Yn)] b * = 200 [f (Y / Yn) ^ f (Z / Zn)] Αω) = | (ω) 1/3 ω > 0.008856 [7.787 (ω) + 16 / ΐ16 ω < 0.008856 where '(< Λ, Z „) is a reference constant and ω is an independent variable. Then the color space conversion functions X, Υ, and Z are output. To the external development device 110, through the judgment of the external development device 110, the color space conversion functions X, Υ, and 値 are converted into r, G, and B primary colors. The color space conversion function X is multiplied by an output matrix. , Γ, ζ to obtain the digitized three primary colors (R ,,, G ", B") (step S506), and further output (step s508). 14 This paper is suitable for Zhongguanjia County (CNS) from Threat (2 offering 297 male thin) 83. 3. 10,000 —i I ——— ^ wi ϋ I ϋ ^ line (please read the note on the back before filling in the page) 560176 ° c / 〇〇 & A7 B7 V. Description of Invention (\,) " ^ In the above, although the two methods can be operated independently to make the chromaticity of each color more accurate, the two methods can also be combined to make the chromaticity of each color more accurate. The advantage of the invention is that the corrected color of grayscale or high chroma can be closer to the color of the original object, so that the chroma accuracy is more accurate. Although the present invention has been disclosed above in a preferred embodiment, it is not useful. In order to limit the present invention, anyone skilled in the art can make various modifications and retouches without departing from the spirit and scope of the present invention. Therefore, the scope of protection of the present invention shall be determined by the scope of the attached patent application. . -------- ί ^ -pack-(Please read the note on the back before filling in this page} -Ή-Printed by the Shellfish Consumer Cooperative of the Central Standards Bureau of the Ministry of Economic Affairs 15 83. 3. 10,000 copies Paper size applies to China National Standards (CNS) A4 specifications (210X297 cm)

Claims (1)

經濟部中央揉準局貝工消費合作社印裝 560176 A8 B8 B366twf.doc/009 C8 D8 六、申請專利範圍 1. 一種彩度校正之方法,係適用於一影像擷取裝置,內 含處理一第一數位化三原色之一處理單元及連結於該處理 單元之一儲存單元,該彩度校正之方法包括: 一彩色空間轉換步驟,用以轉換該第一數位化三原色 爲一彩度量化値; 一彩度計算步驟,用以計算該彩度量化値,以得到一 彩度比較値; 一判斷步驟,用以比較該彩度比較値與一預設値; 一校正矩陣計算步驟,若該彩度比較値低於該預設 値,則利用包含一限制條件之一第一成本函數,得到一第 一校正矩陣,若該彩度比較値高於該預設値,則利用不具 該限制條件之一第二成本函數,得到一第二校正矩陣;以 及 一第二數位化三原色取得步驟,將該第一校正矩陣及 該第二校正矩陣,二者擇一,乘上該第一數位化三原色, 得到一第二數位化三原色並將該第二數位化三原色進一步 輸出。 2. 如申請專利範圍第1項所述之彩度校正之方法,其中 該影像擷取裝置係一數位相機。 3·如申請專利範圍第1項所述之彩度校正之方法,其中 該影像擷取裝置係一掃描器。 4.如申請專利範圍第1項所述之彩度校正之方法,其中 該些步驟係以一程式碼方式儲存於該儲存單元中,以使該 處理單元利用該程式碼對該第一數位化三原色進行處理。 本紙張尺度適用中國國家標準(CNS ) A4規格(210X297公釐) ------:-III (請先閲讀背面之注意事項再填寫本頁) -訂- ί 560176 A8 B8 C8 D8 8366twf.d〇c/009 六、申請專利範圍 5·如申請專利範圍第1項所述之彩度校正之方法,其ψ 該第一成本函數及該第二成本函數皆爲計算最小平方誤差 之成本函數。 6.一種彩度校正之方法,係適用於一影像擷取裝置,內 含一輸出裝置、處理一第一數位化三原色之一處理單元及 連結於該處理單元之一儲存單元,該彩度校正之方法包 括: 將一成本函數幻= $(ΔΖ;2+Δα:2+Δ6;2)分解成複數個子成本 函數,分別爲一第一子成本函數幻1 = 1;(从卩)、一第二子成本 7=1 函數^12 = ί:(Δ<2)以及一第三子成本函數幻3 = Σ(Δ<2),其中 ι'=ι ;=ι M、b*係一第一彩色空間轉換函數; 分別對該些子成本函數進行微分,得到一第二彩色空 間轉換函數X、Y、Z ; 經由該第一彩色空間轉換函數及該第二彩色空間轉換 函數之間之一關係式,得到該第二彩色空間轉換函數之 値;以及 將該第二彩色空間轉換函數之値與一輸出矩陣進行運 算,得到一第二數位化三原色並進一步輸出該第二數位化 三原色。 7·如申請專利範圍第6項所述之彩度校正之方法,其中 該關係式係: L、ii6/(r/r”)-16 a=:500[f{X/Xn)-f{Y!Yn)] 17 本紙張尺度適用中國國家榡準(CNS ) Α4規格(210Χ297公釐) -裝-- (請先聞讀背面之注意事項再填寫本頁) -訂 經濟部中央橾準局貝工消費合作社印裝 560176 A8 B8 C8 D8 b^200[f{Y/Yn)-f{Z/Zn)] _ \(ω)]/3 ω > 0.008856 _ · ω <「 8366twf.doc/009 申請專利範圍 卜.787⑹+16/116 其中’(1,匕又)係一參考常數,ω係一自變數。 8. 如申請專利範圍第6項所述之彩度校正之方法,其中 該輸出矩陣會隨著該輸出裝置連接之一外部顯像裝置的不 同而不同。 9. 如申請專利範圍第8項所述之彩度校正之方法,其中 該外部顯像裝置可以是電腦螢幕。 10. 如申請專利範圍第8項所述之彩度校正之方法,其 中該外部顯像裝置可以是電視機螢幕。· (請先聞讀背面之注$項再填寫本頁) 經濟部中央標準局貝工消費合作社印装 18 本紙張尺度適用中國國家標準(CNS ) Α4規格(210Χ297公釐)Printed by Shelley Consumer Cooperative of the Central Bureau of the Ministry of Economic Affairs 560176 A8 B8 B366twf.doc / 009 C8 D8 VI. Application for Patent Scope 1. A method for chroma correction, which is suitable for an image capture device, which contains a A processing unit of a digitized three primary colors and a storage unit connected to the processing unit. The method for chroma correction includes: a color space conversion step for converting the first digitized three primary colors into a color metric; A chroma calculation step is used to calculate the chroma measure 値 to obtain a chroma comparison 値; a judgment step is used to compare the chroma comparison 値 and a preset 値; a correction matrix calculation step, if the chroma If the comparison value is lower than the preset value, a first cost function including a restriction condition is used to obtain a first correction matrix. If the saturation value is higher than the preset value, one of the correction conditions is used. A second cost function to obtain a second correction matrix; and a second digitizing three primary color obtaining step, selecting the first correction matrix and the second correction matrix, and multiplying them The first digit of the three primary colors to give a second digit of the second of three primary colors and further output digitized three primary colors. 2. The method for chroma correction as described in item 1 of the scope of patent application, wherein the image capture device is a digital camera. 3. The method for chroma correction according to item 1 of the scope of patent application, wherein the image capturing device is a scanner. 4. The method for chroma correction according to item 1 of the scope of patent application, wherein the steps are stored in the storage unit in a code manner, so that the processing unit uses the code to digitize the first digitization. The three primary colors are processed. This paper size applies to China National Standard (CNS) A4 specification (210X297 mm) ------: -III (Please read the notes on the back before filling out this page)-Order-560 176 A8 B8 C8 D8 8366twf. doc / 009 VI. Patent Application Range 5. The method of chroma correction as described in item 1 of the patent application range, where ψ the first cost function and the second cost function are cost functions for calculating the least square error . 6. A method for chroma correction, which is applicable to an image capture device, which includes an output device, a processing unit that processes a first digitized three primary colors, and a storage unit connected to the processing unit. The chroma correction The method includes: decomposing a cost function magic = $ (ΔZ; 2 + Δα: 2 + Δ6; 2) into a plurality of sub cost functions, respectively, a first sub cost function magic 1 = 1; (from 卩), a The second sub-cost 7 = 1 function ^ 12 = ί: (Δ < 2) and a third sub-cost function magic 3 = Σ (Δ < 2), where ι '= ι; = ι M, b * are the first A color space conversion function; differentiating the sub-cost functions respectively to obtain a second color space conversion function X, Y, Z; via one of the first color space conversion function and the second color space conversion function A relational expression is used to obtain the second color space conversion function; and the second color space conversion function is calculated with an output matrix to obtain a second digitized three primary color and further output the second digitized three primary color. 7. The method for chroma correction as described in item 6 of the scope of patent application, wherein the relationship is: L, ii6 / (r / r ”)-16 a =: 500 [f {X / Xn) -f { Y! Yn)] 17 This paper size applies to China National Standards (CNS) Α4 size (210 × 297 mm)-installed-(Please read the precautions on the back before filling out this page)-Order the Central Bureau of Standards, Ministry of Economic Affairs Printed by Shelley Consumer Cooperative 560176 A8 B8 C8 D8 b ^ 200 [f (Y / Yn) -f (Z / Zn)] _ \ (ω)] / 3 ω > 0.008856 _ · ω < `` 8366twf.doc / 009 Patent application scope. 787⑹ + 16/116 where '(1, dagger) is a reference constant and ω is an independent variable. 8. The chroma correction method described in item 6 of the patent application scope, where The output matrix will be different according to an external display device connected to the output device. 9. The method of chroma correction as described in item 8 of the patent application scope, wherein the external display device may be a computer screen. 10. The chroma correction method as described in item 8 of the scope of patent application, wherein the external display device may be a television screen. · (Please read the note on the back before filling in this page ) Printed by Shellfish Consumer Cooperatives, Central Bureau of Standards, Ministry of Economic Affairs 18 This paper size applies to China National Standard (CNS) Α4 specification (210 × 297 mm)
TW90133199A 2001-12-31 2001-12-31 Color correction method TW560176B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
TW90133199A TW560176B (en) 2001-12-31 2001-12-31 Color correction method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
TW90133199A TW560176B (en) 2001-12-31 2001-12-31 Color correction method

Publications (1)

Publication Number Publication Date
TW560176B true TW560176B (en) 2003-11-01

Family

ID=32322797

Family Applications (1)

Application Number Title Priority Date Filing Date
TW90133199A TW560176B (en) 2001-12-31 2001-12-31 Color correction method

Country Status (1)

Country Link
TW (1) TW560176B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TWI407427B (en) * 2009-08-28 2013-09-01 Au Optronics Corp Rendering method of display
TWI495351B (en) * 2009-10-08 2015-08-01 Himax Imagimg Inc Method for pixel color correction and pixel color correcting apparatus thereof

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TWI407427B (en) * 2009-08-28 2013-09-01 Au Optronics Corp Rendering method of display
TWI495351B (en) * 2009-10-08 2015-08-01 Himax Imagimg Inc Method for pixel color correction and pixel color correcting apparatus thereof

Similar Documents

Publication Publication Date Title
JP4831067B2 (en) Image processing apparatus, image processing method, image processing program product, and imaging apparatus
KR100993153B1 (en) Advanced chroma enhancement
JP2005210370A (en) Image processor, photographic device, image processing method, image processing program
JP4479527B2 (en) Image processing method, image processing apparatus, image processing program, and electronic camera
JP2005208817A (en) Image processing method, image processor, and image recording device
KR101080846B1 (en) Apparatus and method for color distortion correction of image by estimate of correction matrix
JP2001128191A (en) Method and device for processing image and recording medium
KR102287127B1 (en) Method for detecting saturated pixels in an image
JP2003102031A (en) Image processing method, image processing apparatus, method for evaluation imaging device, image information storage method, image processing system, and data structure in image data file
US7782367B2 (en) Direct calibration of color imaging devices
US7701462B2 (en) Simple and robust color saturation adjustment for digital images
TW560176B (en) Color correction method
US8072516B2 (en) Dynamic range enhancement method and apparatus
JP3863773B2 (en) Image photographing method and apparatus
JP5743456B2 (en) Image processing apparatus, image processing method, and imaging apparatus
JP2007312313A (en) Image processor, image processing method and program
JP3524148B2 (en) Image forming system and control method thereof
TWI405144B (en) Image correcting method, image correcting unit and image capture apparatus using the same
JP4039447B2 (en) Color image processing device
JP6293466B2 (en) Image processing apparatus, image forming apparatus, image processing method, image processing program, and recording medium
JP3926685B2 (en) Image processing device
JP2019149106A (en) Image processor, image processing method, and program
CN1332566C (en) Imaging apparatus
US9066056B2 (en) Systems for constant hue and adaptive color correction image processing
TW525368B (en) Method and system for scanning gray-scale image

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