CN101227623A - White balance adjustment method, system and camera - Google Patents

White balance adjustment method, system and camera Download PDF

Info

Publication number
CN101227623A
CN101227623A CNA2008100262668A CN200810026266A CN101227623A CN 101227623 A CN101227623 A CN 101227623A CN A2008100262668 A CNA2008100262668 A CN A2008100262668A CN 200810026266 A CN200810026266 A CN 200810026266A CN 101227623 A CN101227623 A CN 101227623A
Authority
CN
China
Prior art keywords
white point
pixel
avg
color temperature
gain
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
CNA2008100262668A
Other languages
Chinese (zh)
Other versions
CN101227623B (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.)
Actions Technology Co Ltd
Original Assignee
Actions Semiconductor Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Actions Semiconductor Co Ltd filed Critical Actions Semiconductor Co Ltd
Priority to CN2008100262668A priority Critical patent/CN101227623B/en
Publication of CN101227623A publication Critical patent/CN101227623A/en
Application granted granted Critical
Publication of CN101227623B publication Critical patent/CN101227623B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

The invention is applicable on the image treatment field, which provides a method, a system and a picture pick-up device for adjusting white balance, wherein the method comprises the following steps switching a image data of a RGB format into a image data of a YCbCr format, estimating the color temperature information of reference white points in images, calculating the gain of channels of R, G and B according to the effective color temperature information, and using the gain of channels of R, G and B to adjust the pixel values of R, G and B in the images. The invention estimates the availability of the color temperature of the reference white point during the white balance adjustment and adjusts the white balance according to the effective color temperature information, which can improve the efficiency and accuracy of the white balance adjustment.

Description

A kind of white balance adjustment method, system and camera head
Technical field
The invention belongs to image processing field, relate in particular to a kind of white balance adjustment method, system and camera head.
Background technology
White balance is the reduction of video camera to white, and promptly the white that the image of video camera output can both correctly reappear white object under different light environments based on the white that restores, restores the color of other object.At present, video camera generally all possesses Automatic white balance and manual white balance function is arranged.The white balance adjustment makes video camera can automatically carry out white balance correction in the certain color temperature scope, and it can be from the reference color temperature of dynamic(al) correction generally between 2500K~7000K.
The white balance adjustment is to be based upon on the gray scale world hypothesis algorithm mostly, and this algorithm thinks that R (red), the G (green) of captured image, the assembly average of B (indigo plant) three colouring components should equate.On the basis of this algorithm, existing white balance adjustment technology usually in image the selected part pixel with the foundation that the color temperature information of reference white point is adjusted as the entire image white balance, adjust R, G, the B value of all pixels in the image as the reference white point.
In existing a kind of scheme, determine reference white point in the image according to the brightness of each pixel in YCbCr (luminance signal (Y) and two color difference signals (R-Y, B-Y)) the chrominance space image and colourity, adjust the colourity of pixel in the RGB chrominance space image then according to the reference white point.Whether this scheme is not effectively assessed the color temperature information of the reference white point in the image when white balance is adjusted, when phenomenons such as light areas is more or less appear in image, situations such as too much or very few may appear in the number of the reference white point of then choosing, be inaccurate according to the colour temperature that the reference white point calculates this moment, and in choosing, noise and color are not overflowed and filter and take precautions against, thereby influence efficient and the accuracy that white balance is adjusted with reference to the process of white point.
Summary of the invention
The purpose of the embodiment of the invention is to provide a kind of white balance adjustment method, is intended to solve in the existing white balance adjustment and whether the color temperature information of the reference white point in the image is not effectively assessed, and influences the efficient of white balance adjustment and the problem of accuracy.
The embodiment of the invention is achieved in that a kind of white balance adjustment method, and described method comprises:
The view data of rgb format is converted to the view data of YCbCr form;
Color temperature information with reference to white point in the image is assessed;
According to the gain that effective color temperature information calculates R, G, B passage, utilize the gain of described R, G, B passage to adjust R, G, the B value of pixel in the image.
Another purpose of the embodiment of the invention is to provide a kind of white balance adjustment system, and described system comprises:
The color space converting unit is used for the view data of rgb format is converted to the view data of YCbCr form;
The colour temperature assessment unit is used for the reference white point of detected image and the color temperature information of statistical-reference white point, judges with reference to the validity of the color temperature information of white point, exports effective color temperature information; And
Gain adjusting unit is used for calculating according to described effective color temperature information the gain of R, G, B passage, utilizes the gain of described R, G, B passage to adjust R, G, the B value of pixel in the image.
Another purpose of the embodiment of the invention is to provide the camera head that adopts above-mentioned white balance adjustment system to realize.
When the embodiment of the invention is adjusted in white balance, the validity of reference white point color temperature information is assessed, carried out the white balance adjustment, can improve efficient and accuracy that white balance is adjusted at effective color temperature information.
Description of drawings
Fig. 1 is the realization flow figure of the white balance adjustment method that provides of the embodiment of the invention;
Fig. 2 is the realization flow figure of the adjustment that provides of the embodiment of the invention with reference to the white point judgment threshold;
Fig. 3 is the structure chart of the white balance adjustment system that provides of the embodiment of the invention;
Fig. 4 is the structure chart of the camera head that provides of the embodiment of the invention;
Fig. 5 is the structure chart of colour temperature assessment unit in the camera head that provides of the embodiment of the invention;
Fig. 6 is the structure chart of gain adjusting unit in the camera head that provides of the embodiment of the invention.
Embodiment
In order to make purpose of the present invention, technical scheme and advantage clearer,, the present invention is further elaborated below in conjunction with drawings and Examples.Should be appreciated that specific embodiment described herein only in order to explanation the present invention, and be not used in qualification the present invention.
When the embodiment of the invention is adjusted in white balance, the validity of reference white point color temperature information is assessed, carried out the white balance adjustment, can improve efficient and accuracy that white balance is adjusted at effective color temperature information.
Fig. 1 shows the realization flow of the white balance adjustment method that the embodiment of the invention provides, and details are as follows:
In step S101,, be the YCbCr form with the image transitions of rgb format by color space conversion;
In embodiments of the present invention, the image of YCbCr form can obtain by color space conversion, the transformational relation between rgb color space and the YCbCr color space as shown in Equation (1):
Y Cb Cr = 0.257 0.504 0.098 - 0.148 - 0.291 0.439 0.439 - 0.368 - 0.071 · ( R G B + 0 0 0 ) + 0 128 128 - - - ( 1 )
Utilize formula (1), the picture frame of rgb color space can be converted to the picture frame of YCbCr color space, obtain the RGB data and the YCbCr data of pixel.
In step S102, the reference white point in the detected image, and go out color temperature information according to the data statistics of reference white point;
As one embodiment of the present of invention, during reference white point in detected image, can judge according to following formula:
(Y_pixel-|Cb_pixel-128|-|Cr_pixel-128|)>thr_dyn (2)
Wherein, Y_pixel, Cb_pixel and Cr_pixel are respectively luminance component, chroma blue component and the red color component of pixel, and thr_dyn is with reference to the white point judgment threshold, influence the reference white point number in the picture frame.Owing to may according to circumstances adjust in the subsequent operation to thr_dyn, so when first frame handled, the value of thr_dyn was very unimportant, in general, when first frame was handled, the value of thr_dyn can be set to~0.
In one embodiment of the invention, in utilizing the process of above-mentioned formula (2) detection, can also take following formula that each tested pixel is detected simultaneously with reference to white point:
R_pixel<R passage threshold value (3)
G_pixel<G passage threshold value (4)
B_pixel<B passage threshold value (5)
Y_pixel<luminance threshold (6)
Wherein, R_pixel, G_pixel, B_pixel, Y_pixel are respectively R component, G component, B component and the luminance component of pixel, and R passage threshold value, G passage threshold value, B passage threshold value and luminance threshold are predefined constant.In general, the span of R passage threshold value, G passage threshold value, B passage threshold value is generally 210 to 255, and the span of luminance threshold often can be set to 200 to 240.
During specific implementation, can choose formula (3), (4), (5) or (6) one of them as the noise filter criteria, also can get these formula arbitrarily " with " or " or " combination as the noise filter criteria.
By formula (3)-(6), can realize the noise in the filtering image, avoiding the over-exposed harmful effect that causes, and take precautions against the color spillover, thereby improve the accuracy that white balance is adjusted, optimize the output effect of image.
In an embodiment of the present invention, then specifically comprise accumulated value Sum (R), Sum (G), Sum (B) with reference to white point R, G, three passages of B with reference to the color temperature information of white point, and with reference to the quantity counter of white point.In a preferred embodiment of the invention, in when the quantity counter of reference white point of accumulative total reaches first threshold N_max, then can finishing to image with reference to the detection and the statistics of white point.
As one embodiment of the present of invention, the reference white dot information can be realized by statistics with histogram.
In step S103, judge in this picture frame whether the color temperature information with reference to white point is effectively, be execution in step S104 then, otherwise execution in step S106;
In embodiments of the present invention, will compare, when N_min<counter<N_max, then can judge effective with reference to the color temperature information of white point with reference to the quantity counter of white point and first threshold N_max and the second threshold value N_min; Otherwise when counter 〉=N_max or counter≤N_min, it is invalid then to judge with reference to the color temperature information of white point.In above preferred embodiment, described then is counter=N_max or counter≤N_min with reference to the invalid judgement standard of the color temperature information of white point.Wherein, the first threshold N_max and the second threshold value N_min are predefined value.The first threshold N_max and the second threshold value N_min can be set to image in the proportional number of sum of all pixels, in general, first threshold N_max can be provided with 0.01 times of sum of all pixels in the image, the second threshold value N_min can be provided with 0.001 times of sum of all pixels in the image
In step S104, calculate the gain of R, G, B passage according to the color temperature information of reference white point;
In embodiments of the present invention, calculate all R, mean value R_avg, the G_avg of G, B, B_avg earlier with reference to white point, respectively shown in formula (7), (8), (9):
R_avg=Sum(R)/counter (7)
G_avg=Sum(G)/counter (8)
B_avg=Sum(B)/counter (9)
Calculate all mean values again with reference to the Y of white point, as shown in Equation (10):
Y_avg=0.257×R_avg+0.504×G_avg+0.098×B_avg (10)
Then the calculating of gain R_gain, the G_gain of R, G, B passage, B_gain is respectively shown in formula (11), (12), (13):
R_gain=R_avg/R_avg (11)
G_gain=R_avg/G_avg (12)
B_gain=Y_avg/B_avg (13)
In step S105, according to the gain of R, G, B passage original R, G, the B value of each pixel in the image are adjusted, obtain new R, G, B value;
In embodiments of the present invention, the calculating of new R, G, B value R_new, G_new and B_new is respectively shown in formula (14), (15), (16):
R_new=R×R_gain (14)
G_new=G×G_gain (15)
B_new=B×B_gain (16)
In step S106, adjustment dynamic threshold thr_dyn adds up the reference white point in next picture frame.
In embodiments of the present invention, directly influence in the two field picture number with reference to white point judgment threshold thr_dyn with reference to white point, therefore when invalid color temperature information occurring, need adjust reference white point judgment threshold thr_dyn value, to guarantee in the next frame image validity with reference to the white point color temperature information.
In embodiments of the present invention, can dynamically adjust in predefined fixedly span with reference to white point judgment threshold thr_dyn, its adjusting can be adopted the mode of the joint step-length that modifies tone, for example regulate step value: 5 for be provided with 4 with reference to white point judgment threshold thr_dyn, 10,20,40.During adjustment, record and comparison are with reference to the adjusting direction of the last picture frame of white point judgment threshold thr_dyn and current adjusting direction, a picture frame is regulated situation and current situation on the analysis-by-synthesis, adjusts in real time and regulates step-length, to find suitable reference white point detected value as early as possible.When the white balance adjustment moves for the first time, can put judgment threshold thr_dyn for reference white an initial value is set, and in above-mentioned 4 step values, select one as the initial adjustment step-length, later on be value after the up-to-date adjusting with reference to the value of white point judgment threshold thr_dyn, its concrete control method as shown in Figure 2:
In step S201, whether the quantity counter of reference white point that judges present frame more than or equal to first threshold N_max, is execution in step S202 then, otherwise execution in step S209.
In step S202, determine that current direction with reference to white point judgment threshold thr_dyn is big for transferring, judging according to the record of regulating direction indicator whether a last picture frame also is to transfer greatly with reference to the adjusting direction of white point judgment threshold thr_dyn again, is execution in step S203 then, otherwise execution in step S206.
But described adjusting direction indicator can be the unit of the adjusting direction of stored reference white point judgment threshold thr_dyn such as variable.
At step S203, whether the adjusting step-length of judging a last picture frame equals maximum step value (40) or big step value (20), is execution in step S204 then, otherwise execution in step S205.
In step S204, transfer big current, promptly current with reference to the adjusted adjusting step-length of the last picture frame of white point judgment threshold thr_dyn=with reference to the last picture frame of white point judgment threshold thr_dyn+ with reference to white point judgment threshold thr_dyn by the adjusting step-length of a last picture frame.
In step S205, transfer big currently by rising adjusting step-length after the one-level with reference to white point judgment threshold thr_dyn, if the adjusting step-length of a promptly last picture frame is 5, then current adjusting step-length is 10; If the adjusting step-length of a last picture frame is 10, then current adjusting step-length is 20, and is current adjusted with reference to the adjusting step-length after the white point judgment threshold thr_dyn+ upgrading with reference to white point judgment threshold thr_dyn value=last picture frame.
In step S206, judge whether the adjusting step-length of a last picture frame equals minimum step value (5), be execution in step S207 then, otherwise execution in step S208.
In step S207, transfer big current, then current adjusted with reference to white point judgment threshold thr_dyn+5 by minimum step with reference to the last picture frame of white point judgment threshold thr_dyn=with reference to white point judgment threshold thr_dyn.
In step S208, transfer big current by the adjusting step-length of falling after the one-level with reference to white point judgment threshold th_dyn, if the adjusting step-length of a promptly last picture frame is 10, then current adjusting step-length is 5, by that analogy, then current adjusted with reference to the adjusting step-length behind the white point judgment threshold thr_dyn+ degradation with reference to the last picture frame of white point judgment threshold thr_dyn=.
In step S209, determine that current direction with reference to white point judgment threshold thr_dyn for turning down, judges with reference to the adjusting direction of the last picture frame of white point judgment threshold thr_dyn again and whether also turn down, be execution in step S210 then; Otherwise execution in step S213.
At step S210, whether the adjusting step-length of judging a last picture frame equals maximum step value or big step value, is execution in step S211 then, otherwise execution in step S212.
In step S211, turn down current with reference to white point judgment threshold thr_dyn, promptly current with reference to the adjusted adjusting step-length of the last picture frame of white point judgment threshold thr_dyn=with reference to the last picture frame of white point judgment threshold thr_dyn-by the adjusting step-length of a last picture frame.
In step S212, turn down current with reference to white point judgment threshold thr_dyn, promptly current adjusted with reference to the adjusting step-length after the white point judgment threshold thr_dyn-upgrading with reference to white point judgment threshold thr_dyn value=last picture frame by the adjusting step-length that rises after the one-level.
In step S213, judge whether the adjusting step-length of a last picture frame equals the minimum step value, be execution in step S214 then, otherwise execution in step S215.
In step S214, turn down current with reference to white point judgment threshold thr_dyn, then current adjusted with reference to white point judgment threshold thr_dyn-5 by minimum step with reference to the last picture frame of white point judgment threshold thr_dyn=.
In step S215, turn down current with reference to white point judgment threshold thr_dyn, then current adjusted with reference to the adjusting step-length behind the white point judgment threshold thr_dyn-degradation with reference to the last picture frame of white point judgment threshold thr_dyn=by the adjusting step-length of falling after the one-level.
In the embodiment of the invention, can be (0,240) with reference to the span of white point judgment threshold thr_dyn.
Fig. 3 shows the structure chart of the white balance adjustment system that the embodiment of the invention provides, and color space converting unit 31 is converted to the view data of rgb format the view data of YCbCr form by the color space conversion.Reference white point in colour temperature assessment unit 32 detected image is added up color temperature information according to the reference white point, and judges the validity of this color temperature information, exports effective color temperature information.Gain adjusting unit 33 is according to the gain that the effective color temperature information of colour temperature assessment unit 32 output calculates R, G, B passage, utilizes the gain of R, G, B passage to adjust R, G, the B value of pixel in the image, and image is regulated.
Fig. 4 shows the structure of the camera head that the embodiment of the invention provides, and for convenience of explanation, only shows the part relevant with the embodiment of the invention.
Camera 41 images acquired signals are the image data of rgb format through white balance loop 42 output signals.Color space converting unit 43 transfers the view data of rgb format to the view data of YCbCr form by the color space conversion.Reference white point in colour temperature assessment unit 44 detected image is added up color temperature information according to the reference white point, and judges the validity of this color temperature information, exports effective color temperature information.The gain that gain adjusting unit 45 is calculated R, G, B passage according to the effective color temperature information of colour temperature assessment unit 44 output, and configuration camera 41 utilize the gain of R, G, B passage to adjust R, G, the B value of pixel in the image, and image is regulated.
In embodiments of the present invention, color temperature information comprises with reference to the accumulated value Sum (R) of white point R, G, three passages of B, Sum (G), Sum (B), and with reference to the quantity counter of white point.
Fig. 5 shows the structure of the colour temperature assessment unit that the embodiment of the invention offers, and for convenience of explanation, only shows the part relevant with the embodiment of the invention.
Reference white point detects the reference white point in module 441 detected image, and adds up color temperature information according to detected with reference to white point, and as one embodiment of the present of invention, the reference white point in the image detects according to following formula:
(Y_pixel-|Cb_pixel-128|-|Cr_pixel-128|)>thr_dyn;
Wherein, Y_pixel, Cb_pixel and Cr_pixel are respectively luminance component, chroma blue component and the red color component of pixel, and thr_dyn is with reference to the white point judgment threshold.
As a preferred embodiment of the present invention, for fear of the over-exposed harmful effect that causes, whether improve the accuracy that white balance is adjusted, optimize the output effect of image, be also to filter by the noise in 4411 pairs of images of noise filtering module in reference to white point detecting each pixel.
During noise in filtering image, as one embodiment of the present of invention, need satisfy with reference to white point following one of various, perhaps following various arbitrarily " with " or " or " combination:
R_pixel<R passage threshold value;
G_pixel<G passage threshold value;
B_pixel<B passage threshold value;
Y_pixel<luminance threshold;
Wherein, R_pixel, G_pixel, B_pixel, Y_pixel are respectively R component, G component, B component and the luminance component of pixel.
In a preferred embodiment of the invention, in when the quantity counter of reference white point of accumulative total reaches first threshold N_max, then can finishing to image with reference to the detection and the statistics of white point.
The validity that color temperature information judge module 442 is judged with reference to the color temperature information of white point, as one embodiment of the present of invention, when judging the validity of color temperature information, when the second threshold value N_min<with reference to the quantity counter of white point<first threshold N_max, color temperature information with reference to white point is effective, during as the quantity counter 〉=first threshold N_max of reference white point or with reference to the quantity counter of the white point≤second threshold value N_min, color temperature information with reference to white point is invalid, when adopt when the quantity counter of reference white point totally reaches first threshold N_max, finish described in the above preferred embodiment to image in reference to the detection and the statistics of white point, then the condition that color temperature information is invalid is with reference to the quantity counter=first threshold N_max of white point or with reference to the quantity counter≤second threshold value N_min of white point.
In embodiments of the present invention, when color temperature information judge module 442 judged that color temperature information with reference to white point is invalid, 444 pairs of passing threshold adjusting modules were adjusted with reference to the white point judgment threshold, specifically adjust mode as mentioned above, repeat no more.
The effective color temperature information of color temperature information output module 443 outputs.
Fig. 6 shows the structure of the gain adjusting unit that the embodiment of the invention provides, and for convenience of explanation, only shows the part relevant with the embodiment of the invention.
RGB mean value calculation module 551 is calculated all R with reference to white point, mean value R_avg, the G_avg of G, B, B_avg according to following formula:
R_avg=Sum(R)/counter
G_avg=Sum(G)/counter
B_avg=Sum(B)/counter
Average brightness computing module 552 calculates all mean value Y_avg with reference to the brightness of white point according to following formula:
Y_avg=0.257×R_avg+0.504×G_avg+0.098×B_avg
Channel gain computing module 53 calculates R, G, gain R_gain, the G_gain of B passage, B_gain according to following formula:
R_gain=Y_avg/R_avg
G_gain=Y_avg/G_avg
B_gain=Y_avg/B_avg
RGB adjusting module 554 is adjusted R, G, B value R_new, G_new and the B_new of pixel in the image according to following formula:
R_new=R×R_gain
G_new=G×G_gain
B_new=B×B_gain。
When the embodiment of the invention is adjusted in white balance, the validity of reference white point color temperature information is assessed, carried out the white balance adjustment, can improve efficient and accuracy that white balance is adjusted at effective color temperature information.Simultaneously, the noise in the filtering image has improved the accuracy of colour temperature assessment, and then the effect of having optimized output can prevent the color spillover in the white balance adjustment process effectively, avoids the over-exposed harmful effect that causes.
The above only is preferred embodiment of the present invention, not in order to restriction the present invention, all any modifications of being done 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 (20)

1. a white balance adjustment method is characterized in that, described method comprises:
The view data of rgb format is converted to the view data of YCbCr form;
Color temperature information with reference to white point in the image is assessed;
According to the gain that effective color temperature information calculates R, G, B passage, utilize the gain of described R, G, B passage to adjust R, G, the B value of pixel in the image.
2. the method for claim 1 is characterized in that, described the step of assessing with reference to the color temperature information of white point in the image is specially:
The reference white point in the detected image and the color temperature information of statistical-reference white point;
Judgement is with reference to the validity of the color temperature information of white point;
Export effective color temperature information.
3. method as claimed in claim 1 or 2 is characterized in that, described color temperature information comprises with reference to the accumulated value Sum (R) of white point R, G, three passages of B, Sum (G), Sum (B), and with reference to the quantity counter of white point.
4. method as claimed in claim 2 is characterized in that, the reference white point in the described image detects according to following formula:
(Y_pixel-|Cb_pixel-128|-|Cr_pixel-128|)>thr_dyn;
Wherein, Y_pixel, Cb_pixel and Cr_pixel are respectively luminance component, chroma blue component and the red color component of pixel, and thr_dyn is with reference to the white point judgment threshold, is the value between 0 to 240.
5. method as claimed in claim 3 is characterized in that, described judgement with reference to the color temperature information of white point whether effectively step be specially:
To compare with reference to the quantity counter of white point and first threshold N_max and the second threshold value N_min, when N_min<counter<N_max, effective with reference to the color temperature information of white point; When counter 〉=N_max or counter≤N_min, invalid with reference to the color temperature information of white point;
Wherein, the first threshold N_max and the second threshold value N_min can be set to image in the proportional number of sum of all pixels.
6. method as claimed in claim 2 is characterized in that, described to the step of assessing with reference to the color temperature information of white point in the image select one the step comprise:
When judging that color temperature information with reference to white point is invalid, adjust with reference to the white point judgment threshold.
7. method as claimed in claim 6 is characterized in that, described when judging that color temperature information with reference to white point is invalid, the step of adjusting with reference to the white point judgment threshold is specially:
Whether the quantity counter of reference white point that judges current image frame more than or equal to first threshold N_max, is execution in step A then, otherwise execution in step B;
A: judging in the last picture frame whether transfer greatly with reference to the adjusting direction of white point judgment threshold, is execution in step A1 then, otherwise execution in step A2;
A1: whether the adjusting step-length of judging a last picture frame is maximum step value or than the step value of the low one-level of maximum step value, is execution in step A11 then, otherwise execution in step A12;
A11: transfer big current by the adjusting step-length of a last picture frame with reference to the white point judgment threshold;
A12: transfer big current with reference to the white point judgment threshold by the adjusting step-length that rises after the one-level;
A2: whether the adjusting step-length of judging a last picture frame is the minimum step value, is execution in step A21 then, otherwise execution in step A22;
A21: transfer big current by minimum step with reference to the white point judgment threshold;
A22: transfer big current with reference to the white point judgment threshold by the adjusting step-length of falling after the one-level;
B: judging whether the adjusting direction with reference to the white point judgment threshold is turned down in the last picture frame, is execution in step B1 then, otherwise execution in step B2;
B1: whether the adjusting step-length of judging a last picture frame is maximum step value or than the step value of the low one-level of maximum step value, is execution in step B11 then, otherwise execution in step B12;
B11: turn down current by the adjusting step-length of a last picture frame with reference to the white point judgment threshold;
B12: turn down current with reference to the white point judgment threshold by the adjusting step-length that rises after the one-level;
B2: whether the adjusting step-length of judging a last picture frame is the minimum step value, is execution in step B21 then, otherwise execution in step B22;
B21: turn down current by minimum step with reference to the white point judgment threshold;
B22: turn down current with reference to the white point judgment threshold by the adjusting step-length of falling after the one-level.
8. method as claimed in claim 2 is characterized in that, the step of the reference white point in the described detected image and the color temperature information of statistical-reference white point also comprises:
Noise in the filtering image.
9. method as claimed in claim 8 is characterized in that, in the noise step in the described filtering image, need satisfy with reference to white point following one of various, perhaps following various arbitrarily " with " or " or " combination:
R_pixel<R passage threshold value;
G_pixel<G passage threshold value;
B_pixel<B passage threshold value;
Y_pixel<luminance threshold;
Wherein, R_pixel, G_pixel, B_pixel, Y_pixel are respectively R component, G component, B component and the luminance component of pixel, R passage threshold value, G passage threshold value, B passage threshold value span are 210 to 255, and the span of luminance threshold is 200 to 240.
10. method as claimed in claim 3 is characterized in that, the described step of calculating the gain of R, G, B passage according to described effective color temperature information is specially:
Calculate all R, mean value R_avg, the G_avg of G, B, B_avg according to following formula with reference to white point:
R_avg=Sum(R)/counter
G_avg=Sum(R)/counter
B_avg=Sum(B)/counter
Calculate all mean value Y_avg according to following formula with reference to the brightness of white point:
Y_avg=0.257×R_avg+0.504×G_avg+0.098×B_avg
According to following formula calculate R, G, B passage gain R_gain, G (gain, B_gain:
R_gain=Y_avg/R_avg
G_gain=Y_avg/G_avg
B_gain=Y_avg/B_avg
Adjust R, G, B value R_new, G_new and the B_new of pixel in the image according to following formula:
R_new=R×R_gain
G_new=G×G_gain
B_new=B×B_gain。
11. a white balance adjustment system is characterized in that, described system comprises:
The color space converting unit is used for the view data of rgb format is converted to the view data of YCbCr form;
The colour temperature assessment unit; Be used for the reference white point of detected image and the color temperature information of statistical-reference white point, judge, export effective color temperature information with reference to the validity of the color temperature information of white point; And
Gain adjusting unit is used for calculating according to described effective color temperature information the gain of R, G, B passage, utilizes the gain of described R, G, B passage to adjust R, G, the B value of pixel in the image.
12. system as claimed in claim 11 is characterized in that, described colour temperature assessment unit comprises:
Reference white point detects module, is used for the reference white point of detected image and the color temperature information of statistical-reference white point;
The color temperature information judge module is used to judge the validity with reference to the color temperature information of white point; And
The color temperature information output module is used to export effective color temperature information.
13., it is characterized in that described color temperature information comprises with reference to the accumulated value Sum (R) of white point R, G, three passages of B, Sum (G), Sum (B) as claim 11 or 12 described systems, and with reference to the quantity counter of white point.
14. system as claimed in claim 12 is characterized in that, the reference white point in the described image detects according to following formula:
(Y_pixel-|Cb_pixel-128|-|Cr_pixel-128|)>thr_dyn;
Wherein, Y_pixel, Cb_pixel and Cr_pixel are respectively luminance component, chroma blue component and the red color component of pixel, and thr_dyn is with reference to the white point judgment threshold, is the value between 0 to 240.
15. system as claimed in claim 13, it is characterized in that, when judging the validity of color temperature information, when the second threshold value N_min<with reference to the quantity counter of white point<first threshold N_max, color temperature information with reference to white point is effective, during as the quantity counter 〉=first threshold N_max of reference white point or with reference to the quantity counter of the white point≤second threshold value N_min, invalid with reference to the color temperature information of white point;
Wherein, the first threshold N_max and the second threshold value N_min can be set to image in the proportional number of sum of all pixels.
16. system as claimed in claim 15 is characterized in that, described colour temperature assessment unit further comprises:
The threshold value adjusting module is used for adjusting with reference to the white point judgment threshold when judging that color temperature information with reference to white point is invalid.
17. system as claimed in claim 11 is characterized in that, described reference white point detects module and further comprises:
The noise filtering module is used for the noise of filtering image.
18. system as claimed in claim 17 is characterized in that, during noise in filtering image, need satisfy with reference to white point following one of various, perhaps following various arbitrarily " with " or " or " combination:
R_pixel<R passage threshold value;
G_pixel<G passage threshold value;
B_pixel<B passage threshold value;
Y_pixel<luminance threshold;
Wherein, R_pixel, G_pixel, B_pixel, Y_pixel are respectively R component, G component, B component and the luminance component of pixel, the span of R passage threshold value, G passage threshold value, B passage threshold value is 210 to 255, and the span of luminance threshold is 200 to 240.
19. system as claimed in claim 11 is characterized in that, described gain adjusting unit comprises:
RGB mean value calculation module is used for calculating all R with reference to white point, mean value R_avg, the G_avg of G, B, B_avg according to following formula:
R_avg=Sum(R)/counter
G_avg=Sum(G)/counter
B_avg=Sum(B)/counter
The average brightness computing module is used for calculating all mean value Y_avg with reference to the brightness of white point according to following formula:
Y_avg=0.257×R_avg+0.504×G_avg+0.098×B_avg
The channel gain computing module is used for calculating R, G, gain R_gain, the G_gain of B passage, B_gain according to following formula:
R_gain=Y_avg/R_avg
G_gain=Y_avg/G_avg
B_gain=Y_avg?/B_avg
The RGB adjusting module is used for R, G, B value R_new, G_new and B_new according to following formula adjustment image pixel:
R_new=R×R_gain
G_new=G×G_gain
B_new=B×B_gain。
20. camera head that adopts the described system of claim 11 to realize.
CN2008100262668A 2008-01-31 2008-01-31 White balance adjustment method, system and camera Active CN101227623B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2008100262668A CN101227623B (en) 2008-01-31 2008-01-31 White balance adjustment method, system and camera

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2008100262668A CN101227623B (en) 2008-01-31 2008-01-31 White balance adjustment method, system and camera

Publications (2)

Publication Number Publication Date
CN101227623A true CN101227623A (en) 2008-07-23
CN101227623B CN101227623B (en) 2012-07-04

Family

ID=39859340

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2008100262668A Active CN101227623B (en) 2008-01-31 2008-01-31 White balance adjustment method, system and camera

Country Status (1)

Country Link
CN (1) CN101227623B (en)

Cited By (18)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101568039B (en) * 2009-06-03 2011-04-20 广东威创视讯科技股份有限公司 White balance adjusting method, white balance adjusting device and camera
CN102271260A (en) * 2011-09-07 2011-12-07 天津天地伟业数码科技有限公司 Method for adjusting white balance
CN102271259A (en) * 2011-08-09 2011-12-07 深圳市万兴软件有限公司 Color temperature adjusting method and device
CN103037224A (en) * 2012-12-07 2013-04-10 珠海全志科技股份有限公司 Image white balance processing method and device
CN103200410A (en) * 2013-04-01 2013-07-10 上海富瀚微电子有限公司 White balance control method and white balance control device
CN103400557A (en) * 2013-07-29 2013-11-20 广东欧珀移动通信有限公司 Method and device for improving display effect of LCD (Liquid Crystal Display) screen of mobile communication terminal
CN103780890A (en) * 2012-10-17 2014-05-07 鸿富锦精密工业(深圳)有限公司 White balance adjustment method
CN105812762A (en) * 2016-03-23 2016-07-27 武汉鸿瑞达信息技术有限公司 Automatic white balance method for processing image color cast
CN106709887A (en) * 2017-01-06 2017-05-24 凌云光技术集团有限责任公司 Image gray-world white balance adjustment method and device based on color temperature curve
CN107404640A (en) * 2016-05-20 2017-11-28 北京集创北方科技股份有限公司 The white balance correcting and digital imaging device of digital imaging device
CN107483909A (en) * 2017-10-11 2017-12-15 凌云光技术集团有限责任公司 White balancing treatment method and device
CN109246406A (en) * 2018-11-16 2019-01-18 中国科学院西安光学精密机械研究所 A kind of implementation method of color camera automatic white balance
CN110876049A (en) * 2018-08-29 2020-03-10 浙江宇视科技有限公司 Image white balance processing method and device
CN110933404A (en) * 2019-11-30 2020-03-27 航天科技控股集团股份有限公司 Product liquid crystal white balance detection method
CN112026496A (en) * 2019-06-04 2020-12-04 上海擎感智能科技有限公司 Vehicle window display method, front end, rear end, medium and equipment
CN112243119A (en) * 2019-07-19 2021-01-19 杭州海康威视数字技术股份有限公司 White balance processing method and device, electronic equipment and storage medium
CN115209120A (en) * 2021-04-09 2022-10-18 爱思开海力士有限公司 Image sensing device, operation method thereof and image processing device
US11589614B2 (en) 2015-08-31 2023-02-28 Nicoventures Trading Limited Cartridge for use with apparatus for heating smokable material

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104378612B (en) * 2013-08-12 2017-09-29 联想(北京)有限公司 A kind of method and electronic equipment for adjusting color balance

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP3433406B2 (en) * 1999-10-18 2003-08-04 インターナショナル・ビジネス・マシーンズ・コーポレーション White point adjustment method, color image processing method, white point adjustment device, and liquid crystal display device
KR100441508B1 (en) * 2002-05-20 2004-07-23 삼성전자주식회사 White balance controller and method thereof

Cited By (25)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101568039B (en) * 2009-06-03 2011-04-20 广东威创视讯科技股份有限公司 White balance adjusting method, white balance adjusting device and camera
CN102271259A (en) * 2011-08-09 2011-12-07 深圳市万兴软件有限公司 Color temperature adjusting method and device
CN102271259B (en) * 2011-08-09 2014-12-24 深圳万兴信息科技股份有限公司 Color temperature adjusting method and device
CN102271260A (en) * 2011-09-07 2011-12-07 天津天地伟业数码科技有限公司 Method for adjusting white balance
CN102271260B (en) * 2011-09-07 2014-04-16 天津天地伟业数码科技有限公司 Method for adjusting white balance
CN103780890A (en) * 2012-10-17 2014-05-07 鸿富锦精密工业(深圳)有限公司 White balance adjustment method
CN103037224A (en) * 2012-12-07 2013-04-10 珠海全志科技股份有限公司 Image white balance processing method and device
CN103200410A (en) * 2013-04-01 2013-07-10 上海富瀚微电子有限公司 White balance control method and white balance control device
CN103200410B (en) * 2013-04-01 2015-07-08 上海富瀚微电子股份有限公司 White balance control method and white balance control device
CN103400557A (en) * 2013-07-29 2013-11-20 广东欧珀移动通信有限公司 Method and device for improving display effect of LCD (Liquid Crystal Display) screen of mobile communication terminal
US11589614B2 (en) 2015-08-31 2023-02-28 Nicoventures Trading Limited Cartridge for use with apparatus for heating smokable material
CN105812762A (en) * 2016-03-23 2016-07-27 武汉鸿瑞达信息技术有限公司 Automatic white balance method for processing image color cast
CN107404640A (en) * 2016-05-20 2017-11-28 北京集创北方科技股份有限公司 The white balance correcting and digital imaging device of digital imaging device
CN107404640B (en) * 2016-05-20 2018-12-25 北京集创北方科技股份有限公司 The white balance correcting and digital imaging device of digital imaging device
CN106709887A (en) * 2017-01-06 2017-05-24 凌云光技术集团有限责任公司 Image gray-world white balance adjustment method and device based on color temperature curve
CN107483909A (en) * 2017-10-11 2017-12-15 凌云光技术集团有限责任公司 White balancing treatment method and device
CN110876049A (en) * 2018-08-29 2020-03-10 浙江宇视科技有限公司 Image white balance processing method and device
CN109246406A (en) * 2018-11-16 2019-01-18 中国科学院西安光学精密机械研究所 A kind of implementation method of color camera automatic white balance
CN112026496A (en) * 2019-06-04 2020-12-04 上海擎感智能科技有限公司 Vehicle window display method, front end, rear end, medium and equipment
CN112026496B (en) * 2019-06-04 2022-02-22 上海擎感智能科技有限公司 Vehicle window display method, front end, rear end, medium and equipment
CN112243119A (en) * 2019-07-19 2021-01-19 杭州海康威视数字技术股份有限公司 White balance processing method and device, electronic equipment and storage medium
CN112243119B (en) * 2019-07-19 2022-05-03 杭州海康威视数字技术股份有限公司 White balance processing method and device, electronic equipment and storage medium
CN110933404A (en) * 2019-11-30 2020-03-27 航天科技控股集团股份有限公司 Product liquid crystal white balance detection method
CN115209120A (en) * 2021-04-09 2022-10-18 爱思开海力士有限公司 Image sensing device, operation method thereof and image processing device
CN115209120B (en) * 2021-04-09 2024-04-26 爱思开海力士有限公司 Image sensing device, operation method thereof and image processing device

Also Published As

Publication number Publication date
CN101227623B (en) 2012-07-04

Similar Documents

Publication Publication Date Title
CN101227623B (en) White balance adjustment method, system and camera
EP1774797B1 (en) Automatic white balance method and apparatus
JP3992177B2 (en) Image processing apparatus, image processing method, and computer program
US6583820B1 (en) Controlling method and apparatus for an electronic camera
US20090295938A1 (en) Image processing device with automatic white balance
US20100177203A1 (en) Apparatus and method for local contrast enhanced tone mapping
JP5814799B2 (en) Image processing apparatus and image processing method
US20140204246A1 (en) Image processing device and program
JP2006324840A (en) Image processing apparatus and white balance adjusting device
JP4042432B2 (en) Imaging device
CN104079909B (en) A kind of image auto white balance method and device
KR20100095827A (en) Apparatus and method for classifing image
KR20060118352A (en) Image process apparatus, image pickup apparatus, and image processing program
JP3848274B2 (en) White balance adjustment method, imaging apparatus, program, and storage medium
JP2009212641A (en) Unit and method for controlling white balance and recording medium for recording control processing program
KR20120122574A (en) Apparatus and mdthod for processing image in a digital camera
US8351695B2 (en) Image processing apparatus, image processing program, and image processing method
KR20130000665A (en) Method and apparatus for detecting and compensating back light frame
KR101005769B1 (en) Auto exposure and auto white-balance method for detecting high dynamic range conditions
JP3884952B2 (en) Imaging device
KR100915598B1 (en) Automatic white balance apparatus and method thereof
KR101131109B1 (en) Auto white balance setting method by white detection considering sensor characteristic
US7688357B2 (en) Method and apparatus for color temperature correction in a built-in camera of a portable terminal
JP2006303559A (en) Electronic camera
CN102395035B (en) Processing method for white balance of intelligent camera

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
TR01 Transfer of patent right

Effective date of registration: 20170612

Address after: 519085 C District, 1# workshop, No. 1, science and technology No. four road, hi tech Zone, Zhuhai, Guangdong, China

Patentee after: ACTIONS (ZHUHAI) TECHNOLOGY Co.,Ltd.

Address before: 519085 hi tech Zone, Guangdong, Zhuhai science and Technology Innovation Coast Road, No. four, No. 1

Patentee before: Juli Integrated Circuit Design Co., Ltd.

TR01 Transfer of patent right
CP01 Change in the name or title of a patent holder

Address after: 519085 High-tech Zone, Tangjiawan Town, Zhuhai City, Guangdong Province

Patentee after: ACTIONS TECHNOLOGY Co.,Ltd.

Address before: 519085 High-tech Zone, Tangjiawan Town, Zhuhai City, Guangdong Province

Patentee before: ACTIONS (ZHUHAI) TECHNOLOGY Co.,Ltd.

CP01 Change in the name or title of a patent holder