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 PDF

Info

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
Application number
TW97138939A
Other languages
Chinese (zh)
Other versions
TWI477144B (en
Inventor
Shu-Hsiang Yang
Jen-Huang Lee
Ching-Hao Tseng
Original Assignee
Htc Corp
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 Htc Corp filed Critical Htc Corp
Priority to TW097138939A priority Critical patent/TWI477144B/en
Publication of TW201015986A publication Critical patent/TW201015986A/en
Application granted granted Critical
Publication of TWI477144B publication Critical patent/TWI477144B/en

Links

Landscapes

  • Image Processing (AREA)
  • Studio Devices (AREA)
  • Processing Of Color Television Signals (AREA)
  • Facsimile Image Signal Circuits (AREA)

Abstract

Image adjustment parameter calculation methods and devices are provided. First, at least one group of target image values and at least one group of original image values are obtained. Then, at least one image adjustment parameter is calculated according to the target image values and the original image values.

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)

201015986 十、申請專利範圍: 1.一種影像調整參數計算方法,包括下列步驟: 取得至少-組目標影像值; 取得至少一組原始影像值;以及 依據該組目標影像值與該組原始影像值計算至少 一影像調整參數。 2·如申請專利範圍第1項所述之影像調整參數計201015986 X. Patent application scope: 1. A method for calculating image adjustment parameters, comprising the steps of: obtaining at least a group of target image values; obtaining at least one set of original image values; and calculating according to the set of target image values and the set of original image values At least one image adjustment parameter. 2. The image adjustment parameter meter as described in item 1 of the patent application scope ❹ 算方法,其中該組目標影像值係透過—目標相機拍攝 -物件以轉,且該彡健 拍攝該物件以取得。 、界始相機 4. 如申請專利範圍第2項所述之影像調整 算方法,更包括域鄉像輕參 機 拍攝之一影像進行調整。 /原始相機 5. 如申請專利範_ i項所述1 算方法,其中該目標影像值或該原始值 = 色(R、G、職’且蝴象霞參料 原 Matrix)中之一元素。 巧巴矩陣(Color *方述之影像調整參數計 开方法其甲該仏影像值或該原始影像 值,且該影像調整參數為相應一伽 儿度 Correction)之一伽瑪值。 …、乂 (Gamma HTC97023/0746-A41677-TW/Draft-Final 201015986 7. 如申請專利範圍第1項所述之影像調整參數計 算方法,其中依據該組目標影像值與該組原始影像值 計算該影像調整參數之方法係依據該組原始影像值利 用一多變數線性回歸法求出該影像調整參數,其中依 據該影像調整參數調整後之該Μ始影像值與該組目 標影像值間之誤差為最小。The calculation method, wherein the target image value is captured by the target camera, and the object is taken to obtain the object. , Jieshou Camera 4. The image adjustment method described in the second paragraph of the patent application scope, including the image of the domain township light camera to adjust. /Original camera 5. The method of calculating the method according to the patent specification _ i, wherein the target image value or the original value = one of the elements of color (R, G, position 'and the butterfly's original matrix). The gamma matrix is one of the image values of the color correction method (the color image of the color correction method is the image value or the original image value, and the image adjustment parameter is a corresponding gamma correction). [ </ RTI> </ RTI> <RTIgt; </ RTI> <RTIgt; </ RTI> <RTIgt; </ RTI> <RTIgt; </ RTI> <RTIgt; </ RTI> <RTIgt; </ RTI> <RTIgt; </ RTI> <RTIgt; The image adjustment parameter method uses the multi-variable linear regression method to obtain the image adjustment parameter according to the original image value of the group, wherein the error between the initial image value adjusted according to the image adjustment parameter and the target image value of the group is The smallest. 8. —種影像調整參數計算方法,包括下列步驟: 取得至少一組目標影像值,其中該目標影 括三原色值與亮度值; c 取得至少一組原始影像值,其中該原始 括三原色值與亮度值; 1冢值包 依據該組目標影像值與該組原始影像值中之 原色值計算—顏色轉中之至少-元素;Α及^二 依據該組目標影像值與該組原始影像值中 度值計算相應一伽瑪校正之一伽瑪值, 其中依據該顏色矩陣與相應該伽瑪值之伽瑪 調整後之該組原始影像值與該組目標影像值:、正 為最小。 鵪差 9·一種影像調整參數計算裝置,包括: 一儲存單元,包括至少一組目標影像值輿至小 組原始影像值;以及 夕〜 一處理單元,依據該組目標影像值與該級 像值計算至少一影像調整參數。 、°影 10.如申請專利範圍第9項所述之影像調整泉 HTC97023/0746-A41677-TW/Draft-Final 岭 17 201015986 算裝置’其中該組目標影像值係透過一目標相機拍攝 -物件以取得’且該組原始影像值係透過—影像操取 單元擷取該物件以取得。 11. 如㈣專利範圍第9項所述之影像調整參數計 算裝置’其中該物件包括具有複數個顏色區塊之一色 板。 12. 如申請專㈣圍第項所狀f彡像調整參數 φ言十算裝置’其中該影像擷取單元更擷取一影像,且該 處理單元更依據該影像調整錢對於該景彡像進行調 整。 13·如申請專利範圍第9項所述之影像調整參數計 算裝置,其中該目標影像值或該原始影像值包括三原 色(R、G、B)值,且該影像調整參數為一顏色矩陣(c〇i〇r Matrix)中之一元素。 14·如申請專利範圍第9項所述之影像調整參數計 ❹ 算裝置,其中該目標影像值或該原始影像值包括亮度 值’且該影像調整參數為相應一伽瑪校正(Gamma Correction)之一伽瑪值。 15. 如申請專利範圍帛9項所述之影像調整參數計 算裝置’ S中該處理單元係依據該組原始影像值利用 一多變數線性回歸法求出該影像調整參數,其中依據 該影像調整參數調整後之該組原始影像值與該組目標 影像值間之誤差為最小。 16. —種影像調整參數計算襄置,包括: HTC97023/0746-A41677-TW/Draft-Final 18 201015986 -错存單元’包括至少—組目標影像一 =原始影像值,其中該目標影像值與該原始影二 括二原色值與亮度值;以及 ^ 匕 一處理單元’依據触目標影像 像值中之該三原色值計算一顏色矩料:原:影 素,且該處理單元依據驗目標料值=一几 像值中之該亮度值計算減—㈣校正 且原始影 鲁 ❿ c色矩陣與相應該伽瑪值之㈣:::整 t該組原始影像值與該組目標影像_之誤差為ΐ 17. —種機器可讀取媒體, 取得至少一組目標影像值; 取得至少一組原始影像值;以及 :據該組目標影像值與她原始影像 一景夕像調整參數。 Τ异主ν 時致| Γ二:可讀取媒體’儲存一程式碼用以執行 =使-裝置執打-影像調整參數計算方法: 包括下列步驟: 人万衣 取得至少一組目標影像值,苴 括三原色值與亮度值; &quot;中該目標衫像值包 取得至少一組原始影像值,其中該原始影像值包 括三原色值與亮度值; &amp;像值包 HTC97023/0746-A41677-TW/Draft-Final 19 201015986 依據該組目標影像值與該組原始影像值中之該三 原色值計算一顏色矩陣中之至少一元素;以及 依據該組目標影像值與該組原始影像值中之該亮 度值計算相應一伽瑪校正之一伽瑪值, 其中依據該顏色矩陣與相應該伽瑪值之伽瑪校正 調整後之該組原始影像值與該組目標影像值間之誤差 為最小。8. A method for calculating image adjustment parameters, comprising the steps of: obtaining at least one set of target image values, wherein the target includes three primary color values and brightness values; c obtaining at least one set of original image values, wherein the original three primary color values and brightness Value; 1 冢 value package is calculated according to the target image value of the group and the primary color value in the original image value of the group - at least - the element in the color transition; Α and ^ 2 are based on the target image value of the group and the original image value of the group The value calculates a gamma value corresponding to a gamma correction, wherein the set of original image values and the set of target image values according to the color matrix and the gamma corresponding to the gamma value are positive.鹌 9 。 。 。 。 。 。 。 。 。 。 。 。 。 。 。 。 。 。 。 。 。 。 。 。 。 。 。 。 。 。 。 。 。 。 。 。 。 。 。 。 。 。 。 。 。 。 。 。 At least one image adjustment parameter. , ° shadow 10. The image adjustment spring described in the scope of claim 9th HTC97023/0746-A41677-TW/Draft-Final Ridge 17 201015986 computing device 'where the target image value is taken through a target camera - object to Obtaining 'and the original image value of the group is obtained by capturing the object through the image manipulation unit. 11. The image adjustment parameter calculation device of claim 4, wherein the object comprises a swatch having a plurality of color blocks. 12. If the application (4) is the first item, the image capture unit captures an image, and the processing unit adjusts the money according to the image. Adjustment. The image adjustment parameter calculation device according to claim 9, wherein the target image value or the original image value includes three primary colors (R, G, B) values, and the image adjustment parameter is a color matrix (c) 〇i〇r Matrix) One of the elements. The image adjustment parameter calculation device according to claim 9, wherein the target image value or the original image value includes a brightness value 'and the image adjustment parameter is a corresponding gamma correction (Gamma Correction) A gamma value. 15. The image adjustment parameter calculation device described in claim 9 is used to determine the image adjustment parameter according to the set of original image values by a multivariate linear regression method, wherein the image adjustment parameter is determined according to the image. The error between the adjusted original image values and the set of target image values is minimal. 16. An image adjustment parameter calculation device, comprising: HTC97023/0746-A41677-TW/Draft-Final 18 201015986 - the error storage unit includes at least a group target image one = original image value, wherein the target image value and the The original image includes two primary color values and brightness values; and a processing unit 'calculates a color moment according to the three primary color values in the touch target image image value: original: pixel, and the processing unit is based on the target value = The brightness value of a plurality of image values is calculated and subtracted - (4) corrected and the original image is ❿ ❿ c color matrix and the corresponding gamma value (4)::: t The error between the original image value of the group and the target image _ is ΐ 17. A machine readable medium, obtaining at least one set of target image values; obtaining at least one set of original image values; and: adjusting parameters according to the set of target image values and her original image. Τ 主 : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : Included in the three primary color values and brightness values; &quot; the target shirt image value package obtains at least one set of original image values, wherein the original image values include three primary color values and brightness values; &amp; image value package HTC97023/0746-A41677-TW/ Draft-Final 19 201015986 calculating at least one element in a color matrix according to the set of target image values and the three primary color values in the set of original image values; and determining the brightness value according to the set of target image values and the set of original image values Calculating a gamma value of a corresponding gamma correction, wherein an error between the set of original image values and the set of target image values adjusted according to the color matrix and the gamma correction corresponding to the gamma value is minimum. HTC97023/0746-A41677-TW/Draft-Final 20HTC97023/0746-A41677-TW/Draft-Final 20
TW097138939A 2008-10-09 2008-10-09 Image adjustment parameter calculation methods and devices, and computer program product thereof TWI477144B (en)

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)

* Cited by examiner, † Cited by third party
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

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