TWI295897B - Method and device for adjusting the colors of image - Google Patents

Method and device for adjusting the colors of image Download PDF

Info

Publication number
TWI295897B
TWI295897B TW94145219A TW94145219A TWI295897B TW I295897 B TWI295897 B TW I295897B TW 94145219 A TW94145219 A TW 94145219A TW 94145219 A TW94145219 A TW 94145219A TW I295897 B TWI295897 B TW I295897B
Authority
TW
Taiwan
Prior art keywords
weight
parameter
data
unit
hsv
Prior art date
Application number
TW94145219A
Other languages
Chinese (zh)
Other versions
TW200726271A (en
Inventor
Chia Ping Chang
Jun Shih Chung
Original Assignee
Chi Mei Optoelectronics 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 Chi Mei Optoelectronics Corp filed Critical Chi Mei Optoelectronics Corp
Priority to TW94145219A priority Critical patent/TWI295897B/en
Publication of TW200726271A publication Critical patent/TW200726271A/en
Application granted granted Critical
Publication of TWI295897B publication Critical patent/TWI295897B/en

Links

Description

1295概 wf.doc/g 九、發明說明: 【發明所屬之技術領域】 本發明是有關於一種影像色彩的調整方法,且特別是 有關於一種能夠調整局部影像色彩的影像色彩的調整方法 及其裝置。 【先前技術】 目前影像色彩的調整方法有的是在紅色(red)、綠色 (green )、藍色(blue ),也就是 rGB 色彩空間(c〇i〇r space ) 下進行調整。然而,直接處理RGB影像的情況只有在每 個成分改變的情形都一樣時,才不會造成顏色失真。或者, 將RGB格式的圖像資料轉換成為黃色(yell〇w)、洋紅色 (magenta)、青色(Cyan),也就是CMY色彩空間。然 後,在CMY色彩空間下進行調整。當調整完畢後 = 至RGB色彩空間進行輸出。 、 然而,上述的影像色彩的調整方法只能同時調整所 色彩,無法針對特定的色彩區域作調整。例如加強誌 雲、綠葉、夕陽等特定色彩區域的飽和度,使晝面: 的影像更為鮮《I動人,歧將偏紅或偏白的膚色調整回= 正碟的位置。 』 【發明内容】 有鑑於此’本發明之目的是提供—種影 方法,以便於調整局部影像。 旧正 此外,本發明之另-目的是提供—種影像色彩 裝置,以便於調整局部的影像色彩。 〜ι 1295 課 twf.doc/g 為達上述或是其他目的’本發明提出—種影像色彩的 調整方法’其包括下列步驟。首先’接收多筆第一 rGB 資料。將第一 RGB資料轉換為多筆第—資料。將這 ' ㈣—HSV資料以H參數為單位區分出多個群组。缺後, • 將這些群組其中之一之第一 HSV資料調整 二1295 GENERAL Wf.doc/g IX. Description of the Invention: [Technical Field] The present invention relates to an image color adjustment method, and more particularly to an image color adjustment method capable of adjusting a partial image color and Device. [Prior Art] At present, some adjustment methods of image color are adjusted in red (red), green (green), and blue (blue), that is, rGB color space (c〇i〇r space). However, the case of directly processing RGB images does not cause color distortion only when the conditions of each component change are the same. Or, convert image data in RGB format to yellow (yell〇w), magenta (magenta), cyan (Cyan), which is the CMY color space. Then, make adjustments in the CMY color space. When the adjustment is completed = to the RGB color space for output. However, the above method of adjusting the color of the image can only adjust the color at the same time, and cannot be adjusted for a specific color area. For example, the saturation of specific color areas such as Zhiyun, green leaves, and sunsets is strengthened, so that the image of the 昼:: is more vivid, and the skin color of the reddish or whitened skin is adjusted back to the position of the original dish. SUMMARY OF THE INVENTION In view of the above, it is an object of the present invention to provide a method of shadowing to facilitate adjustment of a partial image. In addition, another object of the present invention is to provide an image color device for adjusting local image colors. ~ι 1295 Lesson twf.doc/g For the above or other purposes, the present invention proposes an adjustment method of image color which includes the following steps. First, receive multiple first rGB data. Convert the first RGB data into multiple data files. This '(four)-HSV data is divided into multiple groups in units of H parameters. After the absence, • adjust the first HSV data of one of these groups.

HS V資料。接著,將第二HS V資料轉換為 GB 資料。 在本發明之一實施例中’調整此群組之第一 HSV資 # 料的方法包括下列步驟。首先,將Η權重加入此群組之策 一 HSV資料之Η參數中。將Η權重與s權重相乘後加 此群組之第一 HSV資料之S參數中。將η權重與v;^入 相乘後加入此群組之第一 HSV資料之乂參數中。 萑重 在本發明之一實施例中,此群組之第一 HSV資科之 參數的最大值與最小值所加的Η權重為〇。 在本發明之一實施例中,此群組之第一 HSV資料之$ 參數介於〇與1之間,且當S參數為〇或丨時,所力^的$ 鲁 權重為0。此外,施加有最大S權重之s參數介於〇 5至 之間。 在本發明之一實施例中,此群組之第一 HSV資料之$ 參數與V參數均介於〇與1之間,而當v參數為〇或1 • 時,所加的V權重為〇,且當S參數為0時,所加的v權 - 重為〇。此外,施加有最大V權重之V參數介於〇·5至 之間。 1 在本發明之一實施例中,第—RGB資料可以是擷取 U95 媒L.-g 自一第一彩色影像訊號。 在本發明之一實施例中,在轉換出第二RGB資料之 後,更包括輸出由第一 RGB資料所組成之一第二彩色影 像訊號。 在本發明之一實施例中,在將第二HSV資料轉換成 第二RGB資料之後,更包括對於第二rGb資料進行一色 溫調整步驟,以形成多筆第三RGB資料。 在本發明之一實施例中,上述之色溫調整步驟可以是 對於弟二RGB資料之R參數、G參數與b參數進行調整。 或者’色溫調整步驟可以是查表法(l〇〇kup table, LUT)。 在本發明之一實施例中,上述之在進行色溫調整步驟 之後,更包括輸出由第三RGB資料所組成之一第二彩色 影像訊號。 為達上述或是其他目的,本發明提出一種影像色彩的 調整裝置,其適於接收一第一 RGB資料,並輸出一第二 RGB資料。此影像色彩的調整裝置包括一第一訊號轉換模 組、一計算模組、多個加法器與一第二訊號轉換模組,其 中第一訊號轉換模組用以將第一 RGB資料轉換成一第一 HSV資料。計算模組耦接至第一訊號轉換模組,且計算模 組用以接收第一 HSV資料,並計算出一 delH、一 dels、 一 delV。加法器耦接至計算模組,且這些加法器_用以分別 接收delH、dels、delV並分別疊加至第一 HSV資料之H 參數、S參數與V參數中,以輸出一第二HSV資料。第二 成5虎轉換模組耦接至加法器,且第二訊號轉換模組用以將 7 I2958967c 〇twf.doc/g 第二HSV資料轉換成第二RGB資料。 單元在本實施例中,上述之計算模組包括-分類 Γ Γ儲存單元、—第—計算單元、-第二計算單 換模組,且八:: 刀類早兀耦接至第-訊號轉 並輸出一Γ用以接收第一咖資料之Η參數, 重儲存單元用以接 早至刀類早兀,且榷 重與一 V婼舌一?虎錢出-H權重、-S權 訊贫韓拖η m單福接至權4料單元與第一 權重,並輸1:=:= 第轉換模組1第二計算單元用以接收 dels V S ^ * 5 號轉換模&,B ;心減至㈣儲存單元與第一訊 參數ϋ計料元μ接聊資料之h 多數與V參數以及V權重,並輸出㈣。 單元…施例中,上述之計算模組包括—分類 元與-第三早元、ϋ算單元、—第二計算單 換模組,日。其中,分類單元喊至第—訊號轉 並輪出-分用以接收第—HSV資料之Η參數, 重儲在时_ 虎。杻重儲存單元耦接至分類單元,且權 重歲—5用以,收分類訊號’並輸出-Η權重、一 S權 訊號轉拖°第―計算單元祕至權_存單元與第一 Η參計算單Μ以接«—黯資料之 /、榷重,亚輪出delH。第二計算單元耦接至權重 1295 繼 Otwf.doc/g 與組’且第二計算單元用以接吹 第- HSV貝科之η參數與s參數 广 ddS。第,計料元_至權重儲存單元與第—訊== 模組’且第三計鼻單元用以接收第_ hs 。數 與V參數以及V權重,並輸出delv。 、 乡數 在本發明之一實施例中,上述之 權單元Γ第一計算單元、-第4 換模組,且分類單元用以接收第―HSV資料之Η灸ί轉 亚輸出-分鎮號。權_存單元域至分類單元 重儲存單元用以接收分類職,並輪出—Η權重、^ S權重與-第-V權重。第二計算單城接至權重儲存單 70與第-訊號轉換模組’且第二計算單元用 資料之S參數與V參數以及第—s權重,並輸出一 第-S榷重。第二計算單元_至權重儲存單元與第一訊 號轉換模組,且第三計算單抑以接收第—Hsv資料之s 參數與V參數以及第—V權重,並輸出-第二V權重。 ί一計i?元耦接至權重儲存單元、第-訊號轉換模組、 第一计异單70與第三計算單S,且第—計算單元用以接收 第-HSV資料之Η參數、η權重、第二s權重與第二v 權重,並輸出delH、delS與delV。 在本發明之-實施例中,上述之計算模組包括〆分類 單元、一權重儲存單元、一第一計算單元、一第二計算單 70與-第三計算單元。其中,分類單元_至第一訊號轉 I29589J〇 Otwf.doc/g 換模組,且分鮮元㈣接收第—HSV f料之h 分類訊號。權重儲存單元耦接至分類單元:二 重儲存單元用以純分類職,並輸出—榷 S權重與—第—V權重。第二計算單元純至權重儲= 兀與弟-喊轉換模組,且第二計算單元用 HSV資料之S參數與第—s權重,並輸出_第二弟— 計$耦Γ權重儲存單元與第一訊號轉換模組,。 f 一什开早兀用以接收第一 HSV資料之V參數盥第一HS V data. Next, the second HS V data is converted to GB data. In one embodiment of the invention, the method of adjusting the first HSV resource of the group includes the following steps. First, add the weight of the group to the parameters of this group. The Η weight is multiplied by the s weight and added to the S parameter of the first HSV data of the group. The η weight is multiplied by v; ^ and added to the parameter of the first HSV data of the group. In one embodiment of the present invention, the maximum and minimum values of the parameters of the first HSV subject of the group are Η. In an embodiment of the invention, the $ parameter of the first HSV data of the group is between 〇 and 1, and when the S parameter is 〇 or ,, the weight of the $^ is 0. In addition, the s parameter to which the maximum S weight is applied is between 〇 5 and . In an embodiment of the present invention, the $ parameter and the V parameter of the first HSV data of the group are between 〇 and 1, and when the v parameter is 〇 or 1 •, the added V weight is 〇 And when the S parameter is 0, the added v-weight is 〇. In addition, the V parameter to which the maximum V weight is applied is between 〇·5 and . In an embodiment of the present invention, the first RGB data may be a U95 medium L.-g from a first color image signal. In an embodiment of the present invention, after converting the second RGB data, the method further includes outputting a second color image signal composed of the first RGB data. In an embodiment of the present invention, after converting the second HSV data into the second RGB data, the method further includes performing a color temperature adjustment step on the second rGb data to form a plurality of third RGB data. In an embodiment of the invention, the color temperature adjustment step may be performed by adjusting the R parameter, the G parameter, and the b parameter of the RGB data. Or the 'color temperature adjustment step may be a look-up table (LUT). In an embodiment of the invention, after performing the color temperature adjustment step, the method further includes outputting a second color image signal composed of the third RGB data. To achieve the above or other objects, the present invention provides an image color adjusting device adapted to receive a first RGB data and output a second RGB data. The image color adjustment device includes a first signal conversion module, a calculation module, a plurality of adders and a second signal conversion module, wherein the first signal conversion module is configured to convert the first RGB data into a first An HSV data. The computing module is coupled to the first signal conversion module, and the computing module is configured to receive the first HSV data and calculate a delH, a dels, and a delV. The adder is coupled to the calculation module, and the adders _ are respectively configured to receive delH, dels, and delV and respectively superimposed into the H parameter, the S parameter and the V parameter of the first HSV data to output a second HSV data. The second 5th conversion module is coupled to the adder, and the second signal conversion module is configured to convert the 7 I2958967c 〇twf.doc/g second HSV data into the second RGB data. In this embodiment, the computing module includes a -classifying storage unit, a first calculating unit, a second calculating single replacement module, and an eighth:: the knife is coupled to the first signal to And output a parameter for receiving the first coffee data, the heavy storage unit is used to pick up the knife early, and the weight is one with a V tongue? Tiger money out - H weight, -S right, poor Korean drag η m single buck to the right 4 unit and the first weight, and lose 1: :: = first conversion module 1 second calculation unit to receive dels VS ^ * No. 5 conversion mode &, B; heart reduction to (4) storage unit and the first parameter ϋ meter element μ of the majority of the V parameter and V weight, and output (four). In the embodiment, the calculation module includes a classification element and a third early element, a calculation unit, and a second calculation replacement module. Among them, the classification unit shouts to the first-signal turn-off-minute to receive the parameters of the first-HSV data, and re-stores at the time _ tiger. The 储存 heavy storage unit is coupled to the classification unit, and the weight is aged 1-5, and the classification signal 'receives the 讯 并 并 、 、 、 、 、 、 、 、 、 第 第 第 计算 计算 计算 计算 计算 计算 计算 计算 计算 计算 计算 计算 计算 计算 计算Calculate the single Μ to pick up the «-黯 data, 榷 heavy, sub-round delH. The second computing unit is coupled to the weight 1295 following Otwf.doc/g and the group' and the second computing unit is used to extract the η parameter and the s parameter wide ddS of the -HSV Bec. First, the meter element_ to the weight storage unit and the first message == module 'and the third meter unit is used to receive the _hs. Number and V parameters and V weight, and output delv. In one embodiment of the present invention, the above-mentioned weighting unit is a first calculating unit, a fourth changing module, and the sorting unit is configured to receive the first HSV data of the acupuncture and the output of the sub-town. . _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ The second calculation unit is connected to the weight storage unit 70 and the first-signal conversion module', and the second calculation unit uses the S-parameter and V-parameters of the data and the first-s weight, and outputs a first-S weight. The second calculating unit_to the weight storing unit and the first signal converting module, and the third calculating unit receives the s parameter and the V parameter and the first-V weight of the first-Hsv data, and outputs the second-V weight. The first unit is coupled to the weight storage unit, the first signal conversion module, the first meter 70 and the third calculation unit S, and the first calculation unit is configured to receive the parameter of the first-HSV data, η The weight, the second s weight, and the second v weight, and output delH, delS, and delV. In an embodiment of the invention, the computing module comprises a 〆 classifying unit, a weight storing unit, a first calculating unit, a second calculating unit 70 and a third calculating unit. Among them, the classification unit _ to the first signal to I29589J 〇 Otwf.doc / g change module, and the fresh element (4) receives the h-class signal of the -HSV f material. The weight storage unit is coupled to the classification unit: the double storage unit is used for pure classification, and outputs - 榷 S weight and - ─ _ weight. The second calculation unit is pure to weight storage = 兀 and 弟 - shout conversion module, and the second calculation unit uses the S parameter and the first s weight of the HSV data, and outputs _ second brother - counts $coupled weight storage unit and The first signal conversion module, . f As soon as possible, the V parameter used to receive the first HSV data is the first

Si:並ί出一第:V權重。第-計算單元耦接繼 ,存早7〇、弟_訊簡換触、第二計算單元與第三 2二第—計算單元用以接收第—HSV資料之Η參數二 =重、第二S權重與第二ν權重,並輪出細、_ 與 delV。 基於上述,本發明在HSV色彩空間下 整,再將調整結果轉換至RGB色彩空間。因 能夠局部調整影像色彩。 為讓本發明之上述和其他目的、特徵和優點能更明顯 易懂,下文特舉較佳實施例,並配合所附圖式,作說 明如下。 β、口 【實施方式】 本發明先將彩色影像訊號由RGB色彩空澗轉換至 HSV色彩空間,然後在HSV色彩空間下進行調整。最後, 再將調整結果轉換至RGB色彩空間。因此,本發明能夠 達到人眼的喜好色要求,並保持大部分影像的細緻度。以 12958^^〇twf.d〇c/g ΐ將熟習說明本發明,但其並非用以限定本發Si: and ί a first: V weight. The first-calculating unit is coupled to the second, the first 〇, the second dynasty unit, and the second second unit, the second calculating unit is configured to receive the first HSV data. The S weight and the second ν weight, and round fine, _ and delV. Based on the above, the present invention is integrated in the HSV color space, and the adjustment result is converted to the RGB color space. Because the image color can be adjusted locally. The above and other objects, features, and advantages of the present invention will become more apparent from the aspects of the invention. β, Port [Embodiment] The present invention first converts the color image signal from the RGB color space to the HSV color space, and then adjusts it in the HSV color space. Finally, the adjustment results are converted to the RGB color space. Therefore, the present invention can achieve the color preference of the human eye and maintain the fineness of most images. The present invention will be described with reference to 12958^^〇twf.d〇c/g, but it is not intended to limit the present invention.

古冰ϋ依照本翻之—實施例之—種影像色彩的調整 舌/八:H圖2Α是依照本發明之—實施例之色相權 、二®圖而圖2Β是依照本發明之一實施例之彩度權重 i ’且圖2Β是依照本發明之-實施例之亮度權重分 佈圖。請先參考圖i,本實施例之影像色彩的調整方法包 步驟·首先,進行步驟si10,而步驟su〇為接收 夕,第- RGB貢料,而這些第—RGB資料可以是擷取自 士彩—色衫像訊號。舉例而言,當R、B、G均劃分為〇〜255 日守’母16等分取一個資料,則總共可以取得4913筆資料。The ancient hail is in accordance with the present embodiment - an image color adjustment tongue / eight: H Figure 2 is in accordance with the present invention - the embodiment of the hue weight, the second map and Figure 2 is an embodiment of the present invention The chroma weight i' and FIG. 2A are luminance weight distribution maps in accordance with an embodiment of the present invention. Please refer to FIG. i, the image color adjustment method package step of this embodiment. First, step si10 is performed, and step su〇 is the reception eve, the first RGB tribute, and the first RGB data may be taken from Color-color shirt like a signal. For example, when R, B, and G are all divided into 〇~255, and the parent 16 is equally divided into one piece of data, a total of 4,913 pieces of data can be obtained.

然後’進行步驟S120,而步驟S120為將這些第一 RGB 資料轉換為多筆第一 HSV資料。由於RGB色彩系統的主 要缺點就是各成分之間有很高的關連性,然而在HSV色彩 系統中’每一個成分彼此之間是不相關的,而Η、s、V分 別代表色相(hue )、彩度(saturation )與亮度(intensity )。 簡單而言,色相(H)表示不同波長的光在人眼中所感覺 出來的色彩如紅、撥、黃、綠、藍等。彩度(S )表示顏 色飽和的程度’亦即顏色中渗入白色的程度。高彩度的色 彩表示此顏色滲入的白色越少,例如粉紅色的彩,度比紅色 低。至於由RGB色彩空間轉換至HSV色彩空間的方式為 本發明所屬技術領域中具有通常知識者熟知,在此不再贅 述。 12958¾ twf.doc/g 然後,進行步驟S120,而步驟sl2〇為 /驟20為將&些第—HSV資料以 多個群組。更詳細而言,將這4b第一數f f位出 ^早位區为出多個群組,例如是區分為紅色、黃色、綠色、 itlT° '藍色' 洋紅色Uagenta) °然後,進行步 驟S140 ’而步驟S140為將這些群組其中之一Then, step S120 is performed, and step S120 is to convert the first RGB data into a plurality of first HSV data. Since the main disadvantage of the RGB color system is the high correlation between the components, in the HSV color system, 'each component is irrelevant to each other, and Η, s, and V represent the hue, respectively. Saturation and intensity. In simple terms, the hue (H) indicates colors such as red, dial, yellow, green, blue, etc., which are perceived by the different wavelengths of light in the human eye. The chroma (S) indicates the degree of color saturation, i.e., the degree to which white is infiltrated into the color. A high-color color indicates that the white color that this color infiltrates is less, such as a pink color, which is lower than red. The manner in which the RGB color space is converted to the HSV color space is well known to those skilled in the art to which the present invention pertains, and will not be described again. 129583⁄4 twf.doc/g Then, step S120 is performed, and step sl2 is /step 20 to group & some of the -HSV data into a plurality of groups. In more detail, the first number of ff bits of the 4b is outputted into a plurality of groups, for example, red, yellow, green, itlT° 'blue' magenta Uagenta) ° Then, steps are performed S140' and step S140 is one of these groups

資料調整為多筆第二HSV資料。The data was adjusted to multiple second HSV data.

=考圖2A,舉例而言,若要調整原彩色影像中的 、、工=域’則限制Η參數範_方式取出相對應的第 一 HSV資料。在Hsv色彩空财,Η參數的範圍介於〇 ^ 360之間’其中紅色區域介於〇至%之間。為了便於運 #將Η正規化,也就是將Ή的範圍由〇至之間變更 為0至1之間。換吕之,在新定義的Η座標中,紅色區域 ’I於〇至3G/36G之間。然而,本發明並不限定第一 HSV 資料中的=座標值需正規化,也可沿用原本的座標值。 在本貫施例中,為了強化紅色,因此H權重峰值位於 H參數為15脑。若要躲色區域變更成偏黃色色相,則 Η權重峰值應該落在H參數為15/36〇至⑼之間。同 樣地’若要將紅色區域變更成偏紫色色相,則Η權重峰值 應該落在Η參數為G/36G至15/遍之間。值得注意的是, 為I避免邊界不連續性,在邊界(H參數為0/360與30/360) 所鉍加的Η權重應為〇,也就是紅色區域中的第一 HSV資 料之Η參數的最大值與最小值所加的η權重為〇。此外,= Refer to Figure 2A. For example, if you want to adjust the [, = = field in the original color image, then limit the parameter _ mode to take the corresponding first HSV data. In Hsv color null, the range of Η parameters is between 〇 ^ 360' where the red area is between 〇 and %. In order to facilitate the normalization of the operation, the range of Ή is changed from 〇 to between 0 and 1. For Lu, in the newly defined Η coordinates, the red area 'I is between 3G/36G. However, the present invention does not limit the = coordinate value in the first HSV data to be normalized, and the original coordinate value may be used. In the present embodiment, in order to strengthen the red color, the H weight peak is located at the H parameter of 15 brain. To change the color-protected area to a yellowish hue, the Η weight peak should fall between the H parameter of 15/36〇 to (9). Similarly, if the red area is changed to a purpleish hue, the Η weight peak should fall between the Η parameter of G/36G to 15/pass. It is worth noting that for I to avoid boundary discontinuity, the weight of the 铋 added at the boundary (H parameters are 0/360 and 30/360) should be 〇, which is the parameter of the first HSV data in the red region. The η weight added by the maximum and minimum values is 〇. In addition,

12 129589J〇 twf.doc/g ^權重峰值的大小則可視需求變更,且H權重♦值並不限 定為正值,而Η權重峰值也可以是負值。另外,h權重峰 ,與?邊界之間的權重分佈並^限定為線性分佈,也可以 是二次曲線分佈或其他類型的分佈曲線。當將H權重加入 紅色區域中之第_ Hsv資料之Η參數中,Η參數的調整 便完成。 ,請參考圖2Β,在調整完第一 HSV資料之Η參數之 後I便可進行S參數與ν參數的調整。在本實施例中,先 進仃S參數的調整,然而也可以先進行 述如^。在_中,橫座標為S參數,範圍為0至^ 縱f標為V參數,範圍也是0至卜簡單而言,隨著取出 的第-HSV資料的座標值(s,v)不同,所施加的s權重 並不相同此外,S權重的分佈有—定的限制,例如s權 重峰值必須落在s參數為0.5至1之間。S權重峰值區域 越大(也就是〇.2的區域越大),彩度的變化越明顯。為 了避免健飽和S參數為丨時,所施加的s權重應為 。為了避免無色㈣部分被調整,當s參數為G時,所 施加的S權重應為0。 A就本實施例而言’當紅色區域的彩度需要增加時,所 施加的S權重為正值。當紅色區域的彩度需要減 =s權=值。此外,8權重峰值的大德視需 求,交更。另外榷重峰值與S邊界之間的權重分佈並不 =線性分饰,也可以是二次曲線分佈或其他類型的= 佈曲線。12 129589J〇 twf.doc/g ^The magnitude of the weight peak can be changed according to the demand, and the H weight ♦ value is not limited to a positive value, and the Η weight peak can also be a negative value. In addition, the weight distribution between the h-weight peak and the boundary is limited to a linear distribution, and may also be a quadratic curve distribution or other types of distribution curves. When the H weight is added to the parameter of the _ Hsv data in the red area, the adjustment of the parameter is completed. Please refer to Figure 2Β. After adjusting the parameters of the first HSV data, I can adjust the S parameter and ν parameter. In the present embodiment, the adjustment of the S parameter is advanced, but it can also be described first. In _, the abscissa is the S parameter, the range is 0 to ^, the vertical f is marked as the V parameter, and the range is also 0 to. In simple terms, as the coordinate value (s, v) of the extracted -HSV data is different, The applied s weights are not the same. In addition, the distribution of S weights has a certain limit. For example, the s weight peak must fall between 0.5 and 1 for the s parameter. The larger the S weight peak area (that is, the larger the area of 〇.2), the more obvious the change in chroma. In order to avoid the saturation S parameter being 丨, the applied s weight should be . In order to avoid the colorless (four) part being adjusted, when the s parameter is G, the applied S weight should be zero. A. For the present embodiment, when the chroma of the red area needs to be increased, the applied S weight is a positive value. When the chroma of the red area needs to be reduced by =s weight = value. In addition, the 8th weight of the peak of the big German demand, pay more. In addition, the weight distribution between the peak value and the S boundary is not = linear decoration, but also a quadratic curve distribution or other types of = cloth curve.

13 I2958967( Otwf.doc/g I2958967( Otwf.doc/g13 I2958967( Otwf.doc/g I2958967( Otwf.doc/g

值得注意的是,為了避免紅色區域的邊界的不連續 性,最後施加的S權重仍須考慮與Η權重的關係。舉例而 a ’紅色區域的中間色相需要改變的幅度最大,而紅色區 域的中間色相需要改變的幅度最小,因此圖2B所列出的S 權重仍然要乘上Η權重才是最後施加的S權重。更詳細而 言,當所取出的第一 HSV資料的Η參數為15/360時,實 際上所施加的S權重峰值為(0·2χ3/360)。然而,當所取 出的第一 HSV資料的η參數為30/360時,實際上所施加 的S權重為(〇·2χ〇)。簡單而言,紅色區域中之第一 hSv 資料之S參數所施加的s權重乃是圖2Α之η權重乘上圖 2Β之S權重。至此,紅色區域中之第一 HSV資料之S參 數的調整便完成。It is worth noting that in order to avoid the discontinuity of the boundary of the red region, the last applied S weight still has to consider the relationship with the weight of the Η. For example, the middle hue of the a 'red area needs to change the most, and the middle hue of the red area needs to change the smallest, so the S weight listed in Fig. 2B is still multiplied by the weight to be the last applied S weight. In more detail, when the Η parameter of the first HSV data taken out is 15/360, the actually applied S weight peak is (0·2 χ 3/360). However, when the η parameter of the first HSV data taken is 30/360, the actually applied S weight is (〇·2χ〇). Briefly, the s weight applied by the S parameter of the first hSv data in the red region is the η weight of Figure 2 multiplied by the S weight of Figure 2. At this point, the adjustment of the S parameter of the first HSV data in the red area is completed.

請參考圖2Α與圖2C,在S參數的調整完成後,便進 行V參數的調整。在圖2C中,橫座標為S參數,範圍為 〇至1。縱座標為V參數,範圍也是0至1。同樣地,隨著 取出的弟一 HSV資料的座標值(S,V)不同,所施加的ν 權重並不相同,且V權重的分佈也有一定的限制,例如v 權重峰值必須落在V參數為0.5至1之間。此外,與§權 重分佈不同之處在於:當V參數為1時,所施加的ν權重 應為0 ’以避免亮度飽和。當V參數為〇時,所施加的ν 權重應為0,以避免影像的明暗對比改變。另外、,當s來 數為0時,所施加的V權重應為〇,以避免無色彩的立八 被調整。 ' 同樣地,當紅色區域的亮度需要增加時,所施力v 12958¾ Otwf.doc/gReferring to Fig. 2A and Fig. 2C, after the adjustment of the S parameter is completed, the V parameter is adjusted. In Fig. 2C, the abscissa is an S parameter ranging from 〇 to 1. The ordinate is the V parameter and the range is also 0 to 1. Similarly, with the different coordinate values (S, V) of the extracted HSV data, the applied ν weights are not the same, and the distribution of V weights is also limited. For example, the v weight peak must fall in the V parameter. Between 0.5 and 1. In addition, the difference from the § weight distribution is that when the V parameter is 1, the applied ν weight should be 0 ′ to avoid brightness saturation. When the V parameter is 〇, the applied ν weight should be 0 to avoid the contrast of the image. In addition, when the number of s is 0, the applied V weight should be 〇 to avoid the uncolored 立八 being adjusted. ' Similarly, when the brightness of the red area needs to be increased, the force applied v 129583⁄4 Otwf.doc/g

域的亮度需要減少時,所施加的V 另外’ν梅值與V邊界之間的權重分 =:i ,二次曲線分佈或其他類型的分佈曲線嗥 權重峰值已設計成為大區域,為了 U 消失,v權重峰值的區域應越小越好。 的心V重’最後施加的V權重仍須考慮與Η權重 的關係。間早而言,紅色區域中之第—Hs ^ =所施加的V權重乃是圖2Au權重乘上圖兀之^ 便完i此,紅色區域中之第—Hsv #料之v參數的調整 已細=之後,原紅色區域中的第—HSV資料 區Γ 二HSV資料。雖然本實施例只調整紅色 二:==需=不 ^ 以,之間的副色相,且此12色相;彼此 ;”=,定色相,也可以增加調色區域的數目。 ^ ’史更上述之12色相的調色範圍。或是,變更權重設 請參考圖!,進行步驟難之後,進行步驟㈣, 而步驟S150為將第二HSV資料轉換為多筆第二rgb次 料。至此,本實施例之影像色彩的調整方法大致^ ^ 發明利_度、亮度與色相等方法,可局部^整影像 色彩,不僅能夠達到人_喜好色,也μ改善影像色彩 rs 15 1295術ο r〇twf.doc/g 在本貫施例中,在進行步驟S15G之後,也可 料所組成之彩色影像訊號。在另-實施例 1^3步_5()之後’對於第二腦資料進行一色 第二RGB資料之r參數、心 4數進仃調4者衫綠( rgb資料所組成之一彩色影像訊號。輸出由弟二 圖3是依照本發明夕萁―者 整方法的流程圖往夫考3 3 1 1之—種影像色彩的調 J q明參考圖3,當ίί權重、S權重盥v權 亦;=Ϊ表法方式獲得時,上述之影像色彩的調整方法 為將Lb為^Γ步驟:首先’進行步驟S21G,而步驟S210 ί = /轉換為HSV #料,也就是與步驟sm相 以,ΐ=,而步驟S220為判斷該Η是否 2H 要調整的區域,則進 ^ 步驟㈣為進行查表,以獲得各參數權重。 二後,進仃步驟S240,而步驟S24〇為計算出修正 也就是計算出各參數之調整值。 >取 進行步驟㈣,步驟S25°為修正參數加入原 貝料中。換言之,步驟S230、步驟S240與步驟 ^就是步驟S14G的内容相似。然後,進行步驟咖〇,步 巧S260為將修正後之HSV資料轉換成RGB資料。至此, 單—筆聰資料的調整大致完成。最後,進行步驟S27〇, :doc/g =S270為判斷是否所有的畫 複步驟S210至S26〇。 :凡右否,則重 彩的調整方法的裝置。舉出數個採用上述之影像色 【第一實施例】 整穿明之第-實施例之-種影像色彩的調 收-第―咖資料,並輸出 ιι〇_ 计异杈、、且120、多個加法器撕、嶋、i3〇c與一第二訊 奐模組H0。其中,第一_轉換模組ιι〇用以將第 # GB資料(R,G,B)轉換成一第一 HSV資料(H,S,V)。 f μ 虎轉換模組110將第一 HSV資料(H,S,\〇輸入至 十二模、、且120與加法态i3〇a、130b、130c。計算模組120 與第y汛號轉換模組110耦接,且計算模組12〇依據所接 收的第- HSV資料與預設的各參數權重,以計算出一 delH、一 dels、一 delV。 加法器130a、130b、130c與第一訊號轉換模組no 輕接’且加法器 130a、130b、13〇c 將 ddH、dds、delv 並分別疊加至第一 HSV資料之H參數、s參數與v參數 中^以輸出一第二HSV資料(Ho, So, Vo)。第二訊號轉 換模組140與加法器130a、130b、130c耦接,且篇二訊號 f換模組140用以將第二HSV資料(Ho, So, Vo)轉換成 ,二RGB資料(Ro, g〇, Bo)。值得注意的是,上述之計 异模組120亦可有多種架構,其詳述如後。When the brightness of the domain needs to be reduced, the weight of the applied V is further divided between: 'me and the V-boundary ==i, quadratic distribution or other type of distribution curve. The weight peak has been designed to be a large area, for U to disappear. The area of the v weight peak should be as small as possible. The heart V is heavy. The last applied V weight still has to be considered in relation to the weight of the 。. In the early days, the first part of the red area—Hs ^ = the applied V weight is the weight of Figure 2Au multiplied by the figure 便 便 i , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , After the fine =, the first HSV data area in the original red area Γ two HSV data. Although this embodiment only adjusts the red two: == need = no ^, between the secondary hue, and the 12 hue; each other; "=, fixed hue, can also increase the number of toning areas. ^ 'Shi Jian said above The toning range of the 12 hue. Or, please refer to the figure for changing the weight! After the step is difficult, perform step (4), and step S150 is to convert the second HSV data into multiple second rgb sub-materials. The method for adjusting the color of the image in the embodiment is roughly ^^ Inventing the method of equalizing the brightness, brightness and color, and partially correcting the image color, which can not only achieve the human-like color, but also improve the image color rs 15 1295 ο r〇twf .doc/g In the present embodiment, after performing step S15G, the color image signal composed can also be expected. After the other embodiment 1^3 step _5(), the color data of the second brain data is The r parameter of the RGB data, the number of the heart 4 is adjusted to 4, and the color of the image is composed of rgb data. The output is from the second brother. Figure 3 is a flow chart of the whole method according to the present invention. 3 3 1 1 - the color of the image color J q Ming refer to Figure 3, when ίί weight, S The weight 盥v right is also; when the Ϊ table method is obtained, the above method for adjusting the color of the image is to set Lb as the Γ step: first, 'go step S21G, and step S210 ί = / convert to HSV # material, that is, Step sm phase, ΐ =, and step S220 is to determine whether the Η is 2H to be adjusted, then step (4) is to perform a table lookup to obtain weights of each parameter. Then, proceed to step S240, and step S24〇 In order to calculate the correction, the adjustment value of each parameter is calculated. > Step (4) is performed, and step S25 is added to the original billet as the correction parameter. In other words, step S230, step S240 and step ^ are similar to the content of step S14G. Then, the step curry is performed, and the step S260 is to convert the corrected HSV data into RGB data. At this point, the adjustment of the single-pen data is substantially completed. Finally, step S27 is performed, :doc/g =S270 is to determine whether All of the painting steps S210 to S26 are as follows: Wherever right is not, the device for adjusting the color is exemplified. Several image colors using the above-mentioned image color are used. [First Embodiment] Adjustment - the first Coffee data, and output ιι〇_ 杈 杈,, and 120, multiple adder tear, 嶋, i3 〇 c and a second information module H0. Among them, the first _ conversion module ιι〇 used to The # GB data (R, G, B) is converted into a first HSV data (H, S, V). f μ The tiger conversion module 110 inputs the first HSV data (H, S, \〇 into the twelve-mode, And the add-on state i3〇a, 130b, 130c. The computing module 120 is coupled to the y-th turn conversion module 110, and the calculation module 12 is configured according to the received first-HSV data and preset parameters. Weights to calculate a delH, a dels, a delV. The adders 130a, 130b, 130c are connected to the first signal conversion module no and the adders 130a, 130b, 13〇c superimpose ddH, dds, delv and respectively to the H parameters, s parameters and v of the first HSV data. In the parameter ^ to output a second HSV data (Ho, So, Vo). The second signal conversion module 140 is coupled to the adders 130a, 130b, and 130c, and the second signal f-module 140 is configured to convert the second HSV data (Ho, So, Vo) into two RGB data (Ro, G〇, Bo). It should be noted that the above-mentioned different module 120 can also have multiple architectures, which are described in detail later.

1295 8i93twf.d〇c/g 【第二實施例】 效壯ί 依,’、本&明之第二實施例之—種影像色彩的調 正裝置的线架構圖。請參相5,第二實施例與第一實 相^其不同之處在於:在本實施例中,計算模組21〇 包括一錢單元212、一權重儲存單元214 元216a、—第二計算單元2飾與—第U广 其中’分類單元212與第-訊號轉換模組^ ‘,二 類,元,用以接收第-HSVf料之H參數1 ^ 分類訊號Si。更詳細而言,分類單元 = 查出Η落在哪些該調整區域,而要調整區域會不只 因此當查出該Η訊號落在哪_整區域後, 分類訊號Si。 将疋的 ⑽權重儲存單元214與分類單元212搞接,而權 早70214依據分類訊號Si輸出—H權重(Hw)、一 重(Sw)與一 v權重(Vw)。更詳細而言,權重儲存單 凡叫儲存有錄預設的調整參數值,如纽H權重、s =重、V權重。當權重儲存單元214接收到分類訊號& 時便會送出該分類Si所指定的調整參數值。第一計算單 與權,重儲存單元2M及第—訊號轉換模組ΐι〇柄接。 一計算單元21如接收H參數與H權重之後,第一計 异單元216a會自動計算出delH。同樣地,第二計算單_ 如妾至?重儲存單A214與第一訊號轉換模組11〇, 當第二計算單元216b接收到Η參數、S參數與ν來數以 及s權重之後,第二計算單元216b會自動計算出 1295··, oc/g 同樣地’第二計异單元216c耗接至權重儲存單元214與第 一訊號轉換模組110。當第三計算單元216c接收到H參 數、S參數與v參數以及V權重之後,第三計算單元216c 會自動計算出delV。 【第三實施例】 圖6疋依照本發明之第二實施例之一種影像色彩的調 整裝置的糸統架構圖。請參考圖6,第三實施例與第二實 施例相似,其不同之處在於··在本實施例之計算模組31〇 中,第二計算單元316b依據第一 Hsv資料之H參數與s 參數以及S權重,便能計算出dels。換言之,相較於第二 貫施例之第二計算單元216b,本實施例之第二計算單元 316b無須參考第一 HSV資料之V參數,因此第二計算單 元316b的硬體設計複雜度能夠降低。同樣地,本實施例之 弟二計算單元316c只需參考第一 hsv資料之Η參數與V 參數以及V權重,便能計算出delv。相較於第二實施例之 第三計算單元216c,本實施例之第三計算單元316e無須 參考第一 HSV資料之S參數。 【第四實施例】 圖7疋依照本發明之第四實施例之一種影像色彩的調 整裝置的糸統架構圖。請參考圖7,第四實施例與第三實 施例相似’其不同之處在於:在本實施例之計算_模組41〇 中,第一计异單元416b接收第一 HSV資料之S參數與V 參數以及第一 S權重(Sw),並輸出一第二s權重(Sw,)。 同樣地,第三計算單元416c接收第一 HSV資料之S參數 doc/g 1295891 與v參數以及第一 V權重(Vw),並輸出一第二V權重 (Vw’)。此外,第一計算單元416a接收第一 HSV資料 之Η參數、Η權重(Hw)、第二s權重(Sw,)與第二v 權重(Vw,),並輸出 delH、delS 與 delV。 • 【第五實施例】 圖8是依照本發明之第五實施例之一種影像色彩的調 . 整裝置的系統架構圖。請參考圖8,第五實施例與第四實 _ 施例相似,其不同之處在於:第二計算單元516b只需接收 第一 HSV資料之S參數與第一 S權重(Sw),便能輸出 一第二S權重(Sw,)。同樣地,第三計算單元51&只需 接收第一 HSV資料之V參數與第一 V權重(vw),便能 輸出一第二V權重(Vw,)。第一計算單元516a接收第一 HSV資料之Η參數、η權重、第二S權重(Sw,)與第二 V權重(Vw’)’便計算出delH、dels與delV。 值得注意的是,delH、delS與delV的並不限定於由 上述所揭露的架構所計算產生,且各參數權重的產生也不 • 限定採用查表法。 雖然本發明已以較佳實施例揭露如上,然其並非用以 限定本發明,任何熟習此技藝者,在不脫離本發明之精神 和範圍内,當可作些許之更動與潤飾,因此本發明之保護 範圍當視後附之申請專利範圍所界定者為準。 - 【圖式簡單說明】 ~ 圖1是依照本發明之一實施例之一種影像色彩的調整 方法的流程圖。 I2958967c Otwf.doc/g 圖2A是依照本發明之一實施例之色相權重分佈圖。 圖2B是依照本發明之一實施例之彩度權重分佈圖。 圖2C是依照本發明之一實施例之焭度權重分佈圖。 圖3是依照本發明之另一實施例之一種影像色彩的調 - 整方法的流程圖。 ° 圖4是依照本發明之第一實施例之一種影像色 絲㈣系贿構@。 w 圖5是依照本發明之第二實施例之一種影像色彩的調 • 整裝置的系統架構圖。 ° 圖ό是依照本發明之第三實施例之一種影像色彩的調 整裝置的系統架構圖。 圖7是依照本發明之第四實施例之一種影像色彩的調 整裝置的系統架構圖。 圖8是依照本發明之第五實施例之一種影像色彩的調 整裝置的系統架構圖。 【主要元件符號說明】 _ 步驟:Slio、S120、S130、S140、S150、S210、S220、 S230 、 S240 、 S250 、 S260 、 S270 110 :第一訊號轉換模組 120、210、310、410、510 :計算模組 130a、130b、130c :加法器 一 - 140 :第二訊號轉換模組 212 :分類單元 214 :權重儲存單元 21 丨 twf.doc/g 丨 twf.doc/g 216a 216b 216c 416a、516a:第一計算單元 316b、416b、516b :第二計算單元 316c、416c、516c :第三計算單元1295 8i93twf.d〇c/g [Second Embodiment] A line architecture diagram of an image color correction device according to a second embodiment of the present invention. Please refer to phase 5, which differs from the first embodiment in that: in this embodiment, the computing module 21 includes a money unit 212, a weight storage unit 214, 216a, and a second calculation. The unit 2 is decorated with a -> U-classification unit 212 and a first-signal conversion module ^', and the second type is used to receive the H-parameter 1^ classification signal Si of the first-HSVf material. In more detail, the classification unit = find out which adjustment area is fallen, and the area to be adjusted is not only the classification signal Si after finding out which area the signal is falling on. The (10) weight storage unit 214 is coupled to the classification unit 212, and the weight 70214 outputs - H weight (Hw), one weight (Sw) and one v weight (Vw) according to the classification signal Si. In more detail, the weight storage list is called to store the preset adjustment parameter values, such as the New H weight, s = weight, and V weight. When the weight storage unit 214 receives the classification signal &, it will send the adjustment parameter value specified by the classification Si. The first calculation unit and the weight, the heavy storage unit 2M and the first signal conversion module are connected to each other. After a calculation unit 21 receives the H parameter and the H weight, the first difference unit 216a automatically calculates delH. Similarly, the second calculation unit 妾 ? ? 重 重 重 214 214 214 214 214 214 214 214 214 214 214 214 214 214 214 214 214 214 214 214 214 214 214 214 214 214 214 214 214 214 214 214 214 214 214 214 214 214 214 214 The calculation unit 216b automatically calculates 1295··, oc/g. Similarly, the second different unit 216c is consumed by the weight storage unit 214 and the first signal conversion module 110. After the third calculating unit 216c receives the H parameter, the S parameter and the v parameter, and the V weight, the third calculating unit 216c automatically calculates the delV. [THIRD EMBODIMENT] Fig. 6 is a schematic structural view of an image color adjusting device according to a second embodiment of the present invention. Referring to FIG. 6, the third embodiment is similar to the second embodiment, and the difference is that in the computing module 31A of the embodiment, the second calculating unit 316b is based on the H parameter and the s of the first Hsv data. The parameters and the S weights can be used to calculate dels. In other words, compared with the second calculating unit 216b of the second embodiment, the second calculating unit 316b of the embodiment does not need to refer to the V parameter of the first HSV data, so the hardware design complexity of the second calculating unit 316b can be reduced. . Similarly, the second calculating unit 316c of the present embodiment can calculate the delv only by referring to the parameter of the first hsv data and the V parameter and the V weight. Compared with the third calculating unit 216c of the second embodiment, the third calculating unit 316e of the embodiment does not need to refer to the S parameter of the first HSV data. [Fourth Embodiment] Fig. 7 is a schematic structural view of an image color adjusting device according to a fourth embodiment of the present invention. Referring to FIG. 7, the fourth embodiment is similar to the third embodiment. The difference is that in the calculation_module 41 of the embodiment, the first different unit 416b receives the S parameter of the first HSV data. The V parameter and the first S weight (Sw), and output a second s weight (Sw,). Similarly, the third calculating unit 416c receives the S parameter doc/g 1295891 and the v parameter of the first HSV data and the first V weight (Vw), and outputs a second V weight (Vw'). Further, the first calculating unit 416a receives the Η parameter, the Η weight (Hw), the second s weight (Sw,), and the second v weight (Vw,) of the first HSV data, and outputs delH, delS, and delV. [Fifth Embodiment] Fig. 8 is a system configuration diagram of an image color adjusting device according to a fifth embodiment of the present invention. Referring to FIG. 8, the fifth embodiment is similar to the fourth embodiment, except that the second calculating unit 516b only needs to receive the S parameter of the first HSV data and the first S weight (Sw). A second S weight (Sw,) is output. Similarly, the third calculating unit 51& can receive a second V weight (Vw,) by simply receiving the V parameter of the first HSV data and the first V weight (vw). The first calculating unit 516a calculates delH, dels, and delV by receiving the first HSV data, the η weight, the second S weight (Sw,), and the second V weight (Vw'). It should be noted that delH, delS and delV are not limited to the calculations generated by the above-disclosed architecture, and the generation of weights of various parameters is not limited to the use of look-up tables. While the present invention has been described in its preferred embodiments, the present invention is not intended to limit the invention, and the present invention may be modified and modified without departing from the spirit and scope of the invention. The scope of protection is subject to the definition of the scope of the patent application. - BRIEF DESCRIPTION OF THE DRAWINGS Fig. 1 is a flow chart showing a method of adjusting an image color according to an embodiment of the present invention. I2958967c Otwf.doc/g Figure 2A is a diagram of hue weight distribution in accordance with an embodiment of the present invention. 2B is a graph of chroma weight distribution in accordance with an embodiment of the present invention. 2C is a diagram of a weight distribution map in accordance with an embodiment of the present invention. 3 is a flow chart of a method for adjusting the color of an image according to another embodiment of the present invention. Figure 4 is an image color (4) bribe@@ in accordance with a first embodiment of the present invention. Figure 5 is a system architecture diagram of an image color adjustment device in accordance with a second embodiment of the present invention. Figure ό is a system architecture diagram of an image color adjusting device in accordance with a third embodiment of the present invention. Figure 7 is a system architecture diagram of an image color adjusting device in accordance with a fourth embodiment of the present invention. Figure 8 is a system architecture diagram of an image color adjusting device in accordance with a fifth embodiment of the present invention. [Description of main component symbols] _ Steps: Slio, S120, S130, S140, S150, S210, S220, S230, S240, S250, S260, S270 110: First signal conversion modules 120, 210, 310, 410, 510: Computing module 130a, 130b, 130c: adder-140: second signal conversion module 212: classification unit 214: weight storage unit 21 丨twf.doc/g 丨twf.doc/g 216a 216b 216c 416a, 516a: First calculation unit 316b, 416b, 516b: second calculation unit 316c, 416c, 516c: third calculation unit

Claims (1)

丨 twf.doc/g 十、申請專利範圍: 1. 一種影像色彩的調整方法,包括: 接收多數筆第一 RGB資料; 將該些第一 RGB資料轉換為多數筆第一 HSV資料; 將該些第一 HSV資料以Η參數為單位區分出多數個 群組, 將該些群組其中之一之該些第一 HSV資料調整為多 數筆第二HSV資料;以及 將該些第二HSV資料轉換為多數筆第二RGB資料。 2. 如申請專利範圍第1項所述之影像色彩的調整方 法,其中調整該群組之該些第一 HSV資料的方法包括: 將Η權重加入該群組之該些第一 HSV資料之Η參數 中; 將Η權重與S權重相乘後加入該群組之該些第一 HSV 資料之S參數中;以及 將Η權重與V權重相乘後加入該群組之該些第一 HSV資料之V參數中。 3. 如申請專利範圍第2項所述之影像色彩的調整方 法,其中該群組之該些第一 HSV資料之Η參數的最大值 與最小值所加的Η權重為0。 4. 如申請專利範圍第2項所述之影像色彩妁調整方 法,其中該群組之該些第一 HSV資料之S參數介於0與1 之間,且當S參數為0或1時,所加的S權重為0。 5. 如申請專利範圍第4項所述之影像色彩的調整方 ⑧ 23 丨 twf.doc/g 法,其中施加有最大S權重之S參數介於0.5至1之間。 6. 如申請專利範圍第2項所述之影像色彩的調整方 法,其中該群組之該些第一 HSV資料之S參數與V參數 均介於0與1之間,而當V參數為0或1時,所加的V權 重為0,且當S參數為0時,所加的V權重為0。 7. 如申請專利範圍第6項所述之影像色彩的調整方 法,其中施加有最大V權重之V參數介於0.5至1之間。 8. 如申請專利範圍第1項所述之影像色彩的調整方 法,其中該些第一 RGB資料係擷取自一第一彩色影像訊 號。 9. 如申請專利範圍第1項所述之影像色彩的調整方 法,其中在轉換為該些第二RGB資料之後,更包括輸出 由該些第二RGB資料所組成之一第二彩色影像訊號。 10. 如申請專利範圍第1項所述之影像色彩的調整方 法,其中在將該些第二HSV資料轉換成該些第二RGB資 料之後,更包括對於該些第二RGB資料進行一色溫調整 步驟,以形成多數筆第三RGB資料。 11. 如申請專利範圍第10項所述之影像色彩的調整方 法,其中該色溫調整步驟包括對於該些第二RGB資料之R 參數、G參數與B參數進行調整。 12. 如申請專利範圍第10項所述之影像色筹:!的調整方 法,其中該色溫調整步驟包括查表法(LUT)。 13. 如申請專利範圍第10項所述之影像色彩的調整方 法,其中在進行該色溫調整步驟之後,更包括輸出由該些 24 12958¾ Otwf.doc/g 第三RGB資料所組成之一第二彩色影像訊號。 14.一種影像色彩的調整裝置,適於接收一第一 RGB 資料,並輸出一第二RGB資料,該影像色彩的調整裝置 ' 包括: - 一第一訊號轉換模組,用以將該第一 RGB資料轉換 成一第一 HSV資料; 一計算模組,耦接至該第一訊號轉換模組,且該計算 模組用以接收該第一 HSV資料,並計算出一 delH、一 ® delS、- delV ; 多數個加法器,耦接至該計算模組,且該些加法器用 以分別接收該delH、該delS、該delV並分別疊加至該第 一 HSV資料之Η參數、S參數與V參數中,以輸出一第 二HSV資料;以及 一第二訊號轉換模組,耦接至該些加法器,且該第二 訊號轉換模組用以將該第二HSV資料轉換成該第二RGB 資料。 • 15.如申請專利範圍第14項所述之影像色彩的調整裝 置,其中該計算模組包括: 一分類單元,耦接至該第一訊號轉換模組,且該分類 單元用以接收該第一 HSV資料之Η參數,並輸出一分類 訊號; - - 一權重儲存單元,耦接至該分類單元,且該權重儲存 單元用以接收該分類訊號,並輸出一 Η權重、一 S權重與 一 V權重; (S) 25 ,doc/g 一第一計算單元,耦接至該權重儲存單元與該第一訊 號轉換模組,且該第一計算單元用以接收該第一 HSV資料 之Η參數與該Η權重,並輸出該delH ; 一第二計算單元,耦接至該權重儲存單元與該第一訊 號轉換模組,且該第二計算單元用以接收該第一 HSV資料 之Η參數、S參數與V參數以及該S權重,並輸出該delS; 以及 一第三計算單元,耦接至該權重儲存單元與該第一訊 號轉換模組,且該第三計算單元用以接收該第一 HSV資料 之Η參數、S參數與V參數以及該V權重,並輸出該delV。 16.如申請專利範圍第14項所述之影像色彩的調整裝 置,其中該計算模組包括: 一分類單元,耦接至該第一訊號轉換模組,且該分類 單元用以接收該第一 HSV資料之Η參數,並輸出一分類 訊號; 一權重儲存單元,轉接至該分類單元,且該權重儲存 單元用以接收該分類訊號,並輸出一 Η權重、一 S權重與 一 V權重; 一第一計算單元,耦接至該權重儲存單元與該第一訊 號轉換模組,且該第一計算單元用以接收該第一 HSV資料 之Η參數與該Η權重,並輸出該delH ; . 一第二計算單元,耦接至該權重儲存單元與該第一訊 號轉換模組,且該第二計算單元用以接收該第一 HSV資料 之Η參數與S參數以及該S權重,並輸出該delS ;以及丨twf.doc/g X. Patent application scope: 1. An image color adjustment method, comprising: receiving a plurality of first RGB data; converting the first RGB data into a plurality of first HSV data; The first HSV data distinguishes a plurality of groups in units of Η parameters, and adjusts the first HSV data of one of the groups to a plurality of second HSV data; and converts the second HSV data into Most pens have second RGB data. 2. The method for adjusting image color according to claim 1, wherein the method for adjusting the first HSV data of the group comprises: adding a weight to the first HSV data of the group In the parameter, the Η weight is multiplied by the S weight and added to the S parameters of the first HSV data of the group; and the Η weight is multiplied by the V weight and added to the first HSV data of the group. In the V parameter. 3. The image color adjustment method according to claim 2, wherein the maximum and minimum values of the first parameter of the first HSV data of the group are zero. 4. The image color adjustment method according to claim 2, wherein the S parameters of the first HSV data of the group are between 0 and 1, and when the S parameter is 0 or 1, The added S weight is 0. 5. The method for adjusting the color of the image as described in item 4 of the patent application, the 23 丨 twf.doc/g method, wherein the S parameter with the maximum S weight applied is between 0.5 and 1. 6. The method for adjusting image color according to claim 2, wherein the S parameters and V parameters of the first HSV data of the group are between 0 and 1, and when the V parameter is 0. Or 1, the added V weight is 0, and when the S parameter is 0, the added V weight is 0. 7. The method of adjusting image color as described in claim 6 wherein the V parameter to which the maximum V weight is applied is between 0.5 and 1. 8. The image color adjustment method according to claim 1, wherein the first RGB data is extracted from a first color image signal. 9. The image color adjustment method of claim 1, wherein after converting to the second RGB data, the method further comprises outputting a second color image signal composed of the second RGB data. 10. The image color adjustment method according to claim 1, wherein after converting the second HSV data into the second RGB data, further comprising performing a color temperature adjustment on the second RGB data. Steps to form a majority of the third RGB data. 11. The image color adjustment method of claim 10, wherein the color temperature adjustment step comprises adjusting R parameters, G parameters, and B parameters of the second RGB data. 12. The method of adjusting image coloring: as described in claim 10, wherein the color temperature adjusting step comprises a look-up table (LUT). 13. The image color adjustment method according to claim 10, wherein after the color temperature adjustment step, the output further comprises one of the second RGB data of the 24 129 583 ⁄ ⁄ ⁄ Color image signal. An image color adjusting device, adapted to receive a first RGB data, and output a second RGB data, the image color adjusting device' includes: - a first signal conversion module for the first The RGB data is converted into a first HSV data; a computing module is coupled to the first signal conversion module, and the computing module is configured to receive the first HSV data, and calculate a delH, a ® delS, - a plurality of adders coupled to the computing module, and the adders are configured to respectively receive the delH, the delS, the delV, and respectively superimposed to the first parameter, the S parameter, and the V parameter of the first HSV data And outputting a second HSV data; and a second signal conversion module coupled to the adders, and the second signal conversion module is configured to convert the second HSV data into the second RGB data. The image color adjustment device of claim 14, wherein the calculation module comprises: a classification unit coupled to the first signal conversion module, and the classification unit is configured to receive the first a parameter of the HSV data, and outputting a classification signal; - - a weight storage unit coupled to the classification unit, and the weight storage unit is configured to receive the classification signal, and output a weight, a S weight, and a (V) 25, doc/g a first computing unit coupled to the weight storage unit and the first signal conversion module, and the first computing unit is configured to receive the first parameter of the first HSV data And the second computing unit is coupled to the weight storage unit and the first signal conversion module, and the second computing unit is configured to receive the first parameter of the first HSV data, The S parameter and the V parameter and the S weight, and output the delS; and a third computing unit coupled to the weight storage unit and the first signal conversion module, and the third computing unit is configured to receive the first HSV data Η parameter, S parameters and the parameters V and V weights, and outputs the delV. The image color adjustment device of claim 14, wherein the calculation module comprises: a classification unit coupled to the first signal conversion module, and the classification unit is configured to receive the first a parameter of the HSV data, and outputting a classification signal; a weight storage unit, transferred to the classification unit, and the weight storage unit is configured to receive the classification signal, and output a weight, a S weight, and a V weight; a first computing unit is coupled to the weight storage unit and the first signal conversion module, and the first computing unit is configured to receive the first parameter of the first HSV data and the weight of the first HSV, and output the delH. a second computing unit is coupled to the weight storage unit and the first signal conversion module, and the second computing unit is configured to receive the first parameter and the S parameter of the first HSV data and the S weight, and output the delS ; and 26 1295^7, twf.doc/g 一第三計算單元,耦接至該權重儲存單元與該第一訊 號轉換模組,且該第三計算單元用以接收該第一 HSV資料 之Η參數與V參數以及該V權重,並輸出該delV。 17.如申請專利範圍第14項所述之影像色彩的調整裝 置,其中該計算模組包括: 一分類單元,耦接至該第一訊號轉換模組,且該分類 單元用以接收該第一 HSV資料之Η參數,並輸出一分類 訊號; 一權重儲存單元,耦接至該分類單元,且該權重儲存 單元用以接收該分類訊號,並輸出一 Η權重、一第一 S權 重與一第一 V權重; 一第二計算單元,耦接至該權重儲存單元與該第一訊 號轉換模組,且該第二計算單元用以接收該第一 HSV資料 之S參數與V參數以及該第一 S權重,並輸出一第二S權 重; 一第三計算單元,耦接至該權重儲存單元與該第一訊 號轉換模組,且該第三計算單元用以接收該第一 HSV資料 之S參數與V參數以及該第一 V權重,並輸出一第二V 權重;以及 一第一計算單元,耦接至該權重儲存單元、該第一訊 號轉換模組、該第二計算單元與該第三計算單元,且該第 一計算單元用以接收該第一 HSV資料之Η參數、該Η權 重、該第二S權重與該第二V權重,並輸出該delH、該 delS 與該 delV。 27 12958敗 Otwf.doc/g 18·如申請專利範圍第14項所述之影像色彩的調整裝 置,其中該計算模組包括: 一分類單元,柄接至該第一訊號轉換模組,且該分類 單元用以接收該第一 HSV資料之Η參數,並輸出一分類 訊號; 一權重儲存單元,耦接至該分類單元,且該權重儲存 單元用以接收該分類訊號,並輸出一 Η權重、一第一 S權 重與一第一 V權重; 一第二計算單元,耦接至該權重儲存單元與該第一訊 號轉換模組,且該第二計算單元用以接收該第一 HSV資料 之S參數與該第一 S權重,並輸出一第二S權重; 一第三計算單元,耦接至該權重儲存單元與該第一訊 號轉換模組,且該第三計算單元用以接收該第一 HSV資料 之V參數與該第一 V權重,並輸出一第二V權重;以及 一第一計算單元,耦接至該權重儲存單元、該第一訊 號轉換模組、該第二計算單元與該第三計算單元,且該第 一計算單元用以接收該第一 HSV資料之Η參數、該Η權 重、該第二S權重與該第二V權重,並輸出該delH、該 delS 與該 delV。 2826 1295^7, twf.doc/g a third computing unit coupled to the weight storage unit and the first signal conversion module, and the third computing unit is configured to receive the first parameter of the first HSV data The V parameter and the V weight are output, and the delV is output. The image color adjustment device of claim 14, wherein the calculation module comprises: a classification unit coupled to the first signal conversion module, and the classification unit is configured to receive the first a parameter of the HSV data, and outputting a classification signal; a weight storage unit coupled to the classification unit, and the weight storage unit is configured to receive the classification signal, and output a weight, a first S weight, and a first a V-weight; a second computing unit coupled to the weight storage unit and the first signal conversion module, and the second computing unit is configured to receive S parameters and V parameters of the first HSV data and the first S weighting, and outputting a second S weight; a third calculating unit coupled to the weight storing unit and the first signal converting module, and the third calculating unit is configured to receive the S parameter of the first HSV data And the V parameter and the first V weight, and outputting a second V weight; and a first computing unit coupled to the weight storage unit, the first signal conversion module, the second computing unit, and the third meter And calculating, by the first computing unit, the Η parameter of the first HSV data, the Η weight, the second S weight and the second V weight, and outputting the delH, the delS and the delV. The apparatus for adjusting the image color according to claim 14, wherein the calculation module comprises: a classification unit, the handle is connected to the first signal conversion module, and the The categorization unit is configured to receive the Η parameter of the first HSV data and output a classification signal; a weight storage unit coupled to the classification unit, and the weight storage unit is configured to receive the classification signal and output a weight, a first S weight and a first V weight; a second computing unit coupled to the weight storage unit and the first signal conversion module, and the second computing unit is configured to receive the S of the first HSV data The parameter is associated with the first S weight and outputs a second S weight; a third computing unit is coupled to the weight storage unit and the first signal conversion module, and the third computing unit is configured to receive the first a V parameter of the HSV data and the first V weight, and outputting a second V weight; and a first computing unit coupled to the weight storage unit, the first signal conversion module, the second computing unit, and the Third calculation a unit, and the first calculating unit is configured to receive the first parameter of the first HSV data, the weight of the second S weight, and the second V weight, and output the delH, the delS and the delV. 28
TW94145219A 2005-12-20 2005-12-20 Method and device for adjusting the colors of image TWI295897B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
TW94145219A TWI295897B (en) 2005-12-20 2005-12-20 Method and device for adjusting the colors of image

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
TW94145219A TWI295897B (en) 2005-12-20 2005-12-20 Method and device for adjusting the colors of image

Publications (2)

Publication Number Publication Date
TW200726271A TW200726271A (en) 2007-07-01
TWI295897B true TWI295897B (en) 2008-04-11

Family

ID=45068571

Family Applications (1)

Application Number Title Priority Date Filing Date
TW94145219A TWI295897B (en) 2005-12-20 2005-12-20 Method and device for adjusting the colors of image

Country Status (1)

Country Link
TW (1) TWI295897B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108198250A (en) * 2018-01-23 2018-06-22 网易(杭州)网络有限公司 Virtual objects model colouring method and device, storage medium, electronic equipment

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TWI387354B (en) * 2008-06-18 2013-02-21 Novatek Microelectronics Corp Method for adjusting color saturation and image displaying system using the method

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108198250A (en) * 2018-01-23 2018-06-22 网易(杭州)网络有限公司 Virtual objects model colouring method and device, storage medium, electronic equipment

Also Published As

Publication number Publication date
TW200726271A (en) 2007-07-01

Similar Documents

Publication Publication Date Title
JP4666274B2 (en) Color image processing apparatus and method
JP4495126B2 (en) Apparatus and method for adjusting specific color attributes
TW589614B (en) Adaptive contrast and brightness enhancement with color preservation
JP2020522081A (en) Image processing method and apparatus, electronic device, computer storage medium
JP2003230160A (en) Color picture saturation adjustment apparatus and method therefor
US8081239B2 (en) Image processing apparatus and image processing method
JP5588650B2 (en) Sharpness correction apparatus and method
CN107454345B (en) White balancing treatment method, device and the terminal device of image
JP4523008B2 (en) Image processing apparatus and imaging apparatus
TWI533661B (en) Method and device of skin tone optimization in color gamut mapping system
US10223778B2 (en) Image contrast enhancement method and apparatus thereof
JP2004064792A (en) Color correction system and its method
JP2013013060A (en) Method for processing high dynamic range image using tone mapping to extended rgb space
JP2000224607A (en) Image processor
US9098886B2 (en) Apparatus and method for processing an image
JPH11250227A (en) Method and device for correcting face area and record medium for recording face area correction program
TWI295897B (en) Method and device for adjusting the colors of image
Jang et al. Color correction by estimation of dominant chromaticity in multi-scaled retinex
JP5824423B2 (en) Illumination light color estimation device, illumination light color estimation method, and illumination light color estimation program
JPWO2007097125A1 (en) Image processing apparatus, image processing program, image processing method, and electronic camera for correcting texture of image
JP4375580B2 (en) Image processing apparatus, image processing method, and image processing program
US8305499B2 (en) Image processing circuit and method for image processing
WO2012153661A1 (en) Image correction device, image correction display device, image correction method, program, and recording medium
TWI531246B (en) Color adjustment method and its system
WO2008036850A2 (en) Chroma supression features

Legal Events

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