TWI531246B - Color adjustment method and its system - Google Patents

Color adjustment method and its system Download PDF

Info

Publication number
TWI531246B
TWI531246B TW101117981A TW101117981A TWI531246B TW I531246 B TWI531246 B TW I531246B TW 101117981 A TW101117981 A TW 101117981A TW 101117981 A TW101117981 A TW 101117981A TW I531246 B TWI531246 B TW I531246B
Authority
TW
Taiwan
Prior art keywords
color
color space
value
feature
new
Prior art date
Application number
TW101117981A
Other languages
Chinese (zh)
Other versions
TW201349880A (en
Inventor
Jen Shiun Chiang
Hao Wei Peng
Chun Hung Lien
Chih Hsien Hsia
Original Assignee
Univ Tamkang
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 Univ Tamkang filed Critical Univ Tamkang
Priority to TW101117981A priority Critical patent/TWI531246B/en
Publication of TW201349880A publication Critical patent/TW201349880A/en
Application granted granted Critical
Publication of TWI531246B publication Critical patent/TWI531246B/en

Links

Description

色彩調整方法及其系統 Color adjustment method and system thereof

本發明係關於一種色彩調整方法及其系統,尤指一種色彩之飽和度(Saturation)調整之色彩調整方法及其系統,以於色彩之亮度(Intensity or Luminance)變化時,其飽和度亦會隨著亮度變化而改變。 The invention relates to a color adjustment method and a system thereof, in particular to a color saturation adjustment method and a system thereof, so that when the intensity of the color (Intensity or Luminance) changes, the saturation degree also follows Change in brightness.

隨著科技日益的進步,影像已經邁向數位化與高品質的年代。為因應未來人們對於高品質與鮮豔色彩的需求,色彩調整的方式將會愈來愈被重視。 With the advancement of technology, imaging has moved toward digital and high quality. In order to meet the needs of people for high quality and bright colors in the future, the way of color adjustment will be more and more important.

目前在進行色彩調整時,基本上可分為兩種方式。一為直接對三元色(RGB)資訊進行處理,以針對RGB資訊的數值作倍數上的增長或減少,它的優點就在於直接對RGB資訊作運算可以省去不少的色彩轉換的時間。然,由於色彩調整為直接對RGB資訊作運算,所以在調整時較容易發生過飽和的情況,使得調整後的影像色彩經常發生不自然的狀況,並不符合人眼視覺特性。 At present, when performing color adjustment, there are basically two ways. One is to directly process the RGB information to increase or decrease the value of the RGB information. The advantage is that directly calculating the RGB information can save a lot of color conversion time. However, since the color adjustment is to directly calculate the RGB information, it is easy to over-saturate during the adjustment, so that the adjusted image color often has an unnatural condition and does not conform to the human visual characteristics.

如Capra A.在2006年國際消費性電子會議中,所提出之「Dynamic range optimization by local contrast correction and histogram image analysis」,其可以有效的同時調整陰影與高亮度的部分,但是同時也使得整張影像的對比與色彩產生了不自然的現象;又如Yadong Wu.在2010年圖像與信號處理國際會議中,所提出之「An image illumination correction algorithm based on tone mapping」,其可以有效的提升影像的對比度與飽和度,但是在高亮度的部分容易產生曝光與過飽和的問題。 For example, Capra A. proposed "Dynamic range optimization by local contrast correction and histogram image analysis" in the 2006 International Consumer Electronics Conference, which can effectively adjust the shadow and high-brightness parts at the same time, but at the same time make the whole sheet The contrast and color of the image produced an unnatural phenomenon; as in Yadong Wu. at the 2010 International Conference on Image and Signal Processing, "An image illumination The correction algorithm based on tone mapping" can effectively improve the contrast and saturation of the image, but the problem of exposure and supersaturation is likely to occur in the high-luminance portion.

而另一方式則為將色彩資訊轉換成亮度(Intensity or Luminance)、飽和度(Saturation)和色相(Hue)資訊,並依據目前影像資訊,如影像太暗太亮、或影像飽和度太高太低…等影像資訊,來分別對亮度、飽和度與色相作獨立調整。如Yihua Shi.在2007年IEEE影像處理國際會議中,所提出之「Reducing Illumination Based on Nonlinear Gamma Correction」,為利用自適應伽瑪(Gamma)曲線來調整影像亮度,但是在色彩的鮮豔與飽和度的表現則較弱,且在調整亮度的同時,若不同時修正飽和度,容易發生過飽和的情況;又如Yi-Chong Zeng在2008年IEEE電路與系統國際學術會議中,所提出之「Video enhancement based on saturation adjustment and contrast enhancement」,其分開增強亮度與飽和度,且調整過程中之亮度與飽和度並無相關,使得整體色彩連續性不佳,影像容易發生不自然的情況。故在個別調整亮度、飽和度、及色相時,因無法作總體考量,其效果將無法達到最佳狀態,且容易發生過飽和而導致整張影像不自然的情形。 The other way is to convert the color information into Intensity or Luminance, Saturation and Hue information, and according to the current image information, if the image is too dark or too bright, or the image saturation is too high and too low ...and image information to adjust the brightness, saturation and hue independently. For example, in the 2007 IEEE International Conference on Image Processing, Yihua Shi. proposed "Reducing Illumination Based on Nonlinear Gamma Correction" to adjust image brightness using adaptive gamma curves, but in color vividness and saturation. The performance is weaker, and while adjusting the brightness, if the saturation is not corrected at the same time, it is prone to over-saturation; and, as Yi-Chong Zeng at the 2008 IEEE International Conference on Circuits and Systems, the proposed "Video enhancement" Based on saturation adjustment and contrast enhancement, the luminance and saturation are separately enhanced, and the brightness and the saturation during the adjustment process are not related, so that the overall color continuity is not good, and the image is prone to unnaturalness. Therefore, when the brightness, saturation, and hue are individually adjusted, the overall effect cannot be achieved because the overall effect cannot be achieved, and the over-saturation is likely to occur, resulting in an unnatural picture.

發明人爰因於此,本於積極發明之精神,亟思一種符合人眼視覺的「色彩調整方法及其系統」,以於影像之亮度改變時,其飽和度會隨著亮度改變而對應作調整,幾經研究實驗終至完成此項嘉惠世人之發明。 The inventor, in view of this, in the spirit of active invention, considers a "color adjustment method and system" that conforms to human vision, so that when the brightness of the image changes, its saturation will correspond with the change of brightness. Adjustments, after several research experiments, to complete the invention of the Jiahui world.

鑑於先前技術中,個別調整影像之亮度、飽和度、色相資訊,造成影像過飽和,以及整體色彩連續性不佳,而使影像變得不自然之問題。本發明於色彩空間模型中,利用影像之色相、飽和度及亮度之間的相互關係,使得影像之亮度發生變化的同時,其飽和度也會有規律性的調整。而可達到有效避免色彩過飽和,與因影像不連續而有不自然的現象產生,而更符合人眼視覺特性。 In view of the prior art, the brightness, saturation, and hue information of the image are individually adjusted, resulting in image oversaturation and poor overall color continuity, which makes the image unnatural. In the color space model, the color saturation, the brightness and the brightness of the image are used to change the brightness of the image, and the saturation is also regularly adjusted. It can effectively avoid color oversaturation, and it is unnatural due to discontinuous image, which is more in line with human visual characteristics.

此外,若色彩空間模型為基於分量色差(YCbCr)色彩空間所建立的,更可以廣泛的應用在現今大部分的數位影像產品上,如液晶電視(Liquid Crystal Display Television,LCD-TV)、與高解析度電視(High Definition Television,HD-TV)等。同時也可以應用至影像前處理中。且由於YCbCr色彩空間之運算量並不龐大,故可將本發明之色彩調整系統積體化,以即時(real-time)處理影像。 In addition, if the color space model is based on the component color difference (YCbCr) color space, it can be widely used in most of today's digital image products, such as Liquid Crystal Display Television (LCD-TV), and high. High Definition Television (HD-TV) and the like. It can also be applied to image pre-processing. Moreover, since the amount of calculation of the YCbCr color space is not large, the color adjustment system of the present invention can be integrated to process images in real-time.

為達成上述目的,本發明提供了一種色彩調整方法,包括下列步驟:(A)擷取一具有第一色彩空間之影像信號,並將影像信號轉換至一第二色彩空間,使得影像信號對應於第二色彩空間中之一色彩點(即,第二色彩空間之座標點),且色彩點具有一色相值、一飽和度值、及一亮度值;(B)當亮度值改變時,產生一代表亮度值改變後之新亮度值,並根據色彩點之色相值、及飽和度值,選取對應於第二色彩空間中之一色域區塊,其中,每一色域區塊具有一特徵頂點,以表示每一色域區塊中,亮度值與飽和度值之 間的相對關係;(C)於色域區塊中,根據飽和度值、亮度值、新亮度值、及特徵頂點,產生一新飽和度值,以代表當亮度值有改變時,飽和度值係對應調整為新飽和度值;以及(D)產生一包含色相值、新飽和度值、及新亮度值之新色彩點,並將新色彩點由第二色彩空間轉換回第一色彩空間輸出。 To achieve the above object, the present invention provides a color adjustment method comprising the steps of: (A) capturing an image signal having a first color space, and converting the image signal to a second color space such that the image signal corresponds to a color point in the second color space (ie, a coordinate point of the second color space), and the color point has a hue value, a saturation value, and a brightness value; (B) when the brightness value changes, a Representing a new brightness value after the brightness value is changed, and selecting one of the color gamut blocks corresponding to the second color space according to the hue value and the saturation value of the color point, wherein each color gamut block has a feature vertice, Indicates the luminance value and saturation value in each gamut block (C) in the gamut block, according to the saturation value, the brightness value, the new brightness value, and the feature vertices, a new saturation value is generated to represent the saturation value when the brightness value is changed. Correspondingly adjusted to a new saturation value; and (D) generating a new color point including a hue value, a new saturation value, and a new brightness value, and converting the new color point from the second color space back to the first color space output .

此外,本發明之第一色彩空間可為具有一紅色(R)軸、一綠色(G)軸、及一藍色(B)軸之三元色(RGB)色彩空間。 In addition, the first color space of the present invention may be a three-color (RGB) color space having a red (R) axis, a green (G) axis, and a blue (B) axis.

再者,本發明之第二色彩空間可根據色相值區分成至少一色域區塊。 Furthermore, the second color space of the present invention can be divided into at least one gamut block according to the hue value.

再者,本發明之第二色彩空間可為具有一色相軸(Hue)、一飽和度軸(Saturation)、及一亮度軸(Lightness)之HSL色彩空間;可為具有一具有一色相軸(Hue)、一飽和度軸(Saturation)、及一色調軸(Value)之HSV色彩空間;或可為具有一亮度軸(Luminance)、二色差軸(Chrominance)之YUV色彩空間。 Furthermore, the second color space of the present invention may be an HSL color space having a Hue, a Saturation, and a Lightness; it may have a Hue (Hue) ), a saturation axis (Saturation), and a HSV color space of a tone color (Value); or may be a YUV color space having a Luminance, Chrominance axis.

再者,本發明之第二色彩空間可為具有一亮度(Y)分量、一藍色偏移(Cb)分量、及一紅色偏移(Cr)分量之分量色差(YCbCr)色彩空間。且YCbCr色彩空間可分成6個色域區塊,分別為代表洋紅色相之一洋紅色域區塊、代表紅色相之一紅色域區塊、代表黃色相之一黃色域區塊、代表綠色相之一綠色域區塊、代表青綠色相之一青綠色域區塊、及代表藍色相之一藍色域區塊。 Furthermore, the second color space of the present invention may be a component color difference (YCbCr) color space having a luminance (Y) component, a blue offset (Cb) component, and a red offset (Cr) component. And the YCbCr color space can be divided into six gamut blocks, which are one of the magenta domain blocks representing the magenta phase, one red domain block representing the red phase, one yellow domain block representing the yellow phase, and representing the green phase. One green domain block, one green-green domain block representing a cyan phase, and one blue domain block representing a blue phase.

再者,本發明之YCbCr色彩空間可根據Y分量、Cb分量、及Cr分量所涵蓋的三維區域作切割,以於每一色域區塊產生至少一色相三角形,而每一色相三角形包含一底邊、一下邊、一上邊,且每一底邊為相同。 Furthermore, the YCbCr color space of the present invention can be cut according to the three-dimensional regions covered by the Y component, the Cb component, and the Cr component to generate at least one hue triangle for each color gamut block, and each hue triangle includes a bottom edge. , one side, one upper side, and each bottom side is the same.

再者,本發明之每一色域區塊可由每一色相三角形之下邊中,挑選最大斜率之下邊作為一特徵下邊,且由每一色相三角形之上邊中,挑選最小斜率之上邊作為一特徵上邊,並於特徵下邊、與特徵上邊之交叉處形成特徵頂點,進而於每一色域區塊中,產生一包含底邊、特徵下邊、特徵上邊、及特徵頂點之特徵三角形,以代表每一色域區塊中的色相、飽和度、與亮度之間的關係。進而防止在色彩調整過程中,發生過飽和的情形。 Furthermore, each color gamut block of the present invention may be selected from the lower side of each hue triangle as the lower side of the maximum slope as a feature lower side, and from the upper side of each hue triangle, the upper side of the minimum slope is selected as a feature upper side. And forming feature vertices at the intersection of the feature and the upper edge of the feature, and in each gamut block, generating a feature triangle including a bottom edge, a feature lower edge, a feature upper edge, and a feature vertice to represent each color gamut block. The relationship between hue, saturation, and brightness. This prevents over-saturation from occurring during color adjustment.

再者,本發明之下邊之斜率限制可為下邊斜率≧1、及上邊之斜率限制可為上邊斜率≦-1,即調整一色彩時,亮度的變化量大於等於飽和度的變化量,以符合人眼視覺之特性。 Furthermore, the slope limit of the lower side of the present invention may be the lower slope ≧1, and the slope limit of the upper side may be the upper slope ≦-1, that is, when the color is adjusted, the amount of change of the brightness is greater than or equal to the change of the saturation to match The characteristics of human vision.

另外,本發明之新飽和度值可由下列運算式描述:S'=S×(Safter/Sbefore),當中,S’係為新飽和度值,S係為飽和度值,Sbefore係為一第一運算參數,以及Safter為一第二運算參數;而Sbefore為由下列運算式描述:Sbefore=(x/y)×V,V≦y;Sbefore=(x/(y-255))×(V-255),V>y,當中,x、y係為色彩點位於之色域之特徵頂點,而V係為亮度值;以及 而Safter則為由下列運算式運算:Safter=(x/y)×V',V'≦y;Safter=(x/(y-255))×(V'-255),V'>y,當中,x、y係為色彩點位於之色域之特徵頂點,而V'係為新亮度值。 In addition, the new saturation value of the present invention can be described by the following expression: S'=S×(S after /S before ), where S' is a new saturation value, S is a saturation value, and S before is a first operational parameter, and S after is a second operational parameter; and S before is described by the following expression: S before = (x / y) × V, V ≦ y; S before = (x / (y- 255)) × (V-255 ), V> y, which, x, y system wherein the color gamut of the color point located at the vertex, and a luminance value V system; and the S after operation compared by the following expression: S after =(x/y)×V',V'≦y;S after =(x/(y-255))×(V'-255), V'>y, where x and y are colors The point is at the characteristic vertices of the color gamut, and V' is the new brightness value.

為達成上述目的,本發明提供了一種色彩調整系統,包含一第一色彩空間轉換單元、一儲存單元、一飽和度調整單元、及一第二色彩空間轉換單元。其中,一第一色彩空間轉換單元,擷取一取像裝置所產生之一具有一第一色彩空間之影像信號,以將影像信號由第一色彩空間轉換至一第二色彩空間,並對應產生一色彩點,且色彩點具有一色相值、一飽和度值、及一亮度值;一儲存單元,儲存第二色彩空間之至少一色域區塊,而至少一色域區塊係根據色相值區分而組成第二色彩空間,且每一色域區塊具有一特徵頂點;一飽和度調整單元,判斷亮度值是否有改變,若有,則根據飽和度值、亮度值、新亮度值、及特徵頂點,產生一新飽和度值,並輸出一新色彩點,且新色彩點具有色相值、新飽和度值、及代表亮度值改變後之一新亮度值;以及一第二色彩空間轉換單元,將新色彩點由第二色彩空間轉換回第一色彩空間輸出;其中,特徵頂點係用以表示每一色域區塊中,亮度值與飽和度值之間的相對關係,而於調整色彩點之亮度值時,飽和度值對應調整為新飽和度值。 To achieve the above object, the present invention provides a color adjustment system including a first color space conversion unit, a storage unit, a saturation adjustment unit, and a second color space conversion unit. The first color space conversion unit captures an image signal of a first color space generated by an image capturing device to convert the image signal from the first color space to a second color space, and correspondingly generates a color point, and the color point has a hue value, a saturation value, and a brightness value; a storage unit stores at least one color gamut block of the second color space, and at least one color gamut block is distinguished according to the hue value Forming a second color space, and each gamut block has a feature vertice; a saturation adjustment unit determines whether the brightness value changes, if any, according to the saturation value, the brightness value, the new brightness value, and the feature vertices, Generating a new saturation value and outputting a new color point, and the new color point has a hue value, a new saturation value, and a new brightness value representing a change in the brightness value; and a second color space conversion unit that will be new The color point is converted from the second color space back to the first color space output; wherein the feature vertex is used to represent the relative relationship between the brightness value and the saturation value in each color gamut block While the color point to adjust the brightness value, the saturation value is adjusted to correspond to the new saturation value.

以上的概述與接下來的詳細說明皆為示範性質,是為了進一步說明本發明的申請專利範圍。而有關本發明的其他目的與優點,將在後續的說明與圖示加以闡述。 The above summary and the following detailed description are exemplary in order to further illustrate the scope of the claims. Other objects and advantages of the present invention will be described in the following description and drawings.

請參考圖1,係本發明一較佳實施例之色彩調整系統架構圖。如圖1所示,色彩調整系統100包含一第一色彩空間轉換單元110、一儲存單元120、一飽和度調整單元130、及一第二色彩空間轉換單元140。其中,第一色彩空間轉換單元110係擷取一取像裝置10所產生之一具有一第一色彩空間之影像信號Im,以將影像信號Im由第一色彩空間轉換至一第二色彩空間,並於第二色彩空間中對應產生一色彩點Tm,且色彩點Tm具有一色相值、一飽和度值、及一亮度值。 Please refer to FIG. 1 , which is a structural diagram of a color adjustment system according to a preferred embodiment of the present invention. As shown in FIG. 1 , the color adjustment system 100 includes a first color space conversion unit 110 , a storage unit 120 , a saturation adjustment unit 130 , and a second color space conversion unit 140 . The first color space conversion unit 110 captures an image signal Im having a first color space generated by the image capturing device 10 to convert the image signal Im from the first color space to a second color space. And correspondingly generating a color point Tm in the second color space, and the color point Tm has a hue value, a saturation value, and a brightness value.

在本實施例中,取像裝置10為一攝相機,以擷取外部影像資訊而產生影像信號Im至第一色彩空間轉換單元110。第一色彩空間係為具有一紅色(R)軸、一綠色(G)軸、及一藍色(B)軸之RGB色彩空間。 In the embodiment, the image capturing device 10 is a camera to capture the external image information to generate the image signal Im to the first color space converting unit 110. The first color space is an RGB color space having a red (R) axis, a green (G) axis, and a blue (B) axis.

而第二色彩空間則為具有一亮度(Y)分量、一藍色偏移(Cb)分量、及一紅色偏移(Cr)分量之YCbCr色彩空間。當然,亦可為其他色彩空間模型,如具有一色相軸(Hue)、一飽和度軸(Saturation)、及一亮度軸(Lightness)之HSL色彩空間模型;為具有一具有一色相軸(Hue)、一飽和度軸(Saturation)、及一色調軸(Value)之HSV色彩空間模型;或為具有一亮度軸(Luminance)、二色差軸(Chrominance)之 YUV色彩空間模型...等色彩空間模型,以利分割出亮度、飽和度、與色相之色彩資訊。 The second color space is a YCbCr color space having a luminance (Y) component, a blue offset (Cb) component, and a red offset (Cr) component. Of course, it can also be other color space models, such as an HSL color space model with a Hue, a Saturation, and a Lightness; for having a Hue axis (Hue) , a saturation axis (Saturation), and a hue axis (Value) HSV color space model; or have a luminance axis (Luminance), two color difference axis (Chrominance) YUV color space model...equal color space model to segment the color information of brightness, saturation, and hue.

而為了方便說明,以下將皆以第二色彩空間為YCbCr色彩空間來作說明。 For convenience of explanation, the following description will be made with the second color space as the YCbCr color space.

儲存單元120為儲存第二色彩空間之至少一色域區塊,且至少一色域區塊係根據色相值區分而組成第二色彩空間,且每一色域區塊具有一特徵頂點。為了能更簡單更有效率的調整色彩,在本實施例中,為利用Cb-Cr平面將YCbCr色彩空間區分成數個色域區塊,而各個色域區塊並非同樣大小,而是針對不同色域區塊擁有各自不同色彩特性來作區分,以提供更有效的調整,以下將進一步作說明。 The storage unit 120 is configured to store at least one color gamut block of the second color space, and at least one color gamut block is formed into a second color space according to the hue value, and each gamut block has a feature vertice. In order to adjust the color more simply and efficiently, in the embodiment, the YCbCr color space is divided into several color gamut blocks by using the Cb-Cr plane, and the gamut blocks are not the same size but different colors. Domain blocks have their own different color characteristics to distinguish them to provide more efficient adjustments, as further explained below.

如圖3所示,RGB色彩空間對應在YCbCr色彩空間之Cb-Cr投影平面上有6個端點,即RGB色彩空間的洋紅色M(magenta)、紅色R(red)、黃色Ye(yellow)、綠色G(green)、青綠色C(cyan)、及藍色B(blue)之色相端點。且在本實施例中,為利用RGB色彩空間轉YcbCr色彩空間,而後截取Cb分量、Cr分量並透過另一運算式而求得各個色域區塊之區域範圍,其運算式如下:Y=0.2989×R+0.5866×G+0.1145×B;Cb=-0.1688×R-0.3312×G+0.5000×B;Cr=0.5000×R-0.4184×G-0.0816×B;Div=tan-1(Cr/Cb); 其中,R、G、B為RGB色彩空間中之某一像素座標值;Y、Cb、Cr為RGB色彩空間對應到YCbCr色彩空間的對應座標值;而Div則為色域區塊之區分值。 As shown in FIG. 3, the RGB color space has six endpoints on the Cb-Cr projection plane of the YCbCr color space, that is, magenta M (magenta), red R (red), and yellow Ye (yellow) of the RGB color space. The hue endpoints of green G (green), cyan C (cyan), and blue B (blue). In this embodiment, the RGB color space is used to convert the YcbCr color space, and then the Cb component and the Cr component are intercepted, and the range of each color gamut block is obtained by another arithmetic expression, and the operation formula is as follows: Y=0.2989 ×R+0.5866×G+0.1145×B; Cb=-0.1688×R-0.3312×G+0.5000×B; Cr=0.5000×R-0.4184×G-0.0816×B; Div=tan -1 (Cr/Cb) Where R, G, B are the coordinates of a certain pixel in the RGB color space; Y, Cb, Cr are the corresponding coordinate values of the RGB color space corresponding to the YCbCr color space; and Div is the distinction of the color gamut block value.

而本實施例之區分方式則分別以B色相端點與M色相端點之中點、M色相端點與R色相端點之中點、R色相端點與Ye色相端點之中點、Ye色相端點與G色相端點之中點、G色相端點與C色相端點之中點、以及C色相端點與B色相端點之中點來將Cb-Cr平面(以Cb分量正右方開始計算為0~359度)區分成6個色域區塊。以B色相端點與M色相端點之中點來求得此處的Div區分值為例,B色相端點與M色相端點之中點座標值為(R,G,B)=(128,0,255),故代入上述運算式可得Div區分值為22度;而再以M色相端點與R色相端點之中點來求得此處的Div區分值為例,M色相端點與R色相端點之中點座標值為(R,G,B)=(255,0,128),代入上述運算式可得Div區分值為80度。 In the embodiment, the distinguishing manner is the point of the end point of the B color phase and the end point of the M color phase, the end point of the M color phase end point and the end point of the R color phase end point, the end point of the R color phase end point and the middle point of the Ye color phase end point, Ye The Cb-Cr plane (with the Cb component right) is the point of the hue end point and the G color end point, the G color end point and the C color end point, and the C color end point and the B color end point. The square starts to calculate 0 to 359 degrees) and is divided into 6 gamut blocks. The Div discrimination value is obtained by taking the B color phase end point and the M color phase end point as an example. The point coordinates of the B color phase end point and the M color phase end point are (R, G, B) = ( 128,0,255), so the Div discriminant value is 22 degrees when substituting the above expression; and the Div discriminant value here is obtained by the midpoint of the M color phase end point and the R color phase end point, M color phase The coordinates of the endpoints of the endpoint and the R phase are (R, G, B) = (255, 0, 128). Substituting the above expression gives a Div discrimination value of 80 degrees.

故依序計算各個相鄰色相端點之中點之Div區分值,而可將YCbCr色彩空間之Cb-Cr投影平面區分成6個色域區塊,分別為代表洋紅色相M之一洋紅色域區塊(Cb分量上為22度~79度)、代表紅色相R之一紅色域區塊(Cb分量上為80度~137度)、代表黃色相Ye之一黃色域區塊(Cb分量上為138度~201度)、代表綠色相G之一綠色域區塊(Cb分量上為202度~258度)、代表青綠色相C之一青綠色域區塊(Cb分量上為259度~318度)、及代表藍色相B之一藍色域區塊(Cb分量上為319度~21度)。且由上述可觀察到,6個色域區塊之區域 面積並非相同。當然,亦可以其他運算式來區分色域區塊,或每個色域區塊之區域面積皆相同。 Therefore, the Div discriminant value of the point among the endpoints of each adjacent hue is calculated sequentially, and the Cb-Cr projection plane of the YCbCr color space can be divided into six gamut blocks, respectively representing the magenta phase M. The red domain block (22 degrees to 79 degrees on the Cb component), the red domain block representing the red phase R (80 degrees to 137 degrees on the Cb component), and the yellow domain block representing the yellow phase Ye (Cb) The component is 138 degrees to 201 degrees), represents a green domain block of green phase G (202 degrees to 258 degrees on the Cb component), and represents a blue-green domain block of cyan phase C (259 degrees on the Cb component) ~318 degrees), and represents a blue domain block of blue phase B (319 degrees to 21 degrees on the Cb component). And as can be observed from the above, the area of the six gamut blocks The area is not the same. Of course, other arithmetic expressions can be used to distinguish the gamut blocks, or the area of each gamut block is the same.

此外,特徵頂點係用以表示每一色域區塊中,亮度值與飽和度值之間的相對關係,而於調整色彩點之亮度值時,飽和度值將對應調整為新飽和度值。同樣地,在本實施例中,以第二色彩空間為YCbCr色彩空間來作說明,如圖4a~4c所示,YCbCr色彩空間係以Y分量為軸,並將RGB色彩空間之黑色Bk(Black)色相端點與白色W(White)色相端點之連線軸,與YCbCr色彩空間之Y分量同軸,而對Cb分量、Cr分量所涵蓋的區域作360度的切割,以於每一色域區塊產生至少一色相三角形Hta,在本實施例中,由於YCbCr色彩空間被分為6個色域區塊,且以每1度為一單位作切割。因此,每一色域區塊將可切割為多個色相三角形Hta(在本實施例中,洋紅色域區塊為58個、紅色域區塊為58個、黃色域區塊為64個、綠色域區塊為58個、青綠色域區塊為58個、及藍色域區塊為64個),且每一色相三角形Hta具有一底邊Bs、一下邊Ds、一上邊Us,且多個色相三角形Hta皆為同一底邊Bs,即每一底邊Bs皆為相同。其中,橫軸係代表為飽和度、而縱軸係代表為亮度。 In addition, the feature vertex is used to indicate the relative relationship between the luminance value and the saturation value in each color gamut block, and when the brightness value of the color point is adjusted, the saturation value is correspondingly adjusted to the new saturation value. Similarly, in the present embodiment, the second color space is used as the YCbCr color space, as shown in FIGS. 4a to 4c, the YCbCr color space is based on the Y component, and the black color of the RGB color space is Bk (Black). The connection between the end of the hue and the end of the white W (White) hue, coaxial with the Y component of the YCbCr color space, and 360 degrees of the area covered by the Cb and Cr components, for each gamut The block generates at least one hue triangle Hta. In the present embodiment, since the YCbCr color space is divided into six gamut blocks, the dicing is performed in units of one degree. Therefore, each gamut block can be cut into a plurality of hue triangles Hta (in this embodiment, 58 magenta domain blocks, 58 red domain blocks, 64 yellow domain blocks, and green domains) There are 58 blocks, 58 blocks in the cyan field, and 64 blocks in the blue field, and each hue triangle Hta has a bottom Bs, a lower edge Ds, an upper side Us, and a plurality of hue. The triangles Hta are all the same bottom edge Bs, that is, each bottom edge Bs is the same. Among them, the horizontal axis represents saturation and the vertical axis represents brightness.

接著,每一色域區塊(在本實施例為6個)係由每一色相三角形Hta(如圖4b,洋紅色域區塊之色相三角形Hta1-Hta58)之下邊Ds中,挑選最大斜率之下邊Ds作為一特徵下邊Df,且由每一色相三角形之上邊Us中,挑選最小斜率之上邊Us作為一特徵上邊Uf,並於特徵下邊Df、與特徵上邊Uf之交 叉處形成特徵頂點P,進而於每一色域區塊中,產生一包含底邊Bs、特徵下邊Df、特徵上邊Uf、及特徵頂點P之特徵三角形Fta。即6個色域區塊,皆有一個足以代表其對應色域區塊的特徵三角形Fta。進而得到每一色域區塊中,亮度值與飽和度值之間的相對關係。此外,以人眼視覺來說,亮度改變為大於飽和度改變,在此,本發明將特徵下邊Df之斜率限制為特徵下邊Df斜率≧1、及特徵上邊Uf之斜率限制為特徵上邊Uf斜率≦-1,以使特徵三角形Fta更能符合人眼視覺特性。當然,將每一色相三角形Hta之下邊Ds斜率限制為下邊Ds斜率≧1、及上邊Us斜率限制為上邊Us斜率≦-1,亦可達到相同效果與目的。 Next, each gamut block (six in this embodiment) is selected from the lower side of the maximum slope by the lower side Ds of each hue triangle Hta (Fig. 4b, the hue triangle Hta1-Hta58 of the magenta domain block). Ds is used as a feature lower edge Df, and from the upper side Us of each hue triangle, the upper side of the minimum slope Us is selected as a feature upper side Uf, and the feature lower side Df and the feature upper side Uf A feature vertice P is formed at the fork, and in each gamut block, a feature triangle Fta including a bottom edge Bs, a feature lower edge Df, a feature upper edge Uf, and a feature vertex P is generated. That is, the six gamut blocks have a characteristic triangle Fta sufficient to represent their corresponding gamut blocks. Further, the relative relationship between the luminance value and the saturation value in each color gamut block is obtained. In addition, in the human eye, the brightness changes to be greater than the saturation change. Here, the present invention limits the slope of the feature lower side Df to the characteristic lower side Df slope ≧1, and the characteristic upper side Uf slope is limited to the characteristic upper side Uf slope ≦ -1 to make the feature triangle Fta more in line with human visual characteristics. Of course, the slope of the lower Ds of each hue triangle Hta is limited to the lower side Ds slope ≧1, and the upper side Us slope is limited to the upper side Us ≦-1, which can achieve the same effect and purpose.

再來,請同時參考圖5a、5b,飽和度調整單元130將判斷亮度值是否有改變,若有,則根據飽和度值S、亮度值V、代表亮度值V改變後之新亮度值V'、及特徵三角形Fta之特徵頂點P,以利用下述運算式來產生一新飽和度值S',並產生一具有色相值、新飽和度值S'、及新亮度值V'之新色彩點Nm至第二色彩空間轉換單元140,進而達到根據亮度的變化來對應調整飽和度之目的。而新飽和度值S'係由下列運算式描述:S'=S×(Safter/Sbefore);當中,S'係為新飽和度值,S係為飽和度值,Sbefore係為一第一運算參數,以及Safter為一第二運算參數。 Referring to FIG. 5a, 5b at the same time, the saturation adjustment unit 130 will determine whether the brightness value has changed, and if so, the new brightness value V' after the change according to the saturation value S, the brightness value V, and the representative brightness value V. And the characteristic vertices P of the characteristic triangle Fta, to generate a new saturation value S' by using the following expression, and generating a new color point having a hue value, a new saturation value S', and a new brightness value V' Nm to the second color space conversion unit 140, thereby achieving the purpose of correspondingly adjusting the saturation according to the change in brightness. The new saturation value S' is described by the following expression: S'=S×(S after /S before ); among them, S′ is the new saturation value, S is the saturation value, and S before is one. The first operational parameter, and S after is a second operational parameter.

而Sbefore係由下列運算式描述:Sbefore=(x/y)×V,V≦y; Sbefore=(x/(y-255))×(V-255),V>y;當中,x、y係為所屬特徵三角形Fta之特徵頂點P的座標,而V係為亮度值。 The S before is described by the following expression: S before = (x / y) × V, V ≦ y; S before = (x / (y - 255)) × (V - 255), V >y; x and y are the coordinates of the characteristic vertices P of the associated feature triangle Fta, and V is the luminance value.

而Safter係由下列運算式運算:Safter=(x/y)×V',V'≦y;Safter=(x/(y-255))×(V'-255),V'>y;當中,x、y係為所屬特徵三角形Fta之特徵頂點P的座標,而V'係為新亮度值。 And S after is operated by the following expression: S after = (x / y) × V', V' ≦ y; S after = (x / (y - 255)) × (V'-255), V'>y; where x and y are the coordinates of the characteristic vertices P of the associated feature triangle Fta, and V' is the new brightness value.

最後,第二色彩空間轉換單元140遂將新色彩點Nm由第二色彩空間轉換回第一色彩空間,在本實施例為由YCbCr色彩空間轉換回RGB色彩空間,再輸出至顯示裝置20作顯示。 Finally, the second color space conversion unit 140 converts the new color point Nm from the second color space back to the first color space. In this embodiment, the YCbCr color space is converted back to the RGB color space, and then output to the display device 20 for display. .

接下來,請同時參考圖2,係本發明一較佳實施例之色彩調整方法流程圖。為了方便說明,以下所稱之第一色彩空間將以RGB色彩空間為例,以及第二色彩空間將以YCbCr色彩空間為例,以進一步說明解釋。 Next, please refer to FIG. 2 at the same time, which is a flowchart of a color adjustment method according to a preferred embodiment of the present invention. For convenience of explanation, the first color space referred to below will be exemplified by the RGB color space, and the second color space will be exemplified by the YCbCr color space for further explanation.

首先,色彩調整系統100接收由取像裝置10所截取的一具有RGB色彩空間之影像信號Im至RGB色彩空間轉換單元110(步驟S210)。接著,RGB色彩空間至轉換單元110將影像信號Im轉換至YCbCr色彩空間,使得影像信號Im對應於YCbCr色彩空間中之一色彩點Tm,即YcbCr色彩空間中的座標點。且色彩點Tm具有一色相值、一飽和度值、及一亮度值,並傳送至飽和度調整單元130(步驟S220)。 First, the color adjustment system 100 receives the image signal Im to the RGB color space conversion unit 110 having the RGB color space intercepted by the image capturing device 10 (step S210). Next, the RGB color space to conversion unit 110 converts the image signal Im into the YCbCr color space such that the image signal Im corresponds to one of the color points Tm in the YCbCr color space, that is, the coordinate point in the YcbCr color space. And the color point Tm has a hue value, a saturation value, and a brightness value, and is sent to the saturation adjustment unit 130 (step S220).

再來,飽和度調整單元130將判斷色彩點之亮度值是否有變化(步驟S230)。當亮度值並未發生改變時,直接將色彩點Tm由YCbCr色彩空間轉換回RGB色彩空間,並輸出至顯示裝置20作顯示(步驟S240)。而當亮度值有改變時,飽和度調整單元130將於其內部產生新亮度值(步驟S250),並根據色彩點Tm之色相值、及飽和度值,選取對應於YCbCr色彩空間中之一色域區塊,例如紅色域區塊(步驟S260)。接著,再根據紅色區域所對應的特徵三角形之特徵頂點,並將飽和度值、亮度值、新亮度值代入上述新飽和度值的運算式,而產生一對應於新亮度值的新飽和度值(步驟S270)。再來,飽和度調整單元130將產生一包含色相值、新飽和度值、及新亮度值之新色彩點至第二色彩空間轉換單元140,並將新色彩點由YCbCr色彩空間轉換回RGB色彩空間輸出至顯示裝置20作顯示(步驟S280)。 Further, the saturation adjusting unit 130 determines whether or not the brightness value of the color point has changed (step S230). When the brightness value has not changed, the color point Tm is directly converted from the YCbCr color space back to the RGB color space, and output to the display device 20 for display (step S240). When the brightness value is changed, the saturation adjusting unit 130 generates a new brightness value therein (step S250), and selects one color gamut corresponding to the YCbCr color space according to the hue value and the saturation value of the color point Tm. A block, such as a red domain block (step S260). Then, according to the characteristic vertices of the characteristic triangle corresponding to the red region, and substituting the saturation value, the brightness value, and the new brightness value into the expression of the new saturation value, a new saturation value corresponding to the new brightness value is generated. (Step S270). Then, the saturation adjustment unit 130 generates a new color point including the hue value, the new saturation value, and the new brightness value to the second color space conversion unit 140, and converts the new color point from the YCbCr color space to the RGB color. The space is output to the display device 20 for display (step S280).

故由上述可知,本發明針對亮度發生變化的同時,飽和度也會有一定規律性的變化,提供了一色彩調整方法及系統,以有效避免色彩過飽和與解決影像不自然之問題,以更符合人眼視覺特性。另外,基於YCbCr色彩空間來作色彩調整,更可應用於現今數位影像產品上,如LCD-'TV、或HD-TV…等數位影像產品。且由於YCbCr色彩空間之運算量不大,故可將本發明之色彩調整系統積體化,而可即時(real-time)處理影像。 Therefore, it can be seen from the above that the present invention provides a color adjustment method and system for the change of brightness, and provides a color adjustment method and system, thereby effectively avoiding the problem of color oversaturation and solving image unnaturalness. Human visual characteristics. In addition, based on the YCbCr color space for color adjustment, it can be applied to digital image products such as LCD-'TV, or HD-TV... Moreover, since the amount of calculation of the YCbCr color space is not large, the color adjustment system of the present invention can be integrated, and the image can be processed in a real-time manner.

上述實施例僅係為了方便說明而舉例而已,本發明所主張之權利範圍自應以申請專利範圍所述為準,而非僅限於上述實施例。 The above-mentioned embodiments are merely examples for convenience of description, and the scope of the claims is intended to be limited to the above embodiments.

100‧‧‧色彩調整系統 100‧‧‧Color adjustment system

110‧‧‧第一色彩空間轉換單元 110‧‧‧First color space conversion unit

120‧‧‧儲存單元 120‧‧‧ storage unit

130‧‧‧飽和度調整單元 130‧‧Saturation adjustment unit

140‧‧‧第二色彩空間轉換單元 140‧‧‧Second color space conversion unit

10‧‧‧取像裝置 10‧‧‧Image capture device

20‧‧‧顯示裝置 20‧‧‧ display device

M‧‧‧洋紅色相端點 M‧‧‧ magenta end point

R‧‧‧紅色相端點 R‧‧‧red phase endpoint

Ye‧‧‧黃色相端點 Ye‧‧‧Yellow phase endpoint

G‧‧‧綠色相端點 G‧‧‧Green phase endpoint

C‧‧‧青綠色相端點 C‧‧‧Blue-green phase endpoint

B‧‧‧藍色相端點 B‧‧‧Blue phase endpoint

Bk‧‧‧黑色相端點 Bk‧‧‧black phase endpoint

W‧‧‧白色相端點 W‧‧‧White phase endpoint

Y‧‧‧亮度分量 Y‧‧‧Brightness component

Cb‧‧‧藍色偏移分量 Cb‧‧‧blue offset component

Cr‧‧‧紅色偏移分量 Cr‧‧‧Red offset component

Hta‧‧‧色相三角形 Hta‧‧ Hue triangle

Bs‧‧‧底邊 Bs‧‧‧Bottom

Ds‧‧‧下邊 Ds‧‧‧ below

Us‧‧‧上邊 Us‧‧‧上上

Uf‧‧‧特徵上邊 Uf‧‧‧ features above

Df‧‧‧特徵下邊 Under the characteristics of Df‧‧‧

P‧‧‧特徵頂點 P‧‧‧ feature vertices

Fta‧‧‧特徵三角形 Fta‧‧‧Feature triangle

S‧‧‧飽和度值 S‧‧‧ saturation value

V‧‧‧亮度值 V‧‧‧ brightness value

S'‧‧‧新飽和度值 S'‧‧‧ new saturation value

V'‧‧‧新亮度值 V'‧‧‧ new brightness value

圖1係本發明一較佳實施例之色彩調整系統架構圖。 1 is a block diagram of a color adjustment system in accordance with a preferred embodiment of the present invention.

圖2係本發明一較佳實施例之色彩調整方法流程圖。 2 is a flow chart of a color adjustment method in accordance with a preferred embodiment of the present invention.

圖3係本發明一較佳實施例之YCbCr色彩空間之色域區塊示意圖。 3 is a schematic diagram of a gamut block of a YCbCr color space in accordance with a preferred embodiment of the present invention.

圖4a係本發明一較佳實施例之色域區塊之色相三角形切割示意圖。 4a is a schematic diagram of a hue triangle cut of a color gamut block in accordance with a preferred embodiment of the present invention.

圖4b係本發明一較佳實施例之洋紅色域區塊之多個色相三角形示意圖。 4b is a schematic diagram of a plurality of hue triangles of a magenta domain block in accordance with a preferred embodiment of the present invention.

圖4c係本發明一較佳實施例之特徵三角形示意圖。 Figure 4c is a schematic diagram of a characteristic triangle of a preferred embodiment of the present invention.

圖5a係本發明一較佳實施例之特徵三角形之亮度值、新亮度值、飽和度值、及新飽和度值關係圖。 Figure 5a is a diagram showing the relationship between the luminance value, the new luminance value, the saturation value, and the new saturation value of the characteristic triangle of a preferred embodiment of the present invention.

圖5b係本發明一較佳實施例之特徵三角形之亮度值、新亮度值、飽和度值、及新飽和度值關係圖。 Figure 5b is a graph showing the relationship between the luminance value, the new luminance value, the saturation value, and the new saturation value of the characteristic triangle of a preferred embodiment of the present invention.

100‧‧‧色彩調整系統 100‧‧‧Color adjustment system

110‧‧‧第一色彩空間轉換單元 110‧‧‧First color space conversion unit

120‧‧‧儲存單元 120‧‧‧ storage unit

130‧‧‧飽和度調整單元 130‧‧Saturation adjustment unit

140‧‧‧第二色彩空間轉換單元 140‧‧‧Second color space conversion unit

10‧‧‧取像裝置 10‧‧‧Image capture device

20‧‧‧顯示裝置 20‧‧‧ display device

Claims (18)

一種色彩調整方法,包括下列步驟:(A)擷取一具有第一色彩空間之影像信號,並將該影像信號轉換至一第二色彩空間,使得該影像信號對應於該第二色彩空間中之一色彩點,且該色彩點具有一色相值、一飽和度值、及一亮度值;(B)當該亮度值改變時,產生一代表該亮度值改變後之新亮度值,並根據該色彩點之該色相值、及該飽和度值,選取對應於該第二色彩空間中之一色域區塊,其中,每一色域區塊具有一特徵頂點,以表示每一色域區塊中,該亮度值與該飽和度值之間的相對關係;(C)於該色域區塊中,根據該飽和度值、該亮度值、該新亮度值、及該特徵頂點,產生一新飽和度值,以代表當該亮度值有改變時,該飽和度值係對應調整為該新飽和度值;以及(D)產生一包含該色相值、該新飽和度值、及該新亮度值之新色彩點,並將該新色彩點由該第二色彩空間轉換回該第一色彩空間輸出;其中,該新飽和度值係由下列運算式描述:S'=S×(Safter/Sbefore);當中,S’係為該新飽和度值,S係為該飽和度值,Sbefore係為一第一運算參數,以及Safter為一第二運算參數;而Sbefore係由下列運算式描述:Sbefore=(x/y)×V,V≦y; Sbefore=(x/(y-255))x(V-255),V>y;當中,x、y係為該色彩點位於之色域之特徵頂點,而V係為該亮度值;而Safter係由下列運算式運算:Safter-(x/y)×V',V'≦y;Safter-(x/(y-255))×(V'-255),V'>y;當中,x、y係為該色彩點位於之色域之特徵頂點,而V'係為該新亮度值。 A color adjustment method includes the following steps: (A) capturing an image signal having a first color space, and converting the image signal to a second color space, such that the image signal corresponds to the second color space a color point, and the color point has a hue value, a saturation value, and a brightness value; (B) when the brightness value changes, generating a new brightness value representative of the brightness value change, and according to the color The hue value of the dot and the saturation value are selected to correspond to one of the second color spaces, wherein each color gamut block has a feature vertex to indicate the brightness in each color gamut block a relative relationship between the value and the saturation value; (C) generating a new saturation value according to the saturation value, the brightness value, the new brightness value, and the feature vertex in the color gamut block, Representing that when the brightness value is changed, the saturation value is correspondingly adjusted to the new saturation value; and (D) generating a new color point including the hue value, the new saturation value, and the new brightness value. And the new color point is taken by the second color Space color space conversion back to the first output; wherein the saturation value of new lines described by the following expression: S '= S × (S after / S before); which, S' new saturation value for the system, S The saturation value, S before is a first operation parameter, and S after is a second operation parameter; and S before is described by the following expression: S before = (x / y) × V, V ≦ y; S before =(x/(y-255))x(V-255), V>y; wherein x and y are the characteristic vertices of the color gamut in which the color point is located, and V is the luminance value And S after is operated by the following expression: S after -(x/y)×V',V'≦y;S after -(x/(y-255))×(V'-255),V'>y; where x and y are the characteristic vertices of the color gamut where the color point lies, and V' is the new brightness value. 如申請專利範圍第1項所述之色彩調整方法,其中,該第一色彩空間係為具有一紅色(R)軸、一綠色(G)軸、及一藍色(B)軸之三元色(RGB)色彩空間。 The color adjustment method according to claim 1, wherein the first color space is a three-color color having a red (R) axis, a green (G) axis, and a blue (B) axis. (RGB) color space. 如申請專利範圍第1項所述之色彩調整方法,其中,該第二色彩空間係根據該色相值區分成該至少一色域區塊。 The color adjustment method of claim 1, wherein the second color space is divided into the at least one color gamut block according to the color phase value. 如申請專利範圍第3項所述之色彩調整方法,其中,該第二色彩空間係為具有一色相軸(Hue)、一飽和度軸(Saturation)、及一亮度軸(Lightness)之HSL色彩空間;為具有一具有一色相軸(Hue)、一飽和度軸(Saturation)、及一色調軸(Value)之HSV色彩空間;或為具有一亮度軸(Luminance)、二色差軸(Chrominance)之YUV色彩空間。 The color adjustment method according to claim 3, wherein the second color space is an HSL color space having a hue axis, a saturation axis, and a brightness state. ; has an HSV color space with a Hue, a Saturation, and a Tone; or a YUV with a Luminance and Chrominance Color space. 如申請專利範圍第3項所述之色彩調整方法,其中,該第二色彩空間係為具有一亮度(Y)分量、一藍色偏移(Cb)分量、及一紅色偏移(Cr)分量之分量色差(YCbCr)色彩空間。 The color adjustment method of claim 3, wherein the second color space has a luminance (Y) component, a blue offset (Cb) component, and a red offset (Cr) component. Component color difference (YCbCr) color space. 如申請專利範圍第5項所述之色彩調整方法,其中,該第二色彩空間係分成6個色域區塊,分別為代表洋紅色相之一洋紅色域區塊、代表紅色相之一紅色域區塊、代表黃色相之一黃色域區塊、代表綠色相之一綠色域區塊、代表青綠色相之一青綠色域區塊、及代表藍色相之一藍色域區塊。 The color adjustment method according to claim 5, wherein the second color space is divided into six color gamut blocks, respectively representing a magenta domain block representing a magenta phase, and representing a red color of the red phase. The domain block, a yellow domain block representing a yellow phase, a green domain block representing a green phase, a green-green domain block representing a cyan phase, and a blue domain block representing a blue phase. 如申請專利範圍第5項所述之色彩調整方法,其中,該YCbCr色彩空間係根據該Y分量、該Cb分量、及該Cr分量所涵蓋的三維區域作切割,以於每一色域區塊產生至少一色相三角形,而每一色相三角形包含一底邊、一下邊、一上邊,且每一底邊為相同。 The color adjustment method according to claim 5, wherein the YCbCr color space is cut according to the Y component, the Cb component, and a three-dimensional region covered by the Cr component, to generate each color gamut block. At least one hue triangle, and each hue triangle includes a bottom edge, a lower edge, an upper edge, and each bottom edge is the same. 如申請專利範圍第7項所述之色彩調整方法,其中,每一色域區塊係由每一色相三角形之該下邊中,挑選最大斜率之該下邊作為一特徵下邊,且由每一色相三角形之該上邊中,挑選最小斜率之該上邊作為一特徵上邊,並於該特徵下邊、與該特徵上邊之交叉處形成該特徵頂點,進而於每一色域區塊中,產生一包含該底邊、該特徵下邊、特徵上邊、及該特徵頂點之特徵三角形。 The color adjustment method according to claim 7, wherein each color gamut block is selected from the lower side of each hue triangle, and the lower side of the maximum slope is selected as a feature lower edge, and each color phase triangle is In the upper edge, the upper edge of the minimum slope is selected as a feature upper edge, and the feature vertex is formed at the intersection of the feature and the upper edge of the feature, and in each color gamut block, a bottom edge is generated. The feature triangle at the bottom of the feature, the top edge of the feature, and the vertices of the feature. 如申請專利範圍第8項所述之色彩調整方法,其中,該特徵下邊之斜率限制為特徵下邊斜率≧1、及該特徵上邊之斜率限制為特徵上邊斜率≦-1。 The color adjustment method according to claim 8, wherein the slope of the lower side of the feature is limited to the lower slope ≧1 of the feature, and the slope of the upper side of the feature is limited to the upper slope ≦-1 of the feature. 一種色彩調整系統,包含:一第一色彩空間轉換單元,擷取一取像裝置所產生之一具有一第一色彩空間之影像信號,以將該影像信號由該 第一色彩空間轉換至一第二色彩空間,並對應產生一色彩點,且該色彩點具有一色相值、一飽和度值、及一亮度值;一儲存單元,儲存該第二色彩空間之至少一色域區塊,而該至少一色域區塊係根據該色相值區分,而組成該第二色彩空間,且每一色域區塊具有一特徵頂點;一飽和度調整單元,判斷該亮度值是否有改變,若有,則根據該飽和度值、該亮度值、該新亮度值、及該特徵頂點,產生一新飽和度值,並輸出一新色彩點,且該新色彩點具有該色相值、該新飽和度值、及代表該亮度值改變後之一新亮度值;以及一第二色彩空間轉換單元,將該新色彩點由該第二色彩空間轉換回該第一色彩空間輸出;其中,該特徵頂點係用以表示每一色域區塊中,該亮度值與該飽和度值之間的相對關係,而於調整該色彩點之該亮度值時,該飽和度值對應調整為該新飽和度值;其中,該新飽和度值係由下列運算式描述:S'=S×(Safter/Sbefore);當中,S’係為該新飽和度值,S係為該飽和度值,Sbefore係為一第一運算參數,以及Safter為一第二運算參數;而Sbefore係由下列運算式描述:Sbefore=(x/y)×V,V≦y;Sbefore=(x/(y-255))×(V-255),V>y;當中,x、y係為該色彩點位於之色域之特徵頂點,而V係為該亮度值; 而Safter係由下列運算式運算:Safter=(x/y)×V',V'≦y;Safter=(x/(y-255))×(V'-255),V'>y;當中,x、y係為該色彩點位於之色域之特徵頂點,而V'係為該新亮度值。 A color adjustment system includes: a first color space conversion unit that captures an image signal generated by an image capturing device and has a first color space to convert the image signal from the first color space to a first color space a color space corresponding to a color point, wherein the color point has a hue value, a saturation value, and a brightness value; and a storage unit stores at least one color gamut block of the second color space, and the at least a color gamut block is distinguished according to the hue value, and constitutes the second color space, and each gamut block has a feature vertice; a saturation adjustment unit determines whether the brightness value changes, if any, according to the a saturation value, the brightness value, the new brightness value, and the feature vertices, generating a new saturation value, and outputting a new color point, and the new color point has the color value, the new saturation value, and the representative a new brightness value after the brightness value is changed; and a second color space conversion unit that converts the new color point from the second color space back to the first color space output; wherein the feature The point is used to indicate the relative relationship between the brightness value and the saturation value in each color gamut block, and when the brightness value of the color point is adjusted, the saturation value is correspondingly adjusted to the new saturation value. Wherein, the new saturation value is described by the following expression: S'=S×(S after /S before ); wherein, S′ is the new saturation value, and S is the saturation value, S before It is a first operation parameter, and S after is a second operation parameter; and S before is described by the following expression: S before = (x / y) × V, V ≦ y; S before = (x / ( Y-255))×(V-255), V>y; wherein x and y are the characteristic vertices of the color gamut in which the color point is located, and V is the brightness value; and S after is the following expression Operation: S after =(x/y)×V',V'≦y;S after =(x/(y-255))×(V'-255), V'>y; among them, x, y It is the characteristic vertice of the color gamut where the color point is located, and V' is the new brightness value. 如申請專利範圍第10項所述之色彩調整系統,其中,該第一色彩空間係為具有一紅色(R)軸、一綠色(G)軸、及一藍色(B)軸之三元色(RGB)色彩空間。 The color adjustment system of claim 10, wherein the first color space is a ternary color having a red (R) axis, a green (G) axis, and a blue (B) axis. (RGB) color space. 如申請專利範圍第10項所述之色彩調整系統,其中,該第二色彩空間係為具有一色相軸(Hue)、一飽和度軸(Saturation)、及一亮度軸(Lightness)之HSL色彩空間;為具有一具有一色相軸(Hue)、一飽和度軸(Saturation)、及一色調軸(Value)之HSV色彩空間;或為具有一亮度軸(Luininance)、二色差軸(Chrominance)之YUV色彩空間。 The color adjustment system of claim 10, wherein the second color space is an HSL color space having a Hue, a Saturation, and a Lightness. ; has an HSV color space with a Hue, a Saturation, and a Tone; or a YUV with a Luininance and Chrominance Color space. 如申請專利範圍第10項所述之色彩調整系統,其中,該第二色彩空間係為具有一亮度(Y)分量、一藍色偏移(Cb)分量、及一紅色偏移(Cr)分量之分量色差(YCbCr)色彩空間。 The color adjustment system of claim 10, wherein the second color space has a luminance (Y) component, a blue offset (Cb) component, and a red offset (Cr) component. Component color difference (YCbCr) color space. 如申請專利範圍第13項所述之色彩調整系統,其中,該第二色彩空間係分成6個色域區塊,分別為代表洋紅色相之一洋紅色域區塊、代表紅色相之一紅色域區塊、代表黃色相之一黃色域區塊、代表綠色相之一綠色域區塊、代表青綠色相之一青綠色域區塊、及代表藍色相之一藍色域區塊。 The color adjustment system of claim 13, wherein the second color space is divided into six color gamut blocks, one of which represents a magenta phase, and one of the red phases. The domain block, a yellow domain block representing a yellow phase, a green domain block representing a green phase, a green-green domain block representing a cyan phase, and a blue domain block representing a blue phase. 如申請專利範圍第13項所述之色彩調整系統,其中,該YCbCr色彩空間係根據該Y分量、該Cb分量、及該Cr分量所涵蓋的三維區域作切割,以於每一色域區塊產生至少一色相三角形,而每一色相三角形包含一底邊、一下邊、一上邊,且每一底邊為相同。 The color adjustment system of claim 13, wherein the YCbCr color space is cut according to the Y component, the Cb component, and a three-dimensional region covered by the Cr component to generate each color gamut block. At least one hue triangle, and each hue triangle includes a bottom edge, a lower edge, an upper edge, and each bottom edge is the same. 如申請專利範圍第15項所述之色彩調整系統,其中,該下邊之斜率限制為下邊斜率≧1、及該上邊之斜率限制為上邊斜率≦-1。 The color adjustment system of claim 15, wherein the slope of the lower side is limited to the lower slope ≧1, and the slope of the upper side is limited to the upper slope ≦-1. 如申請專利範圍第15項或第16項所述之色彩調整系統,其中,每一色域區塊係由每一色相三角形之該下邊中,挑選最大斜率之該下邊作為一特徵下邊,且由每一色相三角形之該上邊中,挑選最小斜率之該上邊作為一特徵上邊,並於該特徵下邊、與該特徵上邊之交叉處形成該特徵頂點,進而於每一色域區塊中,產生一包含該底邊、該特徵下邊、特徵上邊、及該特徵頂點之特徵三角形。 The color adjustment system of claim 15 or claim 16, wherein each color gamut block is selected from the lower side of each hue triangle, and the lower side of the maximum slope is selected as a feature lower edge, and each In the upper side of the chromatic phase triangle, the upper edge of the minimum slope is selected as a feature upper edge, and the feature vertice is formed at the intersection of the feature lower edge and the upper edge of the feature, thereby generating a inclusion in each gamut block. The bottom edge, the lower edge of the feature, the upper edge of the feature, and the characteristic triangle of the feature vertex. 如申請專利範圍第17項所述之色彩調整系統,其中,該特徵下邊之斜率限制為特徵下邊斜率≧1、及該特徵上邊之斜率限制為特徵上邊斜率≦-1。 The color adjustment system of claim 17, wherein the slope of the lower side of the feature is limited to a feature lower slope ≧1, and a slope of the upper side of the feature is limited to a characteristic upper slope ≦-1.
TW101117981A 2012-05-21 2012-05-21 Color adjustment method and its system TWI531246B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
TW101117981A TWI531246B (en) 2012-05-21 2012-05-21 Color adjustment method and its system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
TW101117981A TWI531246B (en) 2012-05-21 2012-05-21 Color adjustment method and its system

Publications (2)

Publication Number Publication Date
TW201349880A TW201349880A (en) 2013-12-01
TWI531246B true TWI531246B (en) 2016-04-21

Family

ID=50157655

Family Applications (1)

Application Number Title Priority Date Filing Date
TW101117981A TWI531246B (en) 2012-05-21 2012-05-21 Color adjustment method and its system

Country Status (1)

Country Link
TW (1) TWI531246B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TWI683282B (en) * 2016-09-15 2020-01-21 瑞典商安訊士有限公司 A method and a device for pseudo coloring of a digital image

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TWI627624B (en) * 2017-06-01 2018-06-21 奇景光電股份有限公司 Image data processing method and timing controller
CN110766764B (en) * 2018-12-14 2023-03-24 成都极米科技股份有限公司 Method for identifying color of projection surface, projector and storage medium

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TWI683282B (en) * 2016-09-15 2020-01-21 瑞典商安訊士有限公司 A method and a device for pseudo coloring of a digital image

Also Published As

Publication number Publication date
TW201349880A (en) 2013-12-01

Similar Documents

Publication Publication Date Title
JP4666274B2 (en) Color image processing apparatus and method
US9767544B2 (en) Scene adaptive brightness/contrast enhancement
JP5481021B2 (en) Heterogeneous color gamut mapping method and apparatus
JP4040625B2 (en) Image processing apparatus, printer apparatus, photographing apparatus, and television receiver
JP5179829B2 (en) Gray data correction apparatus and method
JP5195395B2 (en) Image processing apparatus, image processing method, image processing program, and recording medium
US9036205B2 (en) Image processing apparatus and method for correcting luminance and saturation of a pixel in an image or of a target lattice point in a lookup table
US20090060326A1 (en) Image processing apparatus and method
JP2006229925A (en) Dynamic image saturation enhancement apparatus
US8064693B2 (en) Methods of and apparatus for adjusting colour saturation in an input image
JP4274383B2 (en) Image processing device
JP2000224607A (en) Image processor
US9794450B2 (en) Image processor, image display device, and image processing method for correcting input image
TWI531246B (en) Color adjustment method and its system
JP2014033273A (en) Color gamut conversion device, digital camera, color gamut conversion program, and color gamut conversion method
WO2009093294A1 (en) Image signal processing device and image signal processing program
JP4375580B2 (en) Image processing apparatus, image processing method, and image processing program
CN114999363A (en) Color shift correction method, device, equipment, storage medium and program product
WO2012099013A1 (en) Image correction device, image correction display device, image correction method, program, and recording medium
JP4423226B2 (en) Color adjustment method and apparatus
JP2007158388A (en) Image quality improvement method, apparatus, and program
TW202008311A (en) Image saturation adjusting method and device
JP2014030083A (en) Image processor, image display device and image processing method
JPH09147098A (en) Method and device for processing color image
US20240135518A1 (en) Image processing for improving image quality

Legal Events

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