TWI336594B - Method and apparatus thereof for adjusting colors of an image - Google Patents

Method and apparatus thereof for adjusting colors of an image Download PDF

Info

Publication number
TWI336594B
TWI336594B TW96119089A TW96119089A TWI336594B TW I336594 B TWI336594 B TW I336594B TW 96119089 A TW96119089 A TW 96119089A TW 96119089 A TW96119089 A TW 96119089A TW I336594 B TWI336594 B TW I336594B
Authority
TW
Taiwan
Prior art keywords
color
color signal
region
boundary
coefficient
Prior art date
Application number
TW96119089A
Other languages
Chinese (zh)
Other versions
TW200847796A (en
Inventor
Meng Chao Kao
Yu Ju Lee
Original Assignee
Chunghwa Picture Tubes Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Chunghwa Picture Tubes Ltd filed Critical Chunghwa Picture Tubes Ltd
Priority to TW96119089A priority Critical patent/TWI336594B/en
Publication of TW200847796A publication Critical patent/TW200847796A/en
Application granted granted Critical
Publication of TWI336594B publication Critical patent/TWI336594B/en

Links

Landscapes

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

Description

0610181ITW 22804twf.doc/n 九、發明說明: 【發明所屬之技術領域】 ,發明是關於-種影像色_整方法及 【先前技術】 膚色色調及齡度的方法與裝置。 目前電視的傳輪訊號多半採訂(亮度) 刀離的技術來傳輪,而上述的C (色矽) R-Y鱼B Y,u冲主;汛唬疋用來將色彩轉換成 |中u R 色㈣色調(hue)與飽和度(sah—n), ;二== 原色的紅色與藍色訊號,,傳统0610181ITW 22804twf.doc/n IX. Description of the Invention: [Technical Field] The invention relates to an image coloring method and a prior art method and apparatus for skin color tone and age. At present, the transmission signal of the TV is mostly ordered (brightness). The technology of the knife is used to transmit the wheel, and the above C (color 矽) RY fish BY, u rush to the main; 汛唬疋 used to convert the color into | (4) hue and saturation (sah-n), ; === primary color red and blue signals, traditional

魅命’在化樣的色才)模式(C〇1〇r m〇del)之下做色調、 飽和度和壳度對比的調整。 D 整所Ϊ二:傳ίΪ方法有兩個問題。第一個是只能同時調 針對特定的色雜域作調整。例如加強 ,、##、夕陽等特定色彩區域的飽和度,使晝面 整;更為鮮賴人,或是將偏紅或偏白的膚色調 \的位置。第二個問題是即使輸入源是數位的 、藍(簡稱為RGB)訊號,也要先轉換到上述的y、 Β-Υ私式,調整過後再轉回顯示用的RGB模式。這 個轉換動作會增加電路的複減與成本。 缺。色彩調整是目前顯示器的重要功能,其中以膚色的自 然王現最為人眼所重視,面對各式各樣的影像來源,一種 供=戶調整膚色的機制是不可或缺的。而 目前的顯示器多 提供單一色彩(如紅、藍、綠)的調整功能,而沒有針 對膚色提出個別調整的功能選項’無法提供用戶簡易的膚 1336594 06101811TW 22804twf.doc/n • 色調整功能。此外,不同的色彩調整方式,其主要的差 在於凉异法的差異,在傳統技術的色彩調整通常需要進疒 色彩模型的轉換。色彩模型的轉換需要使用複雜的運^ . 因此如何找出有效且電路實現成本較低的色彩演算方 • 式是目前技術所需努力追求的方向。 【發明内容】 本發明的目的是在提供一種色彩調整的方法與裝 • 置’可直接在RGB模式下進行膚色調整,而不需要經過 色彩模式轉換,以降低相關電路的複雜度與成本。 本發明的再一目的是提供一種色彩調整的方法與裝 置,將膚色區域分為兩個個別區域,針對邊界處進行漸進 式的《周整,以降低擬似輪靡(pseucJ〇c〇nt〇ur)的發生。 為達成上述及其他目的,本發明提出一種色彩調整的 方法,包括下列步驟:首先定義一膚色區域,此膚色區域 包括中央區域與邊界區域。為了影像的連續性,中央區域 與邊界區域的係數不同。接下來判斷一色彩信號是否位於 此膚色區域,並區分此色彩信號是位於中央區域還是邊界 區域。若此色彩信號位於中央區域,則根據一色調係數, 調整色彩信號中之綠灰階值與藍灰階值。若此色彩信號位 於邊界區域,則根據一邊界色調係數,調整色彩信號中之 綠灰階值與藍灰階值。其中,此色彩信號中之紅、綠、藍 灰階值分別以R、G、B表示。 在本發明一實施例中,將R>G>B之色彩區域定義為 膚色區域,而其中中央區域與邊界區域則由一閥值所決 6 1336594 0610181ITW 22804twf.doc/n 定。中央區域符合(R-G)>x且(G_B)>X,而邊界區域符合 〇S(R-G)SX 且 〇$(G-B)SX,其中閥值 χ 等於 3〇。 在本發明另一實施例中,色調係數包括一綠色調係數 g與一藍色調係數b,若色彩信號位於該中央區域,則調整 後之色彩信號中之綠灰階值等於G_(G*g),調整後之色彩 信號中之藍灰階值等於B_(B*b),且〇<g<〇 2、〇<b<〇 2 /The adjustment of hue, saturation and shell contrast is done under the mode (C〇1〇r m〇del). D The whole thing is two: There are two problems with the method of passing the Ϊ. The first one can only be adjusted for a specific color field at the same time. For example, the saturation of a specific color area such as reinforced, ##, sunset, etc., makes the 昼 face completely; it is more important to people, or the position of the reddish or whitened skin tone. The second problem is that even if the input source is a digital, blue (abbreviated as RGB) signal, it must first be converted to the above y, Β-Υ private, and then adjusted back to the display RGB mode. This conversion action increases the circuit's reduction and cost. lack. Color adjustment is an important function of the current display. Among them, the natural color of the skin color is most important to the human eye. In the face of various image sources, a mechanism for adjusting the skin color is indispensable. Currently, the display provides a single color (such as red, blue, green) adjustment function, and there is no function option for individual adjustment of the skin color. 'The user's simple skin cannot be provided 1336594 06101811TW 22804twf.doc/n • Color adjustment function. In addition, the main difference between the different color adjustment methods is the difference of the cold method. In the traditional technology, the color adjustment usually requires the conversion of the color model. The conversion of the color model requires the use of complex operations. Therefore, how to find a color calculation method that is effective and has a low circuit implementation cost is the direction that the current technology needs to pursue. SUMMARY OF THE INVENTION It is an object of the present invention to provide a method and apparatus for color adjustment that can perform skin tone adjustment directly in RGB mode without requiring color mode conversion to reduce the complexity and cost of the associated circuit. It is still another object of the present invention to provide a method and apparatus for color adjustment, which divides a skin color region into two individual regions, and performs a progressive "circumference" at the boundary to reduce the pseudo-like rim (pseucJ〇c〇nt〇ur )happened. To achieve the above and other objects, the present invention provides a method of color adjustment comprising the steps of first defining a skin tone region comprising a central region and a boundary region. For the continuity of the image, the coefficients of the central area and the boundary area are different. Next, it is judged whether or not a color signal is located in the skin color region, and it is distinguished whether the color signal is located in the central region or the boundary region. If the color signal is located in the central region, the green grayscale value and the blue grayscale value in the color signal are adjusted according to a tone coefficient. If the color signal is located in the boundary region, the green grayscale value and the blue grayscale value in the color signal are adjusted according to a boundary tonal coefficient. The red, green, and blue grayscale values in the color signal are represented by R, G, and B, respectively. In an embodiment of the invention, the color region of R > G > B is defined as a skin color region, and wherein the central region and the boundary region are determined by a threshold value of 6 1 336 594 0610181 ITW 22804 twf.doc / n. The central region conforms to (R-G)>x and (G_B)>X, while the boundary region conforms to 〇S(R-G)SX and 〇$(G-B)SX, where the threshold χ is equal to 3〇. In another embodiment of the present invention, the tone coefficient includes a green tone coefficient g and a blue tone coefficient b. If the color signal is located in the central region, the green grayscale value in the adjusted color signal is equal to G_(G*g ), the blue grayscale value in the adjusted color signal is equal to B_(B*b), and 〇<g<〇2,〇<b<〇2 /

在本發明另一實施例中,邊界色調係數包括一綠邊界 色調係數ge與-藍邊界色調係數be,若色彩信號位於邊 界區域,則調整後之色彩信號中之綠灰階值等於 G-CGle),調整後之色彩信號中之藍灰階值等於 B-(B*be) . ^ ^ ge=g*(R_G)/30*(G-B)/30 > be=b*(R-G)/30*(G-B)/30。In another embodiment of the present invention, the boundary hue coefficient includes a green boundary hue coefficient ge and a blue boundary hue coefficient be. If the color signal is located in the boundary region, the green grayscale value in the adjusted color signal is equal to G-CGle. ), the blue grayscale value in the adjusted color signal is equal to B-(B*be) . ^ ^ ge=g*(R_G)/30*(GB)/30 > be=b*(RG)/30 *(GB)/30.

從另-觀點來看,本發明另提出—種色彩調整的方 ^包括下列步驟:首先定義—膚色區域,此膚色區域包 括中央區域與邊界區域。為了影像的連續性,中央區域盘 f區域的係數不同。接下來判斷—色彩信號是否位於此 二區域,並區分此色彩信號是位於中央區域還是邊界區 域。若此色彩信f纽於中央區域,驗據—飽和度係數, =整^信號中之飽和度。若此色彩信號位於邊界區域, 則根據-邊界飽和度餘,難色彩錢中之飽和度。 方法在,&例巾’上述飽和度之色彩調整的 ^ ’右色彩錢位於中央區域,_整後之色紳號之 ’機叙色練狀綠灰階值 (M) _,調整後之色彩錢之藍灰階值等於 7 1336594 0610181ITW 22804twf.doc/n (B-M)*k+M,其中M為一中間值,M等於(R+B)/2,k為 飽和度係數。 在本發明一實施例中,上述調整飽和度之色彩調整的 方法,其中若該色彩信號位於邊界區域,則調整後之色彩 信號之紅灰階值等於(R-M) * ke+M,調整後之色彩信號之綠 灰階值等於(G-M) * ke+M ’調整後之色彩信號之藍灰階值等 於(B-M)*ke+M,其中Μ為一中間值’M等於(r+b)/2,ke 為邊界飽和度係數’ k為飽和度係數,ke等於 (k-l)*(R-G)/30*(G-B)/30+l。 在本發明一實施例中,上述調整飽和度之色彩調整的 方法’其中飽和度係數為定值,邊界飽和度隨飽和度係數 與色彩信號中之紅、綠灰階值而變。 在本發明另一實施例中,若色彩信號未位於膚色區 域,則不予調整。 從再一觀點來看,本發明又提出一種色彩調整裝置, 包括接收單元、調整單元、判斷單元及選擇器。 接收單元是用來接收一色彩信號,調整單元耦接至接收單 元的輸出’並根據一色調係數與一邊界色調係數,調整色 彩信號中之綠灰階值、藍灰階值。判斷單元用以判斷該色 彩信號是否位於一膚色區域,並輸出選擇信號,而選擇器 輕接於接收單元與調整單元,並根據選擇信號,輸出色彩 信號或調整後之色彩信號。 ^ 在本發明另一實施例中,上述調整單元還會根據餘和 度係數與邊界飽和度係數,調整色彩信號中之紅灰階值、 8 0610181ITW 22804twf.doc/, 綠灰1¾值與監灰階值,然後經由選擇器輪出以調整位於 色區域之色彩信號。 '月 本發明因直接針對影像信號(R,G,B)進行運算以 調整膚色區域中之色彩信號,避免色彩模型轉換的運算流 程,因此大大降低了電路複雜度以及生產成本。此外,本 發明可同時適用於色相與飽和度的調整,讓顯示器在声 調整的功能上更為便利。 月 ▲為讓本發明之上述和其他目的、特徵和優點能更明顯易 懂,下文特舉本發明之較佳實施例,並配合所附圖式, 說明如下。 【實施方式】 % 一實施例 圖1為本發明一實施例之膚色色調(Hue)調整方法的 步驟流程® ’請參相1的步驟S11G,首先定義—個膚色 區域’其巾膚色區域包括巾央區域與邊界區域。在本實施 例中將R>G>B的區域定義為為膚色區域,其中r、g、b { National Television System c_mee ’ NTSC)標準之色彩翻,分縣示色彩信號 的紅灰階值、綠灰階值以及藍灰階值。 接下來,步驟S120判斷—個色彩錢衫位於該膚 色區域内。奸彩信號位於膚色區域的中央區域内,則根 據色調係:數來調/整色彩信號令之綠灰階值、藍灰階值(步驟 S130)。右此色形仏號位於膚色區域的邊界區 界色調係錄驢色_號之較階值、藍㈣值(步^邊 1336594 0610181ITW 22804twf.doc/n ΓΛ了驟色=號未位於膚色區域中,則不予調整,直接 輸出(步驟S150)。此外,在本發明另一實施例中,在上 述步驟S110更包括接收該色彩信號,而在上述步驟§刚 之後,更包括輸出調整後之色彩信號。From another point of view, the present invention further proposes a method of color adjustment. The method includes the following steps: First, defining a skin color region, the skin color region including a central region and a boundary region. For the continuity of the image, the coefficients of the central region f region are different. Next, it is judged whether or not the color signal is located in the two areas, and distinguishes whether the color signal is located in the central area or the border area. If the color letter f is in the central region, the test-saturation coefficient, = the saturation in the signal. If the color signal is located in the boundary region, the saturation in the color money is difficult according to the - boundary saturation. In the method, the color of the above-mentioned saturation color adjustment ^ 'right color money is located in the central area, _ the whole color of the nickname 'the machine color green triangle value (M) _, after adjustment The blue grayscale value of the color money is equal to 7 1336594 0610181ITW 22804twf.doc/n (BM)*k+M, where M is an intermediate value, M is equal to (R+B)/2, and k is a saturation coefficient. In an embodiment of the invention, the method for adjusting the color adjustment of saturation, wherein if the color signal is located in a boundary region, the red grayscale value of the adjusted color signal is equal to (RM)* ke+M, and the adjusted The green grayscale value of the color signal is equal to (GM) * ke+M 'The adjusted blue grayscale value of the color signal is equal to (BM)*ke+M, where Μ is an intermediate value 'M is equal to (r+b)/ 2, ke is the boundary saturation coefficient 'k is the saturation coefficient, ke is equal to (kl)*(RG)/30*(GB)/30+l. In an embodiment of the invention, the method for adjusting the color adjustment of saturation has a saturation coefficient which is constant, and the boundary saturation varies with the saturation coefficient and the red and green grayscale values in the color signal. In another embodiment of the invention, if the color signal is not in the skin tone region, no adjustment is made. From another point of view, the present invention further provides a color adjustment device including a receiving unit, an adjustment unit, a determination unit, and a selector. The receiving unit is configured to receive a color signal, and the adjusting unit is coupled to the output of the receiving unit ′ and adjust the green grayscale value and the blue grayscale value in the color signal according to a tone coefficient and a boundary tone coefficient. The determining unit is configured to determine whether the color signal is located in a skin color region, and output a selection signal, and the selector is lightly connected to the receiving unit and the adjusting unit, and outputs a color signal or the adjusted color signal according to the selection signal. In another embodiment of the present invention, the adjusting unit further adjusts the red and gray value in the color signal according to the residual coefficient and the boundary saturation coefficient, and the value of the green gray level and the gray level is monitored. The order value is then rotated through the selector to adjust the color signal located in the color region. 'Monthly, the present invention directly operates on the image signal (R, G, B) to adjust the color signal in the skin color region, thereby avoiding the operation process of the color model conversion, thereby greatly reducing the circuit complexity and the production cost. In addition, the present invention can be applied to both hue and saturation adjustments, making the display more convenient for sound adjustment. The above and other objects, features, and advantages of the present invention will become more apparent from the aspects of the invention. [Embodiment] % Embodiment FIG. 1 is a flow chart of a method for adjusting a Hue of a skin color according to an embodiment of the present invention. 'Please refer to Step S11G of Phase 1, first defining a skin color region'. Central area and border area. In this embodiment, the area of R > G > B is defined as the skin color area, wherein the color of the standard of r, g, b { National Television System c_mee 'NTSC), the red gray level value of the color signal of the county, green Grayscale values and blue grayscale values. Next, in step S120, it is judged that a color banknote is located in the skin color region. The treacherous signal is located in the central area of the skin color region, and the green gradation value and the blue gradation value are adjusted according to the hue system: the number (step S130). The right color apostrophe is located in the boundary area of the skin color region. The hue is recorded as the gradation value of the _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ In addition, in another embodiment of the present invention, the color signal is further included in the step S110, and after the step §, the output color is further included. signal.

接下來,進一步說明本實施例之調整範圍。圖2為根 據本發明一實施例之色度圖(chromaticity diagram)。在圖1 當中,本實施例的顯示裝置的三原色紅、綠、藍分別標示 為PR、PG、PB,這三點之間的三角形包含了上述顯示裝 置成顯示的所有色彩。黃色(yellow)、洋紅色(magenta)、青 色(cyan)在三角形的三邊上分別標示為ργ、pm、pc。PR、 PC之間,PG、PM之間以及PB、PY之間的三條直線將三 角形劃分為六個色彩區域,分別標示為1到6。而位於三 角形之内’色彩區域1〜6的共同頂點是白色pw。下面的 表1是色彩區域1〜6的定義。Next, the adjustment range of this embodiment will be further described. 2 is a chromaticity diagram in accordance with an embodiment of the present invention. In Fig. 1, the three primary colors red, green, and blue of the display device of the present embodiment are denoted as PR, PG, and PB, respectively, and the triangle between the three points includes all the colors displayed by the above display device. Yellow, magenta, and cyan are indicated on the three sides of the triangle as ργ, pm, and pc, respectively. The three lines between PR and PC, between PG and PM, and between PB and PY divide the triangle into six color regions, which are labeled as 1 to 6. The common vertex of the color regions 1 to 6 located within the triangle is white pw. Table 1 below is the definition of the color areas 1 to 6.

表1,色度圖中的色彩區域定義Table 1, definition of color regions in the chromaticity diagram

色彩區域 頂點 灰階值比例關係 1 PR、PY、PW R>G>B 2 PR、PM、PW R>B>G 3 PB、PM、PW B>R>G 4 PB、PC、PW B>G>R 5 PG、PC、PW G>B>R 6 PG、PY、PW G>R>B 本實施例是將色彩區域1定義為膚色區域。以R、G、 B分別代表某個晝素的色彩訊號的紅、綠、藍灰階值,只 1336594 0610181ITW 22804twf.doc/n 要滿足R>G>B’這個色彩訊號就位於本實施例的調整範圍 之内。不等式R>G>B可以拆解為R>G與G>B。在圖2的 色度圖當中’色彩區域1就是位於ργ與PB之間的直線(表 示R=G)右邊,以及PR與PC之間的直線(表示G=B) 之上。 請參考圖3,膚色區域中的中央區域31〇與邊界區域Color region vertex gray scale value proportional relationship 1 PR, PY, PW R > G > B 2 PR, PM, PW R > B > G 3 PB, PM, PW B > R > G 4 PB, PC, PW B > G &gt ; R 5 PG, PC, PW G > B > R 6 PG, PY, PW G > R > B This embodiment defines the color region 1 as the skin color region. Let R, G, and B represent the red, green, and blue grayscale values of the color signal of a certain pixel, respectively, only 1336594 0610181ITW 22804twf.doc/n. The color signal to satisfy R>G>B' is located in this embodiment. Within the adjustment range. The inequality R > G > B can be disassembled into R > G and G > B. In the chromaticity diagram of Fig. 2, the 'color area 1' is located to the right of the line between ργ and PB (representing R=G), and the line between PR and PC (representing G=B). Please refer to Figure 3, the central area 31〇 and the border area in the skin color area

32〇 (斜線部分)則由一閥值X所決定,其中該中央區域 符合(R-G)>X且(G-B)>X,該邊界區域符合〇^(r_g)$x 且〇S(G-B)SX,在本實施例中χ=3〇。閥值χ主要限定 邊界區域的範圍,在中央區域中,色調係數可以是預設常 數:也可以由使黯任意指定,而在邊界區域中,邊界色 ,係數會隨著色調係數與色彩信號的RGB三灰階值而改 欠饭叹色調係數設定為綠色調係數g與藍色調係數b, 而邊界色娜數分咖綠邊界色_數&與藍邊界色調 =be表示,RGUt、G⑽、脑分财㈣整後之紅灰32〇 (hatched portion) is determined by a threshold X, where the central region conforms to (RG)>X and (GB)>X, and the boundary region conforms to 〇^(r_g)$x and 〇S(GB) SX, in this embodiment χ = 3 〇. The threshold χ mainly defines the range of the boundary region. In the central region, the hue coefficient can be a preset constant: it can also be arbitrarily specified by 黯, and in the boundary region, the boundary color, the coefficient will follow the hue coefficient and the color signal. The RGB three-gradation value is changed to the green tone coefficient set to the green tone coefficient g and the blue tone coefficient b, and the boundary color number is divided into the green color boundary color _ number & and the blue border color tone = be, RGUt, G (10), Brain money (four) red ash

=式階值’X表示閱值’本實施之調= the order value 'X' indicates the value of the implementation

位於中央區域的調整公式: Rout=RAdjustment formula located in the central area: Rout=R

Gout=G-G*gGout=G-G*g

Bout=B-B*b 位於邊界區域的調整公式: 11 1336594 0610181ITW 22804twf.d〇c/nBout=B-B*b Adjustment formula for the boundary area: 11 1336594 0610181ITW 22804twf.d〇c/n

Rout=RRout=R

Gout=G-G*geGout=G-G*ge

Bout=B-B*be ge=g* [(R-G)/X) * ((G-B)/X) be=b* ((R-G)/X ] * ( (G-B)/X ] 中央==實施例的調整方式是將膚色區域分為 分別以兩種調整公式進行色彩仲 整色彩信號,當色彩信號位在邊界區域時, 漸進式變化,;:匕色彩信號’會使邊界上的色彩訊號以 的調整時,若色彩作缺仞认夯*私王隹逆仃巴衫仏號 接輸出。几纽於膚色區域之外,财予調整直 的是,即使色彩信號位於膚色區域中,1红 灰階值也不會進行調整 π其紅 點PR與PG之間的門心毛明另一貝知例中,位於頂 的間值與位於頂點PG與ΡΒ之間_值 3 而邊界區域則會隨著閥值而調整。在圖 ⑹方向的闕值γ,===紅(R)方向的閥值X與偏綠 伙與阳之間的間值m均設為30。假設頂點 則令央巴射入m值為x’頂點PG與PB之間的間值為Y, 财央G域付合伏今又且 = 〇雜-G)SX且0<iG ^〆邊界£域付合 則如下列公式所^:(阶’其邊界色調係數辟與^ 12 1336594 0610181ITW 22804twf.doc/n ge=g*〔 (R-G)/X〕*〔 (G-B)/Y〕 be=b*〔(R-G)/X〕*〔(G-B)/Y〕 理論上,區域1内部每一個位置都應該存在一個相對 應的色調係數,但是在實際應用上,透過繁瑣的運算找出 精確的色調係數並不實用,這種作法需要極複雜的電路來 實現,而且效果也不十分突出。所以本實施例將膚色區 域劃分為中央區域與邊界區域(請參考圖3),然後中 央區域採用一致的色調係數,而邊界區域採用隨位置 而修正的邊界色調係數,因此大大降低電路的複雜 度,而且解決了偽輪廓的問題。 當一個色彩信號出現時,若坐落在區域2〜區域 6,則色調係數g=b=0,也就是說,此色彩信號非膚 色,不予以調整。當此色彩信號落在區域1時,R維 持原值,不予調整(即紅灰階值R不予以調整),然 後G與B分別根據色調係數g及b進行調整。其中, 色調係數g及b是可以調整的參數,使用者可以針對 個人的喜好,將色調係數g調大,使影像中人物的膚 色偏向洋紅色(Magenta,R與B的中間色,像喝醉酒 的臉紅),或者將色調係數b調大,使影像中人物的 膚色偏黃(Yellow,R與G的中間色,類似黃疸病的 顏色)。 第二實施例 13 1336594 0610181ITW 22804twf.doc/n 在本發明另-實施例中,本發明亦提出一種可調整飽 和度的色形調整方法’圖4為根據本發明另一實施例之膚 色飽和度調整方法之步驟流程圖。圖4實施例與圖i實施 • 似要差別在於圖4主要針對飽和度作調整,其色彩調整 .的演算法不同’但膚色區域的劃分與圖,在此不再 累述。請參考圖4的步驟S410’首先定義一個膚色區域, 其中膚色區域包括中央區域與邊界區域。接下來,步驟 • 料2〇觸一個色彩信號是否位於該膚色區域内。若色彩信 號位於膚色區域的中央區域内,則根據飽和度係數來調整 色彩信號之飽和度(步驟S43〇)。#此色彩信號位於膚色區 域的邊界區域’則根據邊界飽和度係數來調整色彩信號之 飽和度係數(步驟S440)。若色彩信號未位於膚色區域中, 則不=調整,直接輸出(步驟S45〇)。其中,飽和度係數 可以是預設常數,也可以由使用者任意指定,邊界飽和係 數會隨著飽和度係數與色彩信號的RGB三灰階值而改變。' φ 〜,5為一色彩分布圖,外框A為人眼所能看到的所有色 彩的範圍’内框B為顯示器所能呈現的所有色彩的範圍。内 框B裡面有許多向外發散的線條(色彩分布圖的内框B是—個 倒立的三角錐)’每一條線上的RGB比例皆相同,所以是屬於 色相,亦即代表著相同的顏色。但是越接近内框β的内 部,表不顏色越淡,一個色相的濃度即隨著線條向外而増加。 越接近内部,rgb之間的差值就越小,當r==g=b Μ ώ ^ 叮則為 …、I面,而顏色越淡,飽和度就越差,反之,若遠離内部, 即表示飽和度越好,RGB之間的差值也越大。舉例而:,’ 1336594 0610181ITW 22804twf.doc/n 汛1,〇131)=(1,2,3)與(112,〇2,32)=(10,20,30)的比例相同, 所以是同一種顏色,但是(尺2,0232)=(10,20,30)的顏色比 較濃,飽和度比較好。 根據上述理論,本實施例提出一種調整色彩飽和度的方 法。因為本實施例主要是針對膚色區域(R>G>B)做飽和度調 整’所以先計算出一個中間值M=(R+B)/2,再設定飽和度係數 k’其中飽和度係數k是一個可以隨著使用者偏好調整的參 數。然後利用中間值Μ與飽和度係數k調整RGB等參數值, 得到調整後的色彩信號的RGB參數值,分別以Rout、Gout、 Bout表示如下:Bout=BB*be ge=g* [(RG)/X) * ((GB)/X) be=b* ((RG)/X ] * ( (GB)/X ] Center == Adjustment of the embodiment The method is to divide the skin color region into two color adjustment colors with two adjustment formulas, and gradually change when the color signal bit is in the boundary region; 匕 匕 color signal 'will make the color signal on the boundary adjust If the color is short of 仞 夯 私 私 私 私 私 私 私 私 私 私 私 私 私 私 私 私 私 私 私 私 私 私 私 私 私 私 私 私 私 私 私 私 私 私 私 私 私 私 私 私 私 私 私 私It will not be adjusted π its red dot PR and PG between the door and the MG. In another example, the inter-value between the top and the vertex PG and ΡΒ value _ value 3 and the boundary area will follow the threshold And adjust. In the direction of the figure (6), the threshold value γ, === red (R) direction threshold X and the green value between the green and the yang are set to 30. Suppose the apex causes the yangba to enter m The value of x' vertex is the value of Y between PG and PB, and the fiscal center G domain pays for the same time and = noisy-G)SX and 0 <iG ^〆 boundary is the same as the following formula ^ : (order 'its boundary tonality coefficient with ^ 12 133 6594 0610181ITW 22804twf.doc/n ge=g*[ (RG)/X]*[ (GB)/Y] be=b*[(RG)/X]*[(GB)/Y] In theory, area 1 There should be a corresponding tone coefficient for each position in the interior, but in practical applications, it is not practical to find the exact tone coefficient through cumbersome operations. This method requires extremely complicated circuits to achieve, and the effect is not very Therefore, in this embodiment, the skin color region is divided into a central region and a boundary region (refer to FIG. 3), and then the central region adopts a uniform tone coefficient, and the boundary region adopts a boundary tonal coefficient corrected with position, thereby greatly reducing the circuit's The complexity and the problem of the pseudo contour are solved. When a color signal appears, if it is located in the area 2 to the area 6, the hue coefficient g=b=0, that is, the color signal is not skin color and is not adjusted. When the color signal falls in the area 1, R maintains the original value and is not adjusted (ie, the red gray level value R is not adjusted), and then G and B are adjusted according to the hue coefficients g and b, respectively, wherein the hue coefficient g and b is adjustable Parameters, the user can adjust the hue coefficient g to the individual's preference, so that the skin color of the person in the image is biased toward magenta (Magenta, the intermediate color of R and B, like a drunken blush), or the hue coefficient b is increased. The skin color of the person in the image is yellowed (Yellow, the intermediate color of R and G, similar to the color of jaundice.) Second Embodiment 13 1336594 0610181ITW 22804twf.doc/n In another embodiment of the present invention, the present invention also proposes a Color Shape Adjustment Method of Adjustable Saturation FIG. 4 is a flow chart showing the steps of the skin color saturation adjustment method according to another embodiment of the present invention. Figure 4 embodiment and Figure i implementation • The difference is that Figure 4 is mainly for saturation adjustment, and the algorithm of color adjustment is different. However, the division and map of the skin color region are not described here. Referring to step S410' of FIG. 4, a skin color region is first defined, wherein the skin color region includes a central region and a boundary region. Next, step 2: Touch 1 to see if a color signal is in the skin tone area. If the color signal is located in the central area of the skin color region, the saturation of the color signal is adjusted in accordance with the saturation coefficient (step S43 〇). The color signal is located in the boundary region of the skin color region, and the saturation coefficient of the color signal is adjusted according to the boundary saturation coefficient (step S440). If the color signal is not located in the skin color region, it is not = adjusted, and is directly output (step S45 〇). The saturation coefficient may be a preset constant or may be arbitrarily designated by the user, and the boundary saturation coefficient may change with the saturation coefficient and the RGB three-gradation value of the color signal. 'φ 〜, 5 is a color distribution map, and the outer frame A is the range of all colors that can be seen by the human eye'. The inner frame B is a range of all colors that the display can present. There are many outwardly diverging lines in the inner frame B (the inner frame B of the color distribution map is an inverted triangular cone). The RGB ratios on each line are the same, so it belongs to the hue, which means the same color. However, the closer to the inner portion of the inner frame β, the lighter the color, and the concentration of a hue increases as the line goes outward. The closer to the inside, the smaller the difference between rgb, when r==g=b Μ ώ ^ 叮 is ..., I face, and the lighter the color, the worse the saturation, otherwise, if it is far from the inside, Indicates that the better the saturation, the greater the difference between RGB. For example: ' 1336594 0610181ITW 22804twf.doc/n 汛1, 〇131)=(1,2,3) is the same as (112,〇2,32)=(10,20,30), so it is the same One color, but (2,0232)=(10,20,30) is thicker and has better saturation. According to the above theory, the present embodiment proposes a method of adjusting color saturation. Since this embodiment mainly performs saturation adjustment for the skin color region (R>G>B), an intermediate value M=(R+B)/2 is first calculated, and the saturation coefficient k' is set therein, wherein the saturation coefficient k Is a parameter that can be adjusted with user preferences. Then, using the intermediate value Μ and the saturation coefficient k to adjust the RGB and other parameter values, the RGB parameter values of the adjusted color signal are obtained, which are represented by Rout, Gout, Bout as follows:

Rout=M+ k *(R-M)Rout=M+ k *(R-M)

Gout=M+k *(G-M)Gout=M+k *(G-M)

Bout=M+ k *(B-M) 在貫際應用上,區域2〜6的飽和度係數k=l,將之代入 上述公式,可知非膚色區域的飽和度不會受到改變。當飽和度 係數k大於1時,R0ut比r更偏離中間值μ,而Bout也比B 更偏離中間值Μ,所以Rout與Bout的差值比R與B的差值 還要大,因此Rout、Gout、Bout的飽和度比RGB的飽和度高。 反之’若使用者調整飽和度係數k到小於1,則此色彩信號的 飽和度就會下降。在本實施例中,為避免膚色調整失真,可將 飽和度係數範圍設定為〇<k<2。 接下來’與色彩色相調整方法相同的,為了使畫面整體 15 1336594 0610181ITW 22804twf.doc/n 較為流暢,避免擬似輪廓現象,本實施例的色彩飽和度調 整方法亦存在一邊界飽和度係數ke、偏紅(R)方向的閥值X 與偏綠(G)方向的閥值Y’此處閥值亦設為3〇(請參照圖3), 因此邊界飽和度係數ke等於(k-l)*(R-G)/X*(G-B)/Y+l。若此 色彩信號位於膚色區域的邊界區域,則根據邊界飽和度係 數ke來調整色彩信號之飽和度係數(請參照步驟S44〇),其 參數調整公式如下:Bout=M+ k *(B-M) In the continuous application, the saturation coefficient k=l of the region 2 to 6 is substituted into the above formula, and it is understood that the saturation of the non-skinning region is not changed. When the saturation coefficient k is greater than 1, R0ut deviates from the intermediate value μ more than r, and Bout deviates from the intermediate value Μ more than B, so the difference between Rout and Bout is larger than the difference between R and B, so Rout, The saturation of Gout and Bout is higher than the saturation of RGB. Conversely, if the user adjusts the saturation coefficient k to less than 1, the saturation of the color signal will decrease. In the present embodiment, in order to avoid skin color adjustment distortion, the saturation coefficient range can be set to 〇 <k<2. Next, in the same way as the color and color phase adjustment method, in order to make the overall picture 15 1336594 0610181ITW 22804twf.doc/n smooth and avoid the contouring phenomenon, the color saturation adjustment method of the embodiment also has a boundary saturation coefficient ke, partial The threshold X in the red (R) direction and the threshold Y in the green (G) direction are also set to 3 〇 (see Figure 3), so the boundary saturation coefficient ke is equal to (kl)*(RG ) /X*(GB)/Y+l. If the color signal is located in the boundary region of the skin color region, the saturation coefficient of the color signal is adjusted according to the boundary saturation coefficient ke (refer to step S44〇), and the parameter adjustment formula is as follows:

Rout=M+ke*(R-M)Rout=M+ke*(R-M)

Gout=M+ke*(G-M) B out=M+ke * (B -M) 經由圖4與圖5實施例之說明,在調整飽和度方面, 同樣將符合R>G>B之色彩區域定義為膚色區域,然後利用閥 值定義中央(1域與邊界區域,並配合上職4朗5所述之調 整公式調純織射之RGB參触。在上述實施例中,由 於可直接罐色彩信射之廳參數值,不需要經過色彩模 式轉換’因此可大幅降低相關電路的複雜度與成本。同時, 將膚色區域分為中央區域與邊界區域,其中在中央區 以固定的參數絲進行驢,可降低電路或影像資料運算 的複雜度,在邊界區域採用漸進式的調整 ^ 低擬似輪廓的發生。 从降 第三實施例 在本發明另-實施例中,可將上述圖卜圖4等調整方法 1336594 0610181ITW 22804twf.doc/n 整合於一調整裝置中,同時調整色彩信號的膚色調整與飽和 度。圖6為根據本發明第三實施例之色彩調整裝置之方塊圖, 色彩調整裝置600包括接收單元610 '調整單元62〇、判斷單 元630以及選擇器640。調整單元620耦接於接收單元61〇與 選擇器640之間’判斷單元630耦接於選擇器64〇與接收單元 610之間。此外,選擇器640亦直接耦接至接收單元的輸出端。 接收單元610用以接收一色彩信號cs ,並將其輸出至 選擇器640的輸入端。色彩信號CS的色差向量為r、g、 B三個參數,經過調整單元620調整後之色差向量則轉變 為Rout、Gout、Bout三個參數。判斷單元63〇則用以判斷 色彩彳§號CS是否位於一膚色區域並輸出選擇信號ss,選 擇器640根據選擇信號SS,輸出色彩信號cs或^整後之 色彩信號cs。若色彩信號cs位於膚色區域(符合r>g>b 的條件)’則輸出調整後之色彩信號CS的R0ut、G〇ut、Gout=M+ke*(GM) B out=M+ke * (B -M) Through the description of the embodiment of Fig. 4 and Fig. 5, in terms of adjusting the saturation, the color region definition of R>G>B will also be met. For the skin color area, then use the threshold to define the center (1 field and boundary area, and adjust the RGB parameters of the woven shot with the adjustment formula described in the above 4 lang 5. In the above embodiment, since the color can be directly The value of the shooting hall parameter does not need to be converted by the color mode', so the complexity and cost of the related circuit can be greatly reduced. At the same time, the skin color area is divided into a central area and a boundary area, wherein the central area is fixed with a fixed parameter wire. The complexity of the operation of the circuit or image data can be reduced, and the progressive adjustment can be adopted in the boundary region to reduce the occurrence of the pseudo-contour. From the third embodiment, in the other embodiment of the present invention, the above-mentioned Figure 4 can be adjusted. Method 1336594 0610181ITW 22804twf.doc/n is integrated in an adjustment device while adjusting the skin tone adjustment and saturation of the color signal. FIG. 6 is a block diagram of a color adjustment device according to a third embodiment of the present invention, and the color adjustment device 600 The receiving unit 610 includes an adjusting unit 62, a determining unit 630, and a selector 640. The adjusting unit 620 is coupled between the receiving unit 61 and the selector 640. The determining unit 630 is coupled to the selector 64 and the receiving unit 610. In addition, the selector 640 is also directly coupled to the output of the receiving unit. The receiving unit 610 is configured to receive a color signal cs and output it to the input of the selector 640. The color difference vector of the color signal CS is r, g, B three parameters, the color difference vector adjusted by the adjusting unit 620 is converted into three parameters Rout, Gout, Bout. The determining unit 63〇 is used to determine whether the color 彳§ CS is located in a skin color region and output a selection signal Ss, the selector 640 outputs the color signal cs or the color signal cs according to the selection signal SS. If the color signal cs is located in the skin color region (consistent of r>g>b), the output color signal CS is output. R0ut, G〇ut,

Bout參數,反之,則選擇器64〇採納原色彩信號的rgb參 數作為輸出信號。 ^ 上述調整單元620具有色調調整與飽和度調整功能,可同 時進行色調調整與飽和度調整,其硬體實現方式可由電路實現 或利用微處理器,以程式化的方式實現。調整單元62〇的^算 方式分別繪示於圖7及圖8。請先參照圖7,圖7為根據圖了 1施例之調整單元之色調調整流程圖。在色調調整方面,請同 時參照上述第一實施例之說明’步驟S710設定色調係數, 其設定方式可由使用者設定或是内建於色彩調整裝置6〇〇。步 釋S720則計算邊界色調係數ge、be。接著,步驟§73〇則計 17 1336594 0610181ITW 22804twf.doc/n 算位於中央區域之色彩信號CS的R〇ut、G〇ut、Bout參數, 步驟S740計算位於邊界區域之色彩信號cs的R〇ut、G〇ut、 Bout參數。上述步驟S730、S74〇之順序可調換。圖7所 不之色調調整方式請參照第一實施例之說明,在此不加累述。 關於飽和度的調整方式,請同時參照第二實施例之說明與 圖8,圖8為根據圖6實施例之調整單元之飽和度調整流程 圖。步驟S810設定飽和度係數让,其設定方式可由使用者設 定或是内建於色彩調整裝置600。步驟S82〇則計算邊界飽和 度係數ke。接著,步驟S830則計算位於中央區域之色彩信號 CS的Rout、Gout、Bout參數,步驟S840計算位於邊界區 域之色的R〇ut、Gout、Bout參數。上述步驟S830、 S840之順序可調換。圖8所示之色調調整方式請參照第二實 施例之說明,在此不加累述。 综上所述,本實施例因直接調整色彩信號RGB的色 調及飽和度,而且將膚色區域劃分為中央區域與邊界區 域,而具備下列優點: 1. 上述實施例不必經過繁瑣的Y (亮度)、C (色彩) 分離技術,所以結構及運算都較簡單,降低了電路複雜度 及生產成本。 2. 上述貝知例將膚色區域劃分為中央區域與邊界區 域,並在其邊界區域採用漸進式的方式調整色調與飽和 度,所以本實施例能以低複雜度的電路設計(或程式設 計)’克服擬似輪廓的問題。 雖然本發明已以較佳實施例揭露如上,然其並非用以 18 0610181ITW 22804twf.doc/n 限定本發明,任何所屬技術領域具有通常知識者,在不脫 離本發明之精神和範圍内’當可作些許之更動與潤錦,因 此本發明之保護範圍當視後附之申請專利範圍所界定者為 準。 、 【圖式簡單說明】 圖1為根據本發明第一實施例之膚色色調調整方法的 步驟流程圖。 圖2為根據本發明第一實施例之色度圖。 圖3為根據本發明第一實施例之色調區域劃分之色度 圖。 圖4為根據本發明第二實施例之膚色飽和度調整方法 <步驟流程圖。 圖5為根據本發明第二實施例之色彩飽和度分布圖。 圖6為根據本發明第三實施例之色彩調整裝置之方塊圖。 圖7為根據本發明第三實施例之色調調整步驟流程 圖8為根據本發明第三實施例之飽和度調整步驟流程 圖。 ' 【主要元件符號說明】 1〜6:色度圖上的色彩區域 310 :中央區域 320 :邊界區域 61〇 :接收單元 620 :調整單元 1336594 0610181ITW 22804twf.doc/n 630 :判斷單元 640 :選擇器 A :外框 B :内框 CS :色彩信號 PR :紅色 PG :綠色 PB :藍色 • PY :黃色 PM :洋紅色 PC :青色 PW :白色 SS :選擇信號 S110-S150 、 S410-S450 、 S710〜S740 、 S810〜S840 : 步驟 20The Bout parameter, on the other hand, the selector 64 takes the rgb parameter of the original color signal as the output signal. The above adjustment unit 620 has a tone adjustment and saturation adjustment function, and can perform tone adjustment and saturation adjustment at the same time, and the hardware implementation can be implemented by a circuit or by a microprocessor in a programmatic manner. The calculation methods of the adjustment unit 62 are shown in Figs. 7 and 8, respectively. Please refer to FIG. 7 first. FIG. 7 is a flow chart of adjusting the color tone of the adjusting unit according to the embodiment of FIG. In terms of color tone adjustment, please refer to the description of the first embodiment described above at step S710, and the setting method can be set by the user or built in the color adjustment device 6〇〇. The step S720 calculates the boundary tonal coefficients ge, be. Next, step § 73 〇 17 1336594 0610181ITW 22804 twf.doc/n calculates the R〇ut, G〇ut, Bout parameters of the color signal CS located in the central region, and step S740 calculates the R〇ut of the color signal cs located in the boundary region. , G〇ut, Bout parameters. The order of the above steps S730, S74 is adjustable. For the method of adjusting the color tone in Fig. 7, please refer to the description of the first embodiment, and the description will not be repeated here. Regarding the adjustment method of the saturation, please refer to the description of the second embodiment and FIG. 8, which is a flow chart of the saturation adjustment of the adjustment unit according to the embodiment of FIG. In step S810, the saturation coefficient is set, and the setting mode can be set by the user or built in the color adjusting device 600. In step S82, the boundary saturation coefficient ke is calculated. Next, in step S830, the Rout, Gout, and Bout parameters of the color signal CS located in the central region are calculated, and in step S840, the R〇ut, Gout, and Bout parameters of the color located in the boundary region are calculated. The order of the above steps S830, S840 can be changed. For the color tone adjustment method shown in Fig. 8, please refer to the description of the second embodiment, and the description will not be repeated here. In summary, the present embodiment has the following advantages by directly adjusting the hue and saturation of the color signal RGB and dividing the skin color region into a central region and a boundary region: 1. The above embodiment does not have to go through a cumbersome Y (brightness). , C (color) separation technology, so the structure and operation are relatively simple, reducing circuit complexity and production costs. 2. The above example knows that the skin color region is divided into a central region and a boundary region, and the hue and saturation are adjusted in a progressive manner in the boundary region, so that the embodiment can be designed with low complexity (or programming). 'Overcome the problem of the outline. Although the present invention has been disclosed in the above preferred embodiments, it is not intended to limit the invention, and any one of ordinary skill in the art will be able to do so without departing from the spirit and scope of the invention. The scope of protection of the present invention is defined by the scope of the appended claims. BRIEF DESCRIPTION OF THE DRAWINGS Fig. 1 is a flow chart showing the steps of a skin tone tone adjusting method according to a first embodiment of the present invention. Figure 2 is a chromaticity diagram in accordance with a first embodiment of the present invention. Fig. 3 is a chromaticity diagram of the gradation area division according to the first embodiment of the present invention. Fig. 4 is a flow chart showing the step of adjusting the skin color saturation according to the second embodiment of the present invention. Figure 5 is a color saturation distribution diagram in accordance with a second embodiment of the present invention. Figure 6 is a block diagram of a color adjustment device in accordance with a third embodiment of the present invention. Fig. 7 is a flow chart showing a color tone adjusting step according to a third embodiment of the present invention. Fig. 8 is a flow chart showing a saturation adjusting step in accordance with a third embodiment of the present invention. ' [Main component symbol description] 1 to 6: color region 310 on the chromaticity diagram: central region 320: boundary region 61 〇: receiving unit 620: adjustment unit 1336594 0610181ITW 22804twf.doc/n 630: judging unit 640: selector A : Frame B : Inner frame CS : Color signal PR : Red PG : Green PB : Blue • PY : Yellow PM : Magenta PC : Cyan PW : White SS : Selection signals S110-S150 , S410-S450 , S710 ~ S740, S810~S840: Step 20

Claims (1)

1336594 0610181ITW 22804twf.doc/n 十、申請專利範圍: 1.一種色彩調整的方法,包括下列步驟: 定義一膚色區域’該膚色區域包括一中央區域與一邊 界區域; 判斷一色彩信號是否位於該膚色區域; 若該色彩信號位於該中央區域’則根據一色調係數, 調整該色彩信號中之綠灰階值、藍灰階值;以及 • 若該色彩信號位於該邊界區域,則根據一邊界色調係 數,調整該色彩信號中之綠灰階值、藍灰階值。 2·如申請專利範圍第1項所述之方法,其中該中央區 域與該邊界區域由一閥值所決定,其中該中央區域符合 (R-G)>X且(G-B)>X ’該邊界區域符合(r_g)$X且 OS(G-B)$X’其中X為該閥值,其中該色彩信號中之紅、 綠、藍灰階值分別以r、G、B表示。 3·如申請專利範圍第2項所述之方法,其中該閥值x 等於30。 21 1336594 0610181ITW 22804twf.doc/n 6. 如申請專利範圍第4項所述之方法,其中該邊界色 調係數包括一綠邊界色調係數ge與—藍邊界色調係數 be,若該色彩信號位於該邊界區域,則調整後之該色奢作 號中之綠灰階值等於G-(G*ge),調整後之該色彩^號 藍灰階值等於B-(B*be),其中該色彩信號中之紅、綠、藍 灰階值分別以R、G、B表示。 7. 如申請專利範圍第6項所述之方法,其中1336594 0610181ITW 22804twf.doc/n X. Patent application scope: 1. A method for color adjustment, comprising the following steps: Defining a skin color region, the skin color region includes a central region and a boundary region; determining whether a color signal is located in the skin color a region; if the color signal is located in the central region, adjusting a green grayscale value and a blue grayscale value in the color signal according to a tone coefficient; and • if the color signal is located in the boundary region, according to a boundary tonal coefficient Adjust the green grayscale value and the blue grayscale value in the color signal. 2. The method of claim 1, wherein the central region and the boundary region are determined by a threshold, wherein the central region conforms to (RG) > X and (GB) > X ' The region conforms to (r_g)$X and OS(GB)$X' where X is the threshold, wherein the red, green, and blue grayscale values in the color signal are represented by r, G, and B, respectively. 3. The method of claim 2, wherein the threshold x is equal to 30. The method of claim 4, wherein the boundary hue coefficient comprises a green boundary hue coefficient ge and a blue boundary hue coefficient be, if the color signal is located in the boundary region , the adjusted green grayscale value in the color luxury number is equal to G-(G*ge), and the adjusted blue color value of the color ^ is equal to B-(B*be), wherein the color signal is The red, green, and blue grayscale values are represented by R, G, and B, respectively. 7. The method of claim 6, wherein the method of claim 6 ge=g*(R-G)/30*(G-B)/30、be=b*(R-G)/3〇*(G_B)/3〇。〆、 8. 如申請專利範圍第1項所述之方法,其中該色調係 數為定值,該邊界色調係數隨該色調係數與該色彩信號中 之紅灰1¾值、綠灰階值而變。 9.如申請專利範圍第丨項所述之方法,若該色彩信號 未位於該膚色區域,則不予調整。 更包括不調整 10.如申請專利範圍第1項所述之方法 該色彩信號之紅灰階值。Ge=g*(R-G)/30*(G-B)/30, be=b*(R-G)/3〇*(G_B)/3〇. 8. The method of claim 1, wherein the hue coefficient is a constant value, the boundary hue coefficient being a function of the hue coefficient and a red ash value and a green gray scale value in the color signal. 9. The method of claim 2, wherein the color signal is not adjusted if it is not located in the skin color region. It also includes no adjustment. 10. The method of claim 1 is the red grayscale value of the color signal. 11.如申請專利範圍第i項所述之方法,其中在定義該 ^色區域之步驟中,該膚色區域符合r>g>b,其中該色= 信號中之紅、綠、藍灰階值分別以R、G、B表示。/ 列步如申請專利範圍第1項所述之方法,其中更包括下 接收該色彩信號;以及 輸出調整後之該色彩信號。 13·—種色彩調整方法,包括: 定義-膚色區域,該膚色區域包括—中央區域與一邊 22 1336594 0610181ITW 22804twf.doc/n 界區域, 判斷一色彩信號是否位於該膚色區域; 若該色彩信號位於該中央區域,則根據一飽和度係 數’調整該色彩信號之飽和度;以及 若該色彩信號位於該邊界區域,則根據一邊界飽和度 係數,調整該色彩信號之飽和度。 14. 如申請專利範圍第13項所述之方法,其中該中央 • 區域與該邊界區域由一閥值所決定,其中該中央區域符合 (R-G)>X且(G-B)>X,該邊界區域符合〇s(R G)sx且 〇S(G-B)$X’其中乂為該閥值,其中該色彩信號中之紅、 綠、藍灰階值分別以r、G、B表示。 15. 如申請專利範圍第13項所述之方法,其中該閥值 X等於30。 ' 16·如申請專利範圍第13項所述之方法,其中若該色 唬位於該中央區域,則調整後之該色彩信號之紅灰階 值等於(R-M)*k+M,調整後之該色彩信號之綠灰階值等於 • (G_M)*k+M,調整後之該色彩信號之藍灰階值等於 (B_M)*k+M,其中Μ為一中間值,Μ等於(R+B)/2,k為 該飽和度係數,其_該色彩信號中之紅、綠、藍灰階值分 別以r、g、b表示。 瓜 刀 ^ 17.如申請專利範圍第13項所述之方法,其中若該色 彩信號位於該邊界區域,賴整後之該色彩㈣之紅^階 值等於(R-M)*ke+M,調整後之該色彩信號之綠灰階值等於 (G M) ke+M ,調整後之該色彩信號之藍灰階值等於 23 1336594 0610181ITW 22804twf.doc/n (B-M)*ke+M,其中 M 為一中間值,M 等於(r+b)/2,ke 為該邊界飽和度係數,k為該飽和度係數,其中該色彩信 號中之紅、綠、藍灰階值分別以R、G、B表示。 18·如申請專利範圍第17項所述之方法,其中ke等於 (k-l)*(R-G)/30*(G-B)/30+l。 19. 如申請專利範圍第13項所述之方法,其中該餘和11. The method of claim i, wherein in the step of defining the color region, the skin color region conforms to r>g>b, wherein the color = red, green, and blue grayscale values in the signal Represented by R, G, and B, respectively. The method of claim 1, wherein the method further comprises receiving the color signal; and outputting the adjusted color signal. 13·—a color adjustment method, comprising: defining a skin color region, wherein the skin color region comprises a central region and a side 22 1336594 0610181ITW 22804twf.doc/n boundary region, determining whether a color signal is located in the skin color region; if the color signal is located The central region adjusts the saturation of the color signal according to a saturation coefficient; and if the color signal is located in the boundary region, the saturation of the color signal is adjusted according to a boundary saturation coefficient. 14. The method of claim 13, wherein the central area and the boundary area are determined by a threshold, wherein the central area conforms to (RG) > X and (GB) > X, The boundary region corresponds to 〇s(RG)sx and 〇S(GB)$X' where 乂 is the threshold, wherein the red, green, and blue grayscale values in the color signal are represented by r, G, and B, respectively. 15. The method of claim 13, wherein the threshold X is equal to 30. The method of claim 13, wherein if the color 唬 is located in the central region, the adjusted red-gray value of the color signal is equal to (RM)*k+M, and the adjusted The green grayscale value of the color signal is equal to • (G_M)*k+M, and the adjusted blue grayscale value of the color signal is equal to (B_M)*k+M, where Μ is an intermediate value and Μ is equal to (R+B) ) /2, k is the saturation coefficient, and the red, green, and blue gray scale values in the color signal are represented by r, g, and b, respectively. The method of claim 13, wherein if the color signal is located in the boundary region, the color of the color (4) is equal to (RM)*ke+M, after adjustment The green grayscale value of the color signal is equal to (GM) ke+M, and the adjusted blue grayscale value of the color signal is equal to 23 1336594 0610181ITW 22804twf.doc/n (BM)*ke+M, where M is an intermediate The value, M is equal to (r+b)/2, ke is the boundary saturation coefficient, and k is the saturation coefficient, wherein the red, green, and blue grayscale values in the color signal are represented by R, G, and B, respectively. 18. The method of claim 17, wherein ke is equal to (k-l)*(R-G)/30*(G-B)/30+l. 19. The method of claim 13, wherein the remainder 度係數為定值,該邊界飽和度隨該飽和度係數與該色彩作 號中之紅、綠、皇灰階值而變。 20. 如申請專利範圍第13項所述之方法,其中若該色 彩信號未位於該膚色區域,則不予調整。 21. 如申請專利範圍第13項所述之方法,其中在定 該膚色區域之步驟中,該膚色區域符合r>g>b,其中= 彩信號中之紅、綠、藍灰階值分別以R、〇、B表示。X 22. 如申請專利範圍第13項所述之方法, 下列步驟: 丁文E括The degree coefficient is a fixed value that varies with the saturation coefficient and the red, green, and ugly values in the color number. 20. The method of claim 13, wherein the color signal is not adjusted if it is not located in the skin tone region. 21. The method of claim 13, wherein in the step of determining the skin color region, the skin color region conforms to r>g>b, wherein the red, green, and blue grayscale values in the color signal are respectively R, 〇, B are indicated. X 22. If the method described in claim 13 is applied, the following steps: 接收該色彩信號;以及 輸出調整後之該色彩信號。 23.—種色彩調整裝置,包括: 一接收單元,用以接收一色彩信號; L據一色調 號中之綠灰階值、 /一調整單元’雛至該接收單元的輪出, 係數與-邊界色調係數,調整該色彩俨 藍灰階值; ° …-觸單凡,输域接收單元 號是否位於一膚色區妨w, W斷該色彩信 娜域,並輸出—選 24 1336594 0610181ITW 22804twf.doc/n 齡一選A接於該接收單元、該調整單元以及該判 Wf早兀,絲脑選難號輪㈣色練钱調整後之該 色彩信號。 24·如申請專利範圍第23項所述之色彩調整裝置,其 中若該色彩信號位於該膚色範圍之一中央區域,則根據二 色調係數’調整該色彩信號中之綠灰階值、藍灰階值,若 S亥色彩彳5號位於該膚色範圍之一邊界區域,則根據一邊界 色調係數,調整該色彩信號中之綠灰階值、藍灰階值。 25. 如申請專利範圍第23項所述之色彩調整裝置,其 中該調整單元根據一飽和度係數與一邊界飽和度係數,調 整該色彩信號之飽和度。 26. 如申請專利範圍第23項所述之色彩調整裝置,其 中若該色彩信號位於該膚色範圍之一中央區域,則根據— 飽和度係數,調整該色彩信號之飽和度,若該色彩信號位 於該膚色範圍之一邊界區域,則根據一邊界飽和度係數, 調整該色彩信號之飽和度。 φ 27.如申請專利範圍第23項所述之色彩調整裝置,其 中該膚色區域符合R>G>B,其中該色彩信號中之紅、綠、 藍灰階值分別以R、G、B表示。 25Receiving the color signal; and outputting the adjusted color signal. 23. A color adjustment device, comprising: a receiving unit for receiving a color signal; L according to a green gray level value in a tone number, / an adjustment unit 'snake to the receiving unit's turn, coefficient and - Boundary tonal coefficient, adjust the color indigo grayscale value; ° ... - touch the single, the receiving domain receiving unit number is located in a skin color area w, W break the color Xinna domain, and output - select 24 1336594 0610181ITW 22804twf. The doc/n age selection A is connected to the receiving unit, the adjustment unit, and the color signal after the adjustment of the Wf is early, and the silk brain selects the difficulty wheel (4). The color adjustment device according to claim 23, wherein if the color signal is located in a central region of the skin color range, the green grayscale value and the blue grayscale in the color signal are adjusted according to the two-tone coefficient The value, if the Shai color 彳5 is located in one of the boundary regions of the skin color range, adjusts the green grayscale value and the blue grayscale value in the color signal according to a boundary color tone coefficient. 25. The color adjustment device of claim 23, wherein the adjustment unit adjusts the saturation of the color signal based on a saturation coefficient and a boundary saturation coefficient. 26. The color adjustment device of claim 23, wherein if the color signal is located in a central region of the skin color range, the saturation of the color signal is adjusted according to a saturation coefficient, if the color signal is located The boundary region of one of the skin color ranges adjusts the saturation of the color signal according to a boundary saturation coefficient. The color adjustment device of claim 23, wherein the skin color region conforms to R > G > B, wherein the red, green, and blue gray scale values in the color signal are represented by R, G, and B, respectively. . 25
TW96119089A 2007-05-29 2007-05-29 Method and apparatus thereof for adjusting colors of an image TWI336594B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
TW96119089A TWI336594B (en) 2007-05-29 2007-05-29 Method and apparatus thereof for adjusting colors of an image

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
TW96119089A TWI336594B (en) 2007-05-29 2007-05-29 Method and apparatus thereof for adjusting colors of an image

Publications (2)

Publication Number Publication Date
TW200847796A TW200847796A (en) 2008-12-01
TWI336594B true TWI336594B (en) 2011-01-21

Family

ID=44823628

Family Applications (1)

Application Number Title Priority Date Filing Date
TW96119089A TWI336594B (en) 2007-05-29 2007-05-29 Method and apparatus thereof for adjusting colors of an image

Country Status (1)

Country Link
TW (1) TWI336594B (en)

Also Published As

Publication number Publication date
TW200847796A (en) 2008-12-01

Similar Documents

Publication Publication Date Title
US20180035088A1 (en) Image processing apparatus, image projection apparatus, and image processing method
JP5370761B2 (en) Video signal processing device and display device
JP2010511314A (en) Color gamut fit
JP2018026794A (en) Image processing system, image projection device, and image processing method
JP2008505523A (en) Camera color noise reduction method and circuit
JP2006228184A (en) Dynamic image contrast processor
TW559737B (en) Color conversion method for preference color
WO2019192406A1 (en) Method and system for enhancing display picture quality, and a storage medium
JP3596387B2 (en) High brightness compression circuit
TWI336594B (en) Method and apparatus thereof for adjusting colors of an image
JP2004080402A (en) Circuit for adjusting dynamic white balance and multi-screen display device
TWI287785B (en) Method for adjusting the colors of an image
JP3061614B1 (en) Color image quality improvement method and apparatus
CN101316370A (en) Image color regulation method and device
CN101345813B (en) Image color compensation device and method
JP2021168448A (en) Image processing device, image processing method, and program
WO2006074584A1 (en) A method for improving the display effect of display device
JP3710423B2 (en) Color calibration method
CN110809145A (en) Image brightness conversion method, device and equipment based on Craik-O' Brien effect
US7777925B2 (en) Apparatus and method for color adjustment
JP3987077B2 (en) Color image adjustment method
EP3942790B1 (en) Camera color image processing
JP2012513634A (en) Method for changing image data signal, device for changing image data signal, and display device
JP4377733B2 (en) Color adjustment module, image pickup apparatus, and program for realizing color adjustment
JP4202817B2 (en) Visual load measuring device and method, visual load measuring program, and recording medium recording the program

Legal Events

Date Code Title Description
GD4A Issue of patent certificate for granted invention patent
MM4A Annulment or lapse of patent due to non-payment of fees