200931342 .ΥΥΟΟΟΟΓΛ 九、發明說明: 【發明所屬之技術領域】 種可餘,,、 體容量之影像校正方法、影像校正單 熵記 取裝置。 及應用其之影像 本發明是有關於—種影像校正方法、影像校 應用其之影像擷取裝置,且特別是有關於—種及 憶 #1 Ο ❾ 【先前技術】 隨著科技的進步,消費者對影像擷取裝置之 提高,因此業界係不斷致力於影像處理技術,^目對 裝置之成像品質。其中,影像擷取裝像 像係由數個晝素所組成,此些晝素係以 =取之影 ^而四周部分較暗㈣題,使得 =份 如何將影像的亮度-致化,係為業界致力之方;^此, 性,八w之:像校正方法係根據鏡頭及光感測元件的特 巧傍二,5十算並儲存對應於多個畫素的增益值。之後影像 個查丄取|置所練之#彡像藉由此些增益值分別調整各 二:' 由於影像的陰影多為擴圓形,故增益值需错存於 恢體介°己_體中’因此傳統之影像校正方法需要大量之記 二間。如此一來,便提高影像影像擷取裝置之成本。 因此’如何提出一種影像校正方法、影像校正單元及 7 200931342 w jojor^. =::擷取裝置,以解決上述問題,實為目前研發 【發明内容] 有鑑於此,本發明係有關於— 校正單元及制其之影像擷取^種:像校正方法、影像 〇 〇 分晝素獲得多個代表基礎亮度校=據第—影像之部 之晝素將每個代表基礎亮度校I ’再根據第二影像 度校正係數。藉由此此枝矣4 *數謂整為代表優化亮 各個待調整晝 本發明之影像校正方法、影像校進:校正’使 數」及「有效地將影像4=需要之亮度校正係 根據本發明之—方面:^整為一致化」之優點。 用一第一影像及-第二種影像校正方法’係利 影像具有多個待調—目標影像之亮度。目標 第二影像具有多個第=素第2像具有多個第一晝素, 係由對應之此些第—書+之待調整晝素之校正資料 得。影像校正方法包括此些第二晝素之一獲 值;其次,根據部分之此::驟查:先,設定-預定亮度 個代表基礎亮度校正倾素及預定亮度值獲得多 些代表基礎真师接者’根據此些第二晝素將此 係數;然後多個代繼亮度校正 #式及此些代表優化党度校正係數 200931342 亮度校正二據每個晝素優化 根據本發明之另—方面,提出二二… 括-第-儲存單元、一第二儲一 #象权正單元,包 -第二運算單元。第—儲存‘二二運算單元及 晝素具有-色彩值。第二 堵存多個晝素,每個 ❹ 〇 权正係數’每個代表亮度校=儲存多個代表亮度 素。第一運算單元用 ’、、糸對應於部份之此些晝 應於每個畫素之一晝素多=代表亮度校正係數運算為對 每個晝素之色彩值及每個數。第二運算單元根據 素之一校正色彩值。 〃 杈正係數獲得每個晝 根據本發明之再—方面 一 括一影像感测單元、一与 出一種影像擷取裝置,包 空間轉換單元。;;像以二=補插… 像係以-貝爾圖樣配置並 用以擷取-影像。影 τ。影像校正單元用:校:::♦每個晝素具有-一弟-儲存單元、 t素之色彩值並包括 第二運算單元。第-:存=::-第-運算單元及-存早70用以館存多個代表哀戶枯绪存此些晝素。第二儲 正係數係對應於部份之::、正係數,每個代表亮度校 個代表亮度校正係數運算^靡。第一運算單元用以將每 度校正係數。第二為f應Γ每個畫素之一畫素亮 晝素亮度校正係數獲;個晝素之色彩值及每個 I之〜校正色彩值。色彩補 200931342 插單元用以將每個單一晝素色彩值補插為一三色值。色彩 空間轉換單元可用以將每個晝素三色值轉換出一對應的 亮度值。 為讓本發明之上述内容能更明顯易懂,下文特舉一較 佳實加例’並配合所附圖式,作詳細說明如下: 【實施方式】 〇 〇 第一實 睛同時參照第1、第2A、第2B及第3圖,第1圖繪 不依照本發明第一實施例之影像擷取裝置的主要功能方 塊圖,第2A圖繪示第一影像其部分第一晝素的示意圖, 第2B圖繪示第一影像之部分代表基礎亮度校正係數的示 意圖’第3圖㈣依照本發明第—實施例之影像校正方法 的流程圖。 〜於本實施例中,影像榻取裝置刚係根據一第一影像 及-預定亮度值^獲得多個代表基礎亮度校正係 ^獲^據此些絲麵亮度校正錄及—第二影像之亮 以=表優化亮度校正係數,再根據此些代表優化 校正一目標影像之亮度。如第1圖所示,影 至少包括一影像感測單元ιι〇、一職 ⑽::色彩補插單元130及一色彩空嶋 儲存單料丨21、—第二 干兀122、-第-運异旱元123及 124。影像擷取裝置100 4系為具,像㈣旦^一運异早70 ,、如像擷取影像功能之電子 200931342 裝置’例如是具照相功能之行動通訊裝置或影像數位擷取 裝置。 ❷ © 影像感測單元110用以擷取一晝面,並輸出以貝爾圖 樣(Bayer pattern)配置之第一影像)。第一影像具 有多個第一晝素,部分之第一晝素如、☆〇〜、 ‘1»及户和⑽心+和係繪示於第2A圖中。以貝爾圖樣配置 之第一影像%_中,每個第一晝素具有一像素值,例如是 紅色、綠色或藍色。為了獲得精確之亮度,第一影像較佳 地為一白色影像。白色影像例如是以影像感測單元ΐι〇於 正常的照明下,拍攝-白紙或—白色平面物而得。影像校 正單7L 12G 以儲存校正影像感測單元11G輸出之影像所 需之校正係數。在此為了要獲得第_影像之亮度,因此第 一影像係直接輸出至色彩補差單元13〇。 色彩補插單元130將以貝爾圖樣配置之第一影像 > =差為具’ R G B *像資料之第一影像‘ ’其中每個 i一田旦素同時具有紅色、綠色及藍色。色彩空間轉換單元 具有職影像資料之第一影像‘轉換成具有 ㈣之第1像其中每個第一晝素具有一亮 算出代表基礎亮度红錢μ值之後,便可計 係數儲存至影像校正單 、將此組絲基礎免度校正 代表基礎亮度校正係數 二第二儲存單元122。每個 之後,再藉由應於#份之第—晝素。 ‘衫像C5t〇w,其中第二影像<^_具 出以貝爾圖樣配置^第感測單元U〇擷取另一晝面,並輸 200931342 i yyjo^om 影像擷取裝置1〇〇 畫素具有-像素值。為了使 佳地為-彩色影像,、: 成之誤差。 早白色影像校正而造 影像校正單元120之第—儲存單 存第二影像t之第二畫+。第一U用以依序地儲 存於第二儲存單元122 二用以將儲 應於每個第二書♦之金去^基礎冗度权正係數運算為對 元m根據儲存亮度校正係數。第二運算單 及對應之晝素基礎亮度校:::=之像素值 樣配置之第二影像(〆㈣獲传权正後之以貝爾圖 13〇更=^彳_;^彡像^之後’色彩補差單元 一旦 、第一衫像°細〜補差為具有RGB影像資料之第 ,空間轉換單元14〇更用以將具有_影 ❹ 、厂 一衫像c〖Ge轉換成具有YUV影像資料之第一旦; ==於獲得校正亮度後之第二影像之後,、便J二 =礎免度校正係數調整為代表優化亮度校正係數,並 ' t組代表優化亮度校正係數儲存至影像校正單元120之 第一餘存單元122。 之後’影像感測單元110更用以摘取另一晝面,並輸 =5圖樣(Bayer pattern)配置之目標影像、至影 有二I:第單元121’其中目標影 一 m :旦素且每個待調整晝素具有一像素值。第 具單元123更用以將儲存於第二儲存單元122之代表 12 200931342 TW3838PA 優化亮度校正係數運算為對應於每個待難μ之金素 ,亮=正係數。第二運算單元124根據儲存於;一儲 存早疋m的待調整晝素之像素值及對應 校正係數,獲得校正後之以貝_樣配置之:;標=像 配η彩補差單元m更用以將校正後之以貝爾 〜豕補差為具有RGB影像資料之目 ’以 正目標影像之亮度。至於本實施例 e ο 正方法之主要步驟係以第3圖說明如下,同時並 搭配第2A及第2B圖之元件標號為例作說明。 本實施例之影像校正方法例如是利 =取行第3圖中之各個步驟,但並不以此 為限。此技倘域+具㈣常知識 法之可依據實際應用狀況進行 下主二首:,本實施例之影像校正方法至少包括以 要v驟。首先,如步驟(a)所示,設定 所示,根據第二佥^基礎党度校正係數。接著,如步驟(c) 多個代表優化將此些代表基礎亮度校正係數調整為 :係數。然後,如步驟⑷所示,根 優化亮度^正^代表優化亮度校正係數獲得多個晝素 化亮係數。二每個:調整晝素對應於每個晝素優 優化亮度校正係數#? r驟(e)所示,根據每個晝素 個步驟的實施方法係詳細說明如下儿度其中各 13 200931342 規格Mx#之第一影像包括多個區塊’使每個區塊對應 於部分之第一晝素及部分之待調整畫素。於本實施例中, 第一影像係以包括區塊、化w•及A.+U+1,且每個區 塊的大小係為wxw為例做說明,如第2A圖所示。請參照第 4圖,其繪示第3圖之步驟(b)的詳細流程圖。步驟(1})之 獲得多個代表基礎亮度校正係數之方法包括步驟(bl)及 (b2) °首先’如步驟(bl)所示,分別自第一影像之每個區 〇 塊中選擇一個第一晝素。接著,如步驟(b2)所示,分別根 據預定亮度值3^及選擇之第一晝素之亮度值獲得各個代 表基礎亮度校正係數。於本實施例中,區塊.之代表基礎 免度校正係數G«V係以等式(1)獲得: / 心 .................................等式(1 ) • 其中,〜·•㈣係為自區塊,y中所選擇之第一晝素 之 度值,、广 w <; #、。。〈州、且卜)、ww、 Mβ及6為正整數。 〇 於本實施例中,係分別自區塊化、式,州、5i+w及足.+1,/+1 選擇第一個第一晝素戽^、%_、尸_,’及^ 以獲得代表基礎亮度校正係數^、G, Μ、及Gi〜+1,即a=〇 且b=0,如第2A圖所示。於本實施例中,較佳地自第一晝 素中選擇最大亮度值作為預定亮度值^。 於上述步驟(bl)及(b2)之後,便可獲得每個代表基礎 焭度校正係數,並實施步驟(c)。接著,請參照第5圖, 其緣不第3圖之步驟(c)的詳細流程圖。步驟(c)之獲得多 個代表優化亮度校正係數之方法包括步驟(cl)〜(c3)。 200931342200931342 . 九 九 发明 发明 发明 发明 发明 发明 发明 发明 发明 发明 发明 发明 发明 发明 发明 发明 发明 发明 发明 发明 发明 发明 发明 发明 发明 发明 发明 发明 发明 发明 发明 发明 发明 发明 发明 发明 发明 发明BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to an image capturing method and an image capturing device for image processing, and particularly relates to a species and a memory #1 Ο ❾ [Prior Art] With the advancement of technology, consumption The improvement of the image capture device, the industry is constantly working on image processing technology, and the imaging quality of the device. Among them, the image capturing image system is composed of a number of elements, such as the image of the ^ and the darker part of the four (four) questions, so that = how to convert the brightness of the image, The industry is committed to; ^ this, sex, eight w: The correction method is based on the lens and the light sensing component's special tricks, and calculates and stores the gain values corresponding to multiple pixels. After that, the image is searched and placed. The #彡像 uses the gain values to adjust each of the two: 'Because the shadow of the image is mostly rounded, the gain value needs to be lost in the recovery body. Medium's traditional image correction method requires a lot of notes. As a result, the cost of the image capturing device is increased. Therefore, 'how to propose an image correction method, image correction unit and 7:31:31 jojor^. =:: capture device to solve the above problems, it is currently research and development [invention content] In view of this, the present invention is related to - correction The unit and the image of the system are selected: like the correction method, the image is divided into two parts to obtain the basic brightness of the school. According to the first part of the image, the unit will be based on the basic brightness of each unit. Two image degree correction coefficients. By means of the branch 4* number, the image correction method and image alignment of the present invention are optimized for each bright image to be adjusted: correcting the 'number of numbers' and "effectively correcting the image 4 = required brightness according to the present The aspect of the invention: the advantages of "consistent". Using a first image and a second image correction method, the image has a plurality of to-be-tuned-the brightness of the target image. The second image has a plurality of singular images, and the second image has a plurality of first pixels, which are obtained from correction data corresponding to the first book + the pixels to be adjusted. The image correction method includes obtaining the values of one of the second elements; secondly, according to the part:: a preliminary check: first, the set-predetermined brightness represents the basic brightness correction and the predetermined brightness value to obtain more representative basic teachers. The receiver's this coefficient according to the second elements; then a plurality of successive brightness corrections and these representative optimization degree correction coefficients 200931342 brightness correction data according to another aspect of the present invention, A second-two storage unit, a second storage unit, and a packet-second operation unit are proposed. The first-storage ‘two-two arithmetic unit and the morpheme have a-color value. The second block is to store a plurality of pixels, and each of the ❹ 权 positive coefficients 'each represents a brightness calibration = storing a plurality of representative luminances. The first arithmetic unit uses ‘, 糸 corresponds to the portion of the 昼 昼 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = The second arithmetic unit corrects the color value according to one of the primes.杈 杈 系数 获得 获得 获得 昼 昼 昼 昼 昼 昼 昼 昼 昼 昼 昼 昼 昼 昼 昼 昼 昼 昼 昼 昼 昼 昼 昼 昼 昼 昼 昼 昼 昼 昼 昼 昼 昼;; like two = patching... The image is configured in a Bell pattern and used to capture - images. Shadow τ. For the image correction unit: School:::♦ Each element has a -one-storage unit, a color value of t and includes a second operation unit. The first:: save =::- the first - arithmetic unit and - save the early 70 for the library to store a number of representatives of the mourning households to save these sorrows. The second positive coefficient corresponds to a part of::, a positive coefficient, and each of the representative luminances represents a brightness correction coefficient operation. The first arithmetic unit is used to correct the coefficient per degree. The second is f, which is one of the pixels of each pixel, and the luminance correction coefficient is obtained; the color value of each pixel and the corrected color value of each I. Color Complement The 200931342 plug-in unit is used to interpolate each single-color color value into a tri-color value. The color space conversion unit can be used to convert each of the pixel three color values out of a corresponding brightness value. In order to make the above-mentioned contents of the present invention more comprehensible, the following is a detailed description of the present invention and is described in detail below with reference to the accompanying drawings: [Embodiment] 2A, 2B, and 3, FIG. 1 is a block diagram showing the main functions of the image capturing device according to the first embodiment of the present invention, and FIG. 2A is a schematic diagram showing a portion of the first pixel of the first image. FIG. 2B is a schematic diagram showing a portion of the first image representing a basic brightness correction coefficient. FIG. 3 is a flowchart of an image correction method according to the first embodiment of the present invention. In the embodiment, the image reclining device obtains a plurality of representative basic brightness correction systems based on a first image and a predetermined brightness value, and obtains the brightness correction records of the silk surface and the brightness of the second image. The brightness correction coefficient is optimized by the = table, and the brightness of a target image is corrected according to the representative representations. As shown in FIG. 1 , the image includes at least one image sensing unit ιι〇, a job (10):: color interpolation unit 130, and a color space storage unit 、 21, a second cognac 122, and a Heterogenous elements 123 and 124. The image capturing device 100 4 is a device, such as (four), and an electronic device, such as an image-capturing electronic device. The 200931342 device is, for example, a camera-enabled mobile communication device or an image digital capturing device. ❷ © The image sensing unit 110 is configured to capture a face and output a first image configured in a Bayer pattern. The first image has a plurality of first pixels, and some of the first elements such as ☆ 〇 、, ‘1» and hu and (10) hearts + and are shown in Figure 2A. In the first image %_ configured in the Bell pattern, each of the first pixels has a pixel value, such as red, green or blue. In order to obtain accurate brightness, the first image is preferably a white image. The white image is obtained, for example, by image sensing unit ΐι under normal illumination, photographing - white paper or - white plane. The image correction sheet 7L 12G stores the correction coefficient required for correcting the image output from the image sensing unit 11G. Here, in order to obtain the brightness of the _th image, the first image is directly output to the color compensating unit 13A. The color interpolation unit 130 sets the first image > = difference configured in the Bell pattern to the first image ' ‘ having the image of the R G B * image, wherein each of the i-denams has red, green, and blue at the same time. The color space conversion unit has the first image of the job image data converted into the first image having (4), wherein each of the first pixels has a bright calculation representative of the basic brightness red money μ value, and then the coefficient is stored to the image correction list. The set of silk foundation exemption corrections represents the basic brightness correction coefficient two second storage unit 122. After each, then by the #份之第昼素. 'The shirt is like C5t〇w, in which the second image <^_ has the Bell pattern configuration ^ The sensing unit U draws another side, and loses 200931342 i yyjo^om Image capturing device 1〇〇 The prime has a - pixel value. In order to make the best image - color image, :: into the error. The first image of the second image t is stored in the first image storage unit 120. The first U is stored in the second storage unit 122 in order to calculate the gold-based basis weighting coefficient stored in each second book as the element m according to the stored brightness correction coefficient. The second operation list and the corresponding pixel base brightness:::= the second image of the pixel value sample configuration (〆(四) is transmitted to the right after the Bell Figure 13〇=^彳_;^彡^^ 'The color compensation unit once, the first shirt image is fine ~ the complement is the first with RGB image data, the space conversion unit 14 is used to convert the image with the _ shadow, the factory shirt image c to have YUV image data. Once; == after obtaining the second image after correcting the brightness, the J 2 = the base correction coefficient is adjusted to represent the optimized brightness correction coefficient, and the set of the representative brightness correction coefficient is stored to the image correcting unit 120 The first remaining unit 122. The image sensing unit 110 is further used to extract another side surface, and input the target image of the Bayer pattern configuration, and the image has two I: the first unit 121' The target image is one m: and each pixel to be adjusted has a pixel value. The unit 123 is further configured to calculate the representative brightness correction coefficient stored in the second storage unit 122 to correspond to each of the to-be-received 12 200931342 TW3838PA Difficult to μ gold, bright = positive coefficient. Second luck The unit 124 is configured according to the pixel value of the to-be-adjusted pixel and the corresponding correction coefficient stored in the storage unit, and is configured to be corrected in the shape of the pixel: the standard=image matching η color complementing unit m is used for correcting In the latter case, the brightness of the RGB image data is the brightness of the positive target image. As for the present embodiment, the main steps of the positive method are as follows in the third figure, and together with the 2A and 2B pictures. The component labeling method is described as an example. The image correcting method in this embodiment is, for example, the following steps in the figure 3, but is not limited thereto. This technique can be based on the domain + (4) common knowledge method. The actual application status is as follows: The image correction method of this embodiment includes at least a step. First, as shown in step (a), the setting is shown, and the coefficient is corrected according to the second base degree. , as in step (c), the plurality of representative optimizations adjust the representative basic brightness correction coefficients to: coefficients. Then, as shown in step (4), the root optimization brightness ^ positive^ represents the optimized brightness correction coefficient to obtain a plurality of elementary brightness coefficients. Two each: adjustment Corresponding to each of the prime quality optimization brightness correction coefficients #? r (e), according to the implementation method of each element step, the following image is detailed: each of the 13 200931342 specifications Mx# first image includes The plurality of blocks 'make each block correspond to a portion of the first pixel and a portion of the pixel to be adjusted. In this embodiment, the first image system includes a block, a w+, and an A.+U+ 1, and the size of each block is wxw as an example, as shown in Figure 2A. Please refer to Figure 4, which shows the detailed flow chart of step (b) of Figure 3. Step (1) The method for obtaining a plurality of representative base brightness correction coefficients includes steps (bl) and (b2) ° first, as shown in step (bl), respectively selecting a first element from each block of the first image. . Next, as shown in the step (b2), the respective representative base luminance correction coefficients are obtained based on the predetermined luminance values 3^ and the luminance values of the selected first pixels, respectively. In the present embodiment, the representative base exemption correction coefficient G«V of the block is obtained by the equation (1): / heart.................... .............equation (1) • Where, ~·•(4) is the self-block, the value of the first element selected in y, and wide w <;#,. . <State, and Bu), ww, Mβ, and 6 are positive integers. In the present embodiment, the first first 昼 戽 ^, % _, 尸 _, ' and ^ are selected from the block, the state, the state, the 5i+w and the foot. +1, / +1 respectively. The representative base luminance correction coefficients ^, G, Μ, and Gi +1 are obtained, that is, a = 〇 and b = 0, as shown in FIG. 2A. In the present embodiment, the maximum brightness value is preferably selected from the first element as the predetermined brightness value. After the above steps (b1) and (b2), each representative base temperature correction coefficient is obtained, and step (c) is carried out. Next, please refer to Fig. 5, which is not the detailed flowchart of step (c) of Fig. 3. The method of obtaining a plurality of representative optimization brightness correction coefficients in the step (c) includes the steps (cl) to (c3). 200931342
i WJ8J8t*A 首1 ’如步驟(Gl)所示’以雙線性内插法⑽i酿 ⑽聊㈤⑽)自部狀絲基礎亮奸 :晝素基礎f校正係數。由於第二儲存單 由母個區塊中選擇之第—晝素所獲得之代表基礎亮度校 正係數,如代表基礎亮度校正係數心、G、 , ❹ ❹ 第—晝素的晝素基礎*度:心數,:藉 由雙線性内插法計算而得。未被選擇之第—晝素例如為第 2B圖:所繪示之第—晝素“”。以下係以雙線性内差 法計异出第-晝素之畫素基礎亮度校正係數 公做說明。 如第2A及第2B圖所示,區塊5 之代表基礎亮度校; / 5叫及化_ 食去ρ 、ρ仅正係數^心、丨、G〜及%,y+1分別由第一 旦’、//«’; m 丨 m’(7+1)、、户(i+Ι» 及 P(W)*w,㈤獲得。第一晝素 ^^位於第一晝素U及第一晝素心之邊上旦,’、 ^二,之晝素基礎亮度校正係數〜係由等 式(2)獲得: 义'〜+21*6 ........................等式(2) 一食^ P卜第晝素户㈣·—〆系位於第—晝素户㈣·及第 、、, 之·邊上第旦素之晝素基礎亮肩 校正係數知係由等式(3)獲得: 尸m+y = —s}L^n , y ..... .. % *Gi+i.+_#Gi+1J+1 ...................等式(3) 於獲得第一晝素之晝素基礎亮度校正係數 尽,m,/ m+y及第晝素户㈣之晝素基礎亮度校正係數 如》”後,係可根據等式(4 )獲得第一晝素~之 200931342 > i*/w+jc,/*m+少·i WJ8J8t*A first 1 ' as shown in step (Gl) 'by bilinear interpolation (10) i brewed (10) chat (five) (10)) from the genital silk foundation eclipse: 昼 基础 basic f correction coefficient. Since the second storage list is obtained by the first element selected from the parent block, the representative basic brightness correction coefficient, such as the base brightness correction coefficient heart, G, , ❹ ❹ 昼 - 昼 昼 : : : :: Number of hearts, calculated by bilinear interpolation. The unselected first element is, for example, Figure 2B: the first element shown in the figure. The following is a description of the pixel-based luminance correction coefficient of the first-halogen element by the bilinear internal difference method. As shown in Figures 2A and 2B, block 5 represents the base luminance; / 5 calls and _ 食 ρ, ρ only positive coefficients ^ heart, 丨, G~ and %, y+1 are respectively Dan ', / / « '; m 丨 m ' (7 + 1), household (i + Ι » and P (W) * w, (five) obtained. The first element ^ ^ is located in the first element U and On the edge of a heart, the ', ^ two, the basic brightness correction coefficient of the element is obtained by the equation (2): meaning '~+21*6 ............ ............equipment (2) One food ^ P Bu Di Yu Su household (four) · - 〆 is located in the first - 昼素 household (four) · and the first, the, the side of the first The prime base correction coefficient is obtained by equation (3): corpse m+y = —s}L^n , y ..... .. % *Gi+i.+_#Gi+ 1J+1 ................... Equation (3) is obtained by obtaining the first pixel's base luminance correction coefficient, m, / m+y and After the prime base brightness correction coefficient of Susiehu (4) is "", the first element can be obtained according to equation (4)~200931342 > i*/w+jc, /*m+ less
:〇-. X i*mJ*m+y * S(i+\)*mj*m+y * * * · · · 利用上述方法,即可獲得每個第—晝素之晝 正係數。 柱古v ^(C2)所示’根據第二晝素及此些晝素基 礎壳又校正係數設定亮度加權係數,。於此步驟中,亮度 加權錄,之設定方法係說明如下。首先,將以貝爾圖樣 配置之弟—影像、之每個第二畫素的色彩值,一 一乘以 晝素基礎亮度校正係數’以獲得校正亮度後之以貝 爾圖樣配置之第二影像。之後,將校正亮度後之以貝 爾圖樣配置之第二影像I輸出至色彩補插單幻3〇,以 獲得,有RGB影像資料之第二影像‘。接著,將具有職 影像貧料之第二影像‘輸出至色彩空間轉換單元14〇,以 獲得具有YUV影像資料之第=影像‘。於獲得具有谓 ❹ 晝素基礎亮度校正係數反 ……等式(4) 素基礎亮度校 影像資2之第二影像‘後,便可依據整張第二影像心所 呈現之壳度,設定亮度加權係數/。 然後如步驟(c3)所示,根據亮度加權係數/將代表 基礎党度%c正係數調整為代表優化亮度校正係冑,例如將 第2\圖巾所㈣之代表基礎亮度校正係數%_難為代表 優化受度杈正係數G,·".。於本實施例中,代表基礎亮度校正 係數調整為代表優化亮度校正係數^^係以等式(5 *:〇-. X i*mJ*m+y * S(i+\)*mj*m+y * * * · · · Using the above method, the positive coefficient of each 第-昼 can be obtained. The column ancient v ^ (C2) shows the brightness weighting coefficient according to the second element and the basis of the halogen element. In this step, the brightness weighting recording method is described as follows. First, the color value of each of the second pixels in the Bell pattern configuration, the color value of each of the second pixels, is multiplied by the pixel base luminance correction coefficient' to obtain a second image in a Bayer pattern after correcting the luminance. Then, the second image I in the Bayer pattern after the correction of the brightness is output to the color patching single illusion 3〇 to obtain the second image ‘with the RGB image data. Next, the second image having the job image poor material is output to the color space conversion unit 14A to obtain the first image having the YUV image data. After obtaining the second image of the basic brightness correction coefficient of the equation (4), the brightness can be set according to the shell degree of the entire second image heart. Weighting factor /. Then, as shown in step (c3), according to the brightness weighting coefficient/the representative base party degree %c positive coefficient is adjusted to represent the optimized brightness correction system, for example, the representative base brightness correction coefficient %_ of the 2nd towel (4) is difficult to be Represents the optimization of the degree of positive coefficient G, ·". In this embodiment, the representative base brightness correction coefficient is adjusted to represent the optimized brightness correction coefficient ^^ by the equation (5 *
G = /U) + 1........................等式(5) 每個代表基礎亮度校正餘冑可_齡方法調整為代 200931342 表優^度校正係數,並儲存於第二儲存單幻22令。 亮度校正之後’便可獲得每個代表優化 中,係以雔㈣ ⑷。於本實施例之步驟⑷ 得此也書it =自部份之代錢化亮度校正係數獲 之步驟(⑴,因'糸數。其操作原理係類似於上迷 ;因此不再加以贅述。 ❹ ❹ 數,ΓΐίΓ驟⑷之後’便可獲得晝素優化亮度校正係 步驟(e)。於本實施例之步驟( 正,調彩值及對應之畫素優化亮度校 標影像I。更進-步來說,校正亮度後之K象t之目 獲得方法,係將以貝爾圖樣配置之目 ;^象:的 《獲得校正亮度後之以貝爾圏樣配=;,係 更則 义正冗度後之以貝爾圖樣配置之* 之目“像I,以完成校正目標影像之亮度。貝科 此外,如第1圖所示,影像擷取 括一第三儲存單元125及 2較么地更包 ⑶。當待調整晝素依序地儲存取控制器(職) 直接記憶體存取控彻126將第—運算單, 份代表優化亮度校正係數由第 〜 斤品之部 儲存單元125。藉此,第一運存=122傳送至第三 元125館存之代表優化 =3翁第三儲存單 係數,以將代表優化亮度 200931342 i 校正係數運算為書 例中,第一錯存單91免度校正係數。再者,於本實施 first out,FIFO)^六車父佳地為先進先* (first in 為了節省儲存:器,以依序地儲存待調整晝素。 e ❹ 間,於本實施例中二之:二1存單元122之空 二維等距之間_ _、/ =資料之第—影像^以 中選擇一個第一全I 、,、、、固區塊,再分別自每個區塊 算出代表此區塊據選擇之第—畫素之亮度值計 亮度校正係數係錯=礎=?正係數。此些代表基礎 f亮度校正係數係為校辛且之每::表基 校正係數。未_擇之—畫素之党度值的 數,係可依摅i Α 旦素之晝素基礎亮度校正係 亮度校lit鄰狀Β個被轉n素之代表基礎 -影像邊界上“雙Ϊ:内算而得。此外’位於第 晝素之問,m弟旦素 此不位於四個被選擇之第一 之第—佥去此需要額外少數個校正係數以計算位於邊界 基礎亮度以_。以域 則不需儲力 衫像為例,右以大小為之區塊劃分, ㈣/料個校正係數,而只需错存(鄭仏+ 1)〜 單元個校正係數H,大小可視第二儲存 低儲存校正係:之容量大小而定。如此-來,玎大幅地降 正係數所需之記憶體空間。 本實施例之影像校正方法、影像校正單元及應用其之 200931342 影像擷取裝置與前述依照本發明第一實施例不同之處在 於,本實施例更依攄晝素優化亮度校正係數及一第二严 之色彩,校正每個待調整晝素之色散。其餘相同之處= 再加以資述。 由於影像感測單元中,鏡頭之曲面所產生光線折射 致感測元件陣列受光不平均,使感測元件陣列對於紅色 光、綠色光及藍色光具有不同的感光效果。因此,於本 ❹施例中較佳地再藉由第三影像校正目標影像之色散)以^ 目標影像具有較佳之色彩。 凊參照第6及第7圖,第β圖緣示依照本發明第_银 施例之影像擷取裝置的主要功能方塊圖,第7圖繪示仗= 本發明第二實施例之影像校正方法的流程圖。影像掏 置200與第一實施例之影像擷取裝置1〇〇的不同之處在t 於’影像擷取裝置200更包括一第四儲存單元227 &一多 =器228及一第三運算單元229。於第一實施例所述之「ς 〇 得代表優化亮度校正係數並儲存至影像校正單元之第二又 儲存單元」之後,本實施例之影像感測單元210更用以擷 取另晝面,並輸出以貝爾圖樣配置之第三影像c〗至影 ,扠正單元22〇。第三影像較隹地為—彩色影像,且第 三影像較佳地不同於第二影像第三 弟二至素,且每個第三晝素具有一色彩值。 接著,校正影像單元220之第一儲存單元221更用以 序地儲存第三影像心之第三晝素。第-運算單元223 用以將儲存於第二儲存單元222之代表優化亮度校正係 200931342G = /U) + 1........................ Equation (5) Each representative base brightness correction emancy can be adjusted to Generation 200931342 table optimization degree correction coefficient, and stored in the second storage single magic 22 orders. After the brightness correction, you can get each representative optimization, which is 雔 (4) (4). In the step (4) of this embodiment, the book is also the step of obtaining the brightness correction coefficient from the part ((1), because of the 'number of turns. The operating principle is similar to the above; therefore, it will not be described again. ❹ ❹ Γΐ , , , , , , , , , , , , , , ' 优化 ' ' ' ' ' 优化 优化 优化 优化 优化 优化 优化 优化 优化 优化 优化 优化 优化 优化 优化 优化 优化 优化 优化 优化 优化 优化 优化 优化 优化 优化 优化 优化 优化 优化 优化 优化 优化 优化 优化 优化 优化 优化In other words, the method of obtaining the K image t after correcting the brightness is to be configured in the shape of the Bell pattern; the image of the image is obtained after the correction brightness is obtained. In the case of the Bell pattern, the image "I" is used to correct the brightness of the target image. Beco In addition, as shown in Fig. 1, the image capture includes a third storage unit 125 and 2 (3) When the parameter to be adjusted is stored in the controller, the direct memory access control 126 will be the first operation unit, and the portion represents the optimized brightness correction coefficient from the storage unit 125 of the first product. The first shipment = 122 transmission to the third element 125 library representative optimization = 3 Weng third storage Coefficient, in order to calculate the optimized brightness 200931342 i correction coefficient as the first example, the first error list 91 exemption correction coefficient. Again, in this implementation first out, FIFO) ^ six car father is the advanced first * (first in In order to save the storage device, the pixels to be adjusted are sequentially stored. e ❹, in the second embodiment of the present embodiment: the empty two-dimensional equidistant between the two storage units 122 _ _, / = the first of the data - The image ^ selects a first all-I, ,,, and solid block, and then calculates the brightness value of the first-order pixel based on the selected block from each block, and the brightness correction coefficient is wrong = base = Positive coefficient. These represent the basic f brightness correction coefficient is the school symplectic and each:: table correction coefficient. The number of the party value of the _ _ _ _ _ _ _ _ _ _ _ _ _ _ The basic brightness correction system is the basis of the brightness of the lit-right 邻 被 被 被 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - The first of the choices - this requires an additional few correction factors to calculate the brightness at the boundary base with _. The domain does not need the storage shirt image as an example, the right is divided by the size of the block, (4) / material correction coefficient, but only the wrong (Zheng Zheng + 1) ~ unit correction coefficient H, the size can be seen as the second storage The low storage calibration system is determined by the size of the memory. In this way, the image correction method, the image correction unit, and the 200931342 image capturing device using the same are provided. According to the first embodiment of the present invention, the difference is that the luminance correction coefficient and the second strict color are optimized according to the pixel, and the dispersion of each pixel to be adjusted is corrected. In the image sensing unit, the light refracting caused by the curved surface of the lens causes the sensing element array to receive light unevenly, so that the sensing element array has different sensitizing effects for red light, green light and blue light. Therefore, in the embodiment, the dispersion of the target image is preferably further corrected by the third image to have a better color. Referring to FIGS. 6 and 7, the figure β shows the main function block diagram of the image capturing device according to the first embodiment of the present invention, and FIG. 7 shows the image correction method according to the second embodiment of the present invention. Flow chart. The image capturing device 200 differs from the image capturing device 1 of the first embodiment in that the image capturing device 200 further includes a fourth storage unit 227 & a multi-device 228 and a third operation. Unit 229. The image sensing unit 210 of the present embodiment is further configured to capture another surface after the second embodiment of the present invention is used to represent the optimized brightness correction coefficient and is stored in the second storage unit of the image correcting unit. And outputting the third image c 〗 in the Bell pattern to the shadow, the fork unit 22 〇. The third image is a color image, and the third image is preferably different from the second image, and each third pixel has a color value. Then, the first storage unit 221 of the corrected image unit 220 is further configured to sequentially store the third element of the third image center. The first operation unit 223 is configured to optimize the brightness correction system stored in the second storage unit 222.
1 Wj838 尸A 應!^個第三晝素之晝素優化亮度校正係 的第三晝素之像素值及對應之晝素優化真产H早凡22! 得校正亮度後之以貝爾圖樣配置之 =&係數,獲 c2於獲得校正亮度後之以制圖樣像 之後’色杉補差單元23〇更用以將第三 , .為^腳影像資料之第三影像仏。之後,,便可=撼補差 二影像‘所呈現之色彩,分職定、據第 ^加權係數尸及-藍加權係〜,並儲存於第四儲ς、單一元 ❹ 之後㈣倾mb權係數广 以輸出以貝爾圖樣解元_ 、之每個待調整晝素依序地= 象至 =並將目標影像 第一儲存單元22卜第—運算單正早70 220之 二儲存單元222之代表優化真奸更用以將儲存於第 個待調整晝素之晝素優化亮:二算,應於每 及對應之晝素優化亮素值 爾圖樣配置之目標影像^。 &于枚正冗度後之以貝 之待ίί書用―以根據儲存於第一儲存單元221 數,Λ、綠加權係數::或存單元227選取紅加權係 用以根據第二運算單元;'24=^。第三運算單元229 224计算出之校正亮度後之以貝爾 20 2009313421 Wj838 尸尸A!^ The third pixel of the element is optimized for the brightness of the third pixel of the brightness correction system and the corresponding elemental optimization of the real product H is earlier 22! After adjusting the brightness, the Bell pattern is configured. The =& coefficient, obtained by c2 after obtaining the corrected brightness, is used to make the image image, and then the third color image is the third image of the image data. After that, the color that can be represented by the 撼 撼 二 影像 影像 , , , , , , , 、 、 据 据 据 据 据 据 据 据 色彩 色彩 色彩 色彩 色彩 色彩 色彩 色彩 色彩 色彩 色彩 色彩 色彩 色彩 色彩 色彩 色彩 色彩 色彩 色彩 色彩 色彩 色彩The output of the storage unit in the Bell pattern is _, each of the pixels to be adjusted sequentially = image to = and the target image first storage unit 22 is the first operation unit 270 is the representative of the storage unit 222 The sinister is used to optimize the element stored in the first element to be adjusted: the second calculation, the target image of the illuminant value pattern should be optimized for each and every corresponding element. & After the continuation of the sufficiency, the book is used to select the red weighting system according to the number of the first storage unit 221, Λ, green weighting coefficient: or storage unit 227 for the second computing unit. ;'24=^. The third operation unit 229 224 calculates the corrected brightness after the Bell 20 200931342
TW3838PA 圖樣配置之目標影像U的待調整晝素,及多工器228所 選取之紅加㈣數广綠加權係數/G或藍加權係數广,獲 得校正色彩後之以關圖樣配置之目標影像。接著,色彩 補插單元230更用以將校正色彩後之以貝爾圖樣配置之目 標影像’補差為具有腳影像#料之目標影像^,以完 成校正目標影像之色散。本實施例之影像校正方法之主要 步驟係以第7圖說明如下。 Ο ❹ 如第7圖所示,本實施例之影像校正方法至少包括以 :主要步驟。本實施例之影像校正方法例如是利用第6圖 中之影像擷取|置·來執行第7圖中之各個步驟,但並 f正太ί限半此技術領域中具有通常知識者應可明瞭影像 Li 驟及順序亦可依據實際應用狀況進行修飾 首先,如步驟(a)所示’設定預 如步驟⑹所示,根據部分之第—晝素值;;人, 獲得多個代表基礎亮度校正係數技1 儿又赚一 =第二晝素將此些代表基礎亮度二:;)=, 代表優化亮度校正係數。然 係數膽為夕個 度$正係數。之^母個待調整晝素對應於每個晝素優化亮 其卢和正仙::如步驟(f)所示’依據每個晝素優化 權°二=及第三晝素’分別設定紅加權係好、綠加 “儿又杧正係數权正每個待調整晝素的亮 200931342 i. wj〇j〇r/v 1蚩接著,如步驟(g)所示,依據校正亮度後之每個待調 I旦2及紅加權係數产、綠加權係數尸或藍加權係數产, 校正每個待調整畫素之色散。 本實施例之步驟(a)〜(d)及步驟(e)係與第一實施例 之步驟(a)〜(d)及步驟(e)相同,因此不再加以贅述。接 著’將步驟(f)及步驟(g)的實施方法詳細說明如下。 請參照第8圖,其繪示第7圖之步驟(f)的詳細流程 ❹ 圖。步驟(f)之設定紅加權係數/Λ、綠加權係數尸及藍加 權係數广之方法包括步驟(Π)及(f2)。首先,如步驟(fl) 所不,依據每個第三畫素之色彩值及每個晝素優化亮 度校正係數,獲得校正亮度後之第三影像。也就是說", 將以貝爾圖樣配置之第三影像(:〗_之每個第三晝素的色彩 • 值,一—乘以對應之晝素優化亮度校正係數,以獲得校正 ,度後之以貝爾圖樣配置之第三影像〇〗。_。之後,將校正 免度後之以貝爾圖樣配置之第三影像^輸出至色彩補 ❹ 插單元230,以獲得具有RGB影像資料之第三影像c^。 μ〜接著,如步驟(f2)所示,依據校正亮度後之第三影像 设定紅加權係數产、綠加權係數尸及藍加權係數广。設定 紅加權係數、綠加權係數尸及藍加權係數广之判斷依 據,例如是根據整張第三影像所呈現之色彩而設定。 於上述设疋紅加權係數产、綠加權係數尸及藍加權係 數r之步驟⑴)及(f2)後,便實施步驟(e),根據每個畫 素優化亮度校正係數校正每個待調整晝素的亮度。之後, 便實施步驟(g)。請參照第9圖,其緣示第7圖之步驟(g) 22 200931342The TW3838PA pattern configuration target image U to be adjusted, and the multiplexer 228 selects the red plus (four) number wide green weighting coefficient / G or blue weighting coefficient is wide, and obtains the target image of the closed pattern configuration after correcting the color. Then, the color interpolation unit 230 is further configured to compensate the target image of the Bell pattern after the correction color to the target image having the image of the foot image to complete the dispersion of the corrected target image. The main steps of the image correction method of this embodiment are explained below with reference to Fig. 7. ❹ ❹ As shown in FIG. 7, the image correction method of this embodiment includes at least: a main step. The image correction method of this embodiment performs the steps in FIG. 7 by using image capture in FIG. 6, for example, but f is too limited to half the technical person in the technical field should be able to understand the image. Li sequence and sequence can also be modified according to the actual application. First, as shown in step (a), the setting is as shown in step (6), according to the part of the first-------- Technique 1 earns another = second element, which represents the basic brightness two: ;) =, represents the optimized brightness correction factor. However, the coefficient is biliary for a positive value of $. The mother's parent to be adjusted corresponds to each elemental optimization brightening and sacred:: as shown in step (f), 'based on each element optimization right °== and the third element' respectively set the red weight Fasten, green plus "children's positive coefficient right now every bright to be adjusted 200931342 i. wj〇j〇r/v 1蚩 Next, as shown in step (g), according to the corrected brightness To adjust the I-density 2 and red weighting coefficient production, green weighting coefficient corpse or blue weighting coefficient production, correct the dispersion of each pixel to be adjusted. Steps (a) ~ (d) and step (e) of this embodiment Steps (a) to (d) and step (e) of the first embodiment are the same, and therefore will not be described again. Next, the method of implementing steps (f) and (g) will be described in detail below. Please refer to Fig. 8. , which shows the detailed flow chart of step (f) of Fig. 7. The method of setting the red weighting coefficient / Λ, green weighting coefficient corpse and blue weighting coefficient in step (f) includes steps (Π) and (f2) First, if step (fl) does not, according to the color value of each third pixel and each pixel optimized brightness correction coefficient, the corrected brightness is obtained. The third image, that is, ", will be the third image configured in the Bell pattern (: _ _ the color of each third element • value, one - multiplied by the corresponding pixel optimized brightness correction coefficient to obtain After the correction, the third image of the Bell pattern is set to _. After that, the corrected third image of the Bell pattern is output to the color interpolation unit 230 to obtain the RGB image data. The third image c^. μ~ Next, as shown in step (f2), the red weighting coefficient is generated according to the corrected third image, and the green weighting coefficient is wide and the blue weighting coefficient is wide. Setting the red weighting coefficient, green The basis for judging the weighting coefficient corpse and the blue weighting coefficient is, for example, set according to the color presented by the entire third image. Step (1) of setting the blush weighting coefficient, the green weighting coefficient corpse and the blue weighting coefficient r After (f2), step (e) is carried out, and the brightness of each pixel to be adjusted is corrected according to each pixel optimized brightness correction coefficient. Thereafter, step (g) is carried out. Please refer to Fig. 9, the Step 7 of the figure (g) 22 200 931342
TW3838PA 的詳細流程圖。步驟(§)之校正每 方法包括步驟(gl)〜U4)。 '凋素之色彩之 晝素之色彩。其中,若待調避素=目標影像之待調整 步驟⑽;若待調整晝素 ^ 為紅色,則實施 (g3);若待調整晝素之=、、表色’則實施步驟 於步驟⑽中,根據校正亮度後== ⑷。 權係數广獲得校正色彩後之待調匕:,素及紅加 ❹ ❹ 校正色彩後之待調整晝辛。於jf、4加權係數/°,獲得 後之待調整晝素及藍加權係數;正:據校正亮度 整晝素。之後,將校正色彩後之以^杈正色彩後之待調 像輸出至色彩補插單元23(), _配置之目標影 之該目標影像。於上述步驟之後二1Γ影像資料 之色散。 你可元成校正目標影像 揭露之影像對於本實施例所 裝置’更具有校正目標影像之二 =,明較佳實施例之影像校正方法 影像校正單 η應用C裝置,至少包括以= 係數,其度校正 正係數,如此-來,可有效地節度权 23 200931342 校可應用科同之影像擷取裝置」。本發明之影像 „ 去係可根據各個影像擷取裝置獲得適用於此感測 2代表亮度校正係數,藉此以應用於不同之影像梅取裝 第第=「有效t輕亮度」。目標影像餘縣—影像及 一衫以杈正壳度,並依據每個晝素的位置分別給 5之增益值。因此,可有效地調整亮度。 生確之校正資料」。藉由第—影像及第二影像產 又貝料’可避免僅由單—影像進行校正可 差’因此「本發明之影像校正方法可獲得精確之校正資料。 事傻Λ 4改善色散問題」。根據第三影像之晝素校正目標 ^。色散,使目標影像之各個待調整晝素具有較佳之色 〇 上,二1’雖然本發明已以兩例較佳實施例揭露如 有通常^者用本發明。本發日績屬技術領域中具 知财,衫崎本發明之 各種之更動與潤飾。因此,太恭日…和軌圍β田了作 申請專利侧所界定=準本發明之保護_當視後附之 24 200931342 TW3838PA 【圖式簡單說明】 貫施例之影像#貞取装置^ 第1 的主要功能方塊圖 第2A圖繪示第-影像其部分第—晝素的示意圖 正係數 第2B圖繪示第一影像之部分代表基礎亮度校 的示意圖;Detailed flow chart of TW3838PA. The calibration of step (§) includes each step (gl)~U4). 'The color of the color of the prime. Wherein, if the to-beaze = target image to be adjusted step (10); if the element to be adjusted is red, then (g3); if the pixel is to be adjusted, and the color is 'step', the step is performed in step (10) , according to the corrected brightness == (4). The weight coefficient is widely obtained after the correction of the color: 素 and red plus ❹ ❹ The color to be adjusted after correction of the color. After jf, 4 weighting coefficient / °, obtain the pixel and blue weighting coefficient to be adjusted; positive: according to the corrected brightness. After that, the image to be modulated after the color correction is output to the color interpolation unit 23(), and the target image of the target image is configured. The dispersion of the image data after the above steps. You can correct the image of the target image to be corrected. For the device of the embodiment, the image correction method of the preferred embodiment is the same as the image correction method of the preferred embodiment. The image correction method η applies the C device, at least including the = coefficient. Correct the positive coefficient, so that it can effectively adjust the power of the 23rd 200931342 school can be applied to the same image capture device. The image of the present invention „ can be obtained according to each image capturing device and is suitable for this sensing. 2 represents a brightness correction coefficient, so as to be applied to different image pickups, the first = "effective t light brightness". The target image is Yuxian—the image and the one-shirt are squared, and the gain value of each is given according to the position of each element. Therefore, the brightness can be effectively adjusted. Raw correction data." By using the first image and the second image to produce a material, it is possible to avoid correction by only the single image. Therefore, "the image correction method of the present invention can obtain accurate correction data. Stupidity 4 improves the dispersion problem". The target is corrected according to the pixel of the third image. The dispersion causes the individual pixels of the target image to have a better color, and the present invention has been disclosed in the preferred embodiment of the present invention. This is a technical achievement in the field of technology, and the various changes and retouchings of the invention. Therefore, too Gongri... and the rail circumference of the beta field as defined by the patent side = the protection of the invention _ when attached to the 24th 200931342 TW3838PA [simple description of the diagram] the image of the implementation of the example # extraction device ^ The main function block diagram of Fig. 2A is a schematic diagram showing a part of the first image of the first image. The positive coefficient of the second image shows a schematic diagram of the portion of the first image representing the basic brightness;
第3圖繪示依照本發明第一實施例之影像校正方法 的流程圖; 第4圖繪示第3圖之步驟(b)的細部步驟流程圖; 第5圖繪示第3圖之步驟(c)的細部步驟流程圖; 第6圖繪不依照本發明第二實施例之影像擷取裝置 的主要功能方塊圖; 第7圖繪示依照本發明第二實施例之影像校正方法 的流程圖; 第8圖繪示第7圖之步驟⑴的詳細流程圖;以及 第9圖繪示第7圖之步驟(g)的詳細流程圖。 【主要元件符號說明】 100、200 :影像擷取裝置 110、210 :影像感測單元 120、 220 :影像校正單元 121、 221 :第,儲存單元 122、 222 :第二儲存單元 123、 223 :第,運算單元 25 2009313423 is a flow chart showing a method for correcting an image according to a first embodiment of the present invention; FIG. 4 is a flow chart showing a detailed step of step (b) of FIG. 3; and FIG. 5 is a view showing the steps of FIG. FIG. 6 is a block diagram showing the main function of the image capturing device according to the second embodiment of the present invention; FIG. 7 is a flow chart showing the image correcting method according to the second embodiment of the present invention; 8 is a detailed flowchart of the step (1) of FIG. 7; and FIG. 9 is a detailed flowchart of the step (g) of FIG. 7. [Description of main component symbols] 100, 200: image capturing device 110, 210: image sensing unit 120, 220: image correcting unit 121, 221: first, storage unit 122, 222: second storage unit 123, 223: , arithmetic unit 25 200931342
TW3838PA 124、 224 :第二運算單元 125、 225 :第三儲存單元 126、 226 :直接記憶體存取控制器 130、230 :色彩補插單元 140、240 :色彩空間轉換單元 227 :第四儲存單元 228 :多工器 ❹ 229 :第三運算單元 Α,/、Aj+i、尽·+υ.、尽+W+i .區塊TW3838PA 124, 224: second arithmetic unit 125, 225: third storage unit 126, 226: direct memory access controller 130, 230: color interpolation unit 140, 240: color space conversion unit 227: fourth storage unit 228: multiplexer 229 229: third arithmetic unit Α, /, Aj+i, ··+υ., ++W+i.
Pi*m ,(y+i)*' Pi*m+x,j*m+y .弟一晝 G, G, ij+l 、σωί+1 ••代表基礎亮度校正係數 /+1,/+1Pi*m , (y+i)*' Pi*m+x, j*m+y . Brother G, G, ij+l, σωί+1 •• represents the basic brightness correction factor / +1, /+ 1
2626