TWI382745B - 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
TWI382745B
TWI382745B TW97110179A TW97110179A TWI382745B TW I382745 B TWI382745 B TW I382745B TW 97110179 A TW97110179 A TW 97110179A TW 97110179 A TW97110179 A TW 97110179A TW I382745 B TWI382745 B TW I382745B
Authority
TW
Taiwan
Prior art keywords
gain
luminance
sub
blue
green
Prior art date
Application number
TW97110179A
Other languages
Chinese (zh)
Other versions
TW200942017A (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

Description

影像擷取裝置及其增益表單建立單元與建立方法Image capturing device and gain table establishing unit and establishing method thereof

本發明涉及一種圖像處理技術,尤其涉及一種增益表單建立單元及建立方法,以及具有該增益表單建立單元的影像擷取裝置。The present invention relates to an image processing technology, and more particularly to a gain form establishing unit and an establishing method, and an image capturing device having the gain form establishing unit.

目前,市場上影像擷取裝置採用的鏡頭良莠不齊,某些鏡頭出廠後,會因為鏡頭的中心與周邊的輝度比例不同而存在差異,造成某些鏡頭的周邊透光率較低,而使影像感光時,周邊無法獲得與中心一致的輝度,通常為中間亮四周暗,即產生鏡頭遮蔽效應,如此會對成像品質造成一定的影響。At present, the lens used in the image capturing device on the market is not uniform. Some lenses may differ in the brightness ratio between the center and the periphery of the lens after leaving the factory, which causes the peripheral transmittance of some lenses to be low, and the image is sensitive. When the periphery is not able to obtain the brightness corresponding to the center, usually the middle is bright and the dark is dark, which is the lens shadowing effect, which will have a certain impact on the image quality.

有鑒於此,本發明提供一種增益表單建立單元及建立方法,其能建立對圖像進行補償鏡頭遮蔽效應的增益表單。本發明還提供一種具有該增益表單建立單元的影像擷取裝置,其能調用所述增益表單以對所述影像擷取裝置獲取的圖像的鏡頭遮蔽效應進行補償,從而保證成像品質。In view of this, the present invention provides a gain form establishing unit and a setting method capable of establishing a gain form for compensating a lens shading effect on an image. The present invention also provides an image capturing device having the gain form establishing unit, which can call the gain form to compensate for a lens shading effect of an image acquired by the image capturing device, thereby ensuring image quality.

一種增益表單建立單元,其用以建立增益表單以補償由影像擷取裝置獲取的第一原始圖像及第二原始圖像。所述增益表單建立單元包括一個區域劃分子單元,一個平均值計算子單元,一個選取子單元,以及一個增益計算子單元。所述區域劃分子單元用以將所述第一原始圖像劃分為多個第一子區域。所述平均值計算子單元用以分別計算出所述第一原始圖像的每個第一子區域像素的第一紅色平均輝度值、第一綠色平均輝度值以及第一藍色平均輝度值。所述選取子單元用以從所述多個第一紅色平均輝度值中選取最大的紅色平均輝度值,從所述多個第一綠色平均輝度值中選取最大的綠色平均輝度值,從所述多個第一藍色平均輝度值中選取最大的藍色平均輝度值。所述增益計算子單元根據所述最大紅色平均輝度值與所述每個第一子區域像素的第一紅色平均輝度值,計算出每個第一子區域的紅色輝度增益以得出紅色通道的輝度增益表單,根據所述最大綠色平均輝度值與所述每個第一子區域像素的第一綠色平均輝度值,計算出每個第一子區域的綠色輝度增益以得出綠色通道的輝度增益表單,根據所述最大藍色平均輝度值與所述每個第一子區域像素的第一藍色平均輝度值,計算出每個第一子區域的藍色輝度增益以得出藍色通道的輝度增益表單,並輸出所述紅色通道的輝度增益表單、綠色通道的輝度增益表單以及藍色通道的輝度增益表單至所述影像擷取裝置中以供所述影像擷取裝置調用以對所述第二原始圖像進行補償。A gain form establishing unit is configured to establish a gain form to compensate for the first original image and the second original image acquired by the image capturing device. The gain form establishing unit includes a region dividing subunit, an average calculating subunit, a selecting subunit, and a gain calculating subunit. The area dividing subunit is configured to divide the first original image into a plurality of first sub-areas. The average calculation subunit is configured to respectively calculate a first red average luminance value, a first green average luminance value, and a first blue average luminance value of each first subregion pixel of the first original image. The selecting subunit is configured to select a maximum red average luminance value from the plurality of first red average luminance values, and select a largest green average luminance value from the plurality of first green average luminance values, from the The largest blue average luminance value is selected among the plurality of first blue average luminance values. The gain calculation sub-unit calculates a red luminance gain of each first sub-region according to the maximum red average luminance value and the first red average luminance value of each of the first sub-region pixels to obtain a red channel a luminance gain form, calculating a green luminance gain of each first sub-region according to the maximum green average luminance value and a first green average luminance value of each of the first sub-region pixels to obtain a luminance gain of the green channel Form, according to the maximum blue average luminance value and the first blue average luminance value of each of the first sub-region pixels, calculate a blue luminance gain of each first sub-region to obtain a blue channel a luminance gain form, and outputting 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 for the image capturing device to call The second original image is compensated.

一種增益表單建立方法,其包括以下步驟:獲取第一原始圖像;將所述第一原始圖像劃分為多個第一子區域;分別計算出所述第一原始圖像的每個第一子區域像素的第一紅色平均輝度值、第一綠色平均輝度值以及第一藍色平均輝度值;從所述多個第一紅色平均輝度值中選取最大的紅色平均輝度值,從所述多個第一綠色平均輝度值中選取最大的綠色平均輝度值,從所述多個第一藍色平均輝度值中選取最大的藍色平均輝度值;根據所述最大紅色平均輝度值與所述每個第一子區域像素的第一紅色平均輝度值,計算出每個第一子區域的紅色輝度增益,根據所述最大綠色平均輝度值與所述每個第一子區域像素的第一綠色平均輝度值,計算出每個第一子區域的綠色輝度增益,根據所述最大藍色平均輝度值與所述每個第一子區域像素的第一藍色平均輝度值,計算出每個第一子區域的藍色輝度增益;根據所述紅色輝度增益、綠色輝度增益、藍色輝度增益分別形成紅色通道的輝度增益表單、綠色通道的輝度增益表單以及藍色通道的輝度增益表單;輸出所述紅色通道的輝度增益表單、綠色通道的輝度增益表單以及藍色通道的輝度增益表單至所述影像擷取裝置中以供所述影像擷取裝置調用。A gain form establishing method, comprising the steps of: acquiring a first original image; dividing the first original image into a plurality of first sub-regions; respectively calculating each first 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 the sub-region pixels; a maximum red average luminance value is selected from the plurality of first red average luminance values, from the plurality of Selecting a maximum green average luminance value from the first green average luminance values, and selecting a largest blue average luminance value from the plurality of first blue average luminance values; and according to the maximum red average luminance value and each of the a first red average luminance value of the first sub-region pixels, and calculating a red luminance gain of each of the first sub-regions, according to the maximum green average luminance value and the first green average of each of the first sub-region pixels a luminance value, calculating a green luminance gain of each of the first sub-regions, and calculating, according to the maximum blue average luminance value and the first blue average luminance value of each of the first sub-region pixels a blue luminance gain of each of the first sub-regions; 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 according to the red luminance gain, the green luminance gain, and the blue luminance gain, respectively And outputting 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 for the image capturing device to call.

一種具有如上所述的增益表單建立單元的影像擷取裝置,其包括一個影像獲取單元,一個存儲單元以及一個中央處理單元。所述影像獲取單元用以獲取所述第一原始圖像及所述第二原始圖像。所述存儲單元用以存儲從所述增益表單建立單元輸出的所述紅色通道的輝度增益表單,綠色通道的輝度增益表單以及藍色通道的輝度增益表單。所述中央處理單元用與所述區域劃分子單元同樣的劃分形式將所述第二原始圖像劃分為與所述第一原始圖像劃分的第一子區域一致的多個第二子區域,分別計算出所述第二原始圖像的每個第二子區域像素的第二紅色平均輝度值、第二綠色平均輝度值以及第二藍色平均輝度值,調用所述紅色通道的輝度增益表單、綠色通道的輝度增益表單以及藍色通道的輝度增益表單,將所述紅色通道輝度增益表單中的紅色輝度增益乘以對應的所述每個第二子區域像素的第二紅色平均輝度值以進行紅色通道輝度補償,將所述綠色通道輝度增益表單中的綠色輝度增益乘以對應的所述每個第二子區域像素的第二綠色平均輝度值以進行綠色通道輝度補償,將所述藍色通道輝度增益表單中的藍色輝度增益乘以對應的所述每個第二子區域像素的第二藍色平均輝度值以進行藍色通道輝度補償。An image capture device having a gain form creation unit as described above, comprising an image acquisition unit, a storage unit and a central processing unit. The image acquisition unit is configured to acquire the first original image and the second original image. The storage unit is configured to store 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, which are output from the gain form establishing unit. The central processing unit divides the second original image into a plurality of second sub-regions that are consistent with the first sub-region of the first original image segmentation in the same division form as the region dividing sub-unit, Calculating a second red average luminance value, a second green average luminance value, and a second blue average luminance value of each second sub-region pixel of the second original image, respectively, and calling the red channel luminance gain form a luminance gain form of the green channel and a luminance gain form of the blue channel, multiplying a red luminance gain in the red channel luminance gain form by a corresponding second red average luminance value of each of the second sub-region pixels Performing red channel luminance compensation, multiplying the green luminance gain in the green channel luminance gain form by the corresponding second green average luminance value of each of the second sub-region pixels to perform green channel luminance compensation, and the blue The blue luminance gain in the color channel luminance gain form is multiplied by the corresponding second blue average luminance value of each of the second sub-region pixels to perform blue pass Luminance compensation.

與先前技術相比,所述影像擷取裝置及其增益表單建立單元與建立方法,利用計算出所述第一原始圖像的每個第一子區域的紅色輝度增益、綠色輝度增益以及藍色輝度增益分別形成紅色通道的輝度增益表單、綠色通道的輝度增益表單以及藍色通道的輝度增益表單,以供所述影像擷取裝置每次獲取圖像時調用上述表單而對圖像輝度補進行償,從而補償鏡頭遮蔽效應,保證成像品質。Compared with the prior art, the image capturing device and the gain form establishing unit and the establishing method thereof use the red luminance gain, the green luminance gain, and the blue for calculating the first sub-region of the first original image. The luminance gain forms 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, respectively, for the image capturing device to call the above form each time the image capturing device acquires the image and complement the image luminance Reimbursement, thereby compensating for the lens shading effect and ensuring image quality.

下面將結合附圖,對本發明作進一步的詳細說明。The invention will be further described in detail below with reference to the accompanying drawings.

請參閱圖1,為本發明提供的一種增益表單建立單元10,其用以建立增益表單以補償由於鏡頭品質原因對影像擷取裝置20(圖4示)獲取的第一原始圖像及第二原始圖像造成的遮蔽效應。Please refer to FIG. 1 , which is a gain form establishing unit 10 for establishing a gain form to compensate for a first original image and a second 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.

所述增益表單建立單元10包括一個區域劃分子單元12,一個平均值計算子單元14,一個選取子單元16,一個增益計算子單元18以及一個比較子單元19。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.

所述區域劃分子單元12用以將所述第一原始圖像劃分為多個第一子區域,本實施方式中為n個。The area dividing sub-unit 12 is configured to divide the first original image into a plurality of first sub-areas, which are n in the embodiment.

所述平均值計算子單元14用以分別計算出所述第一原始圖像的每個第一子區域像素的第一紅色平均輝度值Ri 、第一綠色平均輝度值Gi 以及第一藍色平均輝度值Bi (i=1,...n)。The average value calculation sub-unit 14 is configured to respectively calculate a first red average luminance value R i , a first green average luminance value G i , and a first blue of each first sub-region pixel of the first original image. The color average luminance value B i (i = 1, ... n).

所述選取子單元16用以從所述多個第一紅色平均輝度值Ri 中選取最大的紅色平均輝度值Rmax ,從所述多個第一綠色平均輝度值Gi 中選取最大的綠色平均輝度值Gmax ,從所述多個第一藍色平均輝度值Bi 中選取最大的藍色平均輝度值BmaxThe selecting subunit 16 is configured to select a largest red average luminance value R max from the plurality of first red average luminance values R i , and select a largest green color from the plurality of first green average luminance values G i The average luminance value G max is selected from the plurality of first blue average luminance values B i and the largest blue average luminance value B max .

所述增益計算子單元18用以分別計算出每個第一子區域的紅色輝度增益Kri 以得出紅色通道的輝度增益表單,每個第一子區域的綠色輝度增益Kgi 以得出綠色通道的輝度增益表單,每個第一子區域的藍色輝度增益Kbi 以得出藍色通道的輝度增益表單。所述增益計算子單元18輸出所述紅色通道的輝度增益表單、綠色通道的輝度增益表單以及藍色通道的輝度增益表單至所述影像擷取裝置20(圖4示)中以供所述影像擷取裝置20(圖4示)調用對所述第二原始圖像進行補償。The gain calculation sub-unit 18 is configured to respectively calculate a red luminance gain K ri of each first sub-region to obtain a luminance gain form of the red channel, and a green luminance gain K gi of each first sub-region to obtain a green color The luminance gain form of the channel, the blue luminance gain K bi of each first sub-region to derive the luminance gain form of 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 the image. The capture device 20 (shown in Figure 4) invokes compensation for the second original image.

所述比較子單元19內預設有一個增益範圍,其用以比較所述增益Kri 、Kgi 、Kbi 是否在預設增益範圍內,若紅色輝度增益、綠色輝度增益、藍色輝度增益均在預設增益範圍內則輸出一個增益表單形成訊號,若紅色輝度增益、綠色輝度增益、藍色輝度增益任意一項未在預設增益範圍內則輸出一個清潔影像擷取裝置鏡頭及影像感測元件訊號。為了保證增益不致給影像擷取裝置20(圖4示)獲取的圖像造成過大的雜訊,優選地,本實施方式中的預設增益範圍為1~2。因此1≦Kri ≦2,1≦Kgi ≦2,1≦Kbi ≦2。若Kri 、Kgi 、Kbi 任意一項超過了2,則表明影像擷取裝置20(圖4示)的鏡頭不清潔或者是影像感測元件不清潔,需要清理。The comparison subunit 19 is pre-set with a gain range for comparing whether the gains K ri , K gi , and K bi are within a preset gain range, if the red luminance gain, the green luminance gain, and the blue luminance gain Outputting a gain form to form a signal within a preset gain range, and outputting a clean image capture device lens and image sense if any of the red luminance gain, the green luminance gain, and the blue luminance gain are not within the preset gain range Measuring component signals. In order to ensure that the gain does not cause excessive noise to the image acquired by the image capturing device 20 (shown in FIG. 4), the preset gain range in the present embodiment is preferably 1-2. Therefore 1≦K ri ≦2,1≦K gi ≦2,1≦K bi ≦2. If any of K ri , K gi , and K bi exceeds 2, it indicates that the lens of the image capturing device 20 (shown in FIG. 4 ) is not clean or the image sensing component is not clean and needs to be cleaned.

請參閱圖2,為本發明提供的一種增益表單建立方法,其包括以下步驟:S100:獲取第一原始圖像。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:將所述第一原始圖像劃分為多個第一子區域。S102: Divide the first original image into a plurality of first sub-regions.

S104:分別計算出所述第一原始圖像的每個第一子區域像素的第一紅色平均輝度值Ri 、第一綠色平均輝度值Gi 以及第一藍色平均輝度值BiS104: Calculate, respectively, a first red average luminance value R i , a first green average luminance value G i , and a first blue average luminance value B i of each first sub-region pixel of the first original image.

S106:從Ri 、Gi 、Bi 值中選取最大的紅色平均輝度值Rmax 、最大的綠色平均輝度值Gmax 以及最大的藍色平均輝度值Bmax ,並計算出每個第一子區域的紅色輝度增益Kri 、綠色輝度增益Kgi 以及藍色輝度增益Kbi 。其中,Kri =Rmax /Ri ,Kgi =Gmax /Gi ,Kbi =Bmax /BiS106: Select a maximum red average luminance value R max , a maximum green average luminance value G max , and a maximum blue average luminance value B max from the values of R i , G i , and B i , and calculate each first sub-child The red luminance gain K ri , the green luminance gain K gi , and the blue luminance gain K bi of the region. Where K ri = R max /R i , K gi =G max /G i , K bi =B max /B i .

S108:比較所述增益Kri 、Kgi 、Kbi 是否在預設增益範圍內。若增益Kri 、Kgi 、Kbi 任意一項未在預設增益範圍內,則進行步驟S114:清潔影像擷取裝置鏡頭及影像感測元件,然後返回步驟S100,若增益Kri 、Kgi 、Kbi 均在預設增益範圍內,則進行步驟S110:依據所述增益Kri 、Kgi 、Kbi 分別形成紅色通道的輝度增益表單、綠色通道的輝度增益表單以及藍色通道的輝度增益表單。S108: Compare whether the gains K ri , K gi , and K bi are within a preset gain range. If any of the gains K ri , K gi , and K bi are not within the preset gain range, proceed to step S114: clean the image capturing device lens and the image sensing element, and then return to step S100 if the gains K ri , K gi If the K bi is within the preset gain range, proceed to step S110: forming a luminance gain form of the red channel, a luminance gain form of the green channel, and a luminance gain of the blue channel according to the gains K ri , K gi , and K bi , respectively. Form.

S112:輸出所述紅色通道的輝度增益表單、綠色通道的輝度增益表單以及藍色通道的輝度增益表單至所述影像擷取裝置中。S112: Output 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.

為了清楚說明本發明提供的增益表單建立方法,請參閱圖3,獲取第一原始圖像後將其劃分為I11 至I23 六個第一子區域,依次計算出I11 至I23 六個第一子區域像素的第一紅色平均輝度值R1 至R6 、第一綠色平均輝度值G1 至G6 以及第一藍色平均輝度值B1 至B6 。從R1 至R6 中選取最大的紅色平均輝度值,從G1 至G6 中選取最大的綠色平均輝度值,從B1 至B6 中選取最大的藍色平均輝度值,例如分別為R3 、G3、B3 。則六個第一子區域的紅色通道的輝度增益分別為Kr1 =R3 /R1 、Kr2 =R3 /R2 、Kr3 =R3 /R3 、Kr4 =R3 /R4 、Kr5 =R3 /R5 、Kr6 =R3 /R6 。綠色通道的輝度增益分別為Kg1 =G3 /G1 、Kg2 =G3 /G2 、Kg3 =G3 /G3 、Kg4 =G3 /G4 、Kg5 =G3 /G5 、Kg6 =G3 /G6 。藍色通道的輝度增益分別為Kb1 =B3 /B1 、Kb2 =B3 /B2 、Kb3 =B3 /B3 、Kb4 =B3 /B4 、Kb5 =B3 /B5 、Kb6 =B3 /B6 。具體參看表1。To clearly illustrate the present invention provides a form of gain establishment method, see Figure 3, after first obtaining an original image I divided into a first sub-region 11 to six I 23, I 11 sequentially calculated to six I 23 The first red average luminance values R 1 to R 6 , the first green average luminance values G 1 to G 6 , and the first blue average luminance values B 1 to B 6 of the first sub-region pixels. Select the largest red average luminance value from R 1 to R 6 , select the largest green average luminance value from G 1 to G 6 , and select the largest blue average luminance value from B 1 to B 6 , for example, R respectively. 3 , G3, B 3 . Then, the luminance gains of the red channels of the six first sub-regions are respectively K r1 =R 3 /R 1 , K r2 =R 3 /R 2 , K r3 =R 3 /R 3 , K r4 =R 3 /R 4 , K r5 = R 3 / R 5 , K r6 = R 3 / R 6 . The luminance gain of the green channel is K g1 =G 3 /G 1 , K g2 =G 3 /G 2 , K g3 =G 3 /G 3 , K g4 =G 3 /G 4 , K g5 =G 3 /G 5 , K g6 = G 3 / G 6 . The luminance gain of the blue channel is K b1 =B 3 /B 1 , K b2 =B 3 /B 2 , K b3 =B 3 /B 3 , K b4 =B 3 /B 4 , K b5 =B 3 / B 5 , K b6 =B 3 /B 6 . See Table 1 for details.

請參閱圖4,為本發明提供的一種影像擷取裝置20,其包括一個影像獲取單元22,一個存儲單元24,一個中央處理單元26以及如上所述的增益表單建立單元10。所述影像獲取單元22用以獲取所述第一原始圖像及所述第二原始圖像。所述存儲單元24用以存儲從所述增益表單建立單元10輸出的所述紅色通道的輝度增益表單,綠色通道的輝度增益表單以及藍色通道的輝度增益表單。所述中央處理單元26以與所述區域劃分子單元12同樣的劃分形式將所述第二原始圖像劃分為與所述第一原始圖像劃分的第一子區域一致的多個第二子區域,分別計算出所述第二原始圖像的每個第二子區域像素的第二紅色平均輝度值Ri ’、第二綠色平均輝度值Gi ’以及第二藍色平均輝度值Bi ’,調用所述紅色通道的輝度增益表單、綠色通道的輝度增益表單以及藍色通道的輝度增益表單,將所述紅色通道的輝度增益表單中的紅色輝度增益Kri 乘以對應的所述每個第二子區域像素的第二紅色平均輝度值Ri ’以進行紅色通道輝度補償,將所述綠色通道的輝度增益表單中的綠色輝度增益Kgi 乘以對應的所述每個第二子區域像素的第二綠色平均輝度值Gi ’以進行綠色通道輝度補償,將所述藍色通道的輝度增益表單中的藍色輝度增益Kbi 乘以對應的所述每個第二子區域像素的第二藍色平均輝度值Bi ’以進行藍色通道輝度補償。Referring to FIG. 4, an image capturing device 20 according to the present invention includes an image capturing unit 22, a storage unit 24, a central processing unit 26, and a gain form establishing unit 10 as described above. The image acquiring unit 22 is configured to acquire the first original image and the second original image. The storage unit 24 is configured to store 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, which are output from the gain form establishing unit 10. The central processing unit 26 divides the second original image into a plurality of second sub-segments consistent with the first sub-region of the first original image division in the same division form as the region division sub-unit 12 a region, respectively calculating a second red average luminance value R i ', a second green average luminance value G i ', and a second blue average luminance value B i of each second sub-region pixel of the second original image ', calling the luminance gain form of the red channel, the luminance gain form of the green channel, and the luminance gain form of the blue channel, multiplying the red luminance gain K ri in the luminance gain form of the red channel by the corresponding each a second red average luminance value R i ' of the second sub-region pixels for performing red channel luminance compensation, multiplying the green luminance gain K gi in the luminance gain form of the green channel by the corresponding each of the second sub-pixels second green region pixel average luminance value of G i 'for green channel compensation luminance, the luminance of the blue luminance gain K bi form the blue channel gain is multiplied by the second sub-region corresponding to each of the image A second average luminance value of the blue color B i 'for a blue channel luminance compensation.

請參閱圖5,為本發明影像擷取裝置20調用增益表單對所述第二原始圖像進行補償的步驟流程圖:S116:獲取第二原始圖像。Please refer to FIG. 5 , which is a flowchart of the step of the image capturing device 20 in the present invention for compensating the second original image by using the gain form: S116: acquiring the second original image.

S118:以與所述區域劃分子單元12同樣的劃分形式將所述第二原始圖像劃分為與所述第一原始圖像劃分的第一子區域一致的多個第二子區域。S118: The second original image is divided into a plurality of second sub-regions that are consistent with the first sub-region of the first original image segmentation in the same division form as the region dividing sub-unit 12.

S120:分別計算出所述第二原始圖像的每個第二子區域像素的第二紅色平均輝度值Ri ’、第二綠色平均輝度值Gi ’以及第二藍色平均輝度值Bi ’,調用所述紅色通道的輝度增益表單、綠色通道的輝度增益表單以及藍色通道的輝度增益表單以進行三通道輝度補償。其中,具體補償方式如下:將所述紅色通道的輝度增益表單中的紅色輝度增益Kri 乘以對應的所述每個第二子區域像素的第二紅色平均輝度值Ri ’以進行紅色通道輝度補償。將所述綠色通道的輝度增益表單中的綠色輝度增益Kgi 乘以對應的所述每個第二子區域像素的第二綠色平均輝度值Gi ’以進行綠色通道輝度補償。將所述藍色通道的輝度增益表單中的藍色輝度增益Kbi 乘以對應的所述每個第二子區域像素的第二藍色平均輝度值Bi ’以進行藍色通道輝度補償。S120: respectively calculate a second red average luminance value R i ', a second green average luminance value G i ', and a second blue average luminance value B i of each second sub-region pixel of the second original image. ', call the red channel's luminance gain form, the green channel's luminance gain form, and the blue channel's luminance gain form for three-channel luminance compensation. The specific compensation manner is as follows: multiplying the red luminance gain K ri in the luminance gain form of the red channel by the corresponding second red average luminance value R i ' of each of the second sub-region pixels to perform a red channel Brightness compensation. Multiplying the green luminance gain K gi in the luminance gain form of the green channel by the corresponding second green average luminance value G i ' of each of the second sub-region pixels to perform green channel luminance compensation. Multiplying the blue luminance gain K b in the luminance gain form of the blue channel by the corresponding second blue average luminance value B i ' of each of the second sub-region pixels to perform blue channel luminance compensation.

本發明提供的影像擷取裝置及其增益表單建立單元與建立方法,利用計算出所述第一原始圖像的每個第一子區域的紅色輝度增益、綠色輝度增益以及藍色輝度增益分別形成紅色通道的輝度增益表單、綠色通道的輝度增益表單以及藍色通道的輝度增益表單,以供所述影像擷取裝置每次獲取圖像時調用上述表單而對圖像輝度補進行償,從而補償鏡頭遮蔽效應,保證成像品質。The image capturing device and the gain form establishing unit and the establishing method thereof are respectively configured to calculate a red luminance gain, a green luminance gain, and a blue luminance gain of each first sub-region of the first original image. The luminance gain form of the red channel, the luminance gain form of the green channel, and the luminance gain form of the blue channel, for the image capturing device to call the above form each time the image capturing device acquires the image to compensate for the image luminance compensation Lens shadowing effect to ensure image quality.

綜上所述,本發明確已符合發明專利要件,爰依法提出專利申請。惟,以上所述者僅為本發明之較佳實施方式,舉凡熟悉本案技藝之人士,於援依本案發明精神所作之等效修飾或變化,皆應包含於以下之申請專利範圍內。In summary, the present invention has indeed met the requirements of the invention patent, and has filed a patent application according to law. However, the above description is only the preferred embodiment of the present invention, and equivalent modifications or variations made by the person skilled in the art of the present invention should be included in the following claims.

增益表單建立單元...10Gain form creation unit. . . 10

區域劃分子單元...12Area division subunit. . . 12

平均值計算子單元...14Average calculation subunit. . . 14

選取子單元...16Select the subunit. . . 16

增益計算子單元...18Gain calculation subunit. . . 18

比較子單元...19Compare subunits. . . 19

影像擷取裝置...20Image capture device. . . 20

影像獲取單元...22Image acquisition unit. . . twenty two

存儲單元...24Storage unit. . . twenty four

中央處理單元...26Central processing unit. . . 26

圖1為本發明增益表單建立單元的模組圖。1 is a block diagram of a gain form building unit of the present invention.

圖2為本發明增益表單建立方法的步驟流程圖。2 is a flow chart showing the steps of a method for establishing a gain form according to the present invention.

圖3為圖1中增益表單建立單元劃分圖像的示意圖。FIG. 3 is a schematic diagram of the image obtained by the gain form establishing unit of FIG. 1. FIG.

圖4為本發明影像擷取裝置的模組圖。4 is a block diagram of an image capturing device of the present invention.

圖5為本發明影像擷取裝置調用增益表單的步驟流程圖。FIG. 5 is a flow chart showing the steps of the image capturing device calling the gain form according to the present invention.

增益表單建立單元...10Gain form creation unit. . . 10

區域劃分子單元...12Area division subunit. . . 12

平均值計算子單元...14Average calculation subunit. . . 14

選取子單元...16Select the subunit. . . 16

增益計算子單元...18Gain calculation subunit. . . 18

比較子單元...19Compare subunits. . . 19

Claims (5)

一種增益表單建立單元,其用以建立增益表單以補償由影像擷取裝置獲取的第一原始圖像及第二原始圖像,所述增益表單建立單元包括:一個區域劃分子單元,其用以將所述第一原始圖像劃分為多個第一子區域;一個平均值計算子單元,其用以分別計算出所述第一原始圖像的每個第一子區域像素的第一紅色平均輝度值、第一綠色平均輝度值以及第一藍色平均輝度值;一個選取子單元,其用以從所述多個第一紅色平均輝度值中選取最大的紅色平均輝度值,從所述多個第一綠色平均輝度值中選取最大的綠色平均輝度值,從所述多個第一藍色平均輝度值中選取最大的藍色平均輝度值;以及一個增益計算子單元,用以根據所述最大紅色平均輝度值與所述每個第一子區域像素的第一紅色平均輝度值,計算出每個第一子區域的紅色輝度增益以得出紅色通道的輝度增益表單,根據所述最大綠色平均輝度值與所述每個第一子區域像素的第一綠色平均輝度值,計算出每個第一子區域的綠色輝度增益以得出綠色通道的輝度增益表單,根據所述最大藍色平均輝度值與所述每個第一子區域像素的第一藍色平均輝度值,計算出每個第一子區域的藍色輝度增益以得出藍色通道的輝度增益表單,並輸出所述紅色通道的輝度增益表單、綠色通道的輝度增益表單以及藍色通道的輝度增益表單至所述影像擷取裝置中以供所述影像擷取裝置調用以對所述第二原始圖像進行補償。A gain form establishing unit 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 gain form establishing unit comprising: a region dividing subunit, configured to: Dividing the first original image into a plurality of first sub-regions; an average value calculation sub-unit for respectively calculating a first red average of each of the first sub-region pixels of the first original image a luminance value, a first green average luminance value, and a first blue average luminance value; a selection subunit configured to select a maximum red average luminance value from the plurality of first red average luminance values, from the plurality of Selecting a maximum green average luminance value from the first green average luminance values, selecting a largest blue average luminance value from the plurality of first blue average luminance values, and a gain calculation subunit for a maximum red average luminance value and a first red average luminance value of each of the first sub-region pixels, and calculating a red luminance gain of each of the first sub-regions to obtain a red channel luminance a gain form, calculating a green luminance gain of each first sub-region according to the maximum green average luminance value and a first green average luminance value of each of the first sub-region pixels to obtain a luminance gain form of the green channel Calculating a blue luminance gain of each first sub-region according to the maximum blue average luminance value and a first blue average luminance value of each of the first sub-region pixels to obtain a luminance of the blue channel a gain form, and outputting 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 for the image capturing device to call The two original images are compensated. 如申請專利範圍第1項所述之增益表單建立單元,其中,所述增益表單建立單元還包括一個比較子單元,其內預設有一個增益範圍,所述比較子單元用以比較所述每個第一子區域的紅色輝度增益是否在預設增益範圍內,每個第一子區域的綠色輝度增益是否在預設增益範圍內,以及每個第一子區域的藍色輝度增益是否在預設增益範圍內,若紅色輝度增益、綠色輝度增益、藍色輝度增益均在預設增益範圍內則輸出一個增益表單形成訊號,若紅色輝度增益、綠色輝度增益、藍色輝度增益任意一項未在預設增益範圍內則輸出一個清潔影像擷取裝置鏡頭及影像感測元件訊號。The gain form establishing unit according to claim 1, wherein the gain form establishing unit further comprises a comparing subunit, wherein a gain range is pre-set, and the comparing subunit is configured to compare each of the Whether the red luminance gain of the first sub-region 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 in advance 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 the red luminance gain, the green luminance gain, and the blue luminance gain are not selected. A clean image capture device lens and image sensing component signal are output within a preset gain range. 一種具有申請專利範圍第1項所述之增益表單建立單元的影像擷取裝置,其包括一個影像獲取單元,一個存儲單元以及一個中央處理單元,所述影像獲取單元用以獲取所述第一原始圖像及所述第二原始圖像,所述存儲單元用以存儲從所述增益表單建立單元輸出的所述紅色通道的輝度增益表單,綠色通道的輝度增益表單以及藍色通道的輝度增益表單,所述中央處理單元用與所述區域劃分子單元同樣的劃分方式將所述第二原始圖像劃分為與所述第一原始圖像劃分的第一子區域一致的多個第二子區域,分別計算出所述第二原始圖像的每個第二子區域像素的第二紅色平均輝度值、第二綠色平均輝度值以及第二藍色平均輝度值,調用所述紅色通道的輝度增益表單、綠色通道的輝度增益表單以及藍色通道的輝度增益表單,將所述紅色通道的輝度增益表單中的紅色輝度增益乘以對應的所述第二原始圖像的每個第二子區域像素的第二紅色平均輝度值以進行紅色通道輝度補償,將所述綠色通道的輝度增益表單中的綠色輝度增益乘以對應的所述第二原始圖像的每個第二子區域像素的第二綠色平均輝度值以進行綠色通道輝度補償,將所述藍色通道的輝度增益表單中的藍色輝度增益乘以對應的所述第二原始圖像的每個第二子區域像素的第二藍色平均輝度值以進行藍色通道輝度補償。An image capture device having a gain form creation unit according to claim 1 of the patent application, comprising an image acquisition unit, a storage unit and a central processing unit, wherein the image acquisition unit is configured to acquire the first original An image and the second original image, the storage unit is configured to store a luminance gain form of the red channel outputted from the gain form establishing unit, a luminance gain form of the green channel, and a luminance gain form of the blue channel The central processing unit divides the second original image into a plurality of second sub-regions that are consistent with the first sub-region of the first original image division by using the same division manner as the region division sub-unit Calculating a second red average luminance value, a second green average luminance value, and a second blue average luminance value of each second sub-region pixel of the second original image, respectively, and calling the luminance gain of the red channel The form, the luminance gain form of the green channel, and the luminance gain form of the blue channel, the red in the luminance gain form of the red channel The luminance gain is multiplied by a second red average luminance value of each second sub-region pixel of the corresponding second original image to perform red channel luminance compensation, and the green luminance gain in the luminance gain form of the green channel is multiplied Multiplying the blue luminance gain in the luminance gain form of the blue channel by the second green average luminance value of each second sub-region pixel of the corresponding second original image to perform green channel luminance compensation Corresponding a second blue average luminance value of each second sub-region pixel of the second original image to perform blue channel luminance compensation. 一種增益表單建立方法,所述增益表單建立方法包括以下步驟:獲取第一原始圖像;將所述第一原始圖像劃分為多個第一子區域;分別計算出所述第一原始圖像的每個第一子區域像素的第一紅色平均輝度值、第一綠色平均輝度值以及第一藍色平均輝度值;從所述多個第一紅色平均輝度值中選取最大的紅色平均輝度值,從所述多個第一綠色平均輝度值中選取最大的綠色平均輝度值,從所述多個第一藍色平均輝度值中選取最大的藍色平均輝度值;根據所述最大紅色平均輝度值與所述每個第一子區域像素的第一紅色平均輝度值,計算出每個第一子區域的紅色輝度增益,根據所述最大綠色平均輝度值與所述每個第一子區域像素的第一綠色平均輝度值,計算出每個第一子區域的綠色輝度增益,根據所述最大藍色平均輝度值與所述每個第一子區域像素的第一藍色平均輝度值,計算出每個第一子區域的藍色輝度增益;根據所述紅色輝度增益、綠色輝度增益以及藍色輝度增益分別形成紅色通道的輝度增益表單、綠色通道的輝度增益表單以及藍色通道的輝度增益表單;及輸出所述紅色通道的輝度增益表單、綠色通道的輝度增益表單以及藍色通道的輝度增益表單至所述影像擷取裝置中以供所述影像擷取裝置調用。A gain form establishing method, the gain form establishing method comprising: acquiring a first original image; dividing the first original image into a plurality of first sub-regions; respectively calculating the first original image 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; and a maximum red average luminance value from the plurality of first red average luminance values And selecting a largest green average luminance value from the plurality of first green average luminance values, and selecting a largest blue average luminance value from the plurality of first blue average luminance values; according to the maximum red average luminance Calculating a red luminance gain of each first sub-region according to the value and the first red average luminance value of each of the first sub-region pixels, according to the maximum green average luminance value and each of the first sub-region pixels a first green average luminance value, and calculating a green luminance gain of each of the first sub-regions, according to the maximum blue average luminance value and the first blue of each of the first sub-region pixels The average luminance value is calculated, and the blue luminance gain of each first sub-region is calculated; the luminance gain form of the red channel, the luminance gain form of the green channel, and the blue are respectively formed according to the red luminance gain, the green luminance gain, and the blue luminance gain a luminance gain form of the color channel; and a luminance gain form for outputting 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 capturing device to call. 如申請專利範圍第4項所述之增益表單建立方法,其中,在所述輝度增益計算步驟與所述增益表單形成步驟之間還包括一個比較步驟:比較所述每個第一子區域的紅色輝度增益是否在預設增益範圍內,每個第一子區域的綠色輝度增益是否在預設增益範圍內,以及每個第一子區域的藍色輝度增益是否在預設增益範圍內,若紅色輝度增益、綠色輝度增益、藍色輝度增益均在預設增益範圍內則輸出一個增益表單形成訊號,若紅色輝度增益、綠色輝度增益、藍色輝度增益任意一項未在預設增益範圍內則輸出一個清潔影像擷取裝置鏡頭及影像感測元件訊號。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 the red of each of the first sub-regions Whether the 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 red The luminance gain, the green luminance gain, and the blue luminance gain all output a gain form to form a signal within a preset gain range, and if any of the red luminance gain, the green luminance gain, and the blue luminance gain is not within the preset gain range, Output a clean image capture device lens and image sensing component signal.
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 TW200942017A (en) 2009-10-01
TWI382745B true 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)

Citations (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
TW200629905A (en) * 2005-02-05 2006-08-16 Via Tech Inc Sampling method of image data
TW200632529A (en) * 2005-02-15 2006-09-16 Hewlett Packard Development Co Camera exposure program coupled to image stabilization capability
TW200637353A (en) * 2005-04-08 2006-10-16 Benq Corp Photographing apparatus and compensating method used in the photographing apparatus
US20070159539A1 (en) * 2006-01-12 2007-07-12 Takuya Kotani Image processing apparatus, image processing method, and program

Patent Citations (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
TW200629905A (en) * 2005-02-05 2006-08-16 Via Tech Inc Sampling method of image data
TW200632529A (en) * 2005-02-15 2006-09-16 Hewlett Packard Development Co Camera exposure program coupled to image stabilization capability
TW200637353A (en) * 2005-04-08 2006-10-16 Benq Corp Photographing apparatus and compensating method used in the photographing apparatus
US20070159539A1 (en) * 2006-01-12 2007-07-12 Takuya Kotani Image processing apparatus, image processing method, and program

Also Published As

Publication number Publication date
TW200942017A (en) 2009-10-01

Similar Documents

Publication Publication Date Title
US8175378B2 (en) Method and system for noise management for spatial processing in digital image/video capture systems
KR100983037B1 (en) Method for controlling auto white balance
TWI557686B (en) Method and associated apparatus for correcting color artifact of image
US8970745B2 (en) Image processing device, image processing method and storage medium to suppress shading of images in which pixel addition processing is performed
TWI549511B (en) Image sensing apparatus and color-correction matrix correcting method and look-up table establishing method
JP2011101359A (en) Method of modeling integrated noise in image sensor and method of reducing noise using the same
TW201145993A (en) Adaptive lens shading correction
KR20110004646A (en) Lens shading correction method and apparatus
US20090251561A1 (en) System and method for adaptive local white balance adjustment
TWI670977B (en) Defective pixel compensation method and device
TWI638149B (en) Luminance measurement method, luminance measurement device, and image quality adjustment technique using the method and device
TWI823956B (en) Exchanging an hdr-combined stream and associated exposures between a camera sensor module and a vision processing system
JP2010177917A (en) White balance adjusting device, white balance adjusting method, and white balance adjusting program
JP6543067B2 (en) Projection system, projector device, imaging device, and program
TWI382745B (en) Image capturing device and setting unit and method for gaining tables thereof
TW201412135A (en) Image white balancing method and image capturing device using same
TW201642650A (en) Image correction system and method
CN101534450B (en) Image retrieving device, and unit and method thereof for establishing gain form
US20180152649A1 (en) Image processing apparatus, image pickup apparatus, image processing method, and storage medium
WO2022032666A1 (en) Image processing method and related apparatus
JP2015095811A (en) Image processing device and image processing method
US7262780B2 (en) Simple and robust color saturation adjustment for digital images
JP4779536B2 (en) Imaging device
US8154618B2 (en) Imaging apparatus and method for setting the same
TWI405144B (en) Image correcting method, image correcting unit and image capture apparatus using the same

Legal Events

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