CN103379346A - Chrominance information processing method, device and system of images in YUV format - Google Patents
Chrominance information processing method, device and system of images in YUV format Download PDFInfo
- Publication number
- CN103379346A CN103379346A CN 201210119524 CN201210119524A CN103379346A CN 103379346 A CN103379346 A CN 103379346A CN 201210119524 CN201210119524 CN 201210119524 CN 201210119524 A CN201210119524 A CN 201210119524A CN 103379346 A CN103379346 A CN 103379346A
- Authority
- CN
- China
- Prior art keywords
- frame
- image
- component
- colour cast
- colourity
- 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.)
- Pending
Links
Images
Landscapes
- Image Processing (AREA)
Abstract
The invention provides a chrominance information processing method, device and system of images in the YUV format. The chrominance information processing method includes the steps pf obtaining chrominance saturation information Kappa of a first current image frame, obtaining regulation parameters according to the chrominance saturation information Kappa, obtaining a weighting function according to an experience interval [theta1, theta2] which is obtained in advance and requires to be strengthened in color distribution, and conducting chrominance conversion according to the chrominance saturation information Kappa, the regulation parameters, the weighting function and the pre-constructed chrominance conversion function. The invention further provides a chrominance information processing device of the images in the YUV format. The chrominance information processing device comprises a first obtaining unit, a second obtaining unit, a third obtaining unit, a fourth obtaining unit and a chrominance conversion unit. The chrominance information processing method is based on a model, the color strengthening of color removal noise and color cast judgment are both based on the model, and compared with a method of other color models, the chrominance information processing method has the advantages of reducing the calculated amount of model conversion.
Description
Technical field
The present invention relates to the coding and decoding video field, relate in particular to a kind of chrominance information processing method, Apparatus and system of yuv format image.
Background technology
Digitized video is take pixel as unit at present, and the color of each pixel is by being made of three primary colors (R, G, B), and each pixel color all has brightness and colourity, and the quality of digitized video quality then is to depend primarily on its brightness that presents picture, contrast and saturation.
As for existing processing to digitized video, first R, G, the B value of digitized video the first pixel to be converted to brightness (Y) signal and colourity (U, V) signal is directly adjusted luminance signal, carrier chrominance signal again, to improve brightness, contrast and the colourity of digitized video.If usually directly to the luminance signal of each pixel representative of digitized video, when carrier chrominance signal adjusts, some problems can occur.Traditionally brightness (Y) signal and colourity (U, V) or (Cb, Cr) can separately process, and can not consider together.
From human visual system, color available brightness, color harmony saturation are described, and usually the color harmony saturation are commonly referred to as colourity, are used for representing classification and the depth degree of color.Although people's vision far is better than sensitivity to color to the sensitivity of brightness, but the handled image sequence of the video encoder chrominance information of carrying is not enough sometimes, image such as the camera acquisition, often the difference owing to indoor light source causes the problems such as color noise, colour cast, thereby need to utilize color processing method, strengthen the color of image.Present color processing means mostly are based on RGB, HSV colour model, and at present in the video compression technology field, it is YUV that the video source form mostly is the discrete representation pattern of taking monochrome information and chrominance information.Although can realize conversion between the various models by color space changover method, thus conversion and inverse transformation and the amount of calculation brought also is very large.
Consider in the practical application that people sometimes need to take different enhancing processing intensity to process different color gamut information.If algorithm is depended on the detection of color area in the prior art, increased first amount of calculation, second do not have a kind of accuracy rate 100% regional detection algorithm and can produce the balance transition problem that brought by the disperse drop field misjudgement etc.
Therefore, need to propose a kind of Innovative method scheme and solve the problems referred to above that exist in the existing method.
Summary of the invention
The purpose of the embodiment of the invention is the chrominance information processing method that proposes a kind of new yuv format image.
Described method comprises:
Obtain the colourity saturation infromation κ of the first current image frame;
Obtain the adjusting parameter according to described colourity saturation infromation κ;
By the interval [θ of the experience of the required enhancing COLOR COMPOSITION THROUGH DISTRIBUTION obtained in advance
1, θ
2], obtain weighting function;
Reach the chromaticity transformation function that makes up in advance and carry out chromaticity transformation by described colourity saturation infromation κ, adjusting parameter, weighting function.
The present invention also provides a kind of chrominance information processing unit of yuv format image, and described device comprises: the first acquiring unit, second acquisition unit, the 3rd acquiring unit, the 4th acquiring unit, chromaticity transformation unit;
The first acquiring unit is for the interval [θ of the experience of obtaining in advance required enhancing color
1, θ
2];
Second acquisition unit is for the colourity saturation infromation κ that obtains the first current image frame;
The 3rd acquiring unit is used for obtaining the adjusting parameter according to described colourity saturation infromation κ;
The 4th acquiring unit is used for obtaining weighting function;
The chromaticity transformation unit is used for reaching the chromaticity transformation function that makes up in advance and carrying out chromaticity transformation by described colourity saturation infromation κ, adjusting parameter, weighting function.
Chrominance information processing method by new yuv format image provided by the invention, first has reduced amount of calculation, because at present in the video compression technology field, the video source form mostly is the yuv format image, the present invention is based on the colourity processing method on this model, and color noise or the colour cast of no matter discoloring judges that color enhancement all is based on this model, be compared to the method based on other colour models, reduced the amount of calculation on the model conversion.
Second has avoided the problem of regional Detection accuracy in the prior art: 1. because do not adopt regional detection method, so just avoided regional detection to judge the problem of bringing by accident; 2. in addition because image is made of pixel, if, just having some discrete points based on the regional detection method of pixel, employing occurs; 3. the colourity that detects based on the zone strengthens method, and will region border color enhancement intensity different, the problem of the color change saltus step that brings detects mistake if there is the zone, and be just more obvious.And the method that the weight that is based on color that the present invention adopts strengthens, can be along with the transition of color change balance.Also reduced simultaneously the amount of calculation that regional detection brings.
Description of drawings
Fig. 1 is the method flow diagram of the embodiment of the invention 1;
Fig. 2 is the method flow diagram of the embodiment of the invention 2;
Fig. 3 carries out colour cast antidote flow chart in the embodiment of the invention 2;
Fig. 4 is the structural representation of the embodiment of the invention 3;
Fig. 5 is the structural representation of the embodiment of the invention 4;
Fig. 6 is the structural representation of the embodiment of the invention 5;
Fig. 7 is the structural representation of the first statistical regions acquiring unit in the embodiment of the invention 5;
Fig. 8 is the structural representation of the embodiment of the invention 6.
Embodiment
In order to make purpose of the present invention, technical scheme and advantage clearer, below in conjunction with drawings and Examples, the present invention is further elaborated, for convenience of explanation, only show the part relevant with the embodiment of the invention.Should be appreciated that the specific embodiment that this place is described, only be used for explaining the present invention, not in order to limit the present invention.
Embodiment one
The invention provides a kind of chrominance information processing method of yuv format image, the image of coding source collection is data model on the yuv space in the method, and carrier chrominance signal comprises chrominance signal (being the form and aspect signals) and chroma signal.The chrominance signal of yuv format signal represents that with angle namely the phase angle and color of a pixel is passed through
Expression.The color saturation of a pixel is in the yuv format signal
The yuv format image that the method that embodiment 1 provides is applied to gather is noiseless and colour cast, definition for yuv format image noiseless and colour cast is those skilled in the art's common practise, and do not belong to scope of the present invention yet, therefore be not described at this.Below in conjunction with accompanying drawing implementation of the present invention is described.
Referring to Fig. 1, referring to Fig. 1:, the method can for:
Step 100: the interval [θ of experience that obtains required enhancing COLOR COMPOSITION THROUGH DISTRIBUTION
1, θ
2];
Be specially: off-line obtains the experience interval of COLOR COMPOSITION THROUGH DISTRIBUTION;
Its principle of step 100 is the COLOR COMPOSITION THROUGH DISTRIBUTION rule by the image of adding up a large amount of (at least 25 YUV images, the description in the step 1001 is asked for an interview in specific requirement), obtains the interval [θ of experience of COLOR COMPOSITION THROUGH DISTRIBUTION
1, θ
2];
So-called off-line refers to add up in advance great amount of images herein, and the image of the image of using in the statistic processes and subsequent color enhancing is irrelevant.
Describedly " obtain the interval [θ of experience of required enhancing COLOR COMPOSITION THROUGH DISTRIBUTION
1, θ
2] " method can for:
Step 1001: obtain P the yuv format image (P>=25) that satisfies following condition
The image that namely refers to satisfy simultaneously any following condition 1 and 2 that obtains described herein all can;
Condition 1: the image of choosing is noiseless, bias colour image (noiseless, bias colour image all are general implications);
Condition 2: choose the image that contains required enhancing color, if namely the user wants to strengthen the people's of image the colour of skin, should choose the image of the Skin Color Information that contains the people this moment so.
Step 1002; Obtain in P the yuv format image m (be that m is individual in P the image, m=1,2 ..., P) required enhancing color in the image, the angle of all pixels in its region
Step 1003: all θ that obtaining step 1002 is asked for
I, jMinimum value be designated as
All θ that obtaining step 1002 is asked for
I, jMaximum be designated as
U (i, j) wherein: the image of expression yuv format, colourity u component is at the pixel value of the capable j row of i; V (i, j): the image of expression yuv format, colourity v component is at the pixel value of the capable j row of i; θ
I, jBe required enhancing color in m image in P the yuv format image, the angle of current pixel in its region; I is the rower of current pixel, and j is the row mark of current pixel.
Step 101: the colourity saturation infromation κ that obtains the first current image frame frame;
Frame be the first current image frame, κ be the first current image frame frame the colourity saturation infromation,
Step 102: obtain the adjusting parameter according to described colourity saturation infromation κ;
β
uAdjusting parameter, β for chromatic component u
vAdjusting parameter, γ for chromatic component v
uBe the target colourity saturation constant of chromatic component u, determine according to the actual requirements that by the user consider that color is too strong, human eye can produce discomfort, general γ
u<80, γ
vBe the target colourity saturation constant of chromatic component v, determine according to the actual requirements that by the user consider that color is too strong, human eye can produce discomfort, general γ
v<80; κ is the colourity saturation infromation of the first current image frame frame;
Step 103: make up weighting function w=η (θ) according to following requirement;
Condition 1: η (θ) is continuous function
Condition 2: η (θ) only has a maximum of points
The maximum of points of condition 3: η (θ) is positioned at (θ
1+ θ
2)/2,
The η (θ) that satisfies simultaneously above-mentioned condition all can be used as weighting function w; If can not satisfy simultaneously above-mentioned 3 conditions, then current η (θ) can not reset function η (θ) as weighting function, continues appeal and judges, until η (θ) satisfies condition, namely η this moment (θ) is weighting function w.
[θ wherein
1, θ
2] be the minimum empirical value interval (obtaining in step 100) of the colourity enhancing of required enhancing color;
Step 104: carry out chromaticity transformation by described colourity saturation infromation κ, adjusting parameter, weighting function and chromaticity transformation function.
The chromaticity transformation function that makes up in advance is:
u3(i,j)=clip(w*((u
frame(i,j)-128)*β
u+128),0,255),
v3(i,j)=clip(w*((v
frame(i,j)-128)*β
v+128),0,255);
Wherein w is described weighting function, β
uAdjusting parameter, β for chromatic component u
vAdjusting parameter for chromatic component v;
U wherein
Frame(i, j) is the first current image frame frame, and colourity u component is at the pixel value of the capable j row of i; v
Frame(i, j) is the first current image frame frame, and colourity v component is at the pixel value of the capable j row of i; U3 (i, j), v3 (i, j) are respectively u
Frame(i, j), v
Frame(i, j) passes through the later pixel value of color enhancement,
Namely utilize described chromaticity transformation function to carry out chromaticity transformation, strengthen the chrominance information of image.
Embodiment two
The invention provides a kind of chrominance information processing method of yuv format image, the image of coding source collection is data model on the yuv space in the method, and carrier chrominance signal comprises chrominance signal (being the form and aspect signals) and chroma signal.The chrominance signal of yuv format signal represents that with angle namely the phase angle and color of a pixel is passed through
Expression.The color saturation of a pixel is in the yuv format signal
The yuv format image that the method that embodiment 2 provides is applicable to gather generally is the colored noise or colour cast is arranged or the situation of while colored noise and colour cast, is the method that embodiment 1 provides for the bias colour situation of achromatization noise.For the yuv format image definition of noise and colour cast being arranged is those skilled in the art's common practise, and does not also belong to scope of the present invention, therefore is not described at this.Below in conjunction with accompanying drawing implementation of the present invention is described.
Referring to Fig. 2, embodiment 2 has increased color method for processing noise and colour cast antidote on the basis of embodiment 1.
Here in different situations, step 201 and step 202 are carried out the explanation of several situations:
(1) there are not color noise and non-colour cast when the first picture frame (original image), then do not carry out step 201 and step 202 operation, the chrominance information processing method of whole yuv format image is the whole method of embodiment 1 (namely step 203), and the first current image frame described in the so corresponding embodiment 1 is exactly the first picture frame (being original image);
(2) when the first picture frame (original image) colored noise and non-colour cast, then only carry out the operation of step 201, the first current image frame described in the embodiment 1 this moment (namely step 203) is exactly the second picture frame;
(3) when the first picture frame (original image) colored noise and colour cast, then carry out the operation of step 201 and step 202, described the first current image frame of embodiment 1 (namely step 203) this moment is exactly the 3rd picture frame;
(4) when the first picture frame (original image), do not have the color noise but colour cast is arranged, then only carry out the operation of step 202, the first current image frame described in the embodiment 1 this moment (namely step 203) is exactly the 3rd picture frame.
Whole method is explained for simplicity, the below is placed on a flow process the inside with step 201, step 202, step 203 and is described, but according to different situations, defers to above-mentioned specified otherwise during execution.
Step 201: remove the color noise of the first picture frame (being current image frame), obtain the second picture frame;
Remove the first picture frame (being original image) the color noise method can for:
Utilize low pass filter to remove the color noise
u1(i,j)=filter(u0(i,j)),v1(i,j0=filter(v0(i,j))
Wherein: u1 (i, j), v1 (i, j) are respectively (i with u0, j), v0 (i, j) by the chromatic value after the low pass filter conversion, filter (x) can be low pass filter commonly used in the image denoising, such as intermediate value, mean filter etc.;
U0 (i, j): represent the first picture frame (original image), colourity u component is at the pixel value of the capable j row of i;
V0 (i, j): represent the first picture frame (original image), colourity v component is at the pixel value of the capable j row of i;
U1 (i, j), v1 (i, j) are respectively u0 (i, j), v0 (i, j) by the pixel value after the low-pass filtering; Filter (x); Can select known in the industry, commonly used image denoising low pass filter, such as intermediate value, mean filter etc.
Step 202: (in the situation of colored noise, the second picture frame is the second picture frame that obtains in the step 201, has namely removed the current image frame of color noise to described the second picture frame; The second picture frame is not the first picture frame when having the color noise) carry out the colour cast rectification, obtain the 3rd picture frame;
Referring to Fig. 3, carry out method that colour cast corrects can for:
Step 2021: the colour cast of obtaining the second picture frame is corrected statistical regions; The method can for:
Step 2021A: screening colour cast statistical pixel point in described the second picture frame: wherein screening technique is: whether the pixel of judging the second picture frame satisfies screening conditions simultaneously; If satisfied then be colour cast statistical pixel point;
Wherein said screening conditions are:
y(i,j)>Thres
y|u
frame2(i,j)-128|<Thres
u
|v
frame2(i,j)-128|<Thres
v
|(u
frame2(i,j)-128)+(v
frame2(i,j)-128)|<Thres
uv
y(i,j)-|u
frame2(i,j)-128|-|v
frame2(i,j)-128|>Thres
yuv
Wherein, Thres
j, j=y, u, v, uv, yuv are respectively corresponding statistics thresholding;
Y (i, j): represent the second picture frame, brightness y component is at the pixel value of the capable j row of i; u
Frame2(i, j), be the second picture frame, colourity u component is at the pixel value of the capable j of i row; v
Frame2(i, j) is the second picture frame, and colourity v component is at the pixel value of the capable j row of i.
Thres
yThe statistics thresholding of expression colour cast statistical pixel point brightness component y;
Thres
uThe statistics thresholding of expression colour cast statistical pixel point chromatic component u;
Thres
vThe statistics thresholding of expression colour cast statistical pixel point chromatic component v;
Thres
UvThe statistics thresholding of expression colour cast statistical pixel point chromatic component u and chromatic component v;
Thres
YuvThe statistics thresholding of expression colour cast statistical pixel point brightness component y and chromatic component u, chromatic component v.
The acquisition methods of above-mentioned statistics thresholding thresholding is:
Step 301: obtain the image that the first quantity n (n>=25) has colour cast and do not have the color noise;
Step 302: calculate k in the above-mentioned image (k=1,2 ..., the n) minimum value of all pixels its luminance component y (i, j) in the individual image;
Described minimum value is designated as y
K, minK=1,2 ..., n, y
K, minBe the minimum value of all pixels its luminance component y (i, j) in k the image,
Expression is minimized to belonging to k image all pixels its luminance component y (i, j);
Step 303; Calculate in the above-mentioned image in k the image all pixels its chromatic component u (i, j) to dependent variable | the maximum of u (i, j)-128|;
Described maximum is designated as u
K, maxK=1,2 ..., n, u
K, maxBe in k the image all pixels its chromatic component u (i, j) to dependent variable | the maximum of u (i, j)-128|,
Expression is to belonging to k image all pixels its chromatic component u (i, j) to dependent variable | u (i, j)-128| maximizing, | u (i, j)-128| represents u (i, j)-128 is asked absolute value.
Step 304: calculate in the above-mentioned image in k the image all pixels its chromatic component v (i, j) to dependent variable | the maximum of v (i, j)-128|;
Described maximum is designated as v
K, maxK=1,2 ..., n, v
K, maxBe in k the image all pixels its chromatic component v (i, j) to dependent variable | the maximum of v (i, j)-128|,
Expression is to belonging to k image all pixels its chromatic component v (i, j) to dependent variable | v (i, j))-the 128| maximizing, | v (i, j)-128| represents v (i, j)-128 is asked absolute value;
Step 305: calculate all pixels its chromatic component u (i, j), v (i, j) in k the image to dependent variable | (u (i, j)-128)+(v (i, j)-128) | maximum;
Described maximum is designated as uv
K, maxK=1,2 ..., n, uv
K, maxBe in k the image all pixels its chromatic component u (i, j), v (i, j) to dependent variable | (u (i, j)-128)+(v (i, j)-128) | maximum,
Expression is to belonging to k its chromatic component of all pixels of image u (i, j), v (i, j) to dependent variable | (u (i, j)-128)+(v (i, j)-128) | maximizing, | (u (i, j)-128)+(v (i, j)-128) | expression is asked absolute value to (u (i, j)-128)+(v (i, j)-128);
Step 306: calculate in k the image all pixels its luminance component y (i, j) and chromatic component u (i, j), v (i, j) to dependent variable y (i, j)-| the minimum value of u (i, j)-128|-|v (i, j)-128|;
Described minimum value is designated as yuv
K, minK=1,2 ..., n, yuv
K, minBe in k the image all pixels its luminance component y (i, j) and chromatic component u (i, j), v (i, j) to dependent variable y (i, j)-| the minimum value of u (i, j)-128|-|v (i, j)-128|,
Expression is to belonging to all its luminance component y (i, j) of k image and chromatic component u (i, j), v (i thereof, j) to dependent variable y (i, j)-| u (i, j)-128|-|v (i, j)-128| minimizes, | u (i, j)-128| represents u (i, j)-128 is asked absolute value, | v (i, j)-128| represents v (i, j)-128 is asked absolute value;
Step 307:
Step31: with a said n minimum value y
K, min, k=1,2 ..., the n descending, the minimum value of ceil (95%*n) position is as Thres in selecting to arrange
y, i.e. Thres
y=y
Ceil (95%*n), min
Step32: with described n maximum u
K, max, k=1,2 ..., the n ascending order is arranged, and the maximum of ceil (95%*n) position is as Thres in selecting to arrange
u, i.e. Thres
u=u
Ceil (95%*n), max
Step33: with described n maximum v
K, max, k=1,2 ..., the n ascending order is arranged, and the maximum of ceil (95%*n) position is as Thres in selecting to arrange
v, i.e. Thres
v=v
Ceil (95%*n), max
Step34: with described n maximum uv
K, max, k=1,2 ..., the n ascending order is arranged, and the maximum of ceil (95%*n) position is as Thres in selecting to arrange
Uv, i.e. Thres
Uv=uv
Ceil (95%*n), max
Step35: with described n minimum value yuv
K, min, k=1,2 ..., the n descending, the minimum value of ceil (95%*n) position is as Thres in selecting to arrange
Yuv, i.e. Thres
Yuv=yuv
Ceil (95%*n), min
Above-mentioned symbol ceil (x) wherein, expression is to the x operation that rounds up, if namely 95%*n is integer then ceil (x)=95%*n; If 95%*n contains the real number of decimal then ceil (x)=[95%*n]+1, wherein [95%*n] expression real number 95%*n is integer part; Percentage herein; Can select 95% numerical value that also can select other, but generally do not advise not selecting be lower than 90% or be higher than 99%.
Above-mentioned steps 301 to 307 is a kind of methods of obtaining described statistics threshold value, also can adopt the statistical method of other known thresholdings, is not repeated at this.
Step 2021B; Then, obtain colour cast and proofread and correct statistical regions:
The i.e. set of the u component of all colour cast statistical pixel points is exactly that colour cast is proofreaied and correct statistical regions
And the set of the v component of all colour cast statistical pixel points is exactly colour cast correction statistical regions
Step 2022: correct statistical regions according to described colour cast and obtain chromaticity distortion rectification parameter;
This acquisition methods can for:
α
uBe colour cast correction parameter corresponding to chromatic component u (i, j)
α
vBe colour cast correction parameter corresponding to chromatic component v (i, j)
For to belonging to the correction statistical regions
All v
Frame2(i, j) averages; The set of the u component of all colour cast statistical pixel points is exactly that colour cast is proofreaied and correct statistical regions
The set of the v component of all colour cast statistical pixel points is exactly that colour cast is proofreaied and correct statistical regions
Step 2023: correct parameter according to described chromaticity distortion and carry out the colour cast rectification;
The method of carrying out the colour cast rectification described in this step can adopt and well known to a person skilled in the art at present the colour cast antidote, therefore is not repeated at this.
Step 203: the 3rd picture frame that obtains carries out adaptive chroma information and strengthens processing.
It is method among the embodiment 1 provided by the invention that the yuv format image is carried out method that adaptive chroma information strengthen to process, is not repeated at this.
Embodiment 3, corresponding to embodiment 1, the invention provides a kind of chrominance information processing unit of yuv format image, comprise referring to the described device of Fig. 4: the first acquiring unit, second acquisition unit, the 3rd acquiring unit, the 4th acquiring unit, chromaticity transformation unit;
The first acquiring unit is for the interval [θ of the experience of obtaining in advance required enhancing color
1, θ
2];
Second acquisition unit is for the colourity saturation infromation κ that obtains the first current image frame frame;
The 3rd acquiring unit is used for obtaining the adjusting parameter according to described colourity saturation infromation κ;
The 4th acquiring unit is used for obtaining weighting function;
The chromaticity transformation unit is used for reaching the chromaticity transformation function that makes up in advance and carrying out chromaticity transformation by described colourity saturation infromation κ, adjusting parameter, weighting function.
Wherein: described the first acquiring unit comprises: the first image acquisition unit, enhancing color acquiring unit, the interval acquiring unit of experience;
The first image acquisition unit is used for obtaining P (P>=25) yuv format image, and a described P image is noiseless, bias colour and the image that required enhancing color is arranged;
Strengthen the color acquiring unit, be used for obtaining m (m=1,2 ..., P) required enhancing color in the individual image, the angle of all pixels in its region
The interval acquiring unit of experience is used for basis
Obtain all θ
I, jMinimum value, be designated as
U (i, j) wherein; The image of expression yuv format, colourity u component is at the pixel value of the capable j row of i; V (i, j): the image of expression yuv format, colourity v component is at the pixel value of the capable j row of i; θ
I, jBe required enhancing color in m the image, the angle of current pixel in its region; I is the rower of current pixel, and j is the row mark of current pixel.
Wherein, described second acquisition unit is specially for the colourity saturation infromation κ that obtains the first current image frame frame:
Frame be the first current image frame, κ be the first current image frame frame the colourity saturation infromation,
Wherein, the 3rd acquiring unit described in the present embodiment comprises the first parameter acquiring unit, the second parameter acquiring unit;
The second parameter acquiring unit is used for
β
uAdjusting parameter, β for chromatic component u
vAdjusting parameter, γ for chromatic component v
uBe the target colourity saturation constant of chromatic component u, determine according to the actual requirements that by the user consider that color is too strong, human eye can produce discomfort, general γ
u<80, γ
vBe the target colourity saturation constant of chromatic component v, determine according to the actual requirements that by the user consider that color is too strong, human eye can produce discomfort, general γ
v<80; κ is the colourity saturation infromation of the first current image frame.
Wherein, described the 4th acquiring unit of present embodiment comprises: setting unit, judging unit; Determining unit;
Setting unit is used for arranging weighting function w=η (θ);
Judging unit is used for judging whether η (θ) is that continuous function and η (θ) only have the maximum of points of a maximum of points and η (θ) to be positioned at (θ
1+ θ
2)/2; If then notifying determining unit η (θ) is weighting function w; Otherwise reenter setting unit;
Determining unit according to the result of judging unit, determines that η (θ) is weighting function w.
Wherein, " the colourity varying function that makes up in advance " described in the chromaticity transformation unit described in the present embodiment is specially:
u3(i,j)=clip(w*((u
frame(i,j)-128)*β
u+128),0,255),v3(i,j)=clip(w*((v
frame(i,j)-128)*β
v+128),0,255);
Wherein w is described weighting function, β
uAdjusting parameter, β for chromatic component u
vAdjusting parameter for chromatic component v;
U wherein
Frame(i, j) is the first current image frame frame, and colourity u component is at the pixel value of the capable j row of i; v
Frame(i, j) is the first current image frame frame, and colourity v component is at the pixel value of the capable j row of i; U3 (i, j), v3 (i, j) are respectively u
Frame(i, j), v
Frame(i, j) passes through the later pixel value of color enhancement,
Embodiment 4, referring to Fig. 5, corresponding to embodiment 2, further comprise on the chrominance information processing unit basis of the yuv format image that embodiment 3 provides and remove the color element of noise;
Remove the color element of noise, be used for removing the color bar noise of the first picture frame, obtain the second picture frame;
Wherein, the described removal color of present embodiment element of noise comprises; First removes the unit,, second remove the unit;
First removes the unit, is used for utilizing low pass filter to remove color bar noise u1 (i, j)=filter (u0 (i, j));
Second removes the unit, is used for utilizing low pass filter to remove color bar noise v1 (i, j)=filter (v0 (i, j))
Wherein: u1 (i, j), v1 (i, j) are respectively (i with u0, j), v0 (i, j) by the chromatic value after the low pass filter conversion, filter (x) can be low pass filter commonly used in the image denoising, such as intermediate value, mean filter etc.;
U0 (i, j); Represent the first picture frame (original image), colourity u component is at the pixel value of the capable j row of i;
V0 (i, j): represent the first picture frame (original image), colourity v component is at the pixel value of the capable j row of i;
U1 (i, j), v1 (i, j) are respectively u0 (i, j), v0 (i, j) by the pixel value after the low-pass filtering; Filter (x) can be low pass filter commonly used in the image denoising.
Embodiment 5, corresponding to embodiment 2, referring to Fig. 6, on the chrominance information processing unit basis of the yuv format image that embodiment 3 provides, further comprise the first colour cast correcting unit;
The first colour cast correcting unit; Be used for that described the second picture frame is carried out colour cast and correct, obtain the 3rd picture frame
Wherein, described the first colour cast correcting unit of present embodiment comprises: the first statistical regions acquiring unit, rectification parameter acquiring unit, the second colour cast correcting unit;
The first statistical regions acquiring unit is corrected statistical regions for the colour cast of obtaining described the second picture frame;
Correct parameter acquiring unit, be used for correcting statistical regions according to described colour cast and obtain chromaticity distortion rectification parameter;
The second colour cast correcting unit is used for correcting parameter according to described chromaticity distortion and carries out the colour cast rectification.
Wherein, referring to Fig. 7, described the first statistical regions acquiring unit of present embodiment comprises: statistical pixel dot element, the second statistical regions acquiring unit;
The statistical pixel dot element is used at described the second picture frame screening colour cast statistical pixel point;
The second statistical regions acquiring unit is for the set of the U component that obtains described colour cast statistical pixel point, the set of V component; The set of the u component of all colour cast statistical pixel points is exactly that colour cast is proofreaied and correct statistical regions
The set of the v component of all colour cast statistical pixel points is exactly that colour cast is proofreaied and correct statistical regions
Wherein, the described statistical pixel dot element of present embodiment comprises: judging unit, statistics thresholding acquiring unit;
Judging unit is used for judging whether the pixel of the second picture frame satisfies screening conditions simultaneously; If satisfied then be colour cast statistical pixel point;
Wherein screening conditions are:
y(i,j)>Thres
y|u
frame2(i,j)-128|<Thres
u
|v
frame2(i,j)-128|<Thres
v
|(u
frame2(i,j)-128)+(v
frame2(i,)-128)|<Thres
uv
y(i,j)-|u
frame2(i,j)-128|-|v
frame2(i,j)-128|>Thres
yuv
Wherein, Thres
j, j=y, u, v, uv, yuv are respectively corresponding statistics thresholding;
Y (i, j): represent the second picture frame, brightness y divides the pixel value at the capable j row of i; u
Frame2(i, j), be the second picture frame, colourity u component is at the pixel value of the capable j of i row; v
Frame2(i, j) is the second picture frame, and colourity v component is at the pixel value of the capable j row of i.
Thres
yThe statistics thresholding of expression colour cast statistical pixel point brightness component y;
Thres
uThe statistics thresholding of expression colour cast statistical pixel point chromatic component u;
Thres
vThe statistics thresholding of expression colour cast statistical pixel point chromatic component v;
Thres
UvThe statistics thresholding of expression colour cast statistical pixel point chromatic component u and chromatic component v;
Thres
YuvThe statistics thresholding of expression colour cast statistical pixel point brightness component y and chromatic component u, chromatic component v;
Statistics thresholding acquiring unit is used for obtaining the yuv format image that the first quantity n (n>=25) has colour cast and do not have the color noise;
Calculate in the above-mentioned image minimum value of all pixels its luminance component y (i, j) in k the image;
Described minimum value is designated as y
K, minK=1,2 ..., n, y
K, minBe the minimum value of all pixels its luminance component y (i, j) in k the image,
Expression is minimized to belonging to k image all pixels its luminance component y (i, j);
Calculate in the above-mentioned image in k the image all pixels its chromatic component u (i, j) to dependent variable | the maximum of u (i, j)-128|;
Described maximum is designated as u
K, maxK=1,2 ..., n, u
K, maxBe in k the image all pixels its chromatic component u (i, j) to dependent variable | the maximum of u (i, j)-128|,
Expression is to belonging to k image all pixels its chromatic component u (i, j) to dependent variable | u (i, j)-128| maximizing, | u (i, j)-128| represents u (i, j)-128 is asked absolute value.
Calculate in the above-mentioned image in k the image all pixels its chromatic component v (i, j) to dependent variable | the maximum of v (i, j)-128|;
Described maximum is designated as v
K, maxK=1,2 ..., n, v
K, maxBe in k the image all pixels its chromatic component v (i, j) to dependent variable | the maximum of v (i, j)-128|,
Expression is to belonging to k image all pixels its chromatic component v (i, j) to dependent variable | v (i, j)-128| maximizing, | v (i, j)-128| represents v (i, j)-128 is asked absolute value;
Calculate all pixels its chromatic component u (i, j), v (i, j) in k the image to dependent variable | (u (i, j)-128)+(v (i, j)-128) | maximum;
Described maximum is designated as uv
K, maxK=1,2 ..., n, uv
K, maxBe in k the image all pixels its chromatic component u (i, j), v (i, j) to dependent variable | (u (i, j)-128)+(v (i, j)-128) | maximum,
Expression is to belonging to k its chromatic component of all pixels of image u (i, j), v (i, j) to dependent variable | (u (i, j)-128)+(v (i, j)-128) | maximizing, | (u (i, j)-128)+(v (i, j)-128) | expression is asked absolute value to (u (i, j)-128)+(v (i, j)-128);
Calculate in k the image all pixels its luminance component y (i, j) and chromatic component u (i, j), v (i, j) to dependent variable y (i, j)-| the minimum value of u (i, j)-128|-|v (i, j)-128|;
Described minimum value is designated as yuv
K, minK=1,2 ..., n, yuv
K, minBe in k the image all pixels its luminance component y (i, j) and chromatic component u (i, j), v (i, j) to dependent variable y (i, j)-| the minimum value of u (i, j)-128|-|v (i, j)-128|,
Expression is to belonging to all its luminance component y (i, j) of k image and chromatic component u (i, j), v (i thereof, j) to dependent variable y (i, j)-| u (i, j)-128|-|v (i, j)-128| minimizes, | u (i, j)-128| represents u (i, j)-128 is asked absolute value, | v (i, j)-128| represents v (i, j)-128 is asked absolute value;
Wherein with a said n minimum value y
K, min, k=1,2 ..., the n descending, the minimum value of ceil (95%*n) position is as Thres in selecting to arrange
y, i.e. Thres
y=y
Ceil (95%*n), min
With described n maximum u
K, max, k=1,2 ..., the n ascending order is arranged, and the maximum of ceil (95%*n) position is as Thres in selecting to arrange
u, i.e. Thres
u=u
Ceil (95%*n), max
With described n maximum v
K, max, k=1,2 ..., the n ascending order is arranged, and the maximum of ceil (95%*n) position is as Thres in selecting to arrange
v, i.e. Thres
v=v
Ceil (95%*n), max
With described n maximum uv
K, max, k=1,2 ... .., the n ascending order is arranged, and the maximum of ceil (95%*n) position is as Thres in selecting to arrange
Uv, i.e. Thres
Uv=uv
Ceil (95%*n), max
With described n minimum value yuv
K, min, k=1,2 ..., the n descending, the minimum value of ceil (95%*n) position is as Thres in selecting to arrange
Yuv, i.e. Thres
Yuv=yuv
Ceil (95%*n), min
Above-mentioned symbol ceil (x) wherein, expression is to the x operation that rounds up.
Embodiment 6, corresponding to embodiment 2, referring to Fig. 8, on the chrominance information processing unit basis of the yuv format image that embodiment 3,4,5 provides, present embodiment has comprised removal color element of noise, the first colour cast correcting unit, the first acquiring unit, second acquisition unit, the 3rd acquiring unit, the 4th acquiring unit, chromaticity transformation unit simultaneously.
Above unit was all described in detail in embodiment 3 to embodiment 5, was not repeated at this.
In sum, chrominance information processing method by new yuv format image provided by the invention, first has reduced amount of calculation, because at present in the video compression technology field, the video source form mostly is the yuv format image, the present invention is based on the colourity processing method on this model, color noise or the colour cast of no matter discoloring judged, color enhancement all is based on this model, is compared to the method based on other colour models, has reduced the amount of calculation on the model conversion.
Second has avoided the problem of regional Detection accuracy in the prior art; 1. because do not adopt regional detection method, so just avoided regional detection to judge the problem of bringing by accident; 2. in addition because image is made of pixel, if, just having some discrete points based on the regional detection method of pixel, employing occurs; 3. the colourity that detects based on the zone strengthens method, and will region border color enhancement intensity different, the problem of the color change saltus step that brings detects mistake if there is the zone, and be just more obvious.And the method that the weight that is based on color that the present invention adopts strengthens, can be along with the transition of color change balance.Also reduced simultaneously the amount of calculation that regional detection brings.
Those having ordinary skill in the art will appreciate that, all or part of step in realization above-described embodiment method can be finished by the program command related hardware, described program can be stored in the computer read/write memory medium, and described storage medium can be ROM, RAM, disk, CD etc.
The above only is preferred embodiment of the present invention, not in order to limiting the present invention, all any modifications of doing within the spirit and principles in the present invention, is equal to and replaces and improvement etc., all should be included within protection scope of the present invention.
Claims (26)
1. the chrominance information processing method of a yuv format image is characterized in that, described method comprises:
Obtain the colourity saturation infromation κ of the first current image frame;
Obtain the adjusting parameter according to described colourity saturation infromation κ;
By the interval [θ of the experience of the required enhancing COLOR COMPOSITION THROUGH DISTRIBUTION obtained in advance
1, θ
2], obtain weighting function;
Reach the chromaticity transformation function that makes up in advance and carry out chromaticity transformation by described colourity saturation infromation κ, adjusting parameter, weighting function.
2. the chrominance information processing method of yuv format image according to claim 1 is characterized in that, the described " interval [θ of the experience of the required enhancing COLOR COMPOSITION THROUGH DISTRIBUTION of obtaining in advance
1, θ
2] " acquisition methods be:
Obtain P (P>=25) yuv format image, a described P image is noiseless, bias colour and the image that strengthens color is arranged;
Obtain in described P the yuv format image required enhancing color in m the image, the angle of all pixels in its region
U (i, j) wherein: the image of expression yuv format, colourity u component is at the pixel value of the capable j row of i; V (i, j): the image of expression yuv format, colourity v component is at the pixel value of the capable j row of i; θ
I, jBe required enhancing color in m the image, the angle of current pixel in its region; I is the rower of current pixel, and j is the row mark of current pixel.
3. the chrominance information processing method of yuv format image according to claim 2 is characterized in that, described " obtaining the colourity saturation infromation κ of the first current image frame " is specially:
Frame be the first current image frame, κ be the first current image frame frame the colourity saturation infromation,
4. the chrominance information processing method of yuv format image according to claim 3 is characterized in that, described " obtaining the adjusting parameter according to described colourity saturation infromation κ " is specially:
β
uAdjusting parameter, β for chromatic component u
vAdjusting parameter, γ for chromatic component v
uBe the target colourity saturation constant of chromatic component u, determine according to the actual requirements that by the user consider that color is too strong, human eye can produce discomfort, general γ
u<80, γ
vBe the target colourity saturation constant of chromatic component v, determine according to the actual requirements that by the user consider that color is too strong, human eye can produce discomfort, general γ
v<80; κ is the colourity saturation infromation of the first current image frame.
5. the chrominance information processing method of yuv format image according to claim 4 is characterized in that, described " obtaining weighting function " is specially:
Function η (θ) is set;
Judge whether η (θ) is that continuous function, η (θ) only have the maximum of points of a maximum of points and η (θ) to be positioned at (θ
1+ θ
2)/2;
If then η (θ) is weighting function w;
[θ wherein
1, θ
2] be the experience interval of required enhancing color.
6. the chrominance information processing method of yuv format image according to claim 5 is characterized in that, the described colourity varying function that makes up in advance is:
u3(i,j)=clip(w*((u
frame(i,j)-128)*β
u+128),0,255),v3(i,j)=c1ip(w*((v
frame(i,j)-128)*β
v+128),0,255);
Wherein w is described weighting function, β
uAdjusting parameter, β for chromatic component u
vAdjusting parameter for chromatic component v;
U wherein
Frame(i, j) is the first current image frame frame, and colourity u component is at the pixel value of the capable j row of i; v
Frame(i, j) is the first current image frame frame, and colourity v component is at the pixel value of the capable j row of i; U3 (i, j), v3 (i, j) are respectively u
Frame(i, j), v
Frame(i, j) passes through the later pixel value of color enhancement,
7. the chrominance information processing method of one of them described yuv format image according to claim 6, it is characterized in that, " by current yuv format image chrominance information, obtain the colourity saturation infromation κ of the first current image frame picture frame " taking a step forward comprises:
Remove the color noise of the first picture frame (being original image), obtain the second picture frame.
8. according to claim 6 or the chrominance information processing method of 7 described yuv format images, it is characterized in that described " remove the color noise of the first picture frame (being original image), obtain the second picture frame " further comprises afterwards:
To the second picture frame, carry out colour cast and correct, obtain the 3rd picture frame.
9. the chrominance information processing method of yuv format image according to claim 7 is characterized in that, described " removing the color noise of the first picture frame " is specially:
Utilize low pass filter to remove color noise u1 (i, j)=filter (u0 (i, j)), v1 (i, j)=filter (v0 (i, j))
Wherein: u1 (i, j), v1 (i, j) are respectively (i with u0, j), v0 (i, j) by the chromatic value after the low pass filter conversion, filter (x) can be low pass filter commonly used in the image denoising, such as intermediate value, mean filter etc.;
U0 (i, j): represent the first picture frame (original image), colourity u component is at the pixel value of the capable j row of i;
V0 (i, j): represent the first picture frame (original image), colourity v component is at the pixel value of the capable j row of i;
U1 (i, j), v1 (i, j) are respectively u0 (i, j), v0 (i, j) by the pixel value after the low-pass filtering; Filter (x) can be low pass filter commonly used in the image denoising.
10. the chrominance information processing method of yuv format image according to claim 8 is characterized in that, described " to the second picture frame, carry out colour cast and correct, obtain the 3rd picture frame " is specially:
Obtain the colour cast of described the second picture frame and correct statistical regions;
Correct statistical regions according to described colour cast and obtain chromaticity distortion rectification parameter;
Correct parameter according to described chromaticity distortion and carry out the colour cast rectification.
11. the chrominance information processing method of yuv format image according to claim 10 is characterised in that, described " colour cast of obtaining described the second picture frame is corrected statistical regions " is specially:
Screening colour cast statistical pixel point in described the second picture frame;
Obtain the set of the U component of described colour cast statistical pixel point, the set of V component; The set of the u component of all colour cast statistical pixel points is exactly that colour cast is proofreaied and correct statistical regions
The set of the v component of all colour cast statistical pixel points is exactly that colour cast is proofreaied and correct statistical regions
12. the chrominance information processing method of yuv format image according to claim 11 is characterised in that, described " screening colour cast statistical pixel point in described the second picture frame " is specially:
Whether the pixel of judging the second picture frame satisfies screening conditions simultaneously; If satisfied then be colour cast statistical pixel point;
Wherein said screening conditions are:
y(i,j)>Thres
y|u
frame2(i,j)-128|<Thres
u
|v
frame2(i,j)-128|<Thres
v
|(u
frame2(i,j)-128)+(v
frame2(i,j)-128)|<Thres
uv
y(i,j)-|u
frame2(i,j)-128|-|v
frame2(i,j)-128|>Thres
yuv
Wherein, Thres
j, j=y, u, v, uv, yuv are respectively corresponding statistics thresholding;
Y (i, j): represent the second picture frame, brightness y component is at the pixel value of the capable j row of i; u
Frame2(i, j), be the second picture frame, colourity u component is at the pixel value of the capable j of i row; v
Frame2(i, j) is the second picture frame, the pixel value that colourity v component is listed as at the capable j of i,
Thres
yThe statistics thresholding of expression colour cast statistical pixel point brightness component y;
Thres
uThe statistics thresholding of expression colour cast statistical pixel point chromatic component u;
Thres
vThe statistics thresholding of expression colour cast statistical pixel point chromatic component v;
Thres
UvThe statistics thresholding of expression colour cast statistical pixel point chromatic component u and chromatic component v;
Thres
YuvThe statistics thresholding of expression colour cast statistical pixel point brightness component y and chromatic component u, chromatic component v.
13. the chrominance information processing method of yuv format image according to claim 12 is characterised in that, described " Thres
yThe statistics thresholding of expression colour cast statistical pixel point brightness component y; Thres
uThe statistics thresholding of expression colour cast statistical pixel point chromatic component u; Thres
vThe statistics thresholding of expression colour cast statistical pixel point chromatic component v; Thres
UvThe statistics thresholding of expression colour cast statistical pixel point chromatic component u and chromatic component v; Thres
YuvThe statistics thresholding of expression colour cast statistical pixel point brightness component y and chromatic component u, chromatic component v " acquisition methods is specially:
Obtain the image that the first quantity n (n>=25) has colour cast and do not have the color noise;
Calculate in the above-mentioned image minimum value of all pixels its luminance component y (i, j) in k the image;
Described minimum value is designated as y
K, minK=1,2 ..., n, y
K, minBe the minimum value of all pixels its luminance component y (i, j) in k the image,
Expression is minimized to belonging to k image all pixels its luminance component y (i, j);
Calculate in the above-mentioned image in k the image all pixels its chromatic component u (i, j) to dependent variable | the maximum of u (i, j)-128|;
Described maximum is designated as u
K, maxK=1,2 ..., n, u
K, maxBe in k the image all pixels its chromatic component u (i, j) to dependent variable | the maximum of u (i, j)-128|,
Expression is to belonging to k image all pixels its chromatic component u (i, j) to dependent variable | u (i, j)-128| maximizing, | u (i, j)-128| represents u (i, j)-128 is asked absolute value,
Calculate in the above-mentioned image in k the image all pixels its chromatic component v (i, j) to dependent variable | the maximum of v (i, j)-128|;
Described maximum is designated as v
K, maxK=1,2 ..., n, v
K, maxBe in k the image all pixels its chromatic component v (i, j) to dependent variable | the maximum of v (i, j)-128|,
Expression is to belonging to k image all pixels its chromatic component v (i, j) to dependent variable | v (i, j)-128| maximizing, | v (i, j)-128| represents v (i, j)-128 is asked absolute value;
Calculate all pixels its chromatic component u (i, j), v (i, j) in k the image to dependent variable | (u (i, j)-128)+(v (i, j)-128) | maximum;
Described maximum is designated as uv
K, maxK=1,2 ..., n, uv
K, maxBe in k the image all pixels its chromatic component u (i, j), v (i, j) to dependent variable | (u (i, j)-128)+(v (i, j)-128) | maximum,
Expression is to belonging to k its chromatic component of all pixels of image u (i, j), v (i, j) to dependent variable | (u (i, j)-128 maximizing)+(v (i, j)-128), | (u (i, j)-128)+(v (i, j)-128) | expression is asked absolute value to (u (i, j)-128)+(v (i, j)-128);
Calculate in k the image all pixels its luminance component y (i, j) and chromatic component u (i, j), v (i, j to dependent variable y (i, j)-| the minimum value of u (i, j)-128|-|v (i, j)-128|;
Described minimum value is designated as yuv
K, minK=1,2 ..., n, yuv
K, minBe in k the image all pixels its luminance component y (i, j) and chromatic component u (i, j), v (i, j) to dependent variable y (i, j)-| the minimum value of u (i, j)-128|-|v (i, j)-128|,
Expression is to belonging to all its luminance component y (i, j) of k image and chromatic component u (i, j), v (i thereof, j) to dependent variable y (i, j)-| u (i, j)-128|-|v (i, j)-128 minimizes, | u (i, j)-128| represents u (i, j)-128 is asked absolute value, | v (i, j)-128| represents v (i, j)-128 is asked absolute value;
Wherein with a said n minimum value y
K, min, k=1,2 ..., the n descending, the minimum value of ceil (95%*n) position is as Thres in selecting to arrange
y, i.e. Thres
y=y
Ceil (95%*n), min
With described n maximum u
K, max, k=1,2 ..., the n ascending order is arranged, and the maximum of ceil (95%*n) position is as Thres in selecting to arrange
u, i.e. Thres
u=u
Ceil (95%*n), max
With described n maximum v
K, max, k=1,2 ..., the n ascending order is arranged, and the maximum of ceil (95%*n) position is as Thres in selecting to arrange
v, i.e. Thres
v=v
Ceil (95%*n), max
With described n maximum uv
K, max, k=1,2 ..., the n ascending order is arranged, and the maximum of ceil (95%*n) position is as Thres in selecting to arrange
Uv, i.e. Thres
Uv=uv
Ceil (95%*n), max
With described n minimum value yuv
K, min, k=1,2 ..., the n descending, the minimum value of ceil (95%*n) position is as Thres in selecting to arrange
Yuv, i.e. Thres
Yuv=yuv
Ceil (95%*n), min
Above-mentioned symbol ceil (x) wherein, expression is to the x operation that rounds up.
14. the chrominance information processing method of yuv format image according to claim 13 is characterised in that, described " correct statistical regions according to described colour cast and obtain chromaticity distortion rectification parameter " is specially:
α
uBe colour cast correction parameter corresponding to chromatic component u (i, j)
α
vBe colour cast correction parameter corresponding to chromatic component v (i, j)
For to belonging to the correction statistical regions
All v
Frame2(i, j) averages; The set of the u component of all colour cast statistical pixel points is exactly that colour cast is proofreaied and correct statistical regions
The set of the v component of all colour cast statistical pixel points is exactly that colour cast is proofreaied and correct statistical regions
15. the chrominance information processing unit of a yuv format image is characterized in that, described device comprises: the first acquiring unit, second acquisition unit, the 3rd acquiring unit, the 4th acquiring unit, chromaticity transformation unit;
The first acquiring unit is for the interval [θ of the experience of obtaining in advance required enhancing color
1, θ
2];
Second acquisition unit is for the colourity saturation infromation κ that obtains the first current image frame;
The 3rd acquiring unit is used for obtaining the adjusting parameter according to described colourity saturation infromation κ;
The 4th acquiring unit is used for obtaining weighting function;
The chromaticity transformation unit is used for reaching the chromaticity transformation function that makes up in advance and carrying out chromaticity transformation by described colourity saturation infromation κ, adjusting parameter, weighting function.
16. the chrominance information processing unit of yuv format image according to claim 15 is characterized in that, described the first acquiring unit comprises: the first image acquisition unit, enhancing color acquiring unit, the interval acquiring unit of experience;
The first image acquisition unit is used for obtaining P (P>=25) yuv format image, and a described P image is noiseless, bias colour and the image that strengthens color is arranged;
Strengthen the color acquiring unit, be used for obtaining m (m=1,2 ..., P) required enhancing color in the individual image, the angle of all pixels in its region
The interval acquiring unit of experience is used for basis
Obtain all θ
I, jMinimum value, be designated as
U (i, j) wherein: the image of expression yuv format, colourity u component is at the pixel value of the capable j row of i; V (i, j): the image of expression yuv format, colourity v component is at the pixel value of the capable j row of i; θ
I, jBe required enhancing color in m the image, the angle of current pixel in its region; I is the rower of current pixel, and j is the row mark of current pixel.
17. the chrominance information processing unit of yuv format image according to claim 16 is characterized in that, described second acquisition unit is specially for the colourity saturation infromation κ that obtains the first current image frame frame:
And v
Frame(i, j) ∈ frame)
Frame be the first current image frame, κ be the first current image frame frame the colourity saturation infromation,
And v
Frame(i, j) ∈ frame) for all is belonged to the chromatic component u of the first current image frame frame
Frame(i, j) and v
Frame(i, j) its corresponding variable
Average; u
Frame(i, j) is the first current image frame frame, and colourity u component is at the pixel value of the capable j row of i; v
Frame(i, j) is the first current image frame frame, and colourity v component is at the pixel value of the capable j row of i.
18. the chrominance information processing unit of yuv format image according to claim 17 is characterized in that, described the 3rd acquiring unit comprises the first parameter acquiring unit, the second parameter acquiring unit;
β
uAdjusting parameter, β for chromatic component u
vAdjusting parameter, γ for chromatic component v
uBe the target colourity saturation constant of chromatic component u, determine according to the actual requirements that by the user consider that color is too strong, human eye can produce discomfort, general γ
u<80, γ
vBe the target colourity saturation constant of chromatic component v, determine according to the actual requirements that by the user consider that color is too strong, human eye can produce discomfort, general γ
v<80; κ is the colourity saturation infromation of the first current image frame.
19. the chrominance information processing unit of yuv format image according to claim 18 is characterized in that, described the 4th acquiring unit comprises: setting unit, judging unit; Determining unit;
Setting unit is used for arranging function η (θ);
Judging unit is used for judging whether η (θ) is that continuous function and η (θ) only have the maximum of points of a maximum of points and η (θ) to be positioned at (θ
1+ θ
2)/2; If then notifying determining unit η (θ) is weighting function w; Otherwise, reenter setting unit;
Determining unit according to the result of judging unit, determines that η (θ) is weighting function w.
20. the chrominance information processing unit of yuv format image according to claim 19 is characterized in that, " the chromaticity transformation function that makes up in advance " described in the described chromaticity transformation unit is specially:
u3(i,j)=clip(w*((u
frame(i,j)-128)*β
u+128),0,255),
v3(i,j)=clip(w*((v
frame(i,j)-128)*β
v+128),0,255);
Wherein w is described weighting function, β
uAdjusting parameter, β for chromatic component u
vAdjusting parameter for chromatic component v;
U wherein
Frame(i, j): the first current image frame frame, colourity u component is at the pixel value of the capable j row of i; v
Frame(i, j): the first current image frame frame, colourity v component is at the pixel value of the capable j row of i; U3 (i, j), v3 (i, j) are respectively u
Frame(i, j), v
Frame(i, j) passes through the later pixel value of color enhancement,
21. the chrominance information processing unit of yuv format image according to claim 20 is characterized in that, described device further comprises removes the color element of noise;
Remove the color element of noise, be used for removing the color bar noise of the first picture frame, obtain the second picture frame.
22. according to claim 20 or the chrominance information processing unit of 21 described yuv format images, it is characterized in that described device further comprises the first colour cast correcting unit;
The first colour cast correcting unit; Be used for that described the second picture frame is carried out colour cast and correct, obtain the 3rd picture frame.
23. the chrominance information processing unit of yuv format image according to claim 21 is characterized in that, described removal color element of noise comprises: first removes the unit,, second remove the unit;
First removes the unit, is used for utilizing low pass filter to remove color bar noise u1 (i, j)=filter (u0 (i, j));
Second removes the unit, is used for utilizing low pass filter to remove color bar noise v1 (i, j)=filter (v0 (i, j))
Wherein: u1 (i, j), v1 (i, j) are respectively (i with u0, j), v0 (i, j) by the chromatic value after the low pass filter conversion, filter (x) can be low pass filter commonly used in the image denoising, such as intermediate value, mean filter etc.;
U0 (i, j): represent the first picture frame (original image), colourity u component is at the pixel value of the capable j row of i;
V0 (i, j): represent the first picture frame (original image), colourity v component is at the pixel value of the capable j row of i;
U1 (i, j), v1 (i, j) are respectively u0 (i, j), v0 (i, j) by the pixel value after the low-pass filtering, and filter (x) can be low pass filter commonly used in the image denoising.
24. the chrominance information processing unit of yuv format image according to claim 22 is characterized in that, described the first colour cast correcting unit comprises: the first statistical regions acquiring unit, rectification parameter acquiring unit, the second colour cast correcting unit;
The first statistical regions acquiring unit is corrected statistical regions for the colour cast of obtaining described the second picture frame;
Correct parameter acquiring unit, be used for correcting statistical regions according to described colour cast and obtain chromaticity distortion rectification parameter;
The second colour cast correcting unit is used for correcting parameter according to described chromaticity distortion and carries out the colour cast rectification.
25. the chrominance information processing unit of yuv format image according to claim 24 is characterized in that, the first statistical regions acquiring unit comprises: statistical pixel dot element, the second statistical regions acquiring unit;
The statistical pixel dot element is used at described the second picture frame screening colour cast statistical pixel point;
The second statistical regions acquiring unit is for the set of the U component that obtains described colour cast statistical pixel point, the set of V component; The set of the u component of all colour cast statistical pixel points is exactly that colour cast is proofreaied and correct statistical regions
The set of the v component of all colour cast statistical pixel points is exactly that colour cast is proofreaied and correct statistical regions
26. the chrominance information processing unit of yuv format image according to claim 25 is characterized in that, described statistical pixel dot element comprises: judging unit, statistics thresholding acquiring unit;
Judging unit is used for judging whether the pixel of the second picture frame satisfies screening conditions simultaneously; If satisfied then be colour cast statistical pixel point;
Wherein said screening conditions are:
y(i,j)>Thres
y|u
frame2(i,j)-128|<Thres
u
|v
frame2(i,j)-128|<Thres
v
|(u
frame2(i,j)-128)+(v
frame2(i,j)-128)|<Thres
uv
y(i,j)-|u
frame2(i,j)-128|-|v
frame2(i,j)-128|>Thres
yuv
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN 201210119524 CN103379346A (en) | 2012-04-23 | 2012-04-23 | Chrominance information processing method, device and system of images in YUV format |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN 201210119524 CN103379346A (en) | 2012-04-23 | 2012-04-23 | Chrominance information processing method, device and system of images in YUV format |
Publications (1)
Publication Number | Publication Date |
---|---|
CN103379346A true CN103379346A (en) | 2013-10-30 |
Family
ID=49463832
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN 201210119524 Pending CN103379346A (en) | 2012-04-23 | 2012-04-23 | Chrominance information processing method, device and system of images in YUV format |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN103379346A (en) |
Cited By (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105225203A (en) * | 2014-06-23 | 2016-01-06 | 展讯通信(上海)有限公司 | Noise suppressing method and device |
CN107211130A (en) * | 2015-01-30 | 2017-09-26 | 汤姆逊许可公司 | The method and apparatus coded and decoded to colour picture |
CN107393504A (en) * | 2017-09-11 | 2017-11-24 | 青岛海信电器股份有限公司 | Picture adjustment methods and device based on RGBW panels |
CN111147924A (en) * | 2019-12-24 | 2020-05-12 | 书行科技(北京)有限公司 | Video enhancement processing method and system |
CN113379608A (en) * | 2020-03-10 | 2021-09-10 | Tcl科技集团股份有限公司 | Image processing method, storage medium and terminal equipment |
CN113891054A (en) * | 2016-12-30 | 2022-01-04 | 德州仪器公司 | Efficient and flexible color processor |
-
2012
- 2012-04-23 CN CN 201210119524 patent/CN103379346A/en active Pending
Cited By (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105225203A (en) * | 2014-06-23 | 2016-01-06 | 展讯通信(上海)有限公司 | Noise suppressing method and device |
CN105225203B (en) * | 2014-06-23 | 2018-01-26 | 展讯通信(上海)有限公司 | Noise suppressing method and device |
CN107211130A (en) * | 2015-01-30 | 2017-09-26 | 汤姆逊许可公司 | The method and apparatus coded and decoded to colour picture |
CN107211130B (en) * | 2015-01-30 | 2020-07-24 | 交互数字Vc控股公司 | Method and apparatus for encoding and decoding color picture |
CN113891054A (en) * | 2016-12-30 | 2022-01-04 | 德州仪器公司 | Efficient and flexible color processor |
CN107393504A (en) * | 2017-09-11 | 2017-11-24 | 青岛海信电器股份有限公司 | Picture adjustment methods and device based on RGBW panels |
CN107393504B (en) * | 2017-09-11 | 2020-02-14 | 青岛海信电器股份有限公司 | RGBW panel-based image adjusting method and device |
CN111147924A (en) * | 2019-12-24 | 2020-05-12 | 书行科技(北京)有限公司 | Video enhancement processing method and system |
CN113379608A (en) * | 2020-03-10 | 2021-09-10 | Tcl科技集团股份有限公司 | Image processing method, storage medium and terminal equipment |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US8254718B2 (en) | Multi-channel edge-aware chrominance noise reduction | |
US7720279B2 (en) | Specifying flesh area on image | |
CN106846270B (en) | Image edge enhancement method and device | |
US6842536B2 (en) | Image processing apparatus, image processing method and computer program product for correcting image obtained by shooting subject | |
CN103379346A (en) | Chrominance information processing method, device and system of images in YUV format | |
CN103581637B (en) | Image processing equipment and image processing method | |
JP2005026962A (en) | Signal processing apparatus, signal processing program, and electronic camera | |
US20080240605A1 (en) | Image Processing Apparatus, Image Processing Method, and Image Processing Program | |
CN104618703B (en) | A kind of white balance adjustment method | |
CN103065334A (en) | Color cast detection and correction method and device based on HSV (Hue, Saturation, Value) color space | |
CN101175152A (en) | Image processing apparatus, image capturing apparatus, image processing method | |
CN105303525B (en) | Haze image discrimination apparatus and discriminating conduct | |
TWI698124B (en) | Image adjustment method and associated image processing circuit | |
EP2953340B1 (en) | Image processing device, image processing method, program, and recording medium | |
US20050243349A1 (en) | Image processing method, image processing apparatus, and image processing program | |
US8417025B2 (en) | Image processing apparatus and program recording medium | |
CN113658043A (en) | Image processing method, image processing device, electronic equipment and readable storage medium | |
WO2006055493B1 (en) | Correction of image color levels | |
CN113068011B (en) | Image sensor, image processing method and system | |
CN114418876A (en) | Underwater image enhancement method based on light scattering characteristics | |
JP2014078808A (en) | Image processing apparatus and image processing method | |
EP2472876A2 (en) | Apparatus and method for improving image quality based on definition and chroma | |
CN110298812B (en) | Image fusion processing method and device | |
CN104505053B (en) | Show signal conversion method and device | |
JP2009111947A (en) | Image correction device |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C02 | Deemed withdrawal of patent application after publication (patent law 2001) | ||
WD01 | Invention patent application deemed withdrawn after publication |
Application publication date: 20131030 |