[go: up one dir, main page]

CN101345813B - Image color compensation device and method thereof - Google Patents

Image color compensation device and method thereof Download PDF

Info

Publication number
CN101345813B
CN101345813B CN2007101284299A CN200710128429A CN101345813B CN 101345813 B CN101345813 B CN 101345813B CN 2007101284299 A CN2007101284299 A CN 2007101284299A CN 200710128429 A CN200710128429 A CN 200710128429A CN 101345813 B CN101345813 B CN 101345813B
Authority
CN
China
Prior art keywords
pixel
color
image
signal value
video signal
Prior art date
Legal status (The legal status 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 status listed.)
Expired - Fee Related
Application number
CN2007101284299A
Other languages
Chinese (zh)
Other versions
CN101345813A (en
Inventor
郑俊民
黄琮翔
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Princeton Technology Corp
Original Assignee
Princeton Technology Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Princeton Technology Corp filed Critical Princeton Technology Corp
Priority to CN2007101284299A priority Critical patent/CN101345813B/en
Publication of CN101345813A publication Critical patent/CN101345813A/en
Application granted granted Critical
Publication of CN101345813B publication Critical patent/CN101345813B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Processing Of Color Television Signals (AREA)

Abstract

The invention provides an image color compensation device and a method thereof. A color gamut conversion operation is performed on a pixel of an original image to convert a first image signal value of the pixel into a second image signal value corresponding to a color gamut plane, wherein the color gamut plane has a color compensation area. And performing mathematical and logical operations on the second image signal value to determine the position of the pixel point. And when the pixel point is positioned in the color compensation area, executing a compensation operation on the second image signal value to enable the pixel point to approach to a preset direction so as to adjust the color of the pixel point. The image color compensation device and the method thereof can effectively improve the quality of the image color and can adjust the color of the image according to personal preference of a user.

Description

影像色彩补偿装置及其方法Image color compensation device and method thereof

技术领域 technical field

本发明有关于一种影像色彩处理方法,且特别有关于一种影像色彩补偿装置与其方法。  The present invention relates to an image color processing method, and particularly relates to an image color compensation device and its method. the

背景技术 Background technique

从最早的阴极射线管显示器到最近逐渐成为主流的液晶显示器,显示器一直是现代人不可或缺的信息交换工具。阴极射线管显示器在各种应用领域已经非常成熟,尤其在电视以及计算机显示的应用上,阴极射线管显示器提供了丰富的色彩表现。由于体积和重量的考虑,阴极射线管显示器较不适用于笔记型计算机和个人数字助理(PDA)中。液晶显示器则因为其体积小和重量轻的因素,陆续在各个应用领域取代了传统的阴极射线管显示器。  From the earliest cathode ray tube monitors to the more recent liquid crystal monitors that have gradually become mainstream, monitors have always been an indispensable tool for modern people to exchange information. The cathode ray tube display has been very mature in various application fields, especially in the application of television and computer display, the cathode ray tube display provides rich color performance. CRT displays are less suitable for notebook computers and personal digital assistants (PDAs) due to size and weight considerations. Liquid crystal displays have gradually replaced traditional cathode ray tube displays in various application fields because of their small size and light weight. the

传统数字影像的色彩属性的记录方法,例如将像素色彩属性以RGB、YUV、YCbCr或YPbPr等色彩坐标来表示,在实际应用上并不易依照各像素当时所显示的色彩来调整其色彩属性,当要进行色彩的饱和度或亮度的调整时,只能将画面中所有色彩的饱和度或亮度一起增加或减少,然而,人类视觉上对于所有色彩的饱和度或亮度并非都有一致的喜好。例如,使用者A可能喜欢较饱和的红色以及较不饱和的绿色,而使用者B却可能喜欢较不饱和的红色以及较饱和的蓝色。因此,若不判断像素本身当时的色彩属性,却只固定将饱和度或亮度一起增加或减少,则无法让使用者获得最佳的视觉效果。  The traditional method of recording color attributes of digital images, such as expressing pixel color attributes in RGB, YUV, YCbCr, or YPbPr color coordinates, is not easy to adjust the color attributes of each pixel according to the color displayed at that time in practical applications. When adjusting the saturation or brightness of a color, the saturation or brightness of all colors in the picture can only be increased or decreased together. However, human beings do not have the same preference for the saturation or brightness of all colors visually. For example, user A may like more saturated red and less saturated green, while user B may like less saturated red and more saturated blue. Therefore, if the color attribute of the pixel itself is not judged at that time, but the saturation and the brightness are only fixedly increased or decreased together, the user cannot obtain the best visual effect. the

根据上述已知的色彩调整技术的缺点,本发明提供了一种影像色彩补偿方法,使得影像可依据使用者的喜好自行调整影像的颜色。  According to the disadvantages of the above-mentioned known color adjustment techniques, the present invention provides an image color compensation method, so that the image color can be adjusted according to the user's preference. the

发明内容 Contents of the invention

基于该目的,本发明揭露了一种影像色彩补偿方法,其包括下列步骤,对一原始影像的一像素点执行一色域转换操作,以转换该像素点的第一影像信号值而成为对应一色域平面的第二影像信号值,其中该色域平面上具有一色彩补偿区域;对该第二影像信号值执行数学与逻辑运算以判断该像素点的位置;以及当该像素点位于该色彩补偿区域内时,对该第二影像信号值执行一补偿操作,使得该像素点朝一预定方向逼近,以调整该像素点的色彩;其中该预定方向是指分别逼近肤色、绿色以及蓝色三种色调于该色域平面上的位置的方向。  Based on this purpose, the present invention discloses an image color compensation method, which includes the following steps of performing a color gamut conversion operation on a pixel of an original image, so as to convert the first image signal value of the pixel into a corresponding color gamut A second image signal value of the plane, wherein the color gamut plane has a color compensation area; performing a mathematical and logic operation on the second image signal value to determine the position of the pixel; and when the pixel is located in the color compensation area When it is inside, a compensation operation is performed on the second image signal value, so that the pixel point approaches a predetermined direction to adjust the color of the pixel point; wherein the predetermined direction refers to approaching the three hues of skin color, green and blue in The orientation of the position on this gamut plane. the

本发明所述的影像色彩补偿方法,其更包括下列步骤:根据一第一轴以及一第二轴形成该色彩补偿区域;对该第二影像信号值执行该数学与逻辑运算以判断该像素点的位置;以及当该像素点位于该色彩补偿区域时,对该第二影像信号值执行该补偿操作,以调整该像素点的色彩。  The image color compensation method of the present invention further includes the following steps: forming the color compensation area according to a first axis and a second axis; performing the mathematical and logical operation on the second image signal value to determine the pixel and when the pixel is located in the color compensation area, performing the compensation operation on the second image signal value to adjust the color of the pixel. the

本发明所述的影像色彩补偿方法,其更包括下列步骤:判断位于色彩补偿区域内的该像素点是否被过度补偿;以及若该像素点被过度补偿,则调整该像素点的像素值,从而取得最后的产出影像,否则,则将该像素点直接输出,以产出影像。  The image color compensation method of the present invention further includes the following steps: judging whether the pixel in the color compensation area is over-compensated; and if the pixel is over-compensated, adjusting the pixel value of the pixel, thereby Obtain the final output image, otherwise, directly output the pixel to generate an image. the

本发明所述的影像色彩补偿方法,其中该色域转换操作更包括将该像素点转换成为对应该色域平面的YUV影像信号值。  In the image color compensation method of the present invention, the color gamut conversion operation further includes converting the pixel into a YUV image signal value corresponding to the color gamut plane. the

本发明所述的影像色彩补偿方法,其中该色域转换操作更包括将该像素点的RGB影像信号值转换成为对应该色域平面的 YUV影像信号值。  In the image color compensation method of the present invention, the color gamut conversion operation further includes converting the RGB image signal value of the pixel into a YUV image signal value corresponding to the color gamut plane. the

本发明所述的影像色彩补偿方法,其中该色彩补偿区域内更包括一肤色调(Skin Tone),当对该第二影像信号值执行该补偿操作时,使得该像素点朝该肤色调逼近,以调整该像素点的肤色色彩,使其接近所设定的肤色。  In the image color compensation method of the present invention, wherein the color compensation area further includes a skin tone (Skin Tone), when the compensation operation is performed on the second image signal value, the pixel is approached to the skin tone, to adjust the skin color of the pixel to make it close to the set skin color. the

本发明所述的影像色彩补偿方法,其中该色彩补偿区域内更包括一绿色调(Green Tone),当对该第二影像信号值执行该补偿操作时,使得该像素点朝该绿色调逼近,以调整该像素点的绿色色彩,使其接近所设定的绿色。  In the image color compensation method of the present invention, wherein the color compensation area further includes a green tone (Green Tone), when the compensation operation is performed on the second image signal value, the pixel is approached to the green tone, to adjust the green color of the pixel to make it close to the set green color. the

本发明所述的影像色彩补偿方法,其中该色彩补偿区域内更包括一蓝色调(Blue Tone),当对该第二影像信号值执行该补偿操作时,使得该像素点朝该蓝色调逼近,以调整该像素点的蓝色色彩,使其接近所设定的蓝色。  In the image color compensation method of the present invention, wherein the color compensation area further includes a blue tone (Blue Tone), when the compensation operation is performed on the second image signal value, the pixel is approached to the blue tone, to adjust the blue color of the pixel to make it close to the set blue color. the

本发明更揭露了一种影像色彩补偿装置,其包括一色域转换单元以及一影像色彩补偿单元。色域转换单元用以对一原始影像的一像素点执行一色域转换操作,以转换该像素点的第一影像信号值而成为对应一色域平面的第二影像信号值,其中该色域平面上具有一色彩补偿区域。影像色彩补偿单元耦接于色域转换单元,其用以对该第二影像信号值执行数学与逻辑运算以判断该像素点的位置,并且当该像素点位于该色彩补偿区域时,对该第二影像信号值执行一补偿操作,使得该像素点朝一预定方向逼近,以调整该像素点的色彩,其中该预定方向是指分别逼近肤色、绿色以及蓝色三种色调于该色域平面上的位置的方向。  The invention further discloses an image color compensation device, which includes a color gamut conversion unit and an image color compensation unit. The color gamut conversion unit is used to perform a color gamut conversion operation on a pixel of an original image, so as to convert the first image signal value of the pixel into a second image signal value corresponding to a color gamut plane, wherein the color gamut plane is There is a color compensation area. The image color compensation unit is coupled to the color gamut conversion unit, which is used to perform mathematical and logical operations on the second image signal value to determine the position of the pixel, and when the pixel is located in the color compensation area, the second A compensation operation is performed on the two image signal values, so that the pixel point approaches a predetermined direction to adjust the color of the pixel point, wherein the predetermined direction refers to respectively approaching the three hues of skin color, green and blue on the color gamut plane The direction of the location. the

本发明所述的影像色彩补偿装置,其中该色域转换单元根据一第一轴以及一第二轴形成该色彩补偿区域,而该影像色彩补偿单元对该第二影像信号值执行该数学与逻辑运算以判断该像素点的位置,并且当该像素点位于该色彩补偿区域内时,对该第二影像信号值执行该补偿操作,以调整该像素点的色彩。  The image color compensation device of the present invention, wherein the color gamut conversion unit forms the color compensation area according to a first axis and a second axis, and the image color compensation unit performs the math and logic on the second image signal value The operation is performed to determine the position of the pixel, and when the pixel is located in the color compensation area, the compensation operation is performed on the second image signal value to adjust the color of the pixel. the

本发明所述的影像色彩补偿装置,其中该影像色彩补偿单元判断位于该色彩补偿区域内的该像素点是否被过度补偿,以及若该像素点被过度补偿,则调整该像素点的像素值,从而取得最后的产出影像,否则,则将该像素点直接输出,以产出影像。  The image color compensation device of the present invention, wherein the image color compensation unit judges whether the pixel located in the color compensation area is over-compensated, and if the pixel is over-compensated, adjusts the pixel value of the pixel, Therefore, the final output image is obtained, otherwise, the pixel is directly output to generate an image. the

本发明所述的影像色彩补偿装置,其中该色域转换单元将该像素点转换成为对应该色域平面的YUV影像信号值。  In the image color compensation device of the present invention, the color gamut converting unit converts the pixel into a YUV image signal value corresponding to the color gamut plane. the

本发明所述的影像色彩补偿装置,其中该色域转换单元将该像素点的RGB影像信号值转换成为对应该色域平面的YUV影像信号值。  In the image color compensation device of the present invention, the color gamut conversion unit converts the RGB image signal value of the pixel into a YUV image signal value corresponding to the color gamut plane. the

本发明所述的影像色彩补偿装置,其中该色彩补偿区域内更包括一肤色调(Skin Tone),当该影像色彩补偿单元对该第二影像信号值执行该补偿操作时,使得该像素点朝该肤色调逼近,以调整该像素点的肤色色彩,使其接近所设定的肤色。  In the image color compensation device of the present invention, wherein the color compensation area further includes a skin tone (Skin Tone), when the image color compensation unit performs the compensation operation on the second image signal value, the pixel points toward The skin tone approximation is used to adjust the skin color of the pixel to make it close to the set skin color. the

本发明所述的影像色彩补偿装置,其中该色彩补偿区域内更包括一绿色调(Green Tone),当该影像色彩补偿单元对该第二影像信号值执行该补偿操作时,使得该像素点朝该绿色调逼近,以调整该像素点的绿色色彩,使其接近所设定的绿色。  The image color compensation device according to the present invention, wherein the color compensation area further includes a green tone (Green Tone), when the image color compensation unit performs the compensation operation on the second image signal value, the pixel point faces The green hue is approximated to adjust the green color of the pixel to make it close to the set green. the

本发明所述的影像色彩补偿装置,其中该色彩补偿区域内更包括一蓝色调(Blue Tone),当该影像色彩补偿单元对该第二影像信号值执行该补偿操作时,使得该像素点朝该蓝色调逼近,以调整该像素点的蓝色色彩,使其接近所设定的蓝色。  The image color compensation device of the present invention, wherein the color compensation area further includes a blue tone (Blue Tone), when the image color compensation unit executes the compensation operation on the second image signal value, the pixel point faces The blue hue is approximated to adjust the blue color of the pixel to make it close to the set blue. the

本发明所述的影像色彩补偿装置及其方法,可有效的改善影像色彩的品质,更可依据使用者个人的喜好,调整影像的色 彩。  The image color compensation device and method thereof described in the present invention can effectively improve the image color quality, and can adjust the image color according to the user's personal preference. the

附图说明 Description of drawings

图1为本发明的影像色彩补偿装置的示意图。  FIG. 1 is a schematic diagram of an image color compensation device of the present invention. the

图2为本发明进行影像色彩补偿的Y-UV平面示意图。  FIG. 2 is a schematic diagram of a Y-UV plane for performing image color compensation in the present invention. the

图3为本发明的影像色彩补偿方法的步骤流程图。  FIG. 3 is a flow chart of the steps of the image color compensation method of the present invention. the

具体实施方式 Detailed ways

请参阅图1及图2,图1为本发明的影像色彩补偿装置的示意图。图2为本发明进行影像色彩补偿的Y-UV平面示意图。如图1及图2所示,本发明的影像色彩补偿装置10包括一色域转换单元12以及一影像色彩补偿单元14。色域转换单元12用以对一原始影像的一像素点241~243执行一色域转换操作,以转换该像素点241~243的第一影像信号值而成为对应一色域平面20的第二影像信号值,该色域平面20上具有一色彩补偿区域21~23。影像色彩补偿单元14耦接于色域转换单元12,其用以对第二影像信号值执行数学与逻辑运算以判断该像素点241~243的位置,并且当该像素点241~243位于色彩补偿区域21~23时,对第二影像信号值执行一补偿操作,使得该像素点241~243朝一预定方向逼近,以调整该像素点241~243的色彩。预定方向是指分别逼近肤色、绿色以及蓝色三种色调于该色域平面20上的位置的方向,即为图2中箭头所指的方向。  Please refer to FIG. 1 and FIG. 2 . FIG. 1 is a schematic diagram of an image color compensation device of the present invention. FIG. 2 is a schematic diagram of a Y-UV plane for performing image color compensation in the present invention. As shown in FIGS. 1 and 2 , the image color compensation device 10 of the present invention includes a color gamut conversion unit 12 and an image color compensation unit 14 . The color gamut conversion unit 12 is used to perform a color gamut conversion operation on a pixel point 241-243 of an original image, so as to convert the first image signal value of the pixel point 241-243 into a second image signal corresponding to a color gamut plane 20 value, the color gamut plane 20 has a color compensation area 21-23. The image color compensation unit 14 is coupled to the color gamut conversion unit 12, and is used for performing mathematical and logical operations on the second image signal value to determine the positions of the pixels 241-243, and when the pixels 241-243 are located in the color compensation In the area 21-23, a compensation operation is performed on the value of the second image signal, so that the pixels 241-243 approach a predetermined direction, so as to adjust the color of the pixels 241-243. The predetermined direction refers to the directions respectively approaching the positions of the three hues of skin color, green and blue on the color gamut plane 20 , which is the direction indicated by the arrow in FIG. 2 . the

色域转换单元12根据一第一轴201~203以及一第二轴204~206形成色彩补偿区域21~23,而影像色彩补偿单元14对第二影像信号值执行数学与逻辑运算以判断该像素点241~243的位置,于一实施例中先计算每一像素点241~243与原点的距离,再利用该距离计算出其与原点的角度,通过该角度即可得 知该像素点241~243是否位于色彩补偿区域21~23内,并且当该像素点241~243位于色彩补偿区域21~23内时,对第二影像信号值执行补偿操作,以调整该像素点241~243的色彩。  The color gamut conversion unit 12 forms color compensation areas 21-23 according to a first axis 201-203 and a second axis 204-206, and the image color compensation unit 14 performs mathematical and logical operations on the second image signal value to determine the pixel For the position of points 241-243, in one embodiment, first calculate the distance between each pixel point 241-243 and the origin, and then use the distance to calculate the angle between it and the origin, through which the pixel point 241-243 can be known Whether 243 is located in the color compensation area 21-23, and when the pixel point 241-243 is located in the color compensation area 21-23, perform a compensation operation on the second image signal value to adjust the color of the pixel point 241-243. the

于一实施例中,影像补偿单元14会进一步判断位于色彩补偿区域内21~23的像素点241~243是否被过度补偿,以及若像素点241~243被过度补偿,则调整像素点241~243的像素值,从而取得最后的产出影像16,否则,则将像素点241~243直接输出,以产出影像16。  In one embodiment, the image compensation unit 14 further determines whether the pixels 241-243 located in the color compensation area 21-23 are over-compensated, and if the pixels 241-243 are over-compensated, adjust the pixels 241-243 The pixel values of , so as to obtain the final output image 16 , otherwise, directly output the pixel points 241 - 243 to output the image 16 . the

其中,色域转换单元12将像素点241~243转换成为对应该色域平面20的Y-UV影像信号值。于另一实施例中,色域转换单元12将该像素点241~243的RGB影像信号值转换成为对应该色域平面20的Y-UV影像信号值。  Wherein, the color gamut conversion unit 12 converts the pixels 241 - 243 into Y-UV image signal values corresponding to the color gamut plane 20 . In another embodiment, the color gamut conversion unit 12 converts the RGB image signal values of the pixels 241 - 243 into Y-UV image signal values corresponding to the color gamut plane 20 . the

于一实施例中,色彩补偿区域21内更包括一肤色调(SkinTone)32,当影像色彩补偿单元14对第二影像信号值执行该补偿操作时,使得该像素点241朝该肤色调32逼近,以调整该像素点241的肤色色彩,使其接近所设定的肤色。  In one embodiment, the color compensation area 21 further includes a skin tone (SkinTone) 32. When the image color compensation unit 14 performs the compensation operation on the second image signal value, the pixel point 241 approaches the skin tone 32. , to adjust the skin color of the pixel 241 to make it close to the set skin color. the

于一实施例中,色彩补偿区域22内则包括一绿色调(GreenTone)34,当影像色彩补偿单元14对该第二影像信号值执行该补偿操作时,使得该像素点242朝该绿色调34逼近,以调整该像素点242的绿色色彩,使其接近所设定的绿色。  In one embodiment, the color compensation area 22 includes a green tone (GreenTone) 34, and when the image color compensation unit 14 performs the compensation operation on the second image signal value, the pixel point 242 moves toward the green tone 34 Approximate to adjust the green color of the pixel 242 to make it close to the set green color. the

于另一实施例中,色彩补偿区域23内更包括一蓝色调(BlueTone)36,当影像色彩补偿单元14对该第二影像信号值执行该补偿操作时,使得该像素点243朝该蓝色调36逼近,以调整该像素点243的蓝色色彩,使其接近所设定的蓝色。  In another embodiment, the color compensation area 23 further includes a blue tone (BlueTone) 36, when the image color compensation unit 14 performs the compensation operation on the second image signal value, the pixel point 243 will move toward the blue tone 36 approximation to adjust the blue color of the pixel 243 to make it close to the set blue color. the

上述实施例中显示三种不同色彩的调整方法,其调整的原理皆相同,不同之处仅为三个不同实施例中的色彩补偿区域21~23分别位于Y-UV平面的不同象限,因此,本发明的影像 色彩补偿装置10可依据实际的应用选择调整三种色彩,例如,可依序选择仅调整三种色彩其中之一,或者同时调整两种或三种色彩。  The above-mentioned embodiments show three different color adjustment methods, and the adjustment principles are the same, the only difference is that the color compensation areas 21-23 in the three different embodiments are respectively located in different quadrants of the Y-UV plane. Therefore, The image color compensation device 10 of the present invention can select and adjust three colors according to actual applications, for example, it can select to adjust only one of the three colors in sequence, or adjust two or three colors at the same time. the

请参阅图3,图3为本发明的影像色彩补偿方法的步骤流程图。本发明的影像色彩补偿方法,包括下列步骤:  Please refer to FIG. 3 . FIG. 3 is a flowchart of steps of the image color compensation method of the present invention. The image color compensation method of the present invention comprises the following steps:

S50:先定义色彩的基准色调;  S50: Define the base tone of the color first;

S52:对一原始影像的一像素点执行一色域转换操作,以转换该像素点的第一影像信号值而成为对应一色域平面的第二影像信号值,其中该色域平面上具有一色彩补偿区域;根据一第一轴以及一第二轴形成色彩补偿区域。  S52: Perform a color gamut conversion operation on a pixel of an original image, so as to convert the first image signal value of the pixel into a second image signal value corresponding to a color gamut plane, wherein the color gamut plane has a color compensation Area; forming a color compensation area according to a first axis and a second axis. the

S54:对第二影像信号值执行数学与逻辑运算以判断该像素点的位置;  S54: Perform mathematical and logical operations on the second image signal value to determine the position of the pixel;

S56:当该像素点位于色彩补偿区域内时,对第二影像信号值执行一补偿操作,使得该像素点朝一预定方向逼近,以调整该像素点的色彩。若像素点并非位于色彩补偿区域内时,则不进行该补偿操作,直接输出该像素点,产出影像(步骤S62)。其中,该预定方向是指分别逼近肤色、绿色以及蓝色三种色调于该色域平面上的位置的方向。  S56: When the pixel is located in the color compensation area, perform a compensation operation on the second image signal value, so that the pixel approaches a predetermined direction, so as to adjust the color of the pixel. If the pixel is not located in the color compensation area, the compensation operation is not performed, and the pixel is directly output to generate an image (step S62). Wherein, the predetermined direction refers to directions respectively approaching the positions of the three hues of skin color, green and blue on the color gamut plane. the

S58:判断位于色彩补偿区域内的该像素点是否被过度补偿;以及  S58: judging whether the pixel located in the color compensation area is over-compensated; and

S60:若该像素点被过度补偿,则调整该像素点的像素值,从而取得最后的产出影像,否则,则将该像素点直接输出,以产出影像(步骤S62)。于一实施例中,于一开始进行影像色彩补偿时,可先设定欲补偿像素值的范围,例如像素值范围-128~127,借此,当步骤S58判断出像素值因为进行上述补偿操作(步骤S56)而被过度补偿时,步骤S60可以调整该像素点的像素值,使其符合一开始所设定的像素值范围-128~127,例如,当补 偿操作完的像素值超过127时,则会将像素值调整为127,于一实施例中,像素点是否过度补偿可由使用者自行决定,而自行设定其像素值的范围,当像素点通过补偿操作后的像素值超过使用者所设定的像素值范围时,会自行将像素值调整回使用者所设定的最大像素值或最小像素值,如此可以使像素点的色彩符合每个使用者的需求。  S60: If the pixel is overcompensated, adjust the pixel value of the pixel to obtain a final output image; otherwise, directly output the pixel to generate an image (step S62). In one embodiment, when image color compensation is first performed, the range of pixel values to be compensated can be set first, for example, the range of pixel values -128 to 127, so that when step S58 determines that the pixel value is due to the aforementioned compensation operation (step S56) and when it is over compensated, step S60 can adjust the pixel value of the pixel point to make it conform to the pixel value range -128~127 set at the beginning, for example, when the pixel value after the compensation operation exceeds 127 , the pixel value will be adjusted to 127. In one embodiment, the user can decide whether the pixel is over-compensated, and set the range of its pixel value. When the pixel value after the compensation operation exceeds the used When the pixel value range set by the user is selected, the pixel value will be automatically adjusted back to the maximum or minimum pixel value set by the user, so that the color of the pixel can meet the needs of each user. the

S62:产出影像。  S62: Generate an image. the

色域转换操作则将该像素点转换成为对应该色域平面的YUV影像信号值。而另一实施例中,色域转换操作更包括将该像素点的RGB影像信号值转换成为对应该色域平面的YUV影像信号值。  The color gamut conversion operation converts the pixel into a YUV image signal value corresponding to the color gamut plane. In another embodiment, the color gamut conversion operation further includes converting the RGB image signal value of the pixel into a YUV image signal value corresponding to the color gamut plane. the

于一实施例中,色彩补偿区域内更包括一肤色调(SkinTone),当对该第二影像信号值执行该补偿操作时,使得该像素点朝该肤色调逼近,以调整该像素点的肤色色彩,使其接近所设定的肤色。  In one embodiment, the color compensation area further includes a skin tone (SkinTone), and when the compensation operation is performed on the second image signal value, the pixel is approached to the skin tone to adjust the skin tone of the pixel color to make it closer to the skin tone you set. the

于另一实施例中,该色彩补偿区域内更包括一绿色调(Green Tone),当对该第二影像信号值执行该补偿操作时,使得该像素点朝该绿色调逼近,以调整该像素点的绿色色彩,使其接近所设定的绿色。  In another embodiment, the color compensation area further includes a green tone (Green Tone), when the compensation operation is performed on the second image signal value, the pixel is approached to the green tone to adjust the pixel The green tint of the point, making it close to the set green. the

于另一实施例中,该色彩补偿区域内更包括一蓝色调(BlueTone),当对该第二影像信号值执行该补偿操作时,使得该像素点朝该蓝色调逼近,以调整该像素点的蓝色色彩,使其接近所设定的蓝色。  In another embodiment, the color compensation area further includes a blue tone (BlueTone), when the compensation operation is performed on the second image signal value, the pixel is made to approach the blue tone to adjust the pixel to make it closer to the set blue color. the

以上所述的色彩补偿区域、肤色调、绿色调以及蓝色调,可根据实际上的使用而进行设定,例如,可自行调整色彩补偿区域的范围,决定哪些区域内的像素需进行色彩补偿,而亦可根据不同使用者的喜好,进行该三种色调的设定,于设定完该 三种色调后,再根据设定后的肤色调、绿色调以及蓝色调,调整位于色彩补偿区域内的像素点,如此可以有效的调整影像的色彩,达到不同使用者对影像品质的需求。  The color compensation area, skin tone, green tone, and blue tone mentioned above can be set according to the actual use. For example, the range of the color compensation area can be adjusted to determine which pixels in the area need to be color compensated. It is also possible to set the three color tones according to the preferences of different users. After setting the three tones, adjust the color within the color compensation area according to the set skin tones, green tones and blue tones. Pixels, so that the color of the image can be effectively adjusted to meet the needs of different users for image quality. the

本发明的影像色彩补偿方法及其装置并非局限于将影像进行上述肤色、绿色以及蓝色的色彩调整,只要是利用本发明的补偿方法进行各种色彩补偿的方法,皆可成为本发明的应用领域。  The image color compensation method and its device of the present invention are not limited to adjusting the above-mentioned skin color, green and blue color of the image, as long as the compensation method of the present invention is used to perform various color compensation methods, all can be applied to the present invention field. the

由上可知,本发明提供一种影像色彩补偿方法及其装置,将落入预先设定的色彩补偿区域内的像素,根据使用者的喜好,将其进行色彩补偿,使其分别逼近肤色调、绿色调以及蓝色调,如此可使接受补偿的像素点的表现色彩接近所设定的肤色、绿色以及蓝色。可有效的改善影像色彩的品质,更可依据使用者个人的喜好,调整影像的色彩。  As can be seen from the above, the present invention provides an image color compensation method and device thereof, which perform color compensation on the pixels falling into the preset color compensation area according to the user's preferences, so that they are respectively close to skin tone, Green tint and blue tint, so that the performance color of the compensated pixel is close to the set skin color, green and blue. It can effectively improve the image color quality, and adjust the image color according to the user's personal preference. the

以上所述仅为本发明较佳实施例,然其并非用以限定本发明的范围,任何熟悉本项技术的人员,在不脱离本发明的精神和范围内,可在此基础上做进一步的改进和变化,因此本发明的保护范围当以本申请的权利要求书所界定的范围为准。  The above description is only a preferred embodiment of the present invention, but it is not intended to limit the scope of the present invention. Any person familiar with this technology can make further improvements on this basis without departing from the spirit and scope of the present invention. Improvements and changes, so the protection scope of the present invention should be defined by the claims of the present application. the

附图中符号的简单说明如下:  A brief description of the symbols in the drawings is as follows:

10:影像色彩补偿装置  10: Image color compensation device

12:色域转换单元  12: Color gamut conversion unit

14:影像色彩补偿单元  14: Image color compensation unit

16:产出影像  16: Produce images

20:色域平面  20: Gamut plane

21~23:色彩补偿区域  21~23: Color Compensation Area

241~243:像素点  241~243: Pixels

201~203:第一轴  201~203: the first axis

204~206:第二轴  204~206: Second axis

32:肤色调  32: skin tone

34:绿色调  34: Green tone

36:蓝色调  36: blue tone

S50~S62:方法步骤  S50~S62: method steps

Claims (16)

1. a colors of image compensation method is characterized in that, comprises the following steps:
One pixel of one raw video is carried out a colour gamut conversion operations; Become the second signal of video signal value on a corresponding colour gamut plane with the first signal of video signal value of changing this pixel; Wherein have a plurality of color compensations zone on this colour gamut plane, said color compensation zone lays respectively at the different quadrants on this colour gamut plane;
This second signal of video signal value is carried out mathematics and logical operation to judge the position of this pixel; And
When this pixel is positioned at one of said color compensation zone, this second signal of video signal value is carried out a compensating operation, make this pixel approach, to adjust the color of this pixel towards a predetermined direction;
Wherein this predetermined direction is meant the direction of approaching the colour of skin, green and blue three kinds of tone positions on this colour gamut plane respectively; This colour of skin, green and blue cast lay respectively at the set zone in the said color compensation zone, and the set zone at the set zone at this green hue place and this blue cast place is surrounded by a curve respectively.
2. colors of image compensation method according to claim 1 is characterized in that, more comprises the following steps:
Form each color compensatory zone according to one first and one second;
This second signal of video signal value is carried out this mathematics and logical operation to judge the position of this pixel; And
When this pixel is positioned at one of said color compensation zone, this second signal of video signal value is carried out this compensating operation, to adjust the color of this pixel.
3. colors of image compensation method according to claim 1 is characterized in that, more comprises the following steps:
Judge that whether this pixel that is positioned at the color compensation zone is by overcompensation; And
If this pixel by overcompensation, is then adjusted the pixel value of this pixel, thereby is obtained last output image, otherwise, then this pixel is directly exported, with the output image.
4. colors of image compensation method according to claim 1 is characterized in that, the operation of this color gamut conversion more comprises this pixel is converted into YUV signal of video signal value that should the colour gamut plane.
5. colors of image compensation method according to claim 4 is characterized in that, the operation of this color gamut conversion comprises that more the RGB signal of video signal value with this pixel is converted into YUV signal of video signal value that should the colour gamut plane.
6. colors of image compensation method according to claim 1; It is characterized in that; Said set zone comprises colour of skin accent, when this second signal of video signal value is carried out this compensating operation, makes this pixel transfer towards this colour of skin and approaches; To adjust the colour of skin color of this pixel, make it near the colour of skin that sets.
7. colors of image compensation method according to claim 1; It is characterized in that; Said set zone comprises a green hue, when this second signal of video signal value is carried out this compensating operation, makes this pixel approach towards this green hue; To adjust the green tint of this pixel, make it near the green that sets.
8. colors of image compensation method according to claim 1; It is characterized in that; Said set zone comprises a blue cast, when this second signal of video signal value is carried out this compensating operation, makes this pixel approach towards this blue cast; To adjust the blue color of this pixel, make it near the blueness that sets.
9. an image color compensation device is characterized in that, comprising:
One colour gamut converting unit; It is in order to carry out a colour gamut conversion operations to a pixel of a raw video; Become the second signal of video signal value on a corresponding colour gamut plane with the first signal of video signal value of changing this pixel; Wherein have a plurality of color compensations zone on this colour gamut plane, said color compensation zone lays respectively at the different quadrants on this colour gamut plane; And
One colors of image compensating unit; Be coupled to this gamut conversion unit; It is in order to carry out mathematics and logical operation to judge the position of this pixel to this second signal of video signal value; And when this pixel is positioned at one of said color compensation zone, this second signal of video signal value is carried out a compensating operation, make this pixel approach towards a predetermined direction; To adjust the color of this pixel; Wherein this predetermined direction is meant the direction of approaching the colour of skin, green and blue three kinds of tone positions on this colour gamut plane respectively, and this colour of skin, green and blue cast lay respectively at the set zone in the said color compensation zone, and the set zone at the set zone at this green hue place and this blue cast place is surrounded by a curve respectively.
10. image color compensation device according to claim 9; It is characterized in that; This gamut conversion unit forms each color compensatory zone according to one first and one second, and this colors of image compensating unit is carried out this mathematics and logical operation judging the position of this pixel to this second signal of video signal value, and is positioned at said color compensation when one of regional when this pixel; This second signal of video signal value is carried out this compensating operation, to adjust the color of this pixel.
11. image color compensation device according to claim 9 is characterized in that, this colors of image compensating unit judges that whether this pixel that is positioned at this color compensation zone is by overcompensation; And if this pixel by overcompensation; Then adjust the pixel value of this pixel, thereby obtain last output image, otherwise; Then this pixel is directly exported, with the output image.
12. image color compensation device according to claim 9 is characterized in that, this gamut conversion unit is converted into this pixel to YUV signal of video signal value that should the colour gamut plane.
13. image color compensation device according to claim 12 is characterized in that, this gamut conversion unit is converted into the RGB signal of video signal value of this pixel to YUV signal of video signal value that should the colour gamut plane.
14. image color compensation device according to claim 9; It is characterized in that; Said set zone comprises colour of skin accent, when this colors of image compensating unit is carried out this compensating operation to this second signal of video signal value, makes this pixel transfer towards this colour of skin and approaches; To adjust the colour of skin color of this pixel, make it near the colour of skin that sets.
15. image color compensation device according to claim 9; It is characterized in that; Said set zone comprises a green hue, when this colors of image compensating unit is carried out this compensating operation to this second signal of video signal value, makes this pixel approach towards this green hue; To adjust the green tint of this pixel, make it near the green that sets.
16. image color compensation device according to claim 9; It is characterized in that; Said set zone comprises a blue cast, when this colors of image compensating unit is carried out this compensating operation to this second signal of video signal value, makes this pixel approach towards this blue cast; To adjust the blue color of this pixel, make it near the blueness that sets.
CN2007101284299A 2007-07-10 2007-07-10 Image color compensation device and method thereof Expired - Fee Related CN101345813B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2007101284299A CN101345813B (en) 2007-07-10 2007-07-10 Image color compensation device and method thereof

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2007101284299A CN101345813B (en) 2007-07-10 2007-07-10 Image color compensation device and method thereof

Publications (2)

Publication Number Publication Date
CN101345813A CN101345813A (en) 2009-01-14
CN101345813B true CN101345813B (en) 2012-05-30

Family

ID=40247689

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2007101284299A Expired - Fee Related CN101345813B (en) 2007-07-10 2007-07-10 Image color compensation device and method thereof

Country Status (1)

Country Link
CN (1) CN101345813B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108282647B (en) * 2018-01-31 2019-11-05 上海小蚁科技有限公司 Color correcting method and device, computer readable storage medium, terminal
CN113965735B (en) * 2020-07-21 2024-03-01 瑞昱半导体股份有限公司 Image color-removing band judging method and image color-removing band judging circuit

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6169536B1 (en) * 1996-06-04 2001-01-02 Lg Electronics Inc. Color picture quality compensation circuit and related control method thereof
CN1976481A (en) * 2005-11-28 2007-06-06 普诚科技股份有限公司 Image compensating device and method

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6169536B1 (en) * 1996-06-04 2001-01-02 Lg Electronics Inc. Color picture quality compensation circuit and related control method thereof
CN1976481A (en) * 2005-11-28 2007-06-06 普诚科技股份有限公司 Image compensating device and method

Also Published As

Publication number Publication date
CN101345813A (en) 2009-01-14

Similar Documents

Publication Publication Date Title
CN106128373B (en) Image processing device with image compensation function and image processing method thereof
JP4214154B2 (en) Video device for automatically adjusting white balance and white balance adjusting method thereof
CN102209179B (en) An Adaptive Color Gamut Matching Method Based on Image Color Gamut
JP2005354711A (en) Color gamut mapping apparatus using vector stretching and method therefor
CN105261326A (en) Display device for adjusting display color gamut and method for adjusting display color gamut
WO2019090914A1 (en) Color gamut mapping method and color gamut mapping apparatus
CN107680142B (en) Method for improving out-of-gamut color overlay mapping
KR101393487B1 (en) Display apparatus and method for image enhancement
JP5878586B2 (en) Image color adjustment method and electronic apparatus therefor
CN101558656A (en) Brightness information display and method
WO2023241339A1 (en) Color cast correction method and apparatus, device, storage medium and program product
TWI424426B (en) Method for adjusting the color of image
CN101345813B (en) Image color compensation device and method thereof
TWI489442B (en) Adaptive color space conversion system and method
TWI415480B (en) Image processing method and image processing system
TWI485694B (en) Image color adjusting method and electronic apparatus thereof
JP2006229925A (en) Dynamic image saturation processing device
TW559737B (en) Color conversion method for preference color
CN104469226A (en) Projection fusion method and device
CN100535984C (en) Color image enhancement device and method
TWI531246B (en) Color adjustment method and its system
CN110809145B (en) Image brightness transformation method, device and device based on Craik-O'Brien effect
CN115294945A (en) Object display method and device, and color lookup table generation method and device
CN105340269B (en) Utilize the color calibration method of RGB data
TWI697873B (en) Image saturation adjusting method and device

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20120530

Termination date: 20160710

CF01 Termination of patent right due to non-payment of annual fee