TW201015986A - Image adjustment parameter calculation methods and devices, and machine readable medium thereof - Google Patents
Image adjustment parameter calculation methods and devices, and machine readable medium thereof Download PDFInfo
- Publication number
- TW201015986A TW201015986A TW97138939A TW97138939A TW201015986A TW 201015986 A TW201015986 A TW 201015986A TW 97138939 A TW97138939 A TW 97138939A TW 97138939 A TW97138939 A TW 97138939A TW 201015986 A TW201015986 A TW 201015986A
- Authority
- TW
- Taiwan
- Prior art keywords
- image
- value
- values
- target
- original
- Prior art date
Links
Landscapes
- Image Processing (AREA)
- Studio Devices (AREA)
- Processing Of Color Television Signals (AREA)
- Facsimile Image Signal Circuits (AREA)
Abstract
Description
201015986 九、發明說明: 【發明所屬之技術領域】 本發明係有關於一種影像調整參數計算方法及裝置, 且特別是有關於一種可以自動依據目標影像值計算影像調 整參數,與依據影像調整參數對於影像進行調整之方法及 裝置。 【先前技術】 隨著時代的演進,相機的發展由傳統底片式的相機演 變為由影像感測單元’如電荷耦合裝置(CCD)或互補式金 屬氧化物半導體(CMOS)取代底片之數位相機。由於數位相 機所拍攝出之數位照片可以方便地在相關裝置,如電腦系 統中進行檢視與處理’因此’數位相機已經變成現代人生 活中的必備品之一。 在一般數位相機中,通常可以提供對於拍攝出的影像 進行調整的功能。舉例來說,數位相機可以内建預設之影201015986 IX. Description of the Invention: [Technical Field] The present invention relates to a method and a device for calculating image adjustment parameters, and particularly relates to an image adjustment parameter that can be automatically calculated according to a target image value, and a parameter adjustment parameter according to the image Method and device for adjusting images. [Prior Art] With the evolution of the times, the development of cameras has evolved from a conventional film-type camera to a digital camera in which a film is replaced by an image sensing unit such as a charge coupled device (CCD) or a complementary metal oxide semiconductor (CMOS). Since the digital photos taken by the digital camera can be easily viewed and processed in related devices, such as computer systems, the digital camera has become one of the must-have items in modern life. In a general digital camera, it is usually possible to provide a function for adjusting the captured image. For example, a digital camera can have a built-in preset
像調整選項,如對比、飽和度與色調等來對於影像進行= 整。由於選項有限,使用者通常難以透過這些選項將影像 調整至預期的呈現結果。 心 在一些高階的數位相機中,可利用顏色矩陣沉 Matrix)與/或伽瑪曲線(Gamma Curve)等設定來對於广像進 行調整。相同地,由於顏色矩陣與伽瑪曲線的設定係非常 複雜,對於一般使用者而言,決定顏色矩陣中的元素值2 伽瑪曲線的伽瑪值係非常困難的。 、、 【發明内容】 HTC97023/0746-A41677-TW/Draft-Final 201015986 裝置 有鐘於此,本發明提供—種影像調整參數計算方法及 法。Ϊ:::广關:-種影像調整參數計算方 值。之後,依據目粳旦彡後佶盥馬 、至少一組原始影像 調整參數。 '、’、始影像值計算至少一影像 本發明之另一實施例係關於 ❿ ❹ 法。首先’取得至少一組目標影像值計算方 值,其中目姆& /、至 > 組原始影像 值。之後,^據目像值包括三原色值與亮度 算-顏色鱗==原:影⑽之三原色值計 影像值中之亮度值計算相應::伽碼=標影像值與原始 舆相應伽瑪值之伽碼校二中 值與目彳4像_之誤差為最]、。 奴原始影像 依據本發明之一實施例之 包括-儲存單元輿一處理單元數計算裝置 標影像值與至少-組原始影像值。處=包:至少-組S 值與原始影像值計算至少一影^依據目標影像 本發明之另-實施例係關於I卿t 置,包括-儲存單元與一處理單元。儲=整參數計算裝 組目標影像值與至少—組原始影像值。包括至少一 原始影像值包括三原色值與亮度值。處理目標影像值與 像值與原始影像值中之三原色值計算一元依據目標影 -元素,且依據目標影像值與原始影陣中之至少 豕值中之免度值計算 HTC97023/0746-A41677-TW/Draft-Final 201015986 正之—伽瑪值。其中依據顏色矩陣與相應伽 /·、义正調整後之原始影像值與目標影像值間之誤 丢1小。 取媒trt述方法可以透過程式碼方式記載於機器可讀 〜太恭。备程式碼被機器載入且執行時,機器變成用以 實仃本發明之裝置。 ❹Like adjustment options such as contrast, saturation and hue, etc. for the image = integer. Due to the limited options, it is often difficult for users to adjust the image to the expected rendering results. Heart In some high-end digital cameras, the wide image can be adjusted using settings such as Color Matrix and/or Gamma Curve. Similarly, since the setting of the color matrix and the gamma curve is very complicated, it is very difficult for the average user to determine the gamma value of the element value 2 gamma curve in the color matrix. SUMMARY OF THE INVENTION HTC97023/0746-A41677-TW/Draft-Final 201015986 Apparatus There is a clock, and the present invention provides a method and method for calculating image adjustment parameters. Ϊ::: Guangguan: - Calculate the calculation parameters of the image adjustment parameters. After that, adjust the parameters according to the target, at least one set of original images. ', ', initial image value calculation of at least one image Another embodiment of the invention relates to the ❿ method. First, 'at least one set of target image value calculation values is obtained, wherein the original image values of the group & /, to > group. After that, the eye image value includes the three primary color values and the brightness calculation - the color scale == the original: shadow (10) three primary color value meter image values in the image value corresponding to the calculation:: gamma = standard image value and the original 舆 corresponding gamma value The median value of the gamma school and the error of the target 4 image _ are the most]. Slave original image In accordance with an embodiment of the present invention, a storage unit includes a processing unit number calculation device and at least a set of original image values. Where = Packet: At least - Group S value and at least one image of the original image value are calculated. According to the target image, another embodiment of the present invention relates to a storage unit and a processing unit. The storage = integer parameter calculates the assembly target image value and at least the set of original image values. The at least one original image value is included to include three primary color values and luminance values. The processing target image value and the three primary color values in the image value and the original image value are calculated according to the target image-element, and the HTC97023/0746-A41677-TW/ is calculated according to the target image value and the exemption value in at least the threshold value in the original image matrix. Draft-Final 201015986 Positive - gamma value. The error between the original image value and the target image value adjusted according to the color matrix and the corresponding gamma/· is positively reduced by one. The media trt description method can be recorded in the machine format through the code code ~ Tai Gong. When the program code is loaded and executed by the machine, the machine becomes a device for implementing the present invention. ❹
^使本發明之上述目的、特徵和優點能更明顯易懂, 下文特舉實施例,並配合所附圖示,詳細說明如下。 【實施方式】 _第1圖顯示依據本發明—實施例之—種影像調整參數 計算裝置。在此實施例中,依據本發明實施例之影像調整 參數计算裝置100可以是一以處理器為基礎之電子裝置, 如電腦。 如第1圖所示,依據本發明實施例之影像調整參數計 算裝置100包括一儲存單元110與一處理單元120。儲存 單元110中至少包括一原始影像U1與一目標影像112。 其中,原始影像111係透過一原始相機拍攝一物件所得 到。值得注意的是,在一些實施例中,物件可以包括具有 複數個顏色區塊之一色板。在一些實施例中,色板可以是 具有24個顏色區塊之GretagMacbeth色板。值得注意的 是’在GretagMacbeth色板中第19個至第24個區塊係灰 階的顏色區塊。目標影像112係一目標相機拍攝此相同@ 物件,如色板所得到。原始影像111與目標影像112可以 三原色(RGB)、或以亮度(Y)及彩度(UV)來表示。換言之, HTC97023/0746-A41677-TW/Draft-Final 201015986 原始影像1H與目標影 值及彩度值^處理單^ 可以包括三原色值、與亮度 咖像調整參數,如顏色矩陣中的元素、:/ 後說明。 之㈣值。計算影像滅錢的細節將於 Μ第2圖顯不依據本發明另一實施例之影像調整參數計 。在此實_中,依據本發明實施例之影像調整參The above described objects, features, and advantages of the invention will be apparent from the description of the appended claims. [Embodiment] FIG. 1 shows an apparatus for calculating an image adjustment parameter according to the present invention. In this embodiment, the image adjustment parameter computing device 100 according to an embodiment of the present invention may be a processor-based electronic device such as a computer. As shown in FIG. 1, the image adjustment parameter calculation device 100 according to the embodiment of the present invention includes a storage unit 110 and a processing unit 120. The storage unit 110 includes at least an original image U1 and a target image 112. The original image 111 is obtained by taking an object through an original camera. Notably, in some embodiments, the article can include a swatch having a plurality of color patches. In some embodiments, the swatch may be a GretagMacbeth swatch with 24 color blocks. It is worth noting that the 19th to 24th blocks in the GretagMacbeth swatch are grayscale color blocks. The target image 112 is a target camera that captures the same @object, as obtained by a swatch. The original image 111 and the target image 112 may be represented by three primary colors (RGB) or by luminance (Y) and saturation (UV). In other words, HTC97023/0746-A41677-TW/Draft-Final 201015986 original image 1H and target image value and chroma value ^ processing unit ^ can include three primary color values, and brightness coffee image adjustment parameters, such as elements in the color matrix, : / After the explanation. (4) value. The details of calculating the image extinction will be shown in Fig. 2 to show an image adjustment parameter according to another embodiment of the present invention. In this embodiment, the image adjustment parameter according to the embodiment of the present invention
、裝置200可以是具有影像擷取功能之一可攜式裝 置丄如數位減、多媒體魏H、個人餘助理、全球衛 星疋位裝置、觸控式手機、智慧财機或行動電 持式裝置》 π〜丁 冰 第2圖所示,依據本發明實施例之影像調整參數言 算裝置包括一影像擁取單元210、一错存單元ί20 : -處理單元23G。影像榻取單元21G可以是—電荷輕合^ 置或互補式金屬氧化物半導體之相機模組,用以擷取意 像。儲存單元220中包括一原始影像221與一目標影浪 222。其中,原始影像221係由影像擷取單元21〇擷取一杂 件所得到。類似地,物件可以包括具有複數個顏色區塊之 一色板。在一些實施例中,色板可以是具有24個顏色區塊 之GretagMacbeth色板。目標影像222係一目標相機拍攝 此相同的物件,如色板所得到。目標影像222可以透過一 介面(未顯示)輸入至影像調整參數計算裝置200中。類似 地,原始影像221與目標影像222可以包括三原色值、與 亮度值及彩度值。處理單元230可以依據原始影像221與 HTC97023/0746-A41677-TW/Draft-Final 201015986 目標影像222計算影像調整參數,如顏色起 素、 與/或相應伽瑪校正之伽瑪值。計算影像购的細節 於後說明。當影像掏取單元训擷取新影像時,處理 =可依據所計算出之影像調整參數對於新影像進行影 第3圖顯示依據本發明實施例之—種影像調整參數計 算方法。 在步驟S3H)中,取得一原始影像與一目標影像。其 中,原始影像係透過一原始相機或一影像擷取單元拍攝一 物件,如色板所得到。目標影像係透過一目標相機拍攝此 相同的物件所得到。在㈣S320中,取得分別相應原始影 像與目標影像之影像值,如三原色值與/或亮度值。之後, 在步驟S330中’依據原始影像與目標影像所分別相應之影 像值計算至少一影像調整參數,如顏色矩陣中的元素、與/ 或相應伽瑪校正之伽瑪值。 值得注意的是,當計算得到影像調整參數之後,可以 依據此影像調整參數對於其他影像進行調整。在一些實施 例中,當原始相機拍攝一物件而得到—影像時,透過此影 像調整參數對於該影像進行調整之後,調整後之該影像^ 體上相同於目標相機拍攝此相同物件所得到之影像。 接下來,分別說明相應顏色矩陣中的元素與相應如瑪 校正之伽瑪值之計算方式。 顏色矩陳 HTC97023/0746-A41677-TW/Draft-Final 201015986 假設透過目標相機所拍攝具有24個顏色區域之色板 的目標影像中’相應不同顏色區域之24 '组目標顏色值為 (Rol,Gol,B〇l) > (R〇2,G〇2,B〇2) ' (R〇3,Go3,B〇3) > ... ' (RowG。24,:^24)。另外,透過原始相機所拍攝具有24個顏 色區域之色板的原始影像中,相應不同顏色區域之24組目 標顏色值為(RiGmBiO、(Ri2,Gi2,Bi2)、...、(Ri24,Gi24,Bi24)。 一般來說,顏色矩陣可以是個3x3的矩陣,且可以依 據下列公式對於影像進行修正: ~R 為 1 Au A13 G — ^21』22 ^23 B _為1 ^32 ^33 _ Λ. 其中,係未修正之顏色值,R,G,B係修正後之 顏色值,且Au〜Am係顏色矩陣中的元素。經過顏色矩陣 修正後之24組顏色值為(Ri,Gi,Bi)、(R2,G2,b2)、…、 (R_24,G24,B24)。 將原始影像的原始顏色值帶入上述公式可以得到相應 修正後顏色值R之結果:The device 200 can be a portable device with image capturing function, such as digital subtraction, multimedia Wei H, personal assistant, global satellite clamp device, touch mobile phone, smart money machine or mobile electric device. As shown in FIG. 2, the image adjustment parameter speaking device according to the embodiment of the present invention includes an image capturing unit 210 and a memory unit ί20: a processing unit 23G. The image couching unit 21G may be a camera module of a charge-light-coupled or complementary metal oxide semiconductor for capturing an image. The storage unit 220 includes an original image 221 and a target image wave 222. The original image 221 is obtained by the image capturing unit 21 capturing a miscellaneous item. Similarly, an article can include a swatch having a plurality of color patches. In some embodiments, the swatch may be a GretagMacbeth swatch with 24 color blocks. The target image 222 is a target camera that captures the same object, such as a swatch. The target image 222 can be input to the image adjustment parameter calculation device 200 through an interface (not shown). Similarly, the original image 221 and the target image 222 may include three primary color values, and a luminance value and a chroma value. The processing unit 230 can calculate image adjustment parameters, such as color factors, and/or gamma values of corresponding gamma corrections, according to the original image 221 and the HTC97023/0746-A41677-TW/Draft-Final 201015986 target image 222. The details of calculating the image purchase will be explained later. When the image capturing unit learns to take a new image, the processing can be performed on the new image according to the calculated image adjustment parameter. FIG. 3 shows a method for calculating the image adjustment parameter according to an embodiment of the present invention. In step S3H), an original image and a target image are obtained. The original image is obtained by photographing an object, such as a swatch, through an original camera or an image capture unit. The target image is obtained by taking the same object through a target camera. In (4) S320, image values corresponding to the original image and the target image, such as three primary color values and/or brightness values, are obtained. Then, in step S330, at least one image adjustment parameter, such as an element in the color matrix, and/or a gamma value of the corresponding gamma correction, is calculated according to the image values corresponding to the original image and the target image, respectively. It is worth noting that after the image adjustment parameters are calculated, other image adjustments can be made according to the image adjustment parameters. In some embodiments, when the original camera captures an object and obtains an image, after the image adjustment parameter is adjusted, the adjusted image is identical to the image obtained by the target camera to capture the same object. . Next, the calculation of the elements in the corresponding color matrix and the corresponding gamma values such as gamma correction are respectively explained. Color moment Chen HTC97023/0746-A41677-TW/Draft-Final 201015986 Suppose the target color value of the '24' group of the corresponding color area in the target image of the swatch with 24 color areas captured by the target camera (Rol, Gol , B〇l) > (R〇2, G〇2, B〇2) ' (R〇3, Go3, B〇3) > ... ' (RowG.24,:^24). In addition, in the original image of the swatch with 24 color regions captured by the original camera, the 24 target color values of the corresponding different color regions are (RiGmBiO, (Ri2, Gi2, Bi2), ..., (Ri24, Gi24). Bi24. In general, the color matrix can be a 3x3 matrix, and the image can be corrected according to the following formula: ~R is 1 Au A13 G — ^21』22 ^23 B _ is 1 ^32 ^33 _ Λ Among them, the uncorrected color value, the corrected color value of R, G, and B, and the elements in the Au~Am color matrix. The 24 color values corrected by the color matrix are (Ri, Gi, Bi). ), (R2, G2, b2), ..., (R_24, G24, B24). Bring the original color value of the original image into the above formula to get the result of the corresponding corrected color value R:
Ri=AiixRu + A12xGu + A^xBu ; R2=AnxRi2 + A12xGi2 + A13xBi2 ; R3=AnxRi3 + A12xGi3 + A13xBi3 ; + A12xGi24 + A13xBi24。 調整後之顏色值R與目標顏色值r之誤差(Rq1 一 Rl) + (R〇2 — Κ·2) + (R〇3 - R3)2 +·…+ (ro24 — r24)2。由於期 望調整後之顏色值與目標顏色值的誤差達到最小,且= HTC97023/0746-A41677-TW/Draft-Final 201015986Ri=AiixRu + A12xGu + A^xBu ; R2=AnxRi2 + A12xGi2 + A13xBi2 ; R3=AnxRi3 + A12xGi3 + A13xBi3 ; + A12xGi24 + A13xBi24. The error between the adjusted color value R and the target color value r (Rq1 - Rl) + (R〇2 - Κ·2) + (R〇3 - R3)2 +·...+ (ro24 - r24)2. Since the error between the desired color value and the target color value is minimized, and = HTC97023/0746-A41677-TW/Draft-Final 201015986
AnxRin + Ai2xGin + A13xBin (n=l > 2 ^ 3---24)4, — ^ ^ —-j. 方程式,因此可以利用一回歸方法,如多變數線性回歸 (Multiple Linear Regression)來求出使△ R 最小之最佳 All,Ai2,Ai3 解。 類似地,將原始影像的原始顏色值帶入上述公式可以 得到相應修正後顏色值G之結果:AnxRin + Ai2xGin + A13xBin (n=l > 2 ^ 3---24)4, — ^ ^ —-j. Equation, so you can use a regression method, such as Multiple Linear Regression Let Δ R minimize the best All, Ai2, Ai3 solution. Similarly, the original color value of the original image is brought into the above formula to obtain the result of the corresponding corrected color value G:
Gi=A2ixRii + A22xGii + Α23χΒη ; G2=A2ixRi2 + A22xGi2 + A23xBi2 ; G3=A2ixRi3 + A22xGj3 + A23XB13 ; 624=^2/^24 + A22xGi24 + A23><Bi24。 調整後之顏色值G與目標顏色值G之誤差^^二…。^ G〇2 + (G〇2 -G2)2 + (Go3 -G3)2 +.... + (g〇24 -G24)2。由於期 望調整後之顏色值與目標顏色值的誤差達到最小,且匕= 八21><1^11 + 入22>^11 + 八23父;8比(11=1、2、3...24)為一三元一次 方程式,因此可以利用一回歸方法來求出使AG最小之最 佳 A2i,A22,A23 解。 類似地,將原始影像的原始顏色值帶入上述公式可以 得到相應修正後顏色值B之結果:Gi=A2ixRii + A22xGii + Α23χΒη ; G2=A2ixRi2 + A22xGi2 + A23xBi2 ; G3=A2ixRi3 + A22xGj3 + A23XB13 ; 624=^2/^24 + A22xGi24 + A23><Bi24. The error between the adjusted color value G and the target color value G^^. ^ G〇2 + (G〇2 -G2)2 + (Go3 -G3)2 +.... + (g〇24 -G24)2. Since the error between the adjusted color value and the target color value is expected to be the smallest, and 匕 = eight 21 >< 1 ^ 11 + into 22 > ^ 11 + eight 23 father; 8 ratio (11 = 1, 2, 3: .24) is a three-element one-time equation, so a regression method can be used to find the best A2i, A22, A23 solution that minimizes AG. Similarly, the original color value of the original image is brought into the above formula to obtain the result of the corresponding corrected color value B:
Bl=A3lxRil + Α32χ〇π +A33xBil ;Bl=A3lxRil + Α32χ〇π +A33xBil ;
B2=A3ixRi2 + A32xGi2 + A33xBi2 I B3=A3i><Ri3 + A32xGi3 + A33xBi3 ; .... B24=A31xRi24 + A32xGi24 + A33xBi24。 調整後之顏色值B與目標顏色值b之誤差^6 =(丑。1-BJ2 + (B〇2 -B2)2 + (Bo3 -By +·..· + (B〇24 _b24)2。由於期望 HTC97023/0746-A41677-TW/Draft-Final 11 201015986 5 周整後之顧色值與目標顏色值的誤差達到最小,且 32八411十八33父均11(11=丄、丄、3...24)為一三- 方程式因此可以利用一回歸方法來求出使△B田 人 佳解。 ϋ取小之最 因此,上述計算出之~ A A”,A22,A23,A31,A32,A33 將會使得總誤差△ E :12,A13, Δ B rt ^ -K- + A P 局最小。因此,透過此顏色矩陣修正德 u 八31 Rin + A32XGin + A33xBin(n=l、2、3...24)為—=_ 1 士 to - ' ' 二 7L 〜次 1’ 22’/ν23,Α3ι,Α32,Α33 將會使得總誤差 = ’13’B2=A3ixRi2 + A32xGi2 + A33xBi2 I B3=A3i><Ri3 + A32xGi3 + A33xBi3 ; .... B24=A31xRi24 + A32xGi24 + A33xBi24. The error between the adjusted color value B and the target color value b^6 = (ugly. 1-BJ2 + (B〇2 - B2) 2 + (Bo3 -By +·..· + (B〇24 _b24)2. Due to the expectation of HTC97023/0746-A41677-TW/Draft-Final 11 201015986 5 weeks after the completion of the color value and the target color value error to the minimum, and 32 eight 41 18 33 fathers are 11 (11 = 丄, 丄, 3 ...24) is a three-equation, so a regression method can be used to find the best solution for △B Tian. The most important thing is to calculate the ~AA", A22, A23, A31, A32, A33 will make the total error Δ E :12, A13, Δ B rt ^ -K- + AP minimum. Therefore, through this color matrix, the correction u à 8 31 Rin + A32XGin + A33xBin (n = 1, 2, 3. ..24) is -=_ 1 士to - ' ' 2 7L ~ times 1' 22'/ν23, Α3ι, Α32, Α33 will make the total error = '13'
Δ B rt ^ -K- + A P 芍最小。因此,透過此顏色矩陣修正德 ^ ❹ 會大體相同於目標顏色值。值得注意的是,在上^值將 ::出:色矩陣中之元素可以使得總誤差為最小:::中 =為Ϊ了:實施例中,當原始顏色值與目標顏色值= 替=最小時’此時顏色矩陣中之讀便可設置為$ ^進因此’透過此顏色矩陣便可對於原始相機所拍: '心 行調整,以使得調整後的影像接近或大體等> 標相機所拍出的效果。 綠等於目 伽瑪校4 π在$瑪校正中,可以依據亮度值計算相應之伽瑪值。 值得注意的是’在一些實施例中,由於GretagMacbeA色 板中第19個至第24個區塊係灰階的顏色區塊,因此這些 顏色區塊可以用來進行伽瑪值之計算。假設透過目標相機 所拍攝GretagMacbeth色板中第19個至第24個區塊的目 標影像中,相應不同區域之6組目標亮度值為γ〇ι9、、 γ。24。另外’透過原始相機所拍攝GretagMacbeth色板中第 19個至第24個區塊的原始影像中,相應不同區域之6組 HTC97023/0746-A41677-TW/Draft-Final 12 201015986 目標亮度值為Yil9、…、Yi24。 原始影像之原始亮度值帶入伽瑪校正公式可以得到相 應修正後亮度值Y之結果:Δ B rt ^ -K- + A P 芍 is the smallest. Therefore, the correction of the ** by this color matrix will be roughly the same as the target color value. It is worth noting that the upper value will be ::: out: the elements in the color matrix can make the total error minimum: :: medium = Ϊ: In the embodiment, when the original color value and the target color value = substitute = most Hour' At this time, the reading in the color matrix can be set to $^. Therefore, 'this color matrix can be used for the original camera: 'Heart adjustment, so that the adjusted image is close or general, etc.> The effect of the shot. Green is equal to the gamma school 4 π In the $Ma correction, the corresponding gamma value can be calculated from the brightness value. It is worth noting that in some embodiments, since the 19th to 24th blocks in the GretagMacbeA swatch are grayscale color blocks, these color blocks can be used to calculate gamma values. Assume that in the target images of the 19th to 24th blocks in the GretagMacbeth swatch taken by the target camera, the target brightness values of the corresponding groups of 6 are γ〇ι9, γ. twenty four. In addition, in the original images of the 19th to 24th blocks in the GretagMacbeth swatch taken by the original camera, the corresponding brightness of the six groups of HTC97023/0746-A41677-TW/Draft-Final 12 201015986 is Yil9. ..., Yi24. The original brightness value of the original image is brought into the gamma correction formula to obtain the result of the corresponding corrected brightness value Y:
Yl9 = (Yil9)r > Y20 = (Yi2〇)r > .....Y24 = (Υί24)Γ。 其中,Yi9、Y20、…、Y24為伽瑪”r”修正後之亮度值。 修正後亮度值與目標亮度值Ycl9、...、Υο24之誤差為: ® Δ ΕΥ =: (Y0l9 - γ19)2 + (Υ〇20 - γ20)2 +...+ (Υο24 - γ24)2 ° 類似地,由於期望調整後之亮度值與目標亮度值的誤 差達到最小,因此可以利用回歸方法來求出使ΔΕΥ最小之 最佳”r”解。在一些實施例中,由於”r”一般係介於1/1.9到 1 /2.5之間。因此’可以分別計算r= 1 /1.9, r= 1 /2, r= 1 /2.1 γ=1/2·5時的ΔΕΥ ’且選擇可以使ΔΕΥ最小的”Γ”值即可。 因此,透過此伽瑪值便可對於原始相機拍攝的影像進行調 整,以使得調整後的影像接近或大體等於目標相機所拍出 響的效果。 必須提醒的是,在一些實施例中,可以同時依據原始 影像與目標影像計算顏色矩陣與伽瑪值,且利用顏色矩^ 與伽瑪值對於影像進行調整。因此,透過本案之影像^ 參數計算錄及裝置相自動依據目標影像計算 參數,且依據影像調整參數對於後續影像進行調整。 本發明之方法,或特定型態或其部份,可以 型態存在。程式碼可以記胁機器可讀取媒财,如教碟的 HTC97023/0746-A41677-TW/Drafl-Final 13 201015986 光碟片、硬碟、或是任何其他機器可讀取(如電腦可讀取) 儲存媒體’亦衫限於外在形式之電腦程式產品,其中, 當程式碼被機n ’如電腦載人且執行時,此機器變成用以 參與本發明之裝置。程式竭也可以透過—些傳送媒體,如 電線或電纜、光纖、或是任何傳輸型態進行傳送,其中’ 當程式碼被機器’如電腦接收、载人且執行時,此機器變 成用=參與本發明之裝置。當在—般用途處理單元實作Yl9 = (Yil9)r > Y20 = (Yi2〇)r > .....Y24 = (Υί24)Γ. Among them, Yi9, Y20, ..., Y24 are the corrected luminance values of gamma "r". The error between the corrected brightness value and the target brightness value Ycl9,...,Υο24 is: ® Δ ΕΥ =: (Y0l9 - γ19)2 + (Υ〇20 - γ20)2 +...+ (Υο24 - γ24)2 ° Similarly, since the error between the adjusted brightness value and the target brightness value is expected to be minimized, the regression method can be used to find the optimal "r" solution that minimizes ΔΕΥ. In some embodiments, since "r" is typically between 1/1.9 and 1/2.5. Therefore, it is sufficient to calculate ΔΕΥ' when r = 1 / 1.9, r = 1 /2, r = 1 /2.1 γ = 1/2·5 and select a value of "Γ" which can minimize ΔΕΥ. Therefore, the image captured by the original camera can be adjusted by this gamma value so that the adjusted image is close to or substantially equal to the effect of the target camera. It must be reminded that in some embodiments, the color matrix and gamma values can be calculated from the original image and the target image simultaneously, and the image is adjusted using the color moments ^ and gamma values. Therefore, through the image control parameter recording device and the device, the parameters are automatically calculated according to the target image, and the subsequent images are adjusted according to the image adjustment parameters. The method of the invention, or a particular form or portion thereof, may be in the form of a form. The code can be used to record the media that can be read by the machine, such as the HTC97023/0746-A41677-TW/Drafl-Final 13 201015986 disc, hard disk, or any other machine readable (such as computer readable) The storage medium is also limited to an external form of computer program product, wherein when the program code is carried by a computer such as a computer and executed, the machine becomes a device for participating in the present invention. The program can also be transmitted through some transmission media, such as wires or cables, optical fibers, or any transmission type, where 'when the code is received by the machine, such as a computer, manned and executed, the machine becomes used = The device of the invention. When working in a general purpose processing unit
時’程式碼結合處理單元提供—操作触於應用特定邏輯 電路之獨特裝置。 雖然本發明已以較佳實施例揭露如上,然其並非用4 限定本發明,任何齡朗技#者,在减離本發明之潘 „,當可做些許更動與潤飾,因此本發明之保* 範圍虽視後附之申請專利範圍所界定者為準。 、- 【圖式簡單說明】 … 第1圖為顯讀據本發明實施例之—影像調整參數古 算裝置。 β 之一影像調整參數 第2圖顯示依據本發明另一實施例 計算裝置。 ,第3圖為-流程圖’其係顯示依據本發明實施例之一 影像調整參數計算方法。 【主要元件符號說明】 100、200〜影像調整參數計算裝置; 110、 220〜儲存單元; 111、 221〜原始影像; HTC97023/0746-A41677.TW/Draft-Fmal 14 201015986 112、222〜目標影像; 120、230〜處理單元; 210〜影像擷取單元。The time code is combined with the processing unit to provide a unique means of operating the application specific logic. Although the present invention has been disclosed in the above preferred embodiments, it is not intended to limit the invention, and any of the ages of the invention may be reduced by the invention, and may be modified and retouched. * The scope is subject to the definition of the patent application scope attached to the following. - - [Simple description of the drawing] ... Figure 1 is a diagram showing the image adjustment parameter calculation device according to the embodiment of the present invention. Fig. 2 shows a computing device according to another embodiment of the present invention. Fig. 3 is a flow chart showing a method for calculating image adjustment parameters according to an embodiment of the present invention. [Description of main component symbols] 100, 200~ Image adjustment parameter calculation device; 110, 220~ storage unit; 111, 221~ original image; HTC97023/0746-A41677.TW/Draft-Fmal 14 201015986 112, 222~target image; 120, 230~ processing unit; Capture unit.
HTC97023/0746-A41677-TW/Draft-FinalHTC97023/0746-A41677-TW/Draft-Final
Claims (1)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
TW097138939A TWI477144B (en) | 2008-10-09 | 2008-10-09 | Image adjustment parameter calculation methods and devices, and computer program product thereof |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
TW097138939A TWI477144B (en) | 2008-10-09 | 2008-10-09 | Image adjustment parameter calculation methods and devices, and computer program product thereof |
Publications (2)
Publication Number | Publication Date |
---|---|
TW201015986A true TW201015986A (en) | 2010-04-16 |
TWI477144B TWI477144B (en) | 2015-03-11 |
Family
ID=44830270
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
TW097138939A TWI477144B (en) | 2008-10-09 | 2008-10-09 | Image adjustment parameter calculation methods and devices, and computer program product thereof |
Country Status (1)
Country | Link |
---|---|
TW (1) | TWI477144B (en) |
Family Cites Families (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
FR2833797B1 (en) * | 2001-12-19 | 2004-02-13 | Thomson Licensing Sa | METHOD FOR ESTIMATING THE DOMINANT MOVEMENT IN A SEQUENCE OF IMAGES |
TWI220361B (en) * | 2003-06-17 | 2004-08-11 | Avision Inc | Scanning method and device for performing gamma correction according to multiple gamma functions |
-
2008
- 2008-10-09 TW TW097138939A patent/TWI477144B/en active
Also Published As
Publication number | Publication date |
---|---|
TWI477144B (en) | 2015-03-11 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US8509482B2 (en) | Subject tracking apparatus, subject region extraction apparatus, and control methods therefor | |
US9077908B2 (en) | Image generation apparatus and method for generating plurality of images with different resolution and/or brightness from single image | |
JP4396720B2 (en) | Image processing apparatus, image processing method, and program | |
TWI260169B (en) | Color image-processing method, and color imaging apparatus | |
CN105409211A (en) | Automatic white balancing with skin tone correction for image processing | |
TW200926839A (en) | Image sensor apparatus and method for color correction with an illuminant-dependent color correction matrix | |
KR20060121752A (en) | System and method for processing images using centralized image correction data | |
TW201143378A (en) | Temporal filtering techniques for image signal processing | |
JP2008113222A (en) | Image processing apparatus, imaging apparatus, image processing method in these apparatuses, and program allowing computer to execute the method | |
TW201331693A (en) | Image capturing apparatus and image processing method | |
TW200824425A (en) | Information processing system, information processing device, information processing method, and program | |
JP7492344B2 (en) | Image processing device and image processing method | |
JP6678504B2 (en) | Imaging device, control method therefor, program, and storage medium | |
JP2016053849A (en) | Image processor and image processing method, and solid-state imaging device | |
TW201601538A (en) | Image capture apparatus and image compensating method thereof | |
TWI471848B (en) | Method for correcting colors and image processing device | |
TW201015986A (en) | Image adjustment parameter calculation methods and devices, and machine readable medium thereof | |
KR100753195B1 (en) | Method and device for detecting color temperature | |
JP2015095890A (en) | Image processing apparatus and control method for the same | |
JP6209950B2 (en) | Color reproduction characteristic creation device, color reproduction characteristic creation system, program, and color reproduction characteristic creation method | |
JP2013186355A (en) | Automatic focusing apparatus, automatic focusing method, and program | |
JP2017204787A (en) | Image processing apparatus, control method thereof, imaging apparatus, and program | |
JP5222429B2 (en) | Subject tracking device and control method thereof | |
JP5482428B2 (en) | Imaging apparatus, camera shake correction method, and program | |
JP5482427B2 (en) | Imaging apparatus, camera shake correction method, and program |