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