CN1976481A - Image compensating device and method - Google Patents

Image compensating device and method Download PDF

Info

Publication number
CN1976481A
CN1976481A CN 200510124042 CN200510124042A CN1976481A CN 1976481 A CN1976481 A CN 1976481A CN 200510124042 CN200510124042 CN 200510124042 CN 200510124042 A CN200510124042 A CN 200510124042A CN 1976481 A CN1976481 A CN 1976481A
Authority
CN
China
Prior art keywords
mentioned
subregion
pixel
colour
skin
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.)
Granted
Application number
CN 200510124042
Other languages
Chinese (zh)
Other versions
CN100584036C (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 CN200510124042A priority Critical patent/CN100584036C/en
Publication of CN1976481A publication Critical patent/CN1976481A/en
Application granted granted Critical
Publication of CN100584036C publication Critical patent/CN100584036C/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Processing Of Color Television Signals (AREA)

Abstract

A method for compensating image includes executing a color domain transform operation on a pixel point of an original image for converting the first image signal value of said pixel point to be the second image signal value (TSISV) corresponding to a color domain plane (CDP), arranging skin color axle with the first and the second skin color compensation region at two sides of said axle on said CDP, judging position of said pixel point by executing operation on TSISV, executing a compensation operation on TSISV for making pixel point color be more like skin color when said pixel point is on the first or on the second skin color compensation region.

Description

Image compensating device and method
Technical field
The invention relates to a kind of image treatment method, and be particularly to a kind of collocation Automatic white balance (Auto White Balance, AWB) flesh colour compensation method of function.
Background technology
General image capture unit utilizes charge coupled cell (Charge CoupledDevice, CCD) during camera lens pick-up image information, the chromatic value of red (Red) of each image pixel (Pixel) that it obtained, green (Green), blue (Blue) can be subjected to the different influence of environment light source colour temperature and colorific skew (Shift).For example, white thing is when light source color temperature is on the low side, and it is presented the tone that is offset to reddish yellow by picked image, then presents the tone to the ultramarine skew when light source color temperature is higher, so that cause the distortion of colors of image.
Existing image capture unit (for example, digital camera) provides automatic focusing (Auto Focus mostly, AF), automatic exposure (Auto Exposure, AE) with Automatic white balance functions such as (AWB), make that the image effect capture can more approaching actual image, wherein the Automatic white balance function is meant that automatic correction light combination is to reach the purpose of color compensation.The color of object itself, regular meeting changes because of the color of throw light, and human eyes can be revised this change that produces because of light automatically, but camera lens does not possess such function.The white balance correction function is exactly in order to allow camera have the same function of human eye, through calculating different light mean value, to regulate inner color balance automatically, reaching the effect of equal energy true reappearance white under all conditions.The Automatic white balance technology can be according to the speciality of image in the present picture, through adjusting the intensity of three kinds of primary colors of red, green, blue in the whole image after calculating immediately, to revise the color error that extraneous light was caused.
A kind of known white balance correcting is that the pixel value that will take the gained image becomes the YCbCr coordinate by the RGB Coordinate Conversion, again according to a plurality of sampling blocks to calculate Y, Cb, the mean value of Cr of each sampling block, again with Cb, Cr as diaxon to mark off four quadrants, and obtain sampling block pairing quadrant with Cb, the Cr value of each sampling block, by the direction of revising according to the quadrant of being partial to.Aforementioned white balance correcting The conditions of calculation is the more the time, though can obtain to proofread and correct more accurately, the relative complicated calculating of must healing, therefore very time-consuming.
Other known white balance correcting comprises ash figure hypothesis (Gray-WorldAssumption) method and bright spot method for searching.Ash figure assumption method is that whole picked image is considered as neutral gray, when image does not belong to neutral gray, then adjusts R yield value (Gain) and B yield value, makes the difference of its RG and the difference of BG level off to 0, and RGB yield value at this moment is considered as neutral gray.Yet this method is just made mistakes when the environment of taking the woods or the image at dusk easily.The bright spot method for searching is that to consider to occur usually at the reflective place of bright spot the probability of white higher, and the key of this method is judging whether accurately of bright spot feature, but often misjudgment easily.
Summary of the invention
According to the shortcoming of above-mentioned existing white balance correction technology, the invention provides a kind of image compensation method, and collocation Automatic white balance technology, make that shooting gained image can be more near real image.
Based on above-mentioned purpose, the invention provides a kind of image compensating device and method.Described image compensation method comprises: obtain a raw video and this raw video is carried out Automatic white balance operation.One pixel of this 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 colour of skin axle on this colour gamut plane and have one first colour of skin compensatory zone and one second colour of skin compensatory zone on the both sides of this colour of skin axle, and according to one first, one second, one the 3rd is divided into one first subregion with one the 4th respectively with this first colour of skin compensatory zone and this second colour of skin compensatory zone, one second subregion, one the 3rd subregion and one the 4th subregion.This second signal of video signal value is carried out mathematics and logical operation to judge the position of this pixel.When this pixel is positioned at this first subregion, this second subregion, the 3rd subregion or the 4th subregion, this second signal of video signal value is carried out a compensating operation, make this pixel approach on this first, this second, the 3rd or the 4th.
The present invention more provides a kind of image compensating device, and it comprises a white balance unit, a colour gamut converting unit and an image compensation unit.Automatic white balance operation is carried out to a raw video in this white balance unit.This gamut conversion unit is carried out a colour gamut conversion operations to a pixel of this 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 colour of skin axle on this colour gamut plane and have one first colour of skin compensatory zone and one second colour of skin compensatory zone on the both sides of this colour of skin axle, and according to one first, one second, one the 3rd is divided into one first subregion with one the 4th respectively with this first colour of skin compensatory zone and this second colour of skin compensatory zone, one second subregion, one the 3rd subregion and one the 4th subregion.Mathematics and logical operation are carried out to judge the position of this pixel to this second signal of video signal value in this image compensation unit, and when this pixel is positioned at this first subregion, this second subregion, the 3rd subregion or the 4th subregion, this second signal of video signal value is carried out a compensating operation, make this pixel approach on this first, this second, the 3rd or the 4th.
The present invention is achieved in that
The invention provides a kind of image compensation method, described image compensation method comprises the following steps: a pixel of a 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 above-mentioned pixel, have a colour of skin axle on the wherein above-mentioned colour gamut plane and have one first colour of skin compensatory zone and one second colour of skin compensatory zone on the both sides of above-mentioned colour of skin axle; The above-mentioned second signal of video signal value is carried out mathematics and logical operation to judge the position of above-mentioned pixel; And when above-mentioned pixel is positioned at above-mentioned first colour of skin compensatory zone or above-mentioned second colour of skin compensatory zone, the above-mentioned second signal of video signal value is carried out a compensating operation, make above-mentioned pixel approach, make the color of above-mentioned pixel more near the colour of skin towards above-mentioned colour of skin axle.
Image compensation method of the present invention more comprises the following steps: with one the 4th above-mentioned first colour of skin compensatory zone and above-mentioned second colour of skin compensatory zone to be divided into one first subregion, one second subregion, one the 3rd subregion and one the 4th subregion respectively according to one first, one second, one the 3rd; The above-mentioned second signal of video signal value is carried out above-mentioned mathematics and logical operation to judge the position of above-mentioned pixel; And when above-mentioned pixel is positioned at above-mentioned first subregion, above-mentioned second subregion, above-mentioned the 3rd subregion or above-mentioned the 4th subregion, the above-mentioned second signal of video signal value is carried out above-mentioned compensating operation, make above-mentioned pixel approach on above-mentioned first, above-mentioned second, above-mentioned the 3rd or above-mentioned the 4th.
Image compensation method of the present invention more comprises the following steps: to form above-mentioned first subregion and form above-mentioned second subregion according to above-mentioned second and one the 6th according to above-mentioned first and one the 5th; When above-mentioned pixel is positioned at above-mentioned first subregion, then the above-mentioned second signal of video signal value is carried out above-mentioned compensating operation so that above-mentioned pixel approaches on above-mentioned first; When above-mentioned pixel is positioned at above-mentioned second subregion, then the above-mentioned second signal of video signal value is carried out above-mentioned compensating operation so that above-mentioned pixel approaches on above-mentioned second; When above-mentioned pixel is positioned at above-mentioned the 3rd subregion, then the above-mentioned second signal of video signal value is carried out above-mentioned compensating operation so that above-mentioned pixel approaches on above-mentioned the 3rd; And be positioned at above-mentioned the 4th subregion when above-mentioned pixel, then the above-mentioned second signal of video signal value is carried out above-mentioned compensating operation so that above-mentioned pixel approaches on above-mentioned the 4th.
Image compensation method of the present invention comprises the following steps: more to judge whether other pixel that is positioned at above-mentioned first subregion, above-mentioned second subregion, above-mentioned the 3rd subregion or above-mentioned the 4th subregion has finished above-mentioned compensating operation; And, then change the second signal of video signal value of corresponding each pixel, thereby obtain a last generation image, otherwise other pixel is carried out above-mentioned compensating operation by above-mentioned color gamut conversion operation if other pixel has been finished above-mentioned compensating operation all.
Image compensation method of the present invention, more be included in carry out above-mentioned color gamut conversion operation before, above-mentioned raw video is carried out Automatic white balance operation.
Image compensation method of the present invention, above-mentioned color gamut conversion operation more comprises the YUV signal of video signal value that the RGB signal of video signal value of above-mentioned pixel is converted into corresponding above-mentioned colour gamut plane.
Image compensation method of the present invention, above-mentioned colour of skin axle are second quadrants that is positioned at above-mentioned colour gamut plane.
The present invention also provides a kind of image compensating device, described image compensating device comprises: a 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 above-mentioned pixel, have a colour of skin axle on the wherein above-mentioned colour gamut plane and have one first colour of skin compensatory zone and one second colour of skin compensatory zone on the both sides of above-mentioned colour of skin axle; An and image compensation unit, be coupled to above-mentioned gamut conversion unit, it is in order to carry out mathematics and logical operation to judge the position of above-mentioned pixel to the above-mentioned second signal of video signal value, and when above-mentioned pixel is positioned at above-mentioned first colour of skin compensatory zone or above-mentioned second colour of skin compensatory zone, the above-mentioned second signal of video signal value is carried out a compensating operation, make above-mentioned pixel approach, make the color of above-mentioned pixel more near the colour of skin towards above-mentioned colour of skin axle.
The present invention also provides a kind of image compensating device, and above-mentioned gamut conversion unit respectively is divided into one first subregion, one second subregion, one three subregion and one four subregion with one the 4th with above-mentioned first colour of skin compensatory zone and above-mentioned second colour of skin compensatory zone according to one first, one second, one the 3rd; And above-mentioned mathematics and logical operation are carried out to judge the position of above-mentioned pixel to the above-mentioned second signal of video signal value in above-mentioned image compensation unit, and when above-mentioned pixel is positioned at above-mentioned first subregion, above-mentioned second subregion, above-mentioned the 3rd subregion or above-mentioned the 4th subregion, the above-mentioned second signal of video signal value is carried out above-mentioned compensating operation, make above-mentioned pixel approach on above-mentioned first, above-mentioned second, above-mentioned the 3rd or above-mentioned the 4th.
The present invention also provides a kind of image compensating device, and above-mentioned first subregion is to form with one the 5th institute by above-mentioned first, and above-mentioned second subregion is formed by above-mentioned second and one the 6th.
The present invention also provides a kind of image compensating device, above-mentioned image compensation unit is when above-mentioned pixel is positioned at above-mentioned first subregion, then the above-mentioned second signal of video signal value is carried out above-mentioned compensating operation so that above-mentioned pixel approaches on above-mentioned first, when above-mentioned pixel is positioned at above-mentioned second subregion, then the above-mentioned second signal of video signal value is carried out above-mentioned compensating operation so that above-mentioned pixel approaches on above-mentioned second, when above-mentioned pixel is positioned at above-mentioned the 3rd subregion, then the above-mentioned second signal of video signal value is carried out above-mentioned compensating operation so that above-mentioned pixel approaches on above-mentioned the 3rd, and when above-mentioned pixel is positioned at above-mentioned the 4th subregion, then the above-mentioned second signal of video signal value is carried out above-mentioned compensating operation so that above-mentioned pixel approaches on above-mentioned the 4th.
The present invention also provides a kind of image compensating device, above-mentioned image compensation unit judges is positioned at other pixel of above-mentioned first subregion, above-mentioned second subregion, above-mentioned the 3rd subregion or above-mentioned the 4th subregion and whether has finished above-mentioned compensating operation, and if other pixel has been finished above-mentioned compensating operation all, then change the second signal of video signal value of corresponding each pixel by above-mentioned color gamut conversion operation, thereby obtain a last generation image, otherwise other pixel is carried out above-mentioned compensating operation.
The present invention also provides a kind of image compensating device, more comprises a white balance unit, is connected in this gamut conversion unit, and it carries out Automatic white balance operation in order to before carrying out above-mentioned color gamut conversion operation to above-mentioned raw video.
The present invention also provides a kind of image compensating device, and above-mentioned gamut conversion unit is converted into the RGB signal of video signal value of above-mentioned pixel the YUV signal of video signal value on corresponding above-mentioned colour gamut plane.
The present invention also provides a kind of image compensating device, and above-mentioned colour of skin axle is second quadrant that is positioned at above-mentioned colour gamut plane.
The present invention provides a kind of storage medium in addition, described storage medium is in order to store a computer program, aforementioned calculation machine program comprises a plurality of procedure codes, it is in order to be loaded in the computer system and to make aforementioned calculation machine system carry out a kind of image compensation method, comprise the following steps: a pixel of a 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 above-mentioned pixel, have a colour of skin axle on the wherein above-mentioned colour gamut plane and have one first colour of skin compensatory zone and one second colour of skin compensatory zone on the both sides of above-mentioned colour of skin axle; The above-mentioned second signal of video signal value is carried out mathematics and logical operation to judge the position of above-mentioned pixel; And when above-mentioned pixel is positioned at above-mentioned first colour of skin compensatory zone or above-mentioned second colour of skin compensatory zone, the above-mentioned second signal of video signal value is carried out a compensating operation, make above-mentioned pixel approach, make the color of above-mentioned pixel more near the colour of skin towards above-mentioned colour of skin axle.
Storage medium of the present invention more comprises the following steps: with one the 4th above-mentioned first colour of skin compensatory zone and above-mentioned second colour of skin compensatory zone to be divided into one first subregion, one second subregion, one the 3rd subregion and one the 4th subregion respectively according to one first, one second, one the 3rd; The above-mentioned second signal of video signal value is carried out above-mentioned mathematics and logical operation to judge the position of above-mentioned pixel; And when above-mentioned pixel is positioned at above-mentioned first subregion, above-mentioned second subregion, above-mentioned the 3rd subregion or above-mentioned the 4th subregion, the above-mentioned second signal of video signal value is carried out above-mentioned compensating operation, make above-mentioned pixel approach on above-mentioned first, above-mentioned second, above-mentioned the 3rd or above-mentioned the 4th.
Storage medium of the present invention more comprises the following steps: to form above-mentioned first subregion and form above-mentioned second subregion according to above-mentioned second and one the 6th according to above-mentioned first and one the 5th; When above-mentioned pixel is positioned at above-mentioned first subregion, then the above-mentioned second signal of video signal value is carried out above-mentioned compensating operation so that above-mentioned pixel approaches on above-mentioned first; When above-mentioned pixel is positioned at above-mentioned second subregion, then the above-mentioned second signal of video signal value is carried out above-mentioned compensating operation so that above-mentioned pixel approaches on above-mentioned second; When above-mentioned pixel is positioned at above-mentioned the 3rd subregion, then the above-mentioned second signal of video signal value is carried out above-mentioned compensating operation so that above-mentioned pixel approaches on above-mentioned the 3rd; And be positioned at above-mentioned the 4th subregion when above-mentioned pixel, then the above-mentioned second signal of video signal value is carried out above-mentioned compensating operation so that above-mentioned pixel approaches on above-mentioned the 4th.
Storage medium of the present invention comprises the following steps: more to judge whether other pixel that is positioned at above-mentioned first subregion, above-mentioned second subregion, above-mentioned the 3rd subregion or above-mentioned the 4th subregion has finished above-mentioned compensating operation; And, then change the second signal of video signal value of corresponding each pixel, thereby obtain a last generation image, otherwise other pixel is carried out above-mentioned compensating operation by above-mentioned color gamut conversion operation if other pixel has been finished above-mentioned compensating operation all.
Storage medium of the present invention, more be included in carry out above-mentioned color gamut conversion operation before, above-mentioned raw video is carried out Automatic white balance operation.
Storage medium of the present invention, above-mentioned color gamut conversion operation more comprises the YUV signal of video signal value that the RGB signal of video signal value of above-mentioned pixel is converted into corresponding above-mentioned colour gamut plane.
Storage medium of the present invention, above-mentioned colour of skin axle are second quadrants that is positioned at above-mentioned colour gamut plane.
Image compensating device of the present invention and method, the performance color that can make the pixel of accepting compensation can be more near real images so that take the gained image more near the colour of skin.
Description of drawings
Fig. 1 is the function block schematic diagram that shows the image compensating device of the embodiment of the invention;
Fig. 2 is the schematic diagram that shows a Y-UV plane;
Fig. 3 is the function block schematic diagram of the image compensation unit of displayed map 1;
Fig. 4 is the enforcement example of the image compensation unit of displayed map 3;
Fig. 5 is the flow chart of steps that shows the image compensating device of the embodiment of the invention.
Embodiment
For purpose of the present invention, feature and advantage can be become apparent, preferred embodiment cited below particularly, and cooperate appended pictorial image 1 to Fig. 5, be described in detail.Specification of the present invention provides different embodiment that the technical characterictic of the different execution modes of the present invention is described.Wherein, the configuration of each element among the embodiment is the usefulness for explanation, is not in order to restriction the present invention.And the part of reference numerals repeats among the embodiment, is for the purpose of simplifying the description, is not the relevance that means between the different embodiment.
The embodiment of the invention has disclosed a kind of image compensating device and method, and its collocation Automatic white balance technology makes that shooting gained image can be more near real image.The image compensating device of the embodiment of the invention and method mainly are to illustrate how the colour of skin in the image to be compensated, make the colour of skin in the image more near human body complexion, but it is not in order to qualification the present invention, and any color in every any image all can utilize method and apparatus of the present invention to carry out color compensation.
Compensation arrangement of the present invention and method needed earlier raw video to be converted into suitable image format to handle before carrying out color compensation.Each pixel of raw video is made of red (R), green (G), blue (B) three primary colors, in embodiments of the present invention the RGB signal of video signal is converted to luminance signal (Luminance) Y and two color difference signals (Chrominance) U, V.It is as follows that R, G, B are converted to the formula of Y, U, V:
Y=0.299R+0.587G+0.114B,
U=B-Y, and
V=R-Y。
According to Y, U, the V value execution geometric operation of conversion back gained, obtaining Y ', U ', the V ' value after overcompensation, and then Y ', U ', V ' value are changed back R, G, B value, thereby obtain last generation image.Below the implementation process of the image compensation of the embodiment of the invention will be described according to above-mentioned conversion formula.
Fig. 1 is the function block schematic diagram that shows the image compensating device of the embodiment of the invention.
The image compensating device of the embodiment of the invention comprises a white balance unit 110, colour gamut conversion (Color Space Control, CSC) unit 120 and an image compensation unit 130.110 pairs of white balance unit are obtained image and are carried out the Automatic white balance function.R, G, B value that gamut conversion unit 120 will obtain the pixel of image according to above-mentioned conversion formula are converted into Y, U, V value.Y, U, V value are obtained from gamut conversion unit 120 in image compensation unit 130, then the pixel of need compensation is carried out a series of mathematics and logical operation, Y ' after can being compensated, U ', V ' value, and then Y ', U ', V ' value changed back R, G, B value, thereby obtain last generation image 140.
Fig. 2 is the schematic diagram that shows a Y-UV plane.
Rule of thumb value or statistical formula are defined in reference axis and the compensatory zone on the Y-UV plane.With reference to figure 2, axle 210 is to be colour of skin axle, drop on all pixels on the axle 210, it shows the color near the colour of skin, and from axle 210 pixel far away of healing, its performance color also more departs from the colour of skin, and wherein red color difference matrix is represented the red color axle and the B-Y axle is represented the yellow colors axle, near the red color difference matrix approaching more redness of represent pixel point then, then represent approaching more yellow near the B-Y axle more more.Right-hand and left at axle 210 defines one first colour of skin compensatory zone and one second colour of skin compensatory zone respectively, wherein first colour of skin compensatory zone comprises that again one first subregion 220 and one the 3rd subregion, 240, the second colour of skin compensatory zones comprise one second subregion 230 and one the 4th subregion 250 again.First subregion 220 is that (angle of axle 221,222 is respectively θ by axle 221 and 222 U2, θ U1) constitute with AB, DE line segment, second subregion 230 is that (angle of axle 231,232 is respectively θ by axle 231 and 232 D1, θ D2) constitute with HI, KL line segment, the 3rd subregion 240 is that (angle of axle 221,223 is respectively θ by axle 221 and 223 U2, θ U3) constitute with BC, EF line segment, and the 4th subregion 250 is that (angle of axle 231,233 is respectively θ by axle 231 and 233 D1, θ D3) constitute with GH, JK line segment.With first subregion 220,, make its performance color more near the colour of skin when pixel (its angle that extends to the axle of initial point gained is Ψ) when dropping between axle 221 and the axle 222, then approaches this point on the axle 221.With the 3rd subregion 240,, make its performance color more near the colour of skin when pixel (its angle that extends to the axle of initial point gained is Ψ) when dropping between axle 221 and the axle 223, then approaches this point on the axle 223.Same, with second subregion 230,, make its performance color more near the colour of skin when pixel (its angle that extends to the axle of initial point gained is Ψ) when dropping between axle 231 and the axle 232, then approaches this point on the axle 231.And, with the 4th subregion 250,, make its performance color more near the colour of skin when pixel (its angle that extends to the axle of initial point gained is Ψ) when dropping between axle 231 and the axle 233, then approaches this point on the axle 233.In addition, definition r MaxWith r Min, r wherein MaxValue representation A, B, C, G, H or I point are to the length of initial point, r MinValue is D, E, F, J, K or the L point length to initial point.Notice that the embodiment of the invention is (θ when a certain pixel drops on the left of axle 221 or axle 223 right-hand or axle 231 or axle 233 U1≤ Ψ<θ U2, θ U2<Ψ<θ U3, θ D1<Ψ≤θ D2Or θ D3<Ψ<θ D1), the side can carry out the operation that approaches to this pixel, so all represent with angle Ψ on figure.
The below performed motion of function square in the summary image compensation unit 130.With reference to figure 3, it is the function block schematic diagram of the image compensation unit of displayed map 1.Function square 131 is that R, the G to pixel, the Y value of B value conversion gained take absolute value.Function square 132 is that the coordinate figure calculating according to pixel obtains a r value.Function square 133 is to judge that whether the r value is at r MaxWith r MinBetween, whether drop in first colour of skin compensatory zone or second colour of skin compensatory zone to judge pixel, judge promptly whether pixel drops between AC line segment and the DF line segment or drop between GI line segment and the JL line segment.Function square 134 is to judge whether pixel drops on second quadrant on Y-UV plane.Function square 135 is obtained the angle (Ψ) that is extended to the axle of initial point gained by pixel according to U, the calculating of V value of conversion back gained.Function square 136 judges whether pixel drops in first subregion 220, second subregion 230, the 3rd subregion 240 or the 4th subregion 250, judges promptly whether pixel drops between axle 221 and the axle 222, between axle 221 and the axle 223, between the axle 231 and spools 232 or between spools 231 and spools 233.
Fig. 4 is the enforcement example of the image compensation unit of displayed map 3.Please refer to Fig. 4, in present embodiment, the axle that predefined is positioned at Y-UV plane second quadrant 140 degree is colour of skin axle, first subregion 220 and the 3rd subregion 240 be respectively by axle 221,222,223 (angle of axle 221,222 and 223 is respectively 112.5,90 and 135 and spends) constitute r MaxBe 75 and r MinBe 5, and second subregion 230 and the 4th subregion 250 are respectively by axle 231,232,233 (angle of axle 231,232 and 233 is respectively 167.5,180 and 145 degree).With first subregion 220 and the 3rd subregion 240, when pixel (its angle that extends to the axle of initial point gained is Ψ) drop between axle 221 (112.5 degree) and the axle 222 (90 degree) or axle 221 (112.5 degree) and 223 (135 spend) between the time, then this point is approached on axle 221 (112.5 degree) or the axle 223 (135 degree), make its performance color more near the colour of skin.Same, with second subregion 230 and the 4th subregion 250, when pixel (its angle that extends to the axle of initial point gained is Ψ) drops on axle 231 (167.5 degree) and axle 232 (180 degree) or axle 231 (167.5 degree) and axle 233 (145 degree) middle, then this point is approached on axle 231 (167.5 degree) or the axle 233 (145 degree), make its performance color more near the colour of skin.And in another embodiment, use image compensating device of the present invention and method, the pixel that can adjust voluntarily the optional one or more subregions of first subregion, second subregion, the 3rd subregion and the 4th subregion that are arranged in first colour of skin compensatory zone or second colour of skin compensatory zone carries out colour of skin compensation.
Fig. 5 is the flow chart of steps that shows the image compensation method of the embodiment of the invention.
At first, the axle of the corresponding skin tone value of definition on a colour gamut plane, shown in step S1, wherein this colour of skin axle is second quadrant that is positioned on this colour gamut plane.Define one first colour of skin compensatory zone (being right-hand zone of shown in Figure 2 axle 210) and one second colour of skin compensatory zone (being the zone of axle 210 lefts shown in Figure 2) on these both sides, and define one first (being axle 221 shown in Figure 2) at first colour of skin compensatory zone, one the 3rd (being axle 223 shown in Figure 2) and one the 5th (being axle 222 shown in Figure 2), and define one second (be shown in Figure 2 axle 231) at second colour of skin compensatory zone, one the 4th (being axle 233 shown in Figure 2) and one the 6th (being axle 232 shown in Figure 2), shown in step S2,, first colour of skin compensatory zone is divided into one second subregion (being second subregion 230 shown in Figure 2) and one the 4th subregion (being the 4th subregion 250 shown in Figure 2) at least with one the 3rd subregion (being the 3rd subregion 240 shown in Figure 2) and with second colour of skin compensatory zone thereby being divided into one first subregion (being first subregion 220 shown in Figure 2) at least.In embodiments of the present invention, each colour of skin compensatory zone is to be divided into two sub regions, yet it is not in order to limit the present invention.But if desire to reach the The optimal compensation effect, then each colour of skin compensatory zone at most only can mark off three sub regions.
One raw video is carried out Automatic white balance (AWB), shown in step S3, then this raw video is carried out a colour gamut conversion operations, be converted to Y, U, the V value on corresponding above-mentioned colour gamut plane with R, G, B value, shown in step S4 each pixel of this raw video.Obtained Y, U, V value are carried out mathematics and logical operation, to judge that to a pixel that should raw video be to be arranged in first subregion, second subregion, the 3rd subregion or the 4th subregion, shown in step S5.If this pixel is positioned at first subregion, then carry out a compensating operation so that this pixel approaches on first, shown in step S6.If this pixel is positioned at second subregion, then carry out a compensating operation so that this pixel approaches on second, shown in step S7.If this pixel is positioned at the 3rd subregion, then carry out a compensating operation so that this pixel approaches on the 3rd, shown in step S8.If this pixel is positioned at the 4th subregion, then carry out a compensating operation so that this pixel approaches on the 4th, shown in step S9.
Then, judge whether all pixels that are positioned at first subregion, second subregion, the 3rd subregion or the 4th subregion have finished conversion, shown in step S10, if, then Y ', U ', V ' value are changed back R, G, B value by above-mentioned gamut conversion method, thereby obtain last generation image, shown in step S11.If not, then get back to step S5, other pixel that is positioned at first subregion, second subregion, the 3rd subregion or the 4th subregion in this raw video is carried out above-mentioned compensation operation, make all pixels in Y ', U ', the V ' value that after overcompensation, can get newly.
The image compensation method of the embodiment of the invention can be carried out color compensation to the image of obtaining, so that the performance color of the pixel of acceptance compensation is more near the colour of skin.
Though the present invention by the preferred embodiment explanation as above, this preferred embodiment is not in order to limit the present invention.Those skilled in the art without departing from the spirit and scope of the present invention, should have the ability this preferred embodiment is made various changes and replenished, so protection scope of the present invention is as the criterion with the scope of claims.
Being simply described as follows of symbol in the accompanying drawing:
110: the white balance unit
120: gamut conversion unit
130: the image compensation unit
131~136: the function square
140: generate image
210,221,222,223,231,232,233: axle
220: the first subregions
230: the second subregions
240: the three subregions
250: the four subregions

Claims (15)

1. an image compensation method is characterized in that, described image compensation method 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 above-mentioned pixel, have a colour of skin axle on the wherein above-mentioned colour gamut plane and have one first colour of skin compensatory zone and one second colour of skin compensatory zone on the both sides of above-mentioned colour of skin axle;
The above-mentioned second signal of video signal value is carried out mathematics and logical operation to judge the position of above-mentioned pixel; And
When above-mentioned pixel is positioned at above-mentioned first colour of skin compensatory zone or above-mentioned second colour of skin compensatory zone, the above-mentioned second signal of video signal value is carried out a compensating operation, make above-mentioned pixel approach, make the color of above-mentioned pixel more near the colour of skin towards above-mentioned colour of skin axle.
2. image compensation method according to claim 1 is characterized in that, more comprises the following steps:
With one the 4th above-mentioned first colour of skin compensatory zone and above-mentioned second colour of skin compensatory zone are divided into one first subregion, one second subregion, one the 3rd subregion and one the 4th subregion respectively according to one first, one second, one the 3rd;
The above-mentioned second signal of video signal value is carried out above-mentioned mathematics and logical operation to judge the position of above-mentioned pixel; And
When above-mentioned pixel is positioned at above-mentioned first subregion, above-mentioned second subregion, above-mentioned the 3rd subregion or above-mentioned the 4th subregion, the above-mentioned second signal of video signal value is carried out above-mentioned compensating operation, make above-mentioned pixel approach on above-mentioned first, above-mentioned second, above-mentioned the 3rd or above-mentioned the 4th.
3. image compensation method according to claim 2 is characterized in that, more comprises the following steps:
Form above-mentioned first subregion and form above-mentioned second subregion according to above-mentioned first and one the 5th according to above-mentioned second and one the 6th;
When above-mentioned pixel is positioned at above-mentioned first subregion, then the above-mentioned second signal of video signal value is carried out above-mentioned compensating operation so that above-mentioned pixel approaches on above-mentioned first;
When above-mentioned pixel is positioned at above-mentioned second subregion, then the above-mentioned second signal of video signal value is carried out above-mentioned compensating operation so that above-mentioned pixel approaches on above-mentioned second;
When above-mentioned pixel is positioned at above-mentioned the 3rd subregion, then the above-mentioned second signal of video signal value is carried out above-mentioned compensating operation so that above-mentioned pixel approaches on above-mentioned the 3rd; And
When above-mentioned pixel is positioned at above-mentioned the 4th subregion, then the above-mentioned second signal of video signal value is carried out above-mentioned compensating operation so that above-mentioned pixel approaches on above-mentioned the 4th.
4. image compensation method according to claim 3 is characterized in that, more comprises the following steps:
Judge whether other pixel that is positioned at above-mentioned first subregion, above-mentioned second subregion, above-mentioned the 3rd subregion or above-mentioned the 4th subregion has finished above-mentioned compensating operation; And
If other pixel has been finished above-mentioned compensating operation all, then change the second signal of video signal value of corresponding each pixel, thereby obtain a last generation image, otherwise other pixel is carried out above-mentioned compensating operation by above-mentioned color gamut conversion operation.
5. image compensation method according to claim 1 is characterized in that, more be included in carry out above-mentioned color gamut conversion operation before, above-mentioned raw video is carried out Automatic white balance operation.
6. image compensation method according to claim 1 is characterized in that, above-mentioned color gamut conversion operation more comprises the YUV signal of video signal value that the RGB signal of video signal value of above-mentioned pixel is converted into corresponding above-mentioned colour gamut plane.
7. image compensation method according to claim 1 is characterized in that, above-mentioned colour of skin axle is second quadrant that is positioned at above-mentioned colour gamut plane.
8. an image compensating device is characterized in that, described image compensating device comprises:
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 above-mentioned pixel, have a colour of skin axle on the wherein above-mentioned colour gamut plane and have one first colour of skin compensatory zone and one second colour of skin compensatory zone on the both sides of above-mentioned colour of skin axle; And
One image compensation unit, be coupled to above-mentioned gamut conversion unit, it is in order to carry out mathematics and logical operation to judge the position of above-mentioned pixel to the above-mentioned second signal of video signal value, and when above-mentioned pixel is positioned at above-mentioned first colour of skin compensatory zone or above-mentioned second colour of skin compensatory zone, the above-mentioned second signal of video signal value is carried out a compensating operation, make above-mentioned pixel approach, make the color of above-mentioned pixel more near the colour of skin towards above-mentioned colour of skin axle.
9. image compensating device according to claim 8 is characterized in that,
Above-mentioned gamut conversion unit respectively is divided into one first subregion, one second subregion, one three subregion and one four subregion with one the 4th with above-mentioned first colour of skin compensatory zone and above-mentioned second colour of skin compensatory zone according to one first, one second, one the 3rd; And
Above-mentioned mathematics and logical operation are carried out to judge the position of above-mentioned pixel to the above-mentioned second signal of video signal value in above-mentioned image compensation unit, and when above-mentioned pixel is positioned at above-mentioned first subregion, above-mentioned second subregion, above-mentioned the 3rd subregion or above-mentioned the 4th subregion, the above-mentioned second signal of video signal value is carried out above-mentioned compensating operation, make above-mentioned pixel approach on above-mentioned first, above-mentioned second, above-mentioned the 3rd or above-mentioned the 4th.
10. image compensating device according to claim 9 is characterized in that, above-mentioned first subregion is to form with one the 5th institute by above-mentioned first, and above-mentioned second subregion is formed by above-mentioned second and one the 6th.
11. image compensating device according to claim 10, it is characterized in that, above-mentioned image compensation unit is when above-mentioned pixel is positioned at above-mentioned first subregion, then the above-mentioned second signal of video signal value is carried out above-mentioned compensating operation so that above-mentioned pixel approaches on above-mentioned first, when above-mentioned pixel is positioned at above-mentioned second subregion, then the above-mentioned second signal of video signal value is carried out above-mentioned compensating operation so that above-mentioned pixel approaches on above-mentioned second, when above-mentioned pixel is positioned at above-mentioned the 3rd subregion, then the above-mentioned second signal of video signal value is carried out above-mentioned compensating operation so that above-mentioned pixel approaches on above-mentioned the 3rd, and when above-mentioned pixel is positioned at above-mentioned the 4th subregion, then the above-mentioned second signal of video signal value is carried out above-mentioned compensating operation so that above-mentioned pixel approaches on above-mentioned the 4th.
12. image compensating device according to claim 11, it is characterized in that, above-mentioned image compensation unit judges is positioned at other pixel of above-mentioned first subregion, above-mentioned second subregion, above-mentioned the 3rd subregion or above-mentioned the 4th subregion and whether has finished above-mentioned compensating operation, and if other pixel has been finished above-mentioned compensating operation all, then change the second signal of video signal value of corresponding each pixel by above-mentioned color gamut conversion operation, thereby obtain a last generation image, otherwise other pixel is carried out above-mentioned compensating operation.
13. image compensating device according to claim 8 is characterized in that, more comprises a white balance unit, is connected in this gamut conversion unit, it carries out Automatic white balance operation in order to before carrying out above-mentioned color gamut conversion operation to above-mentioned raw video.
14. image compensating device according to claim 8 is characterized in that, above-mentioned gamut conversion unit is converted into the RGB signal of video signal value of above-mentioned pixel the YUV signal of video signal value on corresponding above-mentioned colour gamut plane.
15. image compensating device according to claim 8 is characterized in that, above-mentioned colour of skin axle is second quadrant that is positioned at above-mentioned colour gamut plane.
CN200510124042A 2005-11-28 2005-11-28 Image compensating device and method Expired - Fee Related CN100584036C (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN200510124042A CN100584036C (en) 2005-11-28 2005-11-28 Image compensating device and method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN200510124042A CN100584036C (en) 2005-11-28 2005-11-28 Image compensating device and method

Publications (2)

Publication Number Publication Date
CN1976481A true CN1976481A (en) 2007-06-06
CN100584036C CN100584036C (en) 2010-01-20

Family

ID=38126212

Family Applications (1)

Application Number Title Priority Date Filing Date
CN200510124042A Expired - Fee Related CN100584036C (en) 2005-11-28 2005-11-28 Image compensating device and method

Country Status (1)

Country Link
CN (1) CN100584036C (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8134611B2 (en) 2008-01-09 2012-03-13 Sharp Kabushiki Kaisha Image processor, image processing method and recording medium
CN102446347A (en) * 2010-10-09 2012-05-09 株式会社理光 White balance method and device for image
CN101345813B (en) * 2007-07-10 2012-05-30 普诚科技股份有限公司 Image color compensation device and method
CN104517948A (en) * 2013-10-08 2015-04-15 松下知识产权经营株式会社 LED illuminating device and illuminating tool
CN105409211A (en) * 2013-08-26 2016-03-16 英特尔公司 Automatic white balancing with skin tone correction for image processing

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0678320A (en) * 1992-08-25 1994-03-18 Matsushita Electric Ind Co Ltd Color adjustment device
KR100237637B1 (en) * 1996-06-04 2000-01-15 구자홍 Skin color reproduction apparatus and method
JP3750830B2 (en) * 1996-08-30 2006-03-01 ソニー株式会社 Color correction apparatus in imaging apparatus

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101345813B (en) * 2007-07-10 2012-05-30 普诚科技股份有限公司 Image color compensation device and method
US8134611B2 (en) 2008-01-09 2012-03-13 Sharp Kabushiki Kaisha Image processor, image processing method and recording medium
CN102446347A (en) * 2010-10-09 2012-05-09 株式会社理光 White balance method and device for image
CN102446347B (en) * 2010-10-09 2014-10-01 株式会社理光 White balance method and device for image
CN105409211A (en) * 2013-08-26 2016-03-16 英特尔公司 Automatic white balancing with skin tone correction for image processing
CN105409211B (en) * 2013-08-26 2018-07-10 英特尔公司 For the automatic white balance positive with skin-color adjustment of image procossing
CN104517948A (en) * 2013-10-08 2015-04-15 松下知识产权经营株式会社 LED illuminating device and illuminating tool
CN104517948B (en) * 2013-10-08 2017-05-24 松下知识产权经营株式会社 LED illuminating device and illuminating tool

Also Published As

Publication number Publication date
CN100584036C (en) 2010-01-20

Similar Documents

Publication Publication Date Title
US6788813B2 (en) System and method for effectively performing a white balance operation
CN1293764C (en) Colour signal correcting unit and metod, image processing system therewith
US9369636B2 (en) Video signal processing method and camera device
CN101043634A (en) Video signal processing
JP2015179985A (en) Multi-area white balance control device, multi-area white balance control method, multi-area white balance control program, computer recorded with multi-area white balance control program, multi-area white balance image processing device, multi-area white balance image processing method, multi-area white balance image processing program, computer recorded with multi-area white balance image processing program, and imaging device having multi-area white balance image processing device
CN1976481A (en) Image compensating device and method
CN108513043A (en) A kind of image denoising method and terminal
US9565411B2 (en) Image processing device, image processing method, and non-transitory computer-readable recording medium for recording image processing program
US7577293B2 (en) Image compensation device and method
WO2021051307A1 (en) Image color calibration method, camera devices, and image color calibration system
CN102446348A (en) Method for adjusting and enhancing chromatic color of vehicle snap-shot image
CN1768535A (en) Imaging device
KR20110072213A (en) Image correction method
JP2009219123A (en) Correcting method of color aberration
KR20120122574A (en) Apparatus and mdthod for processing image in a digital camera
CN1144446C (en) Digital camera regulating system and its regulating device
US9113121B2 (en) Method for white balance adjustment of images
US8804025B2 (en) Signal processing device and imaging device
KR101137611B1 (en) System and method for effectively performing an image data transformation procedure
KR20110017274A (en) Method for correcting image
WO2022032666A1 (en) Image processing method and related apparatus
JP6316006B2 (en) SUBJECT SEARCH DEVICE, ITS CONTROL METHOD, CONTROL PROGRAM, AND IMAGING DEVICE
US20100177210A1 (en) Method for adjusting white balance
WO2013168348A1 (en) Information processing device, information processing method, information processing program, image acquiring device, image acquiring system, and image acquiring and viewing system
KR102315200B1 (en) Image processing apparatus for auto white balance and processing method therefor

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: 20100120

Termination date: 20141128

EXPY Termination of patent right or utility model