TW200942017A - Image capturing device and setting unit and method for gaining tables thereof - Google Patents

Image capturing device and setting unit and method for gaining tables thereof Download PDF

Info

Publication number
TW200942017A
TW200942017A TW97110179A TW97110179A TW200942017A TW 200942017 A TW200942017 A TW 200942017A TW 97110179 A TW97110179 A TW 97110179A TW 97110179 A TW97110179 A TW 97110179A TW 200942017 A TW200942017 A TW 200942017A
Authority
TW
Taiwan
Prior art keywords
gain
luminance
sub
blue
red
Prior art date
Application number
TW97110179A
Other languages
Chinese (zh)
Other versions
TWI382745B (en
Inventor
Shu-Wei Liang
Original Assignee
Hon Hai Prec Ind Co Ltd
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 Hon Hai Prec Ind Co Ltd filed Critical Hon Hai Prec Ind Co Ltd
Priority to TW97110179A priority Critical patent/TWI382745B/en
Publication of TW200942017A publication Critical patent/TW200942017A/en
Application granted granted Critical
Publication of TWI382745B publication Critical patent/TWI382745B/en

Links

Abstract

The present invention relates to a setting unit for gaining tables. The setting unit is used to compensate a first raw image and a second raw image captured by an image capturing device. The setting unit includes an area dividing sub-unit, an average-value calculating sub-unit, a selecting sub-unit and a gain calculating sub-unit. The area dividing sub-unit divides the first raw image into a plurality of first sub-areas. The average-value calculating sub-unit calculates first red average luminance values, first green average luminance values and first blue average luminance values of each first sub-areas. The selecting sub-unit selects the biggest red average luminance value from the first red average luminance values, the biggest green average luminance value from the first green average luminance values, and the biggest blue average luminance value from the first blue average luminance values. The gain calculating sub-unit calculates red luminance gains, green luminance gains and blue luminance gains of each first sub-areas in order to get a gaining table of a red channel, a gaining table of a green channel and a gaining table of a blue channel. The gain calculating sub-unit inputs the gaining table of the red channel, the gaining table of the green channel and the gaining table of the blue channel into the image capturing device to compensate the second raw image. The present invention also relates to a setting method for gaining tables and an image capturing device using the same.

Description

200942017 九、發明說明: • •【發明所屬之技術領域】 本發明涉及一種圖像處理技術,尤其涉及一種增益表單 建立單元及建立方法,以及具有該增益表單建立單元的影像 擷取裝置。 【先前技術】 目前,市場上影像擷取裝置採用的鏡頭良莠不齊,某些 ❾鏡頭出廠後,會因為鏡頭的中心與周邊的輝度比例不同而存 在差異,k成某些鏡頭的周邊透光率較低, 時,周邊無法獲得與中心一致的輝度,通常為ΐ 暗,即產生鏡頭遮蔽效應,如此會對成像品質造成一定的影 【發明内容】 有鑒於此,本發明提供一種增益表單建立單元及建立方 法八此建立對圖像進行補償鏡頭遮蔽效應的增益表單。本 Γ月甘還提供—種具有該增益表單建立單元㈣像擷取裝 f 4則所述增益表單㈣所述影像擷取裝置獲取的圖 像的鏡碩遮蔽效應進行補償,從而保證成像品質。 種增益表單建立單元,其用以建立增益表以 影像擷取裳置蒋貞由 圖像及第m象。所述增 皿表早建立早元包括一個區域劃分子單元,一個平 子:…個選取子單元,以及一個 =分子單元用以將所述第-原始圖像劃分為多個;斤! 扣域。所述平均值計算子單μ时料算㈣述/原 200942017 1圖像的每個第一子區域像素的第-紅色平均輝度值、第 :色平均輝度值以及第-藍色平均輝度值。所述選取子Ϊ: 用以從所述多個第一紅色平均輝度值令選取最大的 均輝度值,從料多個第―、綠色平均輝度值中選取最大^ 的藍色平均輝度值。所述增益叶值中選取最大 曰盈et鼻子早兀根據所述最大红甶 ❹ :均輝度,與所述每個第—子區域像素的第—紅色平均輝 f值’计异出每個第-子區域的紅色輝度增益以得出 :輝=表單,根據所述最大綠色平均輝度值與所述每 :第:子區域像素的第一綠色平均輝度值,計算出每個第一 = ==,益以得出綠色通道的輝度增益表單,根 Γ 輝度值與所述每個第一子區域像素的 〇 f一藍色平均輝度值,計算出每個第—子區域的藍色輝度增 i以得出藍色通道的輝度增益表單,並輸出所述紅色通道的 輝度增録單、綠色通道的輝度增益表單以及藍色通道的輝 度增益表單至所述影像擷取裝置令以供所述影像榻取裝置 調用以對所述第二原始圖像進行補償。 -種增益表單建立方法,其包括以下步驟:獲取第一原 始f像;將所述第一原始圖像劃分為多個第一子區域;分別 計算出所述第-原始圖像的每個第一子區域像素的第一紅 色平均輝度值、第-綠色平均輝度值以及第—藍色平均輝度 值;從所述多個第—紅色平均輝度值中選取最大的紅色平均 輝度值從所述多個第一綠色平均輝度值中選取最大的綠色 平均輝度值,從所述多個第—藍色平均輝度值中選取最大的 200942017 2平均輝度值;根據所述最大紅色平_度值與所述每個 第-子區域像素的第-紅色平均輝度值,計算出每個第一子 紅色職增益’根據所述最鴻色平均輝度值與所述 : 子&域像素的第—綠色平均輝度值,計算出每個第 ::區域的綠色輝度增益,根據所述最大藍 © ;每個第-子區域像素的第-藍色平均輝度值,計算t每 個第-子區域的藍色輝度增益;根據所述紅色輝度增益 藍色輝度增0別形成紅色通道的輝度增録 早、綠色通道的輝度增益表單以 :表:出所述紅色通道的輝度增益表單、綠ζ通道的 :表^及藍色通道的輝度增益表單至所述影像操取褒置 中以供所述影像擷取裝置調用。 晉有如上所述的增益表單建立單元的影像操取裳 ^,其包括彡雜取單元,—個存儲單元以及— 〇 元1述影像獲取單元用以獲取所述第—原始圖像及 =第二原始圖像。所述存儲單元心存職所述增益 建立單7G輸出的所述紅色通道的輝度增益 ,益表單以及藍色通道的輝度增益表單。二色= P用與所賴_分子單元同制劃分形 劃分為與所述第—原始圖像劃分的第-子3二 的夕個第一子區域,分別計算出〜 第二子區域像素的第二紅色平均輝度值、第- :Γ二二=均輝度值’調用所述紅色通道的輝度增: 表早、、#色通道的輝度增益表單以及藍色通道的輝度增益表 200942017 ί的紅色通道輝度增料單巾的紅色輝度增益乘以對 應的所述母個第二子區域像 行紅色通it輝度·,將所^ 值以進 色輝心2 色収職增衫單中的綠 色:ΐ輝二f以對應的所述每個第二子區域像素的第二綠 Ο 度增益進行綠色通道輝度補償,將所述藍色通道輝 :曰皿·¥中的藍色輝度增益乘以對應的所述每個第二子 區域像素的第二藍色平均輝度值以進行藍色通道輝度補償。 …與先前技術相比,所述影像絲裝置及其增益表單建立 早:與建立方法,利用計算出所述第一原始圖像的每個第一 區域的、,工色輝度增益、綠色輝度增益以及藍色輝度增益分 別形成紅色通道轉度增益表單、綠色通道的輝度增益表單 以及藍色通道的輝度增益表單,以供所述影像擷取裝置每次 獲取圖像周用上述表單而對圖像輝度補進行償,從而補償 鏡頭遮蔽效應,保證成像品質。 【實施方式】 下面將結合附圖,對本發明作進一步的詳細說明。 明 > 閱圖1,為本發明提供的一種增益表單建立單元 10其用以建立增益表單以補償由於鏡頭品質原因對影像擷 取裝置20(圖4示)獲取的第一原始圖像及第二原始圖像造成 的遮蔽效應。 所述增益表單建立單元10包括一個區域劃分子單元 12, 一個平均值計算子單元14,一個選取子單元16,一個 增益計算子單元18以及一個比較子單元19。 所述區域劃分子單元12用以將所述第一原始圖像劃分 200942017 為多個第一子區域,本實施方式中為η個。 所述平均值計算子單元14用以分別計算出所述第一原 始圖像的每個第一子區域像素的第一紅色平均輝度值Ri、第 • 一綠色平均輝度值Gi以及第一藍色平均輝度值Βί(ί=1,...η)。 所述選取子單元16用以從所述多個第一紅色平均輝度 值Ri中選取最大的紅色平均輝度值Rmax,從所述多個第一 綠色平均輝度值Gi中選取最大的綠色平均輝度值Gmax,從 所述多個第一藍色平均輝度值氏中選取最大的藍色平均輝 度值Bmax。 所述增益計算子單元18用以分別計算出每個第一子區 域的紅色輝度增益Kri以得出紅色通道的輝度增益表單,每 個第一子區域的綠色輝度增益Kgi以得出綠色通道的輝度增 益表單,每個第一子區域的藍色輝度增益Kbi以得出藍色通 道的輝度增益表單。所述增益計算子單元18輸出所述紅色 通道的輝度增益表單、綠色通道的輝度增益表單以及藍色通 〇道的輝度增益表單至所述影像擷取裝置20(圖4示)中以供所 述影像擷取裝置20(圖4示)調用對所述第二原始圖像進行補 償。 所述比較子單元19内預設有一個增益範圍,其用以比 較所述增益Kri、Kgi、1^1是否在預設增益範圍内,若紅色輝 度增益、綠色輝度增益、藍色輝度增益均在預設增益範圍内 則輸出一個增益表單形成訊號,若紅色輝度增益、綠色輝度 增益、藍色輝度增益任意一項未在預設增益範圍内則輸出一 個清潔影像擷取裝置鏡頭及影像感測元件訊號。為了保證增 11 200942017 益不致給影像擷取裝置20(圖4示)獲取的圖像造成過大的雜 訊,優選地,本實施方式中的預設增益範圍為1〜2。因此1 S Kri‘ 2,1 $ Kgi‘ 2,1 S KbiS 2。若 Kri、Kgi、Kbi 任意一 ' 項超過了 2,則表明影像擷取裝置20(圖4示)的鏡頭不清潔 或者是影像感測元件不清潔,需要清理。 請參閱圖2,為本發明提供的一種增益表單建立方法, 其包括以下步驟: ❹ S100 :獲取第一原始圖像。 S102 :將所述第一原始圖像劃分為多個第一子區域。 S104 :分別計算出所述第一原始圖像的每個第一子區域 像素的第一紅色平均輝度值Ri、第一綠色平均輝度值Gi以 及第一藍色平均輝度值仏。 S106 :從Ri、Gi、Bi值中選取最大的紅色平均輝度值 Rmax、最大的綠色平均輝度值Gmax以及最大的藍色平均輝度 值Bmax,並計算出每個第一子區域的紅色輝度增益Kri、綠 ©色輝度增益Kgi以及藍色輝度增益Kbi。其中,KrfRn^/Ri, Kgi — Gmax/Gi,Kbi — Bmax/Bi 〇 S108 :比較所述增益Kri、Kgi、Kbi是否在預設增益範圍 内。若增益Kri、Kgi、Kbi任意一項未在預設增益範圍内,則 進行步驟S114:清潔影像擷取裝置鏡頭及影像感測元件,然 後返回步驟S100,若增益Kri、Kgi、Kbi均在預設增益範圍 内,則進行步驟S110 :依據所述增益Kd、Kgi、Kbi分別形 成紅色通道的輝度增益表單、綠色通道的輝度增益表單以及 藍色通道的輝度增益表單。 12 200942017 S112:輸出所述紅色通道的輝度增益表單、綠色 ,:=單以及藍色通道的輝度增益表單至所述影像掏 為了清楚說明本發明提供的增益表單建立方法,浐 =’,獲^第Γ原始圓像後將其劃分為111至一六;j -,依次計算出U l23六個第一子區域 ❹The invention relates to an image processing technology, and in particular to a gain form establishing unit and a setting method, and an image capturing device having the gain form establishing unit. [Prior Art] At present, the lens used in the image capture device on the market is not uniform. Some lenses will have different brightness ratios depending on the ratio of the center of the lens to the periphery of the lens. When low, the periphery cannot obtain the brightness corresponding to the center, which is usually dark, that is, the lens shadowing effect is generated, which will cause a certain shadow on the image quality. In view of this, the present invention provides a gain form building unit and Method 8 is established to establish a gain form that compensates for the lens shading effect of the image. The present invention also provides a mirror-shading effect with the image acquisition means (4) having the gain form establishing unit (4), and the gain form (4) of the image capturing device is compensated to ensure image quality. A gain form establishing unit is configured to establish a gain table to capture the image and the mth image. The addition table early establishment early element includes a region division subunit, a parity: ... selection subunit, and a = molecular unit to divide the first-original image into multiple; Buckle domain. The average value is calculated as the sub-single μ (4)/original 200942017 1st image of each of the first sub-region pixels, the first-red average luminance value, the first-color average luminance value, and the first-blue average luminance value. The selection sub-level is used to select a maximum uniform luminance value from the plurality of first red average luminance values, and select a maximum blue luminance average luminance value from a plurality of first and green average luminance values. Selecting a maximum et et 鼻子 鼻子 兀 兀 兀 兀 兀 兀 兀 兀 兀 兀 兀 兀 兀 兀 兀 兀 兀 兀 兀 兀 兀 兀 兀 兀 兀 兀 兀 兀 兀 兀 兀 兀 兀 兀 兀 兀 兀 兀 兀a red luminance gain of the sub-region to obtain: a glow=form, according to the maximum green average luminance value and the first green average luminance value of each of the::sub-region pixels, each first === , in order to obtain a luminance gain form of the green channel, the root luminance value and the 平均f-blue average luminance value of each of the first sub-region pixels, calculate the blue luminance increase of each first sub-region Taking a luminance gain form of the blue channel, and outputting a luminance addition sheet of the red channel, a luminance gain form of the green channel, and a luminance gain form of the blue channel to the image capturing device for the image The couch device is invoked to compensate for the second original image. a gain form establishing method, comprising the steps of: acquiring a first original f image; dividing the first original image into a plurality of first sub-regions; respectively calculating each of the first-original images a first red average luminance value, a first-green average luminance value, and a first-blue average luminance value of a sub-region pixel; a maximum red average luminance value selected from the plurality of the first-red average luminance values Selecting a maximum green average luminance value from the first green average luminance values, and selecting a maximum 200942017 2 average luminance value from the plurality of first blue average luminance values; according to the maximum red flatness value and the a first-red average luminance value of each of the first-sub-region pixels, and calculating a first-and-green luminance gain value according to the most-colored average luminance value and the first-green average luminance of the sub- & domain pixels a value, a green luminance gain of each of the :: regions is calculated, and a blue luminance of each of the first sub-regions is calculated according to the maximum blue blue; the first-blue average luminance value of each of the first-sub-region pixels Gain; according to The color luminance gain blue luminance is increased by 0. The luminance of the red channel is increased. The luminance gain form of the green channel is as follows: Table: the luminance gain form of the red channel, the green channel: the table ^ and the blue channel A luminance gain form is sent to the image capture device for the image capture device to call. There is an image manipulation device of the gain form creation unit as described above, which includes a mashup unit, a storage unit, and an image acquisition unit for acquiring the first original image and the first Two original images. The storage unit stores the gain of the red channel of the single 7G output, the benefit form, and the luminance gain form of the blue channel. The two colors=P are divided into the first sub-regions of the first sub-division of the first-sub-division divided by the same as the first sub-division, and the pixels of the second sub-region are respectively calculated. The second red average luminance value, the -: Γ 22 = average luminance value 'calls the luminance increase of the red channel: Table early, the luminance gain form of the # color channel, and the luminance gain table of the blue channel 200942017 ί The red luminance gain of the channel luminance increasing single towel is multiplied by the corresponding second sub-region of the parent image, such as the red pass luminance, and the value of the color is the green color of the color-increasing two-color shirt: ΐ辉二f performs green channel luminance compensation with the corresponding second greenness gain of each of the second sub-region pixels, and multiplies the blue luminance gain in the blue channel hui: 曰皿·¥ The second blue average luminance value of each of the second sub-region pixels is compensated for blue channel luminance. ...the image processing device and its gain form are established earlier than the prior art, and the method for establishing, using the first color of the first original image, the work color luminance gain, the green luminance gain And the blue luminance gain form forms a red channel rotation gain form, a green channel luminance gain form, and a blue channel luminance gain form, respectively, for the image capturing device to acquire the image week each time using the above form to the image The luminance complement compensates to compensate for the lens shadowing effect and ensure image quality. [Embodiment] Hereinafter, the present invention will be further described in detail with reference to the accompanying drawings. FIG. 1 is a gain form establishing unit 10 for establishing a gain form to compensate for a first original image acquired by the image capturing device 20 (shown in FIG. 4) due to lens quality reasons. The shadowing effect caused by the original image. The gain form establishing unit 10 includes a region dividing sub-unit 12, an average calculating sub-unit 14, a selecting sub-unit 16, a gain calculating sub-unit 18, and a comparing sub-unit 19. The area dividing sub-unit 12 is configured to divide the first original image into 200942017 as a plurality of first sub-areas, which is n in the present embodiment. The average value calculation sub-unit 14 is configured to respectively calculate a first red average luminance value Ri, a first green average luminance value Gi, and a first blue color of each first sub-region pixel of the first original image. The average luminance value is Βί(ί=1,...η). The selecting subunit 16 is configured to select a maximum red average luminance value Rmax from the plurality of first red average luminance values Ri, and select a largest green average luminance value from the plurality of first green average luminance values Gi. Gmax, the largest blue average luminance value Bmax is selected from the plurality of first blue average luminance values. The gain calculation sub-unit 18 is configured to respectively calculate a red luminance gain Kri of each first sub-region to obtain a luminance gain form of the red channel, and a green luminance gain Kgi of each first sub-region to obtain a green channel The luminance gain form, the blue luminance gain Kbi of each first sub-region, yields a luminance gain form for the blue channel. The gain calculation sub-unit 18 outputs a luminance gain form of the red channel, a luminance gain form of the green channel, and a luminance gain form of the blue channel to the image capturing device 20 (shown in FIG. 4) for supply The image capture device 20 (shown in Figure 4) invokes compensation for the second original image. The comparison subunit 19 is pre-set with a gain range for comparing whether the gains Kri, Kgi, and 1^1 are within a preset gain range, and if the red luminance gain, the green luminance gain, and the blue luminance gain are both Output a gain form to form a signal within a preset gain range, and output a clean image capture device lens and image sensing if any of the red luminance gain, the green luminance gain, and the blue luminance gain are not within the preset gain range Component signal. In order to ensure that the image acquired by the image capturing device 20 (shown in FIG. 4) causes excessive noise, it is preferable that the preset gain range in the present embodiment is 1 to 2. Therefore 1 S Kri' 2,1 $ Kgi‘ 2,1 S KbiS 2. If any of the items of Kri, Kgi, and Kbi exceeds 2, it indicates that the lens of the image capturing device 20 (shown in FIG. 4) is not clean or the image sensing element is not clean and needs to be cleaned. Referring to FIG. 2, a method for establishing a gain form according to the present invention includes the following steps: ❹ S100: Acquire a first original image. S102: divide the first original image into a plurality of first sub-regions. S104: Calculate, respectively, a first red average luminance value Ri, a first green average luminance value Gi, and a first blue average luminance value 仏 of each first sub-region pixel of the first original image. S106: Select a maximum red average luminance value Rmax, a maximum green average luminance value Gmax, and a maximum blue average luminance value Bmax from the values of Ri, Gi, and Bi, and calculate a red luminance gain Kri of each first sub-region. , green © color luminance gain Kgi and blue luminance gain Kbi. Where KrfRn^/Ri, Kgi — Gmax/Gi, Kbi — Bmax/Bi 〇 S108 : Compare whether the gains Kri, Kgi, Kbi are within a preset gain range. If any one of the gains Kri, Kgi, and Kbi is not within the preset gain range, step S114 is performed: cleaning the image capturing device lens and the image sensing element, and then returning to step S100, if the gains Kri, Kgi, and Kbi are all in advance In the gain range, step S110 is performed: a luminance gain form of a red channel, a luminance gain form of a green channel, and a luminance gain form of a blue channel are respectively formed according to the gains Kd, Kgi, and Kbi. 12 200942017 S112: outputting the luminance gain form of the red channel, the green, := and the luminance gain form of the blue channel to the image 掏 In order to clearly illustrate the gain form establishment method provided by the present invention, 浐=', obtain ^ After the first round image, the first round image is divided into 111 to one six; j -, and the first six sub-regions of U l23 are calculated in turn.

平,值…6、第一綠色平均輝度仏至二:色 -藍色平均輝度值m6。從1至 J ,度值,從Gl…選取最大的綠色平均== =至心中選取最大的藍色平均輝度值,例如分別為R3、= 3則六個第-子區域的紅色通道的輝度增益分別為^产 K = P Kr2~~R3/R2 ' Kr3 = R3/R3 > Kr4=R3/R4 . Kr5 = R3/R5 , / —為。綠色通道的輝度增益分別為^ = ΜΑFlat, value...6, first green average luminance 仏 to two: color - blue average luminance value m6. From 1 to J, the value, the maximum green average === from Gl... to the maximum blue average luminance value in the heart, for example, the luminance gain of the red channel of the six first-sub-regions of R3 and =3, respectively. K = P Kr2 ~ ~ R3 / R2 ' Kr3 = R3 / R3 > Kr4 = R3 / R4 . Kr5 = R3 / R5 , / - is . The luminance gain of the green channel is ^ = 分别

3 2 ' Kg3 = G3/G3 ' Kg4 = G3/G4 ' Κ ς = G /Γ V Ο 藍色通道的輝度〜二f g5 3/G5、Kg6=G3/G6。 的輝度增心別為Kbi = B3/Bi、Kb2=B3/B2、、 表 3、Kb4 = B3/B4、Kb5==B3/B5、Kb6=B3/B6。具體參看3 2 ' Kg3 = G3/G3 ' Kg4 = G3/G4 ' Κ ς = G /Γ V 辉 The luminance of the blue channel ~ two f g5 3/G5, Kg6 = G3/G6. The luminance increase is Kbi = B3/Bi, Kb2 = B3/B2, Table 3, Kb4 = B3/B4, Kb5 == B3/B5, Kb6 = B3/B6. Specific reference

13 200942017 .^ ^ ^ ^ ο 风世的一種影像擷取裴置20 ’其 二單-26:二取早元.22,一個存儲單元24,-個中央處 Ο 猝取箪-22 Μ所述的增益表單建立單元1G。所述影像 所述第一原始圖像及所述第二原始圖 像。所述存儲…用以存儲從 輸出的所述紅色通道的輝度增益表單,綠色通Γ的輝度^ 表單以及藍色通道的輝度增益表單。所m輝度^ 以與所舰域劃分子單元12„的劃 ^ ㈣像劃分為與所述第一原始圖像劃分的第一子13 200942017 .^ ^ ^ ^ ο An image capture device of Windshield 20 'its two orders -26: two take early .22, one storage unit 24, one central location 猝 箪 箪-22 Μ Gain form creation unit 1G. The image is the first original image and the second original image. The storage ... is used to store a luminance gain form of the red channel from the output, a luminance wanted form of the green overnight, and a luminance gain form of the blue channel. The m luminance ^ is divided into the first sub-divided with the first original image by the division (4) image of the sub-unit 12

GG

til____ Β4 Kb 4 "85 β5 Kb5 ^g6 β6 Kb6 β3 的ΐ==’分別計算出所述第二原始圖像的每個第 :子&域像素的第二紅色平均輝度值Ri,、第二綠色平均輝 =以表及單第;?平均輝度值…調用所述紅色物 輝度增以%、綠色通道的輝度增益表單以及藍色 度增益表單’將料紅“道_度增錄單巾⑽色輝产 增益Kd乘以對應的所述每個第二子區域像素的第二红= =表R::;進行紅色通道輝度補償,將所述綠色通道: a表早中的綠色輝度增益Kgi乘以對應的所述每 度仙,將所述藍色通道的輝度增益表單中的藍 Kbi乘以對應的所述每個第二子區域像素的第二藍色 200942017 度值Bi’以進行藍色通道輝度補償。 . 請參閱圖5,為本發明影像擷取裝晉2〇嘴用描^ ,所述第二原始圖像進行補償的步驟流程圖·/胃皿表單對 S116 :獲取第二原始圖像。 S118 :以與所述區域劃分子 所述第二好圖後到八“ 同樣的劃分形式將 子區域-致的多個第二子區域。 刀的第- ❹ SU0:分別計算出所述第二原始圖像的每㈣ ==色平均輝度值&,、第二綠 域 益表單所述紅色料的輝度增 表单以進行三通道輝度補償。 ^增盈 所述紅色通道的輝度mm2 A體補償方式如下:將 庙从一 增表早中的紅色輝度增益Kri乘以對 、’〔母個第二子區域像素的第二紅色平均輝度值Ri,以 ❹的補償。將所述綠色通道的輝度增益表單中 第二綠色$ “乘^對應的所述每個第二子區域像素的 =通=輝度增益表單中的藍色輝度增益^乘以對應的 母帛一子區域像素的第二藍色平均輝度值氏,以進行 藍色通道輝度補償。 本發明提供的影像擷取裝置及其增益表單建立單元與 方法利用计算出所述第一原始圖像的每個第一子區域 =色輝度增益、綠色輝度增益以及藍色輝度增益分別形成 通道的輝度增錢單、綠色通道_度料表單以及藍 15 200942017 色通道的輝度增益表單,以供所述影像擷取裝置每次獲取圖 像時調用上述表單而對圖像輝度補進行償,從而補償鏡頭遮 蔽效應,保證成像品質。 綜上所述,本發明確已符合發明專利要件,爰依法提出 專利申請。惟,以上所述者僅為本發明之較佳實施方式,舉 凡熟悉本案技藝之人士,於援依本案發明精神所作之等效修 飾或變化,皆應包含於以下之申請專利範圍内。 ^ 【圖式簡單說明】 圖1為本發明增益表單建立單元的模組圖。 圖2為本發明增益表單建立方法的步驟流程圖。 圖3為圖1中增益表單建立單元劃分圖像的示意圖。 圖4為本發明影像擷取裝置的模組圖。 圖5為本發明影像擷取裝置調用增益表單的步驟流程 圖。 【主要元件符號說明】 ❹ 增益表單建立單元10 區域劃分子單元12 平均值計算子單元14 選取子單元 16 增益計算子單元 18 比較子單元 19 影像擷取裝置 20 影像獲取單元 22 存儲單元 24 中央處理單元 26 16Til____ Β4 Kb 4 "85 β5 Kb5 ^g6 β6 Kb6 β3 ΐ==' respectively calculate the second red average luminance value Ri of each of the first: sub & domain pixels of the second original image, The average of the two greens = the table and the single number; The average luminance value...calls the red luminance increase in %, the luminance gain form of the green channel, and the blueness gain form 'sample the red color _ degree increase single towel (10) color gain gain Kd multiplied by the corresponding The second red == table R:: of each second sub-region pixel performs red channel luminance compensation, multiplying the green luminance gain Kgi of the green channel: a table by the corresponding per-degree centimeter, The blue Kbi in the luminance gain form of the blue channel is multiplied by the corresponding second blue 200942017 degree value Bi' of each of the second sub-region pixels to perform blue channel luminance compensation. See FIG. 5, For the image capturing device of the present invention, the second original image is compensated for the step of flow chart / / stomach table form pair S116: obtaining the second original image. S118: with the area Subdividing the second good picture into eight "the same partitioning form will sub-area--a plurality of second sub-areas. - ❹ SU0 of the knive: calculating each (four) == color average luminance value & respectively, of the second original image, and the luminance increase form of the red material of the second green domain benefit form for three-channel luminance compensation . ^ Increase the brightness of the red channel mm2 A body compensation is as follows: multiply the temple from the red luminance gain Kri of the early morning of the increase table to the pair, '[the second red average luminance value Ri of the second sub-region pixel) With the compensation of ❹. Multiplying the blue luminance gain ^ in the = pass = luminance gain form of the second green color of the green channel's luminance gain form by the second green $" multiply ^ corresponding to the corresponding parent side a second blue average luminance value of the area pixel for performing blue channel luminance compensation. The image capturing apparatus and the gain form establishing unit and method thereof provided by the present invention utilize each of the first original image a sub-area = color luminance gain, green luminance gain, and blue luminance gain respectively form a channel brightness increase order, a green channel_metric form, and a blue 15 200942017 color channel luminance gain form for the image capture device Each time the image is acquired, the above-mentioned form is called to compensate for the image luminance, thereby compensating for the lens shadowing effect and ensuring the image quality. In summary, the present invention has indeed met the patent requirements of the invention, and has filed a patent application according to law. The above is only a preferred embodiment of the present invention, and those skilled in the art will be equivalently modified or modified in the spirit of the invention. All of them should be included in the following patent application. ^ [Simple description of the drawings] Figure 1 is a block diagram of the gain form building unit of the present invention. Figure 2 is a flow chart of the steps of the method for establishing a gain form according to the present invention. Fig. 4 is a schematic diagram of a video capture device of the present invention. Fig. 5 is a flow chart of the steps of the image capture device of the present invention for calling a gain form. [Description of main component symbols] Gain form creation unit 10 Area division sub-unit 12 Average calculation sub-unit 14 Selection sub-unit 16 Gain calculation sub-unit 18 Comparison sub-unit 19 Image capture device 20 Image acquisition unit 22 Storage unit 24 Central processing unit 26 16

Claims (1)

200942017 十、申請專利範圍 ,1.-種增益表單建立單元,翻以建立增益表單以補償由影 像掏取裝置獲取的第-原始圖像及第二原始圖像,所述増益 表單建立單元包括: gjnL 一個區域劃分子單元,其用以將所述第—原始圖像劃分 個第一子區域;200942017 X. Patent application scope, 1. A gain form establishing unit, which is configured to establish a gain form to compensate a first original image and a second original image acquired by the image capturing device, the benefit form establishing unit comprising: gjnL a region dividing sub-unit for dividing the first original image into a first sub-region; 一個平均值計算子單元,其肋分別計算出所述第—原始圖 像的每個第—子區域像素的第—紅色平均輝度值、第-綠色 平均輝度值以及第一藍色平均輝度值; 一個選取子單元,其用以從所述多個第—紅色平均輝度值中 選取最大的紅色平均輝度值,從所述多個第—綠色平均輝产 值中選取最大的綠色平均輝度值,從所述多個第—藍色平ς 輝度值中選取最大的藍色平均輝度值;以及 一個增益計算子單元’用以根據所述最大紅色平均輝度值與 =母個第-子區域像素的第—紅色平均輝度值,計算出每 =第-子區域的紅色輝度增益以得出紅色通道的輝度增兴 =,根據所述最大綠色平均輝度值與所述每個第一子區域 靜2一綠色平均輝度值,計算出每個第一子區域的綠色 二曰^得出綠色通道的輝度增録單,根據所述最大藍 2均輝度值與所述每個第—子區域像素的第—藍色平均 异出每個第一子區域的藍色輝度增益以得出藍色 ^道的輝度私表單,錢諸述紅色通道_度增益表 早、綠色通道_度增益表料及藍色通道的輝度增益表單 至所述W像#|取裝置中以供所述影像擷取裝置調用以對所 17 200942017 述第二原始圖像進行補償。 ❾ ❹ 2.如申請專利範圍第1項所述之增益表單建立單元,其中, 所述増盃表單建立單元還包括一個比較子單元,其内預設有 二個增益範圍,所述比較子單元用以比較所述每個第一子區 域的紅色輝度增益是否在預設增益範圍内,每個第—子區域 的、、糸色輝度増盃是否在預設增益範圍内,以及每個第一子區 ,的藍色輝度增益是否在預設增益範圍内,若紅色輝度增 ▲綠色輝度增益、藍色輝度增益均在預設增益範圍内則輸 出一個增益表單形成訊號,若紅色輝度增益、綠色輝度增 益、藍色輝度增益任意―項未在預設增益範圍内則輸出一個 清潔影像擷取裝置鏡頭及影像感測元件訊號。 3· -種具有申料利範圍第i項所述之增益表單建立 的影像摘取裝置’其包括—個影像獲取單元,—個存儲單元 以及一個中域理單元,所述影像獲取單元用以獲取所述第 一原始圖像及所述第二原始圖像,所述存鮮元用以存儲從 所述增益表單建立單元輸出的所述紅色通道的輝度增 單,綠色通道的輝度增益表單以及藍色通道的輝度^ 二:述中央處理單元用與所述區域劃分子單元同樣:劃分 二原始圖像劃分為與所述第一原始圖像劃分 的第-子區域-致的多個第二子區域,分別計算出所述第二 原始圖像的每個第二子區域像素的第二紅色平均輝度值、第 =色平均輝度值以及第二藍色平均輝度值,調用所述紅【 U輝度增錢單、、綠色通道_度增益表單以 道的輝度增益表單,將所述紅色通道的輝度增益表科t 18 200942017 增益乘以對應的所述第二原始圖像的每個第二子區 .域像素㈣二紅色平_度值錢行紅色通 通=輝度增益表單中的綠色輝度增益乘以對: 斤^第一原始圖像的每個第二子區域像素的第 值以進行綠色通道輝度補償,將所述藍色通道的輝度 二tr的藍色輝度增益乘以對應的所述第二原始圖像 母個第一子區域像素的第二 ❹通道輝度補償。 W又值以進订藍色 4步驟種增益表單建立方法,所述增録單建立方法包括以下 獲取第一原始圖像; 將所述第-原始圖像劃分為多個第—子區域; ==一第原=像的每個第-子區域像素的第 輝度^輝度值卜綠色平均輝度值以及第一藍色平均 ::述:個第紅色平均輝度值中選取最大的紅色平均輝 ΐ輝产t料—綠色平均輝度值中選取最大的綠色平 色平=度t所述多個第—藍色平均輝度值中選取最大的藍 根據所述最大紅色平均輝度值與所述每個第一子 =-紅色平均輝度值,計算出每個第—子區域的红色= 根據所述最大綠色平均輝度值與所述每 ς 像素的第-綠色平均輝度值,計算出每個第 輝度増益,根制料域色平_度絲 19 200942017 區域像素的第一藍色平均輝度值,計算出每個第一子區域的 藍色輝度增益; 根據所述紅色輝度增益、綠色輝度增益以及藍色輝度增益分 別形成紅色通道的輝度增益表單、綠色通道的輝度增益表單 以及藍色通道的輝度增益表單;及 輸出所述紅色通道的輝度增益表單、綠色通道的輝度增益表 單以及藍色通道的輝度增益表單至所述影像擷取裝置中以 0供所述影像擷取裝置調用。 5.如申請專利範圍第4項所述之增益表單建立方法,其中, 在所述輝度增益計算步驟與所述增益表單形成步驟之間還 包括一個比較步驟:比較所述每個第一子區域的紅色輝度增 益是否在預設增益範圍内,每個第一子區域的綠色輝度增益 是否在預設增益範圍内,以及每個第一子區域的藍色輝度增 益是否在預設增益範圍内,若紅色輝度增益、綠色輝度增 益、藍色輝度增益均在預設增益範圍内則輸出一個增益表單 © 形成訊號,若紅色輝度增益、綠色輝度增益、藍色輝度增益 任意一項未在預設增益範圍内則輸出一個清潔影像擷取裝 置鏡頭及影像感測元件訊號。 20An average calculation subunit, wherein the ribs respectively calculate a first red average luminance value, a first green average luminance value, and a first blue average luminance value of each of the first sub-region pixels of the first original image; a selection subunit for selecting a maximum red average luminance value from the plurality of first red average luminance values, and selecting a maximum green average luminance value from the plurality of first green average luminance values The plurality of first-blue flat luminance values are selected from the largest blue average luminance values; and a gain calculation sub-unit is configured to use the maximum red average luminance values and the = mother-first sub-region pixels. a red average luminance value, and a red luminance gain per = sub-region is calculated to obtain a luminance enhancement of the red channel =, according to the maximum green average luminance value, and each of the first sub-regions is statically 2 green average a luminance value, calculating a green luminance of each of the first sub-regions to obtain a luminance addition sheet of the green channel, according to the maximum blue 2-average luminance value and the first blue of each of the first-sub-region pixels The blue luminance gain of each first sub-region is averaged to obtain the luminance private form of the blue channel, and the red channel _ degree gain table early, the green channel _ degree gain table material and the blue channel luminance gain The form is sent to the W image device to be called by the image capture device to compensate for the second original image of the 17 200942017. 2. The gain form establishing unit according to claim 1, wherein the cup form establishing unit further comprises a comparing subunit, wherein two gain ranges are pre-set, and the comparing subunit And comparing whether the red luminance gain of each of the first sub-regions is within a preset gain range, whether each of the first sub-regions, the color luminance cup is within a preset gain range, and each first In the sub-area, the blue luminance gain is within the preset gain range. If the red luminance increases ▲ the green luminance gain and the blue luminance gain are within the preset gain range, a gain form is formed to form a signal, if the red luminance gain, green Brightness Gain, Blue Luminance Gain Any item that is not within the preset gain range outputs a clean image capture device lens and image sensing element signal. An image pickup device having a gain form as described in item ii of the application scope includes an image acquisition unit, a storage unit and a middle domain unit, wherein the image acquisition unit is used for Acquiring the first original image and the second original image, wherein the storage element is configured to store a luminance increase form of the red channel outputted from the gain form establishing unit, a luminance gain form of the green channel, and The luminance of the blue channel ^2: The central processing unit is the same as the area dividing subunit: the divided original image is divided into the first sub-region divided by the first original image a sub-region, respectively calculating a second red average luminance value, a second color average luminance value, and a second blue average luminance value of each second sub-region pixel of the second original image, and calling the red [U] The luminance increase order, the green channel _ degree gain form, in the luminance gain form of the track, multiply the gain of the red channel luminance gain table t 18 200942017 by the corresponding second second of the second original image Domain pixel (four) two red flat _ degree value money line red pass = green luminance gain in the luminance gain form multiplied by: jin ^ the first value of each second sub-region pixel of the first original image for green channel luminance compensation And multiplying the blue luminance gain of the luminance two tr of the blue channel by the second pupil luminance compensation of the corresponding first sub-region pixels of the second original image. W is a value-added blue 4-step gain form creation method, the method for creating an add-on list includes acquiring a first original image; dividing the first-original image into a plurality of first-sub-regions; = a first original = the first luminance of each pixel of the first sub-region, the luminance value of the green average luminance value and the first blue average:: the maximum red luminance of the red average luminance value The t-material-green average luminance value is selected as the largest green flat color=degree t. The plurality of first-blue average luminance values are selected as the largest blue according to the maximum red average luminance value and each of the first Sub =- red average luminance value, calculate the red color of each first sub-region = calculate each first luminance benefit based on the maximum green average luminance value and the first-green average luminance value of each pixel Material range color _度丝19 200942017 The first blue average luminance value of the area pixel, the blue luminance gain of each first sub-area is calculated; according to the red luminance gain, the green luminance gain, and the blue luminance gain Separate shape a luminance gain form of the red channel, a luminance gain form of the green channel, and a luminance gain form of the blue channel; and a luminance gain form outputting the red channel, a luminance gain form of the green channel, and a luminance gain form of the blue channel to the The image capturing device is called by the image capturing device at 0. 5. The gain form establishing method according to claim 4, wherein a comparison step is further included between the luminance gain calculating step and the gain form forming step: comparing each of the first sub-regions Whether the red luminance gain is within a preset gain range, whether the green luminance gain of each first sub-region is within a preset gain range, and whether the blue luminance gain of each first sub-region is within a preset gain range, If the red luminance gain, the green luminance gain, and the blue luminance gain are within the preset gain range, a gain form © is formed to form a signal, if any of the red luminance gain, the green luminance gain, and the blue luminance gain is not at the preset gain Within the range, a clean image capture device lens and image sensing component signals are output. 20
TW97110179A 2008-03-21 2008-03-21 Image capturing device and setting unit and method for gaining tables thereof TWI382745B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
TW97110179A TWI382745B (en) 2008-03-21 2008-03-21 Image capturing device and setting unit and method for gaining tables thereof

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
TW97110179A TWI382745B (en) 2008-03-21 2008-03-21 Image capturing device and setting unit and method for gaining tables thereof

Publications (2)

Publication Number Publication Date
TW200942017A true TW200942017A (en) 2009-10-01
TWI382745B TWI382745B (en) 2013-01-11

Family

ID=44868485

Family Applications (1)

Application Number Title Priority Date Filing Date
TW97110179A TWI382745B (en) 2008-03-21 2008-03-21 Image capturing device and setting unit and method for gaining tables thereof

Country Status (1)

Country Link
TW (1) TWI382745B (en)

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US4962425A (en) * 1988-10-27 1990-10-09 National Research Council Of Canada/Conseil National Deresherches Canada Photometric device
TW200619811A (en) * 2004-12-10 2006-06-16 Mitac Int Corp Image light compensation method
TWI257256B (en) * 2005-02-05 2006-06-21 Via Tech Inc Sampling method of image data
US20060182430A1 (en) * 2005-02-15 2006-08-17 Stavely Donald J Camera exposure program coupled to image stabilization capability
TWI268703B (en) * 2005-04-08 2006-12-11 Benq Corp Photographing apparatus and compensating method used in the photographing apparatus
JP4590355B2 (en) * 2006-01-12 2010-12-01 キヤノン株式会社 Image processing apparatus, image processing method, and program

Also Published As

Publication number Publication date
TWI382745B (en) 2013-01-11

Similar Documents

Publication Publication Date Title
TW200816805A (en) Solid-state image sensor
US8035709B2 (en) Image pickup apparatus provided with a solid-state image pickup device
TWI324486B (en) Solid-state imaging apparatus, and imaging apparatus
US9197807B2 (en) Imaging device including phase detection pixels arranged to perform capturing and to detect phase difference
JP6584131B2 (en) Imaging apparatus, imaging system, and signal processing method
TW200915861A (en) Method and apparatus for improving low-light performance for small pixel image sensors
JPH0823542A (en) Image pickup device
TWI260169B (en) Color image-processing method, and color imaging apparatus
JP2019500761A (en) Calibration of defective image sensor elements
TW200818862A (en) Method and apparatus for image noise reduction using noise models
JP2017108380A (en) Imaging device
JP2003022440A5 (en)
JP2022174185A (en) Imaging device
TW200849978A (en) Video input processor, imaging signal-processing circuit, and method of reducing noises in imaging signals
TW201145993A (en) Adaptive lens shading correction
JP5591851B2 (en) Solid-state imaging device and portable information terminal
TW200822724A (en) Method of processing noise in image data, noise reduction unit, and imaging apparatus
TW200903381A (en) Method, apparatus and system providing green-green imbalance compensation
JP2006235307A (en) Display device and method of controlling display for the same
WO2016086489A1 (en) Image noise reduction method and device thereof
CN110800281B (en) Image pickup apparatus
TW200942017A (en) Image capturing device and setting unit and method for gaining tables thereof
JP5581968B2 (en) Imaging device
TWI415480B (en) Image processing method and image processing system
JP6543067B2 (en) Projection system, projector device, imaging device, and program

Legal Events

Date Code Title Description
MM4A Annulment or lapse of patent due to non-payment of fees