CN103905804B - A kind of method and electronic equipment adjusting white balance - Google Patents

A kind of method and electronic equipment adjusting white balance Download PDF

Info

Publication number
CN103905804B
CN103905804B CN201210575551.1A CN201210575551A CN103905804B CN 103905804 B CN103905804 B CN 103905804B CN 201210575551 A CN201210575551 A CN 201210575551A CN 103905804 B CN103905804 B CN 103905804B
Authority
CN
China
Prior art keywords
white balance
ash
profile information
balance calibration
image object
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.)
Active
Application number
CN201210575551.1A
Other languages
Chinese (zh)
Other versions
CN103905804A (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.)
Lenovo Beijing Ltd
Original Assignee
Lenovo Beijing 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 Lenovo Beijing Ltd filed Critical Lenovo Beijing Ltd
Priority to CN201210575551.1A priority Critical patent/CN103905804B/en
Publication of CN103905804A publication Critical patent/CN103905804A/en
Application granted granted Critical
Publication of CN103905804B publication Critical patent/CN103905804B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

The invention discloses a kind of method adjusting white balance, be applied in an electronic equipment, described method comprises: the N number of profile information obtaining M image object of an image to be calibrated, and wherein, described M, N are the integer being more than or equal to 2, and N is less than or equal to M; Based on described N number of profile information, obtain N number of white balance calibration parameter of N number of image object corresponding with described N number of profile information in M image object; According to described N number of white balance calibration parameter, white balance calibration process is carried out to described N number of image object.In addition, the invention also discloses the electronic equipment that the method for a kind of and above-mentioned adjustment white balance is corresponding.

Description

A kind of method and electronic equipment adjusting white balance
Technical field
The present invention relates to communication and electronic applications, particularly a kind of method and electronic equipment adjusting white balance.
Background technology
Along with the development of science and technology, camera also enters the digital camera epoch from film camera, and often need to adjust the white balance parameter of camera when using digital camera to take, undistorted with the photo gone out captured by making, if do not calibrate the white balance parameter of camera before shooting, after shooting photo, also need the process with image processing software, captured photo being carried out to white balance calibration, the digital camera field that is aligned in of visible white balance is very important.
In prior art when carrying out white balance calibration to image to be calibrated, the technical scheme adopted is: the whole two field picture treating calibration chart picture carries out ash point statistics, then obtain white balance calibration parameter, and whole frame image to be calibrated is carried out to the adjustment of RGBgain by this unified white balance calibration parameter.
But the present inventor is in the process realizing invention technical scheme in the embodiment of the present invention, find that above-mentioned technology at least exists following technical problem:
(1) the whole two field picture owing to adopting the white balance calibration parameter obtained for full frame image ash point to treat calibration chart picture carries out white balance calibration, so prior art also exists the technical problem can not doing more accurate white balance calibration to regions with general character all in image.
(2) due to white balance calibration more accurately can not be carried out to image, so, the color expressive force of image after calibrating can be made to have distortion to a certain degree.
Summary of the invention
The embodiment of the present invention, by providing a kind of method adjusting white balance, solves the technical problem can not doing more accurate white balance calibration to regions with general character all in image also existed in prior art.
For solving the problems of the technologies described above, embodiments provide a kind of method adjusting white balance, be applied in an electronic equipment, described method comprises:
Obtain N number of profile information of M image object of an image to be calibrated, wherein, described M, N are the integer being more than or equal to 2, and N is less than or equal to M;
Based on described N number of profile information, obtain N number of white balance calibration parameter of N number of image object corresponding with described N number of profile information in M image object;
According to described N number of white balance calibration parameter, white balance calibration process is carried out to described N number of image object.
Preferably, N number of profile information of M image object of described acquisition image to be calibrated, specifically comprises:
Obtain M profile information of M image object of described image to be calibrated;
Judge whether ratio value that each area in M the area that a described M profile information is corresponding accounts for described image area to be calibrated meets one pre-conditioned, obtain M judged result;
From a described M judged result, determine that ratio value meets described pre-conditioned N number of judged result;
Obtain N number of profile information of N number of image object corresponding to described N number of judged result.
Preferably, described based on described N number of profile information, obtain N number of white balance calibration parameter of N number of image object corresponding with described N number of profile information in M image object, specifically comprise:
The the first grey dot information treating calibration chart picture is added up, and obtains the full frame white balance calibration parameter of image to be calibrated;
The RGB characteristic information that in the described N number of profile information of statistics acquisition, each profile information is corresponding and the picture characteristics information of necessity;
Based on described N number of RGB characteristic information and described N number of picture characteristics information, described full frame white balance parameter compensated or suppresses process, obtaining N number of white balance calibration parameter.
Preferably, according to described N number of white balance calibration parameter, white balance calibration process is carried out to the N number of image object corresponding to described N number of white balance calibration parameter, is specially:
Utilize described N number of white balance calibration parameter, calibration process is carried out to the RGB characteristic of described N number of image object, to realize calibrating described N number of image object white balance.
Preferably, described based on described N number of profile information, obtain N number of white balance calibration parameter of N number of image object corresponding with described N number of profile information in M image object, specifically comprise:
Respectively the ash point in described N number of profile information is added up, obtain N number of second ash and count;
Count according to described N number of second ash, obtain described N number of white balance calibration parameter.
Preferably, describedly to count according to described N number of second ash, obtain described N number of white balance calibration parameter, be specially:
When having N1 the second ash to count during described N number of second ash is counted to be greater than or equal to a threshold value, counting according to described N1 the second ash, obtaining N1 white balance calibration parameter;
When having N2 the second ash to count during described N number of second ash is counted to be less than described threshold value, individual 3rd ash of N2 obtained respectively in similar individual first contour area of N2 of the RGB characteristic of a corresponding N2 contour area of counting with described N2 the second ash is counted, and count based on described N2 the 3rd ash, obtain N2 white balance calibration parameter, wherein, N1 and N2 be added and equal N.
Based on same inventive concept, the electronic equipment that the embodiment of the present invention separately provides a kind of method adjusting white balance corresponding, equally for solving the technical problem can not doing more accurate white balance calibration to regions with general character all in image also existed in prior art.Described electronic equipment can carry out white balance calibration process to an image, and described electronic equipment comprises:
First obtains unit, and for obtaining N number of profile information of M image object of an image to be calibrated, wherein, described M, N are the integer being more than or equal to 2, and N is less than or equal to M;
Second obtains unit, obtains unit and is connected, for based on described N number of profile information, obtain N number of white balance calibration parameter of N number of image object corresponding with described N number of profile information in M image object with described first;
First processing unit, obtains unit be connected with described second, for according to described N number of white balance calibration parameter, carry out white balance calibration process to described N number of image object.
Preferably, described first acquisition unit specifically comprises:
First obtains subelement, for obtaining M profile information of M image object of described image to be calibrated;
Whether second obtains subelement, obtains subelement be connected with described first, satisfied one pre-conditioned for judging that each area in M the area that a described M profile information is corresponding accounts for the ratio value of described image area to be calibrated, obtains M judged result;
3rd obtains subelement, obtains subelement be connected, for determining that from a described M judged result ratio value meets described pre-conditioned N number of judged result with described second;
4th obtains subelement, obtains subelement be connected, for obtaining N number of profile information of N number of image object corresponding to described N number of judged result with the described 3rd.
Preferably, described second acquisition unit specifically comprises:
5th obtains subelement, and for treating calibration chart picture first grey dot information is added up, and obtains the full frame white balance calibration parameter of image to be calibrated;
6th obtains subelement, for adding up the picture characteristics information obtaining each profile information is corresponding in described N number of profile information RGB characteristic information and necessity;
7th obtains subelement, obtain subelement, the 6th respectively to obtain subelement be connected with the described 5th, for based on described N number of RGB characteristic information and described N number of picture characteristics information, described full frame white balance parameter compensated or suppresses process, obtaining N number of white balance calibration parameter.
Preferably, described first processing unit is specially: RGB characteristic processing unit, for utilizing described N number of white balance calibration parameter, carries out calibration process to the RGB characteristic of described N number of image object, to realize calibrating described N number of image object white balance.
Preferably, described second acquisition unit specifically comprises:
8th obtains subelement, for adding up the ash point in described N number of profile information respectively, obtaining N number of second ash and counting;
9th obtains subelement, obtaining subelement and is connected, for counting according to described N number of second ash, obtaining described N number of white balance calibration parameter with the described 8th.
Preferably, described 9th acquisition subelement specifically comprises:
Tenth obtains subelement, when being greater than or equal to a threshold value for there being in counting when described N number of second ash N1 the second ash to count, counting, obtain N1 white balance calibration parameter according to individual second ash of described N1;
11 obtains subelement, when being less than described threshold value for there being in counting when described N number of second ash N2 the second ash to count, individual 3rd ash of N2 obtained respectively in similar individual first contour area of N2 of the RGB characteristic of a corresponding N2 contour area of counting with described N2 the second ash is counted, and count based on described N2 the 3rd ash, obtain N2 white balance calibration parameter, wherein, N1 and N2 be added and equal N.
The one or more technical schemes provided in the embodiment of the present invention, at least have following technique effect or advantage:
(1) due to adopt by image to be calibrated according to different target objects, mark off multiple different profile, use the technical scheme of different white balance calibration parameters according to each profile.Solve the technical problem can not doing more accurate white balance calibration to regions with general character all in image also existed in prior art, there is the technique effect that can do more accurate white balance calibration to regions with general character all in image.
(2) in addition, divide profile, and then do white balance calibration according to differently contoured region owing to adopting according to the general character existed in image, therefore, it is possible to make the white balance of the various zones of different of image to be calibrated and object more accurate, color expressive force is more true to nature.
Accompanying drawing explanation
Fig. 1 is a kind of particular flow sheet adjusting the method for white balance in the embodiment of the present application;
Fig. 2 is the specific implementation flow chart of step 101 in the embodiment of the present application method;
Fig. 3 is the specific implementation flow chart based on the full frame white balance calibration parameter of whole image to be calibrated, N number of image object being carried out to white balance calibration in the embodiment of the present application method;
Fig. 4 is the specific implementation flow chart obtaining the white balance calibration parameter being applicable to this profile in the embodiment of the present application method based on N number of profile information respectively;
Fig. 5 is the concrete structure figure of a kind of electronic equipment in the embodiment of the present application;
Fig. 6 is the concrete structure figure of the first acquisition unit 501 in the embodiment of the present application electronic equipment;
Fig. 7 is in the embodiment of the present application electronic equipment when the full frame white balance calibration parameter based on whole image to be calibrated carries out white balance calibration to N number of image object, the concrete structure figure of the second acquisition unit 502;
Fig. 8 is when in the embodiment of the present application, electronic equipment obtains based on N number of profile information the white balance calibration parameter being applicable to this profile respectively, the concrete structure figure of the second acquisition unit 502.
Embodiment
The embodiment of the present application, by providing a kind of method and the electronic equipment that adjust white balance, solves the technical problem can not doing more accurate white balance calibration to regions with general character all in image also existed in prior art.
The embodiment of the present application is for solving the problems of the technologies described above, and the general thought of the technical scheme taked is as follows:
First, obtain N number of profile information of M image object of an image to be calibrated, wherein, described M, N are the integer being more than or equal to 2, and N is less than or equal to M; This profile information can be embodied in building, automobile, sky, white clouds, playground etc.; After obtaining N number of profile information, and then based on described N number of profile information, obtain N number of white balance calibration parameter of N number of image object corresponding with described N number of profile information in M image object; After obtaining N number of white balance calibration parameter, finally according to the N number of white balance calibration parameter obtained, respectively white balance calibration process is carried out to the N number of image object corresponding to this N number of white balance calibration parameter.By the image after technique scheme process, its color expressive force will be more true to nature, and the white balance calibration of image also can be more accurate.
In order to better understand technique scheme, below in conjunction with Figure of description and concrete execution mode, technique scheme being described in detail, and optimization process is done to this technical scheme.
A kind of method adjusting white balance that the embodiment of the present application provides, in order to solve the technical problem can not doing more accurate white balance calibration to regions with general character all in image also existed in prior art.The method of this adjustment white balance is applied in an electronic equipment, and the particular flow sheet of the method for this adjustment white balance as shown in Figure 1, comprising:
Step 101: the N number of profile information obtaining M image object of an image to be calibrated, wherein, described M, N are the integer being more than or equal to 2, and N is less than or equal to M;
In specific implementation process, M image object can be comprised in one pictures, we can obtain M profile information corresponding to it according to the image object of the M in picture, but in concrete practical application, this M profile information all might not will carry out the process of white balance calibration, because, the profile information that some there is no need to carry out white balance process may be there is in M profile information, such as, the region that the area accounted in whole picture is very little; We can think that such profile information is not normal profile information, so can get rid of such profile information, so in actual applications, the quantity of the profile information that we obtain can be less than the image object quantity obtained, but also have equal situation.Criterion is then that the area of the whole picture accounted for according to profile information goes to judge.Therefore, in specific implementation process, the specific implementation flow chart obtaining N number of profile information of M image object of image to be calibrated as shown in Figure 2, comprising:
Step 201: M the profile information obtaining M image object of described image to be calibrated; Such as, in image to be calibrated, there are house, sky, white clouds, little careless 4 image objects, then can obtain house, sky, white clouds, little careless 4 profile informations.
After an acquisition described M profile information, just enter step 202: judge that each area in M the area that a described M profile information is corresponding accounts for the ratio value of described image area to be calibrated whether satisfied one pre-conditioned, obtain M judged result; As the example in step 201, house, sky, white clouds can be judged in this step, area that little careless 4 profile informations account for respectively in whole pictures, if house accounts for 45%, sky accounts for 30%, white clouds account for 24%, little grass accounts for 1%, and it is pre-conditioned for being greater than 5%, then can judge the house in 4 profile informations, sky, area shared by white clouds 3 meets pre-conditioned, area shared by little careless 1 does not meet pre-conditioned, thus obtain 3 and meet pre-conditioned judged result, 1 does not meet pre-conditioned result.
After obtaining a described M judged result, just enter step 203: from a described M judged result, determine that ratio value meets described pre-conditioned N number of judged result; Example from step 202 can draw, meeting in 4 judged results pre-conditioned has 3 judged results.
After the described N number of judged result of acquisition, just enter step step 204: the N number of profile information obtaining N number of image object corresponding to described N number of judged result.According to aforesaid example, in this step, can obtain that 3 meet the pre-conditioned house corresponding to 3 judged results, sky, white clouds are the profile information of needs.
After the described N number of profile information of acquisition, described method just enters step 102: based on described N number of profile information, obtains N number of white balance calibration parameter of N number of image object corresponding with described N number of profile information in M image object.
In specific implementation process, the implementation of step 102 has two kinds, and the first is: the full frame white balance calibration parameter based on whole image to be calibrated carries out white balance calibration to N number of image object, and its specific implementation flow process as shown in Figure 3, comprising:
Step 301: the first grey dot information treating calibration chart picture is added up, obtains the full frame white balance calibration parameter of image to be calibrated;
Step 302: the RGB characteristic information that in the described N number of profile information of statistics acquisition, each profile information is corresponding and the picture characteristics information of necessity; Such as, according to aforesaid example, need in this step to obtain house, sky, the RGN characteristic information of white clouds 3 profile informations and the picture characteristics information of necessity, and the picture characteristics information of necessity specifically can comprise the image parameter information such as brightness, acutance, noise of image.
After the picture characteristics information obtaining RGB characteristic information that in full frame white balance calibration parameter and N number of profile information, each profile information is corresponding and necessity, just enter step 303: based on described N number of RGB characteristic information and described N number of picture characteristics information, described full frame white balance parameter compensated or suppresses process, obtaining N number of white balance calibration parameter.Such as, according to aforesaid example, by compensating full frame white balance calibration parameter or suppress after acquisition house, sky, the RGN characteristic information of white clouds 3 profile informations and the picture characteristics information of necessity, obtain house, sky, white balance calibration parameter corresponding to white clouds 3 profile informations respectively.Such as, for sky, itself B(is blue) value is relatively high, and when relative populations reaches a certain amount of, can think this region itself should channel B relatively strong, time so to this regional calibration, suitable compensation can be done to the BGain calibration parameter in full frame white balance calibration parameter thus obtain the white balance calibration parameter being applicable to sky areas, and work as house, if find that when adding up house the noise in image parameter information is relatively heavier, the Gain of so each passage is not easily too large, now just need suitably to suppress full frame white balance calibration parameter, thus obtain the white balance calibration parameter being suitable for adjusting floor area.
The second implementation of step 102 is then: obtain the white balance calibration parameter being applicable to this profile respectively based on N number of profile information, its specific implementation flow chart as shown in Figure 4, comprising:
Step 401: add up the ash point in described N number of profile information respectively, obtains N number of second ash and counts;
After N number of second ash of acquisition is counted, just enter step 402: count according to described N number of second ash, obtain described N number of white balance calibration parameter.
This step is in concrete implementation process, only have and just think that the second such ash is counted as effective ash is counted when the second ash is counted and reached certain value, general way to be counted setting threshold value for ash, when the second ash counts the threshold value being greater than or equal to setting, then think that the second ash is now counted as effective ash is counted, then can count based on the second ash now and obtain white balance calibration parameter corresponding with it, and when the second ash counts the threshold value being less than setting, it is not that effective ash is counted that the second ash then thinking now is counted, the white balance calibration parameter that at this moment will obtain this kind of profile then needs the 3rd ash by other region or full frame statistics to count to count as the ash of this contour area, and the white balance calibration parameter obtaining and be applicable to this contour area of counting based on the 3rd ash, in concrete practical application, generally need to select Color Channel with grey count do not reach threshold value time the most similar region of corresponding contour area as the ash point replacement area of this contour area.Such as, according to aforesaid citing, if the ash in white clouds profile is counted and is not reached setting threshold, and the RGB passage in house and white clouds the most close, then now need to select to add up in house the ash obtained to count and to count as the ash in white clouds, count according to this ash again, obtain the white balance calibration parameter being applicable to white clouds region.Therefore, the specific implementation process of step 402 is divided into following two kinds of situations,
The first situation is: when having N1 the second ash to count during described N number of second ash is counted to be greater than or equal to a threshold value, count according to described N1 the second ash, obtain N1 white balance calibration parameter, the house in such as aforementioned citing and sky are applicable to this white balance calibration gain of parameter mode.
The second situation is then: when having N2 the second ash to count during described N number of second ash is counted to be less than described threshold value, individual 3rd ash of N2 obtained respectively in similar individual first contour area of N2 of the RGB characteristic of a corresponding N2 contour area of counting with described N2 the second ash is counted, and count based on described N2 the 3rd ash, obtain N2 white balance calibration parameter, wherein, N1 and N2 be added and equal N, the white clouds in such as aforementioned citing are then applicable to this white balance calibration gain of parameter mode.
After the described N number of white balance calibration parameter of acquisition, described method just enters step 103: according to described N number of white balance calibration parameter, carry out white balance calibration process to described N number of image object.
In specific implementation process, the specific implementation of step 103 is: utilize described N number of white balance calibration parameter, carry out calibration process to the RGB characteristic of described N number of image object, to realize calibrating described N number of image object white balance.White balance calibration essence is exactly calibrate the RGB characteristic in image, to make the performance of image undistorted.At this, continue to use house above, sky, white clouds, the example of little grass, as previously described, because the area of little grass can not meet pre-conditioned, therefore, just not for the white balance calibration parameter of little grass, if it is red that the white balance calibration parameter in the house obtained by step 102 is the R(compensated in house image-region), the white balance calibration parameter of sky is that the B(compensated in sky image region is blue), and the white balance calibration parameter of white clouds suppresses the G(green of white clouds image-region), then utilizing above-mentioned white balance parameter to house, sky, when white clouds carry out white balance calibration, enhancing process is carried out to the R passage in house image, enhancing process is also carried out to the channel B in sky image, G passage in dialogue cloud atlas picture then carries out weakening process.And then realize calibrating described N number of image object white balance, because white balance calibration calibrates the RGB characteristic in image, so the meeting in color representation of the image after calibration is more accurate and undistorted.
Based on same inventive concept, the electronic equipment that the embodiment of the present invention separately provides the method for a kind of and above-mentioned adjustment white balance corresponding, for solving the technical problem can not doing more accurate white balance calibration to regions with general character all in image also existed in prior art.In concrete practical application; electronic equipment can be mobile phone, digital camera, MP4, PAD, computer etc. with the electronic equipment of camera function or image processing function; all should in the scope that this application claims protection as long as can realize carrying out the electronic equipment of white balance process to picture; therefore; the most basic function that electronic equipment in the embodiment of the present application has is can carry out white balance calibration process to an image; the concrete structure of described electronic equipment as shown in Figure 5, comprising:
First obtains unit 501, and for obtaining N number of profile information of M image object of an image to be calibrated, wherein, described M, N are the integer being more than or equal to 2, and N is less than or equal to M;
Second obtains unit 502, obtains unit 501 and is connected, for based on described N number of profile information, obtain N number of white balance calibration parameter of N number of image object corresponding with described N number of profile information in M image object with described first;
First processing unit 503, obtains unit 502 be connected with described second, for according to described N number of white balance calibration parameter, carry out white balance calibration process to described N number of image object.
In specific implementation process, as shown in Figure 6, described first acquisition unit 501 specifically comprises:
First obtains subelement 5011, for obtaining M profile information of M image object of described image to be calibrated;
Whether second obtains subelement 5012, obtains subelement 5011 be connected with described first, satisfied one pre-conditioned for judging that each area in M the area that a described M profile information is corresponding accounts for the ratio value of described image area to be calibrated, obtains M judged result;
3rd obtains subelement 5013, obtains subelement 5012 be connected, for determining that from a described M judged result ratio value meets described pre-conditioned N number of judged result with described second;
4th obtains subelement 5014, obtains subelement 5013 be connected, for obtaining N number of profile information of N number of image object corresponding to described N number of judged result with the described 3rd.
In specific implementation process, when the full frame white balance calibration parameter based on whole image to be calibrated carries out white balance calibration to N number of image object, described second obtains the concrete structure of unit 502 as shown in Figure 7, comprising:
5th obtains subelement 5021, and for treating calibration chart picture first grey dot information is added up, and obtains the full frame white balance calibration parameter of image to be calibrated;
6th obtains subelement 5022, for adding up the picture characteristics information obtaining each profile information is corresponding in described N number of profile information RGB characteristic information and necessity;
7th obtains subelement 5023, obtain subelement 5021, the 6th respectively to obtain subelement 5022 be connected with the described 5th, for based on described N number of RGB characteristic information and described N number of picture characteristics information, described full frame white balance parameter compensated or suppresses process, obtaining N number of white balance calibration parameter.
In specific implementation process, described first processing unit 503 is specially: RGB characteristic processing unit, for utilizing described N number of white balance calibration parameter, calibration process is carried out to the RGB characteristic of described N number of image object, to realize calibrating described N number of image object white balance.
In specific implementation process, when obtaining based on N number of profile information the white balance calibration parameter being applicable to this profile respectively, described second obtains the concrete structure of unit 502 as shown in Figure 8, comprising:
8th obtains subelement 5024, for adding up the ash point in described N number of profile information respectively, obtaining N number of second ash and counting;
9th obtains subelement 5025, obtaining subelement 5024 and is connected, for counting according to described N number of second ash, obtaining described N number of white balance calibration parameter with the described 8th.
In specific implementation process, described 9th obtains subelement 5025 specifically comprises again: the tenth obtains subelement, when being greater than or equal to a threshold value for there being in counting when described N number of second ash N1 the second ash to count, counting according to described N1 the second ash, obtaining N1 white balance calibration parameter; 11 obtains subelement, when being less than described threshold value for there being in counting when described N number of second ash N2 the second ash to count, individual 3rd ash of N2 obtained respectively in similar individual first contour area of N2 of the RGB characteristic of a corresponding N2 contour area of counting with described N2 the second ash is counted, and count based on described N2 the 3rd ash, obtain N2 white balance calibration parameter, wherein, N1 and N2 be added and equal N.
Because electronic equipment is that therefore, the application is no longer illustrated electronic equipment at this with a kind of aforementioned method adjusting white balance to corresponding device.
Above the explanation of electronic equipment concrete structure is not limited to the scope of this structure; the function of concrete structure both can realize in hardware also can the mode of software, and every can substitute lifted concrete structure and can complete the structure of the function that this concrete structure has all should in the scope that this application claims protection.
By the one or more technical schemes in the embodiment of the present application, following technique effect can be realized:
(1) due to adopt by image to be calibrated according to different target objects, mark off multiple different profile, use the technical scheme of different white balance calibration parameters according to each profile.Solve the technical problem can not doing more accurate white balance calibration to regions with general character all in image also existed in prior art, there is the technique effect that can do more accurate white balance calibration to regions with general character all in image.
(2) in addition, divide profile, and then do white balance calibration according to differently contoured region owing to adopting according to the general character existed in image, therefore, it is possible to make the white balance of the various zones of different of image to be calibrated and object more accurate, color expressive force is more true to nature.
Method of the present invention is not limited to the embodiment described in embodiment, and those skilled in the art's technical scheme according to the present invention draws and other execution mode belongs to technological innovation scope of the present invention equally.
Obviously, those skilled in the art can carry out various change and modification to the present invention and not depart from the spirit and scope of the present invention.Like this, if these amendments of the present invention and modification belong within the scope of the claims in the present invention and equivalent technologies thereof, then the present invention is also intended to comprise these change and modification.

Claims (12)

1. adjust a method for white balance, be applied in an electronic equipment, it is characterized in that, described method comprises:
Obtain N number of profile information of M image object of an image to be calibrated, wherein, described M, N are the integer being more than or equal to 2, and N is less than or equal to M;
Based on described N number of profile information, obtain N number of white balance calibration parameter of N number of image object corresponding with described N number of profile information in M image object;
According to described N number of white balance calibration parameter, white balance calibration process is carried out to described N number of image object.
2. the method for claim 1, is characterized in that, N number of profile information of M image object of described acquisition image to be calibrated, specifically comprises:
Obtain M profile information of M image object of described image to be calibrated;
Judge whether ratio value that each area in M the area that a described M profile information is corresponding accounts for described image area to be calibrated meets one pre-conditioned, obtain M judged result;
From a described M judged result, determine that ratio value meets described pre-conditioned N number of judged result;
Obtain N number of profile information of N number of image object corresponding to described N number of judged result.
3. method as claimed in claim 2, is characterized in that, described based on described N number of profile information, obtains N number of white balance calibration parameter of N number of image object corresponding with described N number of profile information in M image object, specifically comprises:
The the first grey dot information treating calibration chart picture is added up, and obtains the full frame white balance calibration parameter of image to be calibrated;
The RGB characteristic information that in the described N number of profile information of statistics acquisition, each profile information is corresponding and the picture characteristics information of necessity;
Based on described N number of RGB characteristic information and described N number of picture characteristics information, described full frame white balance parameter compensated or suppresses process, obtaining N number of white balance calibration parameter.
4. method as claimed in claim 3, is characterized in that, according to described N number of white balance calibration parameter, carry out white balance calibration process, be specially the N number of image object corresponding to described N number of white balance calibration parameter:
Utilize described N number of white balance calibration parameter, calibration process is carried out to the RGB characteristic of described N number of image object, to realize calibrating described N number of image object white balance.
5. method as claimed in claim 2, is characterized in that, described based on described N number of profile information, obtains N number of white balance calibration parameter of N number of image object corresponding with described N number of profile information in M image object, specifically comprises:
Respectively the ash point in described N number of profile information is added up, obtain N number of second ash and count;
Count according to described N number of second ash, obtain described N number of white balance calibration parameter.
6. method as claimed in claim 5, is characterized in that, describedly counts according to described N number of second ash, obtains described N number of white balance calibration parameter, is specially:
When having N1 the second ash to count during described N number of second ash is counted to be greater than or equal to a threshold value, counting according to described N1 the second ash, obtaining N1 white balance calibration parameter;
When having N2 the second ash to count during described N number of second ash is counted to be less than described threshold value, individual 3rd ash of N2 obtained respectively in similar individual first contour area of N2 of the RGB characteristic of a corresponding N2 contour area of counting with described N2 the second ash is counted, and count based on described N2 the 3rd ash, obtain N2 white balance calibration parameter, wherein, N1 and N2 be added and equal N.
7. an electronic equipment, described electronic equipment can carry out white balance calibration process to an image, it is characterized in that, described electronic equipment comprises:
First obtains unit, and for obtaining N number of profile information of M image object of an image to be calibrated, wherein, described M, N are the integer being more than or equal to 2, and N is less than or equal to M;
Second obtains unit, obtains unit and is connected, for based on described N number of profile information, obtain N number of white balance calibration parameter of N number of image object corresponding with described N number of profile information in M image object with described first;
First processing unit, obtains unit be connected with described second, for according to described N number of white balance calibration parameter, carry out white balance calibration process to described N number of image object.
8. electronic equipment as claimed in claim 7, is characterized in that, described first obtains unit specifically comprises:
First obtains subelement, for obtaining M profile information of M image object of described image to be calibrated;
Whether second obtains subelement, obtains subelement be connected with described first, satisfied one pre-conditioned for judging that each area in M the area that a described M profile information is corresponding accounts for the ratio value of described image area to be calibrated, obtains M judged result;
3rd obtains subelement, obtains subelement be connected, for determining that from a described M judged result ratio value meets described pre-conditioned N number of judged result with described second;
4th obtains subelement, obtains subelement be connected, for obtaining N number of profile information of N number of image object corresponding to described N number of judged result with the described 3rd.
9. electronic equipment as claimed in claim 8, is characterized in that, described second obtains unit specifically comprises:
5th obtains subelement, and for treating calibration chart picture first grey dot information is added up, and obtains the full frame white balance calibration parameter of image to be calibrated;
6th obtains subelement, for adding up the picture characteristics information obtaining each profile information is corresponding in described N number of profile information RGB characteristic information and necessity;
7th obtains subelement, obtain subelement, the 6th respectively to obtain subelement be connected with the described 5th, for based on described N number of RGB characteristic information and described N number of picture characteristics information, described full frame white balance parameter compensated or suppresses process, obtaining N number of white balance calibration parameter.
10. electronic equipment as claimed in claim 9, it is characterized in that, described first processing unit is specially: RGB characteristic processing unit, for utilizing described N number of white balance calibration parameter, calibration process is carried out to the RGB characteristic of described N number of image object, to realize calibrating described N number of image object white balance.
11. electronic equipments as claimed in claim 8, is characterized in that, described second obtains unit specifically comprises:
8th obtains subelement, for adding up the ash point in described N number of profile information respectively, obtaining N number of second ash and counting;
9th obtains subelement, obtaining subelement and is connected, for counting according to described N number of second ash, obtaining described N number of white balance calibration parameter with the described 8th.
12. electronic equipments as claimed in claim 11, is characterized in that, the described 9th obtains subelement specifically comprises:
Tenth obtains subelement, when being greater than or equal to a threshold value for there being in counting when described N number of second ash N1 the second ash to count, counting, obtain N1 white balance calibration parameter according to individual second ash of described N1;
11 obtains subelement, when being less than described threshold value for there being in counting when described N number of second ash N2 the second ash to count, individual 3rd ash of N2 obtained respectively in similar individual first contour area of N2 of the RGB characteristic of a corresponding N2 contour area of counting with described N2 the second ash is counted, and count based on described N2 the 3rd ash, obtain N2 white balance calibration parameter, wherein, N1 and N2 be added and equal N.
CN201210575551.1A 2012-12-26 2012-12-26 A kind of method and electronic equipment adjusting white balance Active CN103905804B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201210575551.1A CN103905804B (en) 2012-12-26 2012-12-26 A kind of method and electronic equipment adjusting white balance

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201210575551.1A CN103905804B (en) 2012-12-26 2012-12-26 A kind of method and electronic equipment adjusting white balance

Publications (2)

Publication Number Publication Date
CN103905804A CN103905804A (en) 2014-07-02
CN103905804B true CN103905804B (en) 2016-03-02

Family

ID=50996927

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201210575551.1A Active CN103905804B (en) 2012-12-26 2012-12-26 A kind of method and electronic equipment adjusting white balance

Country Status (1)

Country Link
CN (1) CN103905804B (en)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106033596B (en) * 2015-03-16 2019-07-26 联想(北京)有限公司 A kind of information processing method and electronic equipment
CN105163099A (en) * 2015-10-30 2015-12-16 努比亚技术有限公司 While balance adjustment method and device and mobile terminal
CN105872500A (en) * 2015-12-08 2016-08-17 乐视移动智能信息技术(北京)有限公司 Adjusting method and device for white balance of image
CN107277479B (en) * 2017-07-10 2020-06-05 Oppo广东移动通信有限公司 White balance processing method and device
CN113225546A (en) * 2021-04-25 2021-08-06 Oppo广东移动通信有限公司 Color temperature adjusting method and device, electronic equipment and computer readable storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101262617A (en) * 2007-03-02 2008-09-10 富士胶片株式会社 White balance correction apparatus and method
CN101442679A (en) * 2007-11-23 2009-05-27 佛山市顺德区顺达电脑厂有限公司 Automatic white balance control system, white balance module and method thereof
TW200952501A (en) * 2008-06-11 2009-12-16 Vatics Inc Method for auto-white-balance control
US7778481B2 (en) * 2005-01-28 2010-08-17 Fujifilm Corporation Apparatus and method for image processing including photometry and colorimetry

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP4325599B2 (en) * 2005-08-25 2009-09-02 ソニー株式会社 Imaging apparatus and display control method

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7778481B2 (en) * 2005-01-28 2010-08-17 Fujifilm Corporation Apparatus and method for image processing including photometry and colorimetry
CN101262617A (en) * 2007-03-02 2008-09-10 富士胶片株式会社 White balance correction apparatus and method
CN101442679A (en) * 2007-11-23 2009-05-27 佛山市顺德区顺达电脑厂有限公司 Automatic white balance control system, white balance module and method thereof
TW200952501A (en) * 2008-06-11 2009-12-16 Vatics Inc Method for auto-white-balance control

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
An automatic white balance method based on edge detection;Jinlong Lin;《Proc of The 10th International Symposium on Consumer Electronics》;20060104;第1-4页 *
改进的LoG边缘自动白平衡算法;赵全友 等;《计算机应用研究》;20090228;第26卷(第2期);第775-777、780页 *

Also Published As

Publication number Publication date
CN103905804A (en) 2014-07-02

Similar Documents

Publication Publication Date Title
CN103905804B (en) A kind of method and electronic equipment adjusting white balance
US11218630B2 (en) Global tone mapping
CN103297789B (en) White balance correcting method and white balance correcting device
US9842381B2 (en) Global tone mapping
CN102271260B (en) Method for adjusting white balance
CN103826066B (en) Automatic exposure adjusting method and system
US11323677B2 (en) White balance adjustment method and apparatus, camera and medium
US8164649B2 (en) White balance adjusting device, imaging apparatus, and recording medium storing white balance adjusting program
CN104618702B (en) A kind of digital camera auto white balance method supposed based on white block
CN104580925A (en) Image brightness controlling method, device and camera
US8781225B2 (en) Automatic tone mapping method and image processing device
US10032402B2 (en) Power and brightness management of solid-state displays
CN105578166A (en) Color temperature determination method and device
TW200632771A (en) Automatic white balance method applicable for color digital image
CN108364271B (en) Method and device for improving image contrast
JP2014216019A (en) Image noise reduction method and image noise reduction device
CN105096910A (en) Image processing method
MX2020005813A (en) Improved high dynamic range video color remapping.
CN108009997A (en) Method and device for adjusting image contrast
CN104376540B (en) Bayer image denoising method
CN101729913A (en) Method and system for adjusting image saturation
US9460652B2 (en) Display device and method for controlling display device
CN103826113A (en) Color reducing method and device
US8212891B2 (en) Apparatus, methods and computer readable storage mediums
CN110807735A (en) Image processing method, image processing device, terminal equipment and computer readable storage medium

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