558670 經濟部智慧財產局員工消費合作社印製 A7 B7 五、發明說明() 5 — 1發明領域及背景 A. 發明領域 本發明為一種數位相機,尤指一種具有光源設定及色 彩校正功能之數位相機。 B. 發明背景 當數位相機越來越普及時,使用者對影像色彩的要求 也越趨嚴格。一般數位影像的色彩表現與實際的情形之差 別很容易分辨出來。因此,數位相機的品質也往往取決於 如何使所產生出來的數位影像逼近真實的影像色彩。 為使色彩重現,可為電荷耦合感應器(Charge Coupled Device)選擇最佳的光譜特性(spectral characteristics )組合。基 本上’ CCD的光譜特性越接近所要顯示的顯示器越能達 到色彩重現的目的。而數位相機有一特性,便是CCD所 產生的數位訊號與景物之光源的光譜特性有一函數的關 係。例如’如果數位相機的光譜特性只適用於太陽下的光 源’則使用閃光燈或日光燈所產生的色彩效果將不理想。 這是因為CCD的光感應與光源及景物的反射光之光譜能 分佈(spectral power distribution )為一函數關係。 為改良數位相機的色彩表現,習知技術之處理方法乃 在數位相機端設有一前置處理模組,並利用一色彩校玉矩 陣,以依據不同的光源調整環境參數。通常,這些環境參 2 本紙張尺度適用中國國家標準(CNS)A4規格(210 X 297公餐) (請先閱讀背面之注意事項再填寫本頁) 裝 一 訂·. 558670 經濟部智慧財產局員工消費合作社印製 A7 B7 五、發明說明() 數是依據影像的數據分析,經過色彩轉換方程式(color matching functions)而得到的。有些則使用色溫偵測電路(c〇1〇r temperature detecting circuit )以產生紅、綠、藍的色彩環境參數,進而 調整色彩校正矩陣中的色彩環境參數。由於色彩校正矩陣 中的色彩環*兄參數可改變色溫(c〇l〇r temperature)。於是利 用色彩校正矩陣中的色彩環境參數便可對影像作最佳的補 償’使所產生的數位影像資料逼近實際的色彩。 習知之方法在數位相機的後端,通常須依據ICC特徵 檔案(International Color Consortium Profile Format Specification)來設定 色彩的輸出格式,並記錄特定光源色彩的轉換特性。依此, 必須建立紅、綠、藍顏色的輸入特徵棺案(RGB input profile), 以校正輸入時的色彩偏差。而在輸出時,亦須將訊號轉換 成顯示器可接受的格式。因此,在實際應用上,十分複雜, 成本亦較高。 5 — 2發明目的及概述 基於上述之問題,本發明之主要目的在提出一種具有 光源設定功能的數位相機,以藉由預先設定色彩的環境參 數’而免除複雜的影像資料運算,因而可達到容易實現, 即省成本的目的。 本發明之另一目的在提出一種具有色彩校正功能的數 位相機,係可在使用者設定光源型態發生錯誤時,在電腦 3 本紙張尺度適用中國國家標準(CNS)A4規格(210 X 297公釐〉 -----------裝--------訂--------- (請先閱讀背面之注意事項再填寫本頁) 經濟部智慧財產局員工消費合作社印製 558670 A7 —- ’_ _ _ _________ B7 五、發明說明() 系統端加以還原,然後再依據正確的光源型態,運算新的 環境參數’再執行色彩偏色的數位影像校正,以產生使用 者所要求的數位影像。 基於上述之目的,本發明之數位相機包含兩大模組, 一為前置影像處理模組,一為光源影像校正模組。本發明 在數位相機端設有一影像前置處理模組,包含一色彩調整 函數,以依據複數個可選擇的參考光源,調整影像的色彩。 在電腦端則有一影像色彩校正模組,包含一反色彩調整函 數及色彩調整函數’以透過反色彩調整函數,將影像中錯 誤的光源參數還原至影像讀取裝置最初所擷取的影像資 料,然後參考使用者所輸入之新的參考光源,以透過色彩 調整函數,獲得校正的影像。 5—3圖式之簡單說明 圖1為本發明之數位相機的影像處理的功能方塊圖。 圖2為本發明之影像前置處理的流程圖。 圖3為本發明之影像校正的處理流程圖。 圖4為本發明之環境參數查詢表。 5 — 4本發明之詳細說明 本發明之數位相機,包含數位照相機(digital camera)及 數位攝影機(color video camera)等,其功能方塊圖如圊1所示。 在數位相機端,有一影像前置處理模組1 〇,在電腦系統端 4 本紙張尺度適用中國國家標準(CNS)A4規格(210 X 297公餐) (請先閱讀背面之注意事項再填寫本頁) ♦裝 訂--------- 558670 A7 B7 五、發明說明() (請先閱讀背面之注意事項再填寫本頁) 則有一影像校正模組1 1。影像前置處理模組1 0中有一光源 選擇裝置1 01,係具有許多種光源的型態以供使用者在攝影 時,依據當時的情況而設定,如晴天、陰天、室内日光鐙、 鑛絲燈泡等。設定後’光源選擇裝置101便輸出一光源設 定訊號至一環境參數設定裝置102 ’以查詢一環境參數查詢 表41,而得到該光源設定訊號的紅、綠、藍的增益值,然 後傳送該光源設定訊號的紅、綠、藍的增益值至一影像色 彩處理裝置104。 同時,影像讀取裝置 103 ’ 如 CCD ( Charge c〇uPled Device) 或CMOS感應器所擷取到的景物影像,傳送至影像色彩處 理裝置1 04。影像色彩處理裝置1 04便依據該光源設定訊號 的紅、綠、藍的增益值,將所接收到的景物影像,依據影 像處理函數,作色彩調整的處理。處理完畢後,便將影像 傳送至一記憶裝置1 05。同時,環境參數設定裝置1 02亦將 該光源設定訊號的紅、綠、藍增益值,傳送至記憶裝置1 05 中儲存。 經濟部智慧財產局員工消費合作社印製 當使用者選擇下載所攝入的景物影像時,便將數位相 機連接至一電腦系統。此時,傳輸裝置1 06便依據連接琿 的通訊型態 (communication protocol ),如通用序列匯流排 (Universal Serial Bus )、序列埠(serial port)、或平行傳輸 埠(parallel port)等,設定資料的包裝格式(package format), 而將光源設定訊號的紅、綠、藍增益值,以及色彩調整後 5 本紙張尺度適用中國國家標準(CNS)A4規格(210 X 297公爱) 一 ----- 558670 發五 的端 料 )資 像 ^影 明位 Α7Β7 統 系 腦 ipnr 至 送 傳 而 縮 壓 式格 裝 包 該 擄依 經濟部智慧財產局員工消費合作社印製 在電腦系統端,相對於影像前置處理模组1〇,則有 影像校正模組U。影像校正模組11+有一接收及解碼裝置 107,以接收傳輸裝置1()6所下載的資料,並依據傳輸蜂试 包裝格式,將資料解壓縮。解壓縮之後的資料便儲存在另 -記憶裝置108»當顯示於螢幕時’顯示裝置ιι〇便依據介 面對話框的設定,讀取記憶裝置1〇8中的數位影像資料。 萬一使用者在拍攝影像時,選擇錯誤的參考光源, 示裝置110上所顯示的數位影像將產生色彩偏色的現象 於是,當使用者在電腦榮幕上發現當時所選擇的光源設 有誤時,便可在顯示裝置110的介面,重新選擇參考光 的型態。 顯示裝置110上的介面所提供的光源型態,與數位相 機端的光源選擇裝置1〇1所提供的型態相同。於是,顯示 裝置1 1 0便將光源校正訊號傳送至一光源影像校正裝置 109。然後’光源影像校正裝置1〇9依據新的光源訊號查詢 一環境參數查洶表41 ,而得到新的紅、綠、藍增益值。 同時’光源影像校正裝置丨〇9讀取記憶裝置丨〇8中的 數位影像資料,及其光源校正訊號之紅、綠、藍的增益值。 —___6 本紙張尺度適用中國國家標準(CNS)_A4規格(21() χ挪 )-—- -----------裝---- (請先閱讀背面之注意事項再填寫本頁) t---------華 558670 經濟部智慧財產局員工消費合作社印製 A7 B7 五、發明說明() 然後,依據原本光源設定訊號之紅、綠、藍的增益值,將 數位影像資料作反函數運算。所得到的結果即為影像讀取 裝置1 03最初所擷取的影像資料。光源影像校正裝置1 〇9 將還原後的影像資料,依據光源校正訊號之紅、綠、藍的 增益值,作影像函數色彩調整處理。處理完畢後,便儲存 新的環境參數,以及校正後的數位影像資料於記憶裝置1 〇8 中’以供顯示裝置110的讀取。 依此’本發明之影像前置處理的流程如圖2所示。 步驟21 :使用者先從預先設定的多種光源型態中,選 擇一符合當時狀況的光源型態。每一種預設之光源型態都 有一组相對應的環境參數。本發明依據各種預設之光源型 態建立一環境參數查詢表4 1,如圖4所示。 環境參數查詢表41中記錄晴天、陰天、曰光燈及鶴絲 燈等預設環境下之紅、綠、藍增益值。表中之數據是依據CCD 處於上述之預設環境下時,拍攝白色影像,如白紙,並藉 此影像來調整紅色增益值,及藍色增益值,使其產生的影 像顯示為真正的白色。558670 Printed by the Consumers ’Cooperative of the Intellectual Property Bureau of the Ministry of Economic Affairs A7 B7 V. Description of the invention 5) Field of invention and background A. Field of invention The present invention is a digital camera, especially a digital camera with light source setting and color correction functions . B. Background of the Invention As digital cameras become more and more popular, users are becoming more demanding about the color of their images. The difference between the color expression of general digital images and the actual situation is easy to distinguish. Therefore, the quality of digital cameras also often depends on how to make the generated digital images approximate the true image colors. In order to reproduce the colors, the best combination of spectral characteristics can be selected for the Charge Coupled Device. Basically, the closer the spectral characteristics of the CCD are to the display to be displayed, the better the color reproduction can be achieved. And the digital camera has a characteristic, that is, the digital signal generated by the CCD has a function with the spectral characteristics of the light source of the scene. For example, 'if the digital camera's spectral characteristics are only applicable to the light source in the sun', the color effect produced by using a flash or fluorescent lamp will not be ideal. This is because the light sensing of the CCD is a function of the spectral power distribution of the reflected light from the light source and the scene. In order to improve the color performance of digital cameras, the processing method of the conventional technology is to set a pre-processing module on the digital camera end and use a color correction matrix to adjust the environmental parameters according to different light sources. Generally, these environmental specifications are in accordance with Chinese National Standard (CNS) A4 specifications (210 X 297 meals) (Please read the precautions on the back before filling out this page) Bookbinding. 558670 Employees of Intellectual Property Bureau, Ministry of Economic Affairs Printed by the Consumer Cooperative A7 B7 5. The description of the invention () The number is obtained by analyzing the data of the image through color matching functions. Some use a color temperature detection circuit to generate red, green, and blue color environment parameters, and then adjust the color environment parameters in the color correction matrix. The color temperature can be changed due to the color loop parameters in the color correction matrix. Therefore, by using the color environment parameters in the color correction matrix, the image can be optimally compensated 'so that the generated digital image data approximates the actual color. The conventional method is to set the output format of the color according to the ICC profile (International Color Consortium Profile Format Specification) at the back end of the digital camera, and record the conversion characteristics of the color of the specific light source. Accordingly, it is necessary to establish RGB input profiles of red, green, and blue colors to correct color deviations during input. During output, the signal must be converted into a format acceptable to the display. Therefore, in actual application, it is very complicated and the cost is high. 5 — 2 Objects and Summary of the Invention Based on the above problems, the main object of the present invention is to propose a digital camera with a light source setting function, so as to avoid the complicated calculation of image data by setting environmental parameters of color in advance, so it can be easily achieved. To achieve, that is, to save costs. Another object of the present invention is to provide a digital camera with a color correction function. When a user sets an error in the type of light source, the paper size of the computer applies the Chinese National Standard (CNS) A4 specification (210 X 297 mm). Li> ----------- Installation -------- Order --------- (Please read the notes on the back before filling this page) Intellectual Property Bureau of the Ministry of Economic Affairs Printed by the employee consumer cooperative 558670 A7 —- '_ _ _ _________ B7 V. Description of the invention () Restore the system side, and then calculate the new environmental parameters according to the correct light source type', and then perform digital image correction of color cast In order to generate the digital image required by the user. Based on the above purpose, the digital camera of the present invention includes two modules, one is a front image processing module, and the other is a light source image correction module. The invention is on the digital camera side. An image pre-processing module is provided, which includes a color adjustment function to adjust the color of the image according to a plurality of selectable reference light sources. On the computer side, an image color correction module includes an inverse color adjustment function and color adjustment. Function 'to restore the wrong light source parameters in the image to the image data originally captured by the image reading device through the inverse color adjustment function, and then refer to the new reference light source entered by the user to obtain correction through the color adjustment function A simple explanation of 5-3 drawings. Figure 1 is a functional block diagram of the image processing of the digital camera of the present invention. Figure 2 is a flowchart of the preprocessing of the image of the present invention. Figure 3 is of the image correction of the present invention. Process flow chart. Figure 4 is the environmental parameter query table of the present invention. 5-4 Detailed description of the present invention The digital camera of the present invention includes a digital camera and a digital video camera, and its functional block diagram. As shown in 圊 1. On the digital camera side, there is an image pre-processing module 1 〇, on the computer system side 4 This paper size applies to China National Standard (CNS) A4 specifications (210 X 297 meals) (Please read the back first Please note this page before filling in this page) ♦ Binding --------- 558670 A7 B7 V. Description of the invention () (Please read the notes on the back before filling this page) There is one Image correction module 1 1. There is a light source selection device 1 01 in the image pre-processing module 10, which has many types of light sources for users to set according to the situation when shooting, such as sunny, cloudy Daylight, indoor daylight bulbs, mineral silk bulbs, etc. After setting, the light source selection device 101 outputs a light source setting signal to an environmental parameter setting device 102 'to query an environmental parameter query table 41, and obtain the red, The green and blue gain values are then transmitted to the image color processing device 104 for the red, green and blue gain values of the light source setting signal. At the same time, the image reading device 103 ', such as a CCD (Charge Coupled Device) or CMOS sensor, captures the scene image and sends it to the image color processing device 104. The image color processing device 104 sets the red, green, and blue gain values of the signal according to the light source, and performs color adjustment processing on the received scene image according to the image processing function. After processing, the image is transferred to a memory device 105. At the same time, the environmental parameter setting device 10 02 also transmits the red, green, and blue gain values of the light source setting signal to the memory device 105 for storage. Printed by the Consumer Cooperative of the Intellectual Property Bureau of the Ministry of Economic Affairs When the user chooses to download the ingested scene image, the digital camera is connected to a computer system. At this time, the transmission device 106 sets the data according to the communication protocol of the connection, such as a universal serial bus, a serial port, or a parallel port. Package format, and set the red, green, and blue gain values of the light source and the color adjustment after adjustment. 5 paper sizes are applicable to the Chinese National Standard (CNS) A4 specification (210 X 297). -558670 Five-point end material) Information ^ Shadow position Α7Β7 The system is a brain ipnr to send and compressed and packed. This conversion is printed on the computer system side by the Consumer Cooperative of the Intellectual Property Bureau of the Ministry of Economic Affairs. The image pre-processing module 10 includes an image correction module U. The image correction module 11+ has a receiving and decoding device 107 to receive the data downloaded by the transmission device 1 () 6, and decompress the data according to the transmission bee packaging format. The decompressed data is stored in another memory device 108 »When displayed on the screen, the display device ιι〇 reads the digital image data in the memory device 108 according to the settings of the interface dialog box. If the user chooses the wrong reference light source when shooting an image, the digital image displayed on the display device 110 will produce a color cast phenomenon. Therefore, when the user finds that the selected light source is set incorrectly on the computer screen At this time, the type of the reference light can be reselected on the interface of the display device 110. The type of light source provided by the interface on the display device 110 is the same as the type provided by the light source selection device 101 on the digital camera side. Thus, the display device 110 transmits the light source correction signal to a light source image correction device 109. Then the 'light source image correction device 1009 inquires an environmental parameter check table 41 according to the new light source signal, and obtains new red, green, and blue gain values. At the same time, the light source image correction device 丨 09 reads the digital image data in the memory device 丨 〇8, and the red, green, and blue gain values of the light source correction signal. —___ 6 This paper size applies to Chinese National Standard (CNS) _A4 specifications (21 () χ Norwegian) ---- ----------- installation ---- (Please read the precautions on the back before filling (This page) t --------- Hua 558670 Printed by the Consumer Cooperative of the Intellectual Property Bureau of the Ministry of Economic Affairs A7 B7 V. Invention Description () Then, set the red, green and blue gain values of the signal according to the original light source. Digital image data is used as an inverse function operation. The obtained result is the image data originally captured by the image reading device 103. The light source image correction device 1 09 will perform image function color adjustment processing based on the red, green, and blue gain values of the light source correction signal according to the restored image data. After the processing is completed, the new environment parameters and the corrected digital image data are stored in the memory device 108 for the display device 110 to read. According to this, the flow of the image pre-processing of the present invention is shown in FIG. 2. Step 21: The user first selects a light source type that matches the current situation from a plurality of preset light source types. Each preset light source type has a corresponding set of environmental parameters. The present invention establishes an environmental parameter query table 41 according to various preset light source types, as shown in FIG. 4. The environmental parameter query table 41 records the red, green, and blue gain values in preset environments such as sunny, cloudy, light, and crane lights. The data in the table is based on the CCD in the above-mentioned preset environment, taking white images, such as white paper, and adjusting the red gain value and blue gain value based on this image, so that the resulting image is displayed as true white.
其中紅色、綠色、藍色增益值(R gain,G gain,B gain ) 的數值範圍分別介於原本之數值的〇至4倍之間。最大值4 倍將因不同廠家之CCD的特性而變化。綠色增益值(G 7 本紙張尺度適用中國國家標準(CNS)A4規格(210 X 297公釐) " ' '^ (請先閱讀背面之注意事項再填寫本頁) ---I---I ^ ·11111111 . 558670 A7 五、發明說明( g·)又疋為 這疋由於一般的CCD所獲得的影像綠色 成份較重,亦即影像偽維 w ^ ^ ^ ^ ^ 私揭綠,所以調整的部份者重在紅色增 益值,及藍色增益值。 (請先閱讀背面之注意事項再填寫本頁) 例如,鎢絲燈泡光源的色溫偏紅,若要獲得真正的白 便需要加重藍色’所以在此光源的型態下,藍色增益值比 其他光源型態下的藍多掷兴μ丄 ^ ^ 反巴增益值大。除鎢絲燈泡外,其餘光The red, green, and blue gain values (R gain, G gain, and B gain) range from 0 to 4 times the original values. The maximum 4 times will vary depending on the characteristics of CCDs from different manufacturers. Green gain value (G 7 This paper size applies to China National Standard (CNS) A4 specification (210 X 297 mm) " '' ^ (Please read the precautions on the back before filling out this page) --- I --- I ^ · 11111111. 558670 A7 V. Explanation of the invention (g ·) This is because the green component of the image obtained by the general CCD is heavier, that is, the false dimension of the image w ^ ^ ^ ^ ^ Some of them focus on the red gain value and the blue gain value. (Please read the precautions on the back before filling out this page.) For example, the color temperature of the tungsten light bulb light source is reddish. If you want to obtain true white, you need to increase the blue色 'Therefore, in this light source type, the blue gain value is larger than that of the blue light source in other light source types. Μ 丄 ^ ^ The anti-bar gain value is larger. Except for tungsten bulbs, the rest of the light
源型態下的色溫皆偏鞋,σ θ < ^ ^ iL 询監 疋程度不同而已。依此,各種 光源型態的偏藍情況,可仿M甘办伽 t ^ , Γ依據其影響的大小,依序排列為: 日光燈 > 陰天 >太陽。各種光源型態的紅色增益值也將隨 偏藍的情況而有所不同。 v驟22 :影像讀取裝置,如ccd ,擷取景物的彩色影 像資料,並儲存景物的彩色影像資料於一記憶裝置。 經濟部智慧財產局員工消費合作社印製 步驟23 :然後’依據所選擇之光源訊號的紅、綠、藍 增益值,將景物的彩色影像資冑,依據影像色彩處理函數, 作色彩調整的處理。例如,初次所選擇的光源型態下的紅、 綠、藍增益值分別設為:R_,G_i,B一。景物的彩色 影像資料,以紅、綠、藍等顏色表示為Ri、Gi、Βι。調整 後的景物的彩色影像資料,以紅、綠、藍等顏色表示為R2、 心、B2。影像色彩處理函數的運算便為:The color temperature in the source type is biased towards shoes. Σ θ < ^ ^ iL According to this, the blueness of various light source types can be imitated according to the magnitude of its influence, and they are arranged in order: fluorescent lamp > cloudy > sun. The red gain value of various light source types will also vary with the bluish condition. Step 22: The image reading device, such as ccd, captures the color image data of the scene and stores the color image data of the scene in a memory device. Printed by the Consumer Cooperative of the Intellectual Property Bureau of the Ministry of Economic Affairs Step 23: Then, according to the red, green, and blue gain values of the selected light source signal, the color image of the scene is resourced, and the color adjustment process is performed according to the image color processing function. For example, the red, green, and blue gain values of the light source type selected for the first time are respectively set to: R_, G_i, and B_. The color image data of the scene is expressed as Ri, Gi, Bι in the colors of red, green, and blue. The color image data of the adjusted scene is represented by R2, heart, and B2 in red, green, and blue colors. The operation of the image color processing function is:
Rl XRgainl °2= G, xGgainl 8 本紙張尺度適用中國國家標準(CNS)A4規格(21G χ 297公餐) 558670 Α7 Β7 五、發明說明( B2= B, Χβ (請先閱讀背面之注意事項再填寫本頁) 當然,影像處理中除色彩處理外,仍須執行其它常見 的函數運算’諸如·補點函數(interpolation functions)運算,邊 緣強化(edge-enhancement)運算’及 Gamma 校正(Gamma correction) 等。 步驟24:儲存目前所選擇之光源型態下的環境參數, 即 Rgain 丨、Ggaini、Bgain 丨。 步驟25 :儲存調整後之景物的彩色影像資料,即尺2、 G2、Bz。儲存完畢後,使用者便可下載所攝取之景物的2影 像於顯示器上。 在下載時’調整後之景物的彩色影像資料,及目前所 選擇之光源型態下的環境參冑,必須先依據連接槔的通訊 型格式加以包裝編碼,而傳送至連接埠下載。 經濟部智慧財產局員工消費合作社印製 為考量使用者可能在拍攝時選擇錯誤的光源型離,而 造成影像之色溫不正常,因此本發明在電㈣統端又提_ 影像的色彩校正功能。本發明之色彩校正處理”程如圏3 所不。 料,並加 以 步驟31·下載儲存於數位相機内的影像資 ‘紙張尺度_ +1¾鮮(CNS)A4規格⑵ X 297公釐) 558670 經濟部智慧財產局員工消費合作社印製 A7 B7 五、發明說明() 解碼。 步驟32 :下載該影像資料之相對應之光源型態的環境 參數,並加以解碼。 步驟33 :顯示該影像資料於顯示器上。此時,使用者 可觀賞所拍攝的影像。萬一當時的光源設定有誤時,使用 者可藉由本發明所提供的介面,重新選擇正確的光源型態, 而產生一光源校正訊號。 步驟34 :當使用者選擇新的光源型態後,本發明便利 用查表法,依據光源校正訊號,在上述之環境參數查詢41 中,查詢新的環境參數,紅、綠、藍等顏色分別表示為Rgain2、Rl XRgainl ° 2 = G, xGgainl 8 This paper size applies to Chinese National Standard (CNS) A4 (21G χ 297 meals) 558670 Α7 Β7 V. Description of the invention (B2 = B, χβ (Please read the precautions on the back first) (Fill in this page) Of course, in addition to color processing in image processing, other common functional operations such as interpolation functions, edge-enhancement operations, and Gamma correction must be performed. Step 24: Store the environmental parameters under the currently selected light source type, namely Rgain 丨, Ggaini, Bgain 丨. Step 25: Store the color image data of the adjusted scene, ie, ruler 2, G2, Bz. Saved After that, the user can download 2 images of the captured scene on the display. When downloading, 'adjust the color image data of the scene, and the environmental parameters under the currently selected light source type, you must first follow the connection' The communication format is packaged and coded, and sent to the port for download. Printed by the Consumer Cooperatives of the Intellectual Property Bureau of the Ministry of Economic Affairs for consideration that users may be shooting The wrong light source type is selected, which causes the color temperature of the image to be abnormal. Therefore, the present invention also mentions the color correction function of the image at the electrical system end. The color correction process of the present invention is as described in 圏 3. Step 31 · Download the image data stored in the digital camera 'paper size_ +1 ¾ (CNS) A4 size ⑵ X 297 mm) 558670 Printed by the Consumers ’Cooperative of the Intellectual Property Bureau of the Ministry of Economic Affairs A7 B7 V. Description of the invention () Decoding Step 32: Download and decode the environmental parameters corresponding to the light source type of the image data. Step 33: Display the image data on the display. At this time, the user can watch the captured image. In case of the current When the light source is set incorrectly, the user can re-select the correct light source type through the interface provided by the present invention to generate a light source correction signal. Step 34: When the user selects a new light source type, the present invention is convenient to use Look-up table method, according to the correction signal of the light source, in the above-mentioned environmental parameter query 41, query the new environmental parameters. The colors of red, green and blue are denoted as Rgain2, respectively.
Ggain2、B gain2。 步驟35 :找到新的環境參數後,將影像資料依據原本 之環境參數作反函數處理運算,以還原其影像資料。例如, 上述之調整後的景物的彩色影像資料,以紅、綠、藍等顏 色表示為R2、G2、B2。反函數運算如下: R丨: =R2 X 1/Rga G丨: =G2 X 1/Gga =B2 X 1/Bga 步驟36 :得到還原後的影像資料Ri、Gi、Bl,便可依 10 }紙張尺度中ΪΪ家標準(CNS)A4規格(210 X 297公爱) 一 -- --------1丨丨·裝--------坏---------^9. (請先閱讀背面之注意事項再填寫本頁) 經濟部智慧財產局員工消費合作社印製 558670 A7 ---------B7__—_ 五、發明說明() 據新的環境參數,對還原後之影像資料,作影像函數色彩 調整處理。以紅、綠、藍等顏色表示為r3、g3、b3,其函 數運算如下所示: r3= =Ri X Rgain2 g3: =Gi X G g a i n 2 b3: xBgai„2 步驟37 :儲存新的環境參數,即Rgain2、Ggain2、Bgain2。 步驟38 :儲存校正後的影像,即R3、g3、b3。 如此,影像資料的色溫,可隨所選擇的光源型態而立 即顯示在顯示器上,使用者便可依據所顯示的效果,調整 光源型態。 綜上所述,本發明之數位相機具有操作簡單的光源選 擇裝置,可使所產生的影像色彩更為逼真。而且,本發明 之色彩校正方法不須大量的影像分析實驗,因此比習知之 技術簡單。另外,由於數位相機所使用之光源並非單一性, 若透過ICC特徵檔案的處理方法來處理色彩校正,則必須 建立各光源條件下的特徵檔案。而利用本發明之方法,則 可不必建立多組的特徵檔案,而可直接將反函數處理後的 影像依據正確的參考光源加以處理,便可得到校正後的影 像資料,因此省時、又省記憶空間。 11 私紙張尺度適用中國國家標準(CNS)A4規格(21〇 x 297公釐 ~ I t , k -------------------^-----------— — — — — — 111 — (請先閱讀背面之注意事項再填寫本頁) 558670 A7 B7 五、發明說明() 以上所述僅為本發明之較佳實施例而已,且已達廣泛 之實用功效,凡依本發明申請專利範圍所作之均等變化與 修飾,皆仍屬本發明專利涵蓋之範圍内。 (請先閱讀背面之注意事項再填寫本頁) 經濟部智慧財產局員工消費合作社印製 12 本紙張尺度適用中國國家標準(CNS)A4規格(210 X 297公釐)Ggain2, B gain2. Step 35: After finding the new environment parameters, the image data is subjected to an inverse function processing operation based on the original environment parameters to restore its image data. For example, the color image data of the adjusted scene is expressed as R2, G2, and B2 in colors such as red, green, and blue. The inverse function operation is as follows: R 丨: = R2 X 1 / Rga G 丨: = G2 X 1 / Gga = B2 X 1 / Bga Step 36: Get the restored image data Ri, Gi, Bl, and you can use 10} paper CNS Standard A4 Specification (210 X 297 Public Love) One--------- 1 丨 丨 Installation -------- Bad -------- -^ 9. (Please read the notes on the back before filling this page) Printed by the Consumer Cooperatives of the Intellectual Property Bureau of the Ministry of Economic Affairs 558670 A7 --------- B7 __—_ V. Description of the invention () According to the new Environmental parameters, image function color adjustment processing for restored image data. Red, green, blue and other colors are represented as r3, g3, b3, and the function operation is as follows: r3 = = Ri X Rgain2 g3: = Gi XG gain 2 b3: xBgai „2 Step 37: Store new environmental parameters, That is, Rgain2, Ggain2, and Bgain2. Step 38: Store the corrected image, that is, R3, g3, and b3. In this way, the color temperature of the image data can be immediately displayed on the display with the selected light source type, and the user can The displayed effect adjusts the type of light source. In summary, the digital camera of the present invention has a simple light source selection device, which can make the color of the image produced more realistic. Moreover, the color correction method of the present invention does not require a large number of The image analysis experiment is simpler than the conventional technique. In addition, because the light source used by the digital camera is not single, if the color correction is processed through the processing method of the ICC feature file, the feature file under each light source condition must be established. By using the method of the present invention, it is not necessary to establish multiple sets of feature files, and the image processed by the inverse function can be directly processed according to the correct reference light source. The corrected image data can be obtained, so it saves time and memory space. 11 The size of the private paper applies the Chinese National Standard (CNS) A4 specification (21 × x297 mm ~ I t, k -------- ----------- ^ -----------— — — — — — 111 — (Please read the notes on the back before filling this page) 558670 A7 B7 V. Invention Note () The above is only a preferred embodiment of the present invention, and has achieved a wide range of practical effects. Any equivalent changes and modifications made in accordance with the scope of the patent application of the present invention are still covered by the patent of the present invention. (Please read the notes on the back before filling out this page) Printed by the Consumer Cooperatives of the Intellectual Property Bureau of the Ministry of Economic Affairs 12 This paper size applies to China National Standard (CNS) A4 (210 X 297 mm)