CN103905804A - Method of adjusting white balance and electronic equipment - Google Patents

Method of adjusting white balance and electronic equipment Download PDF

Info

Publication number
CN103905804A
CN103905804A CN201210575551.1A CN201210575551A CN103905804A CN 103905804 A CN103905804 A CN 103905804A CN 201210575551 A CN201210575551 A CN 201210575551A CN 103905804 A CN103905804 A CN 103905804A
Authority
CN
China
Prior art keywords
white balance
ash
obtains
profile information
balance calibration
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
CN201210575551.1A
Other languages
Chinese (zh)
Other versions
CN103905804B (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

Images

Landscapes

  • Color Television Image Signal Generators (AREA)
  • Processing Of Color Television Signals (AREA)

Abstract

The invention discloses a method of adjusting white balance, which is applied to electronic equipment. The method comprises steps of acquiring information of N profiles of M image objects of a to-be-corrected image, acquiring N white balance correction parameters of N image objects corresponding to information of N profiles in the M image objects on the basis of the information of N profiles, and carrying out white balance correction processing on the N image objects according to the N white balance correction parameters, wherein both M and N are integers no less than 2, and N is smaller than or equal to M. In addition, the invention also discloses the electronic equipment corresponding to the above method of adjusting white balance.

Description

A kind of method and electronic equipment of adjusting white balance
Technical field
The present invention relates to communication and electronic applications, particularly a kind of method and electronic equipment of adjusting white balance.
Background technology
Along with scientific and technical development, camera also enters the digital camera epoch from film camera, and often need the white balance parameter of camera to adjust in the time using digital camera to take, so that captured go out photo undistorted, if the white balance parameter to camera is not calibrated before shooting, shooting the processing that also needs with image processing software, captured photo to be carried out white balance calibration after photo, the digital camera field that is aligned in of visible white balance is very important.
In prior art in the time that the image to be calibrated carries out white balance calibration, the technical scheme adopting is: the whole two field picture for the treatment of 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 RGB gain by this unified white balance calibration parameter.
But the inventor realizing in the process of invention technical scheme in the embodiment of the present invention, finds that above-mentioned technology at least exists following technical problem:
(1) because the whole two field picture that adopts the white balance calibration parameter obtaining for full frame image ash point to treat calibration chart picture carries out white balance calibration, so prior art exists the technical problem that can not do to all regions with general character in image more accurate white balance calibration.
(2) owing to can not image being carried out to white balance calibration more accurately, so, can make the color expressive force of the image after calibration have distortion to a certain degree.
Summary of the invention
The embodiment of the present invention is by providing a kind of method of adjusting white balance, solved the technical problem that can not do to all regions with general character in image more accurate white balance calibration existing in prior art.
For solving the problems of the technologies described above, the embodiment of the present invention provides a kind of method of adjusting white balance, is applied in an electronic equipment, and described method comprises:
N the profile information that obtains M image object of an image to be calibrated, wherein, described M, N are the integer that is more than or equal to 2, and N is less than or equal to M;
Based on a described N profile information, obtain N white balance calibration parameter of N image object corresponding with a described N profile information in M image object;
According to described N white balance calibration parameter, a described N image object is carried out to white balance calibration processing.
Preferably, N 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 ratio value and meet a described pre-conditioned N judged result;
Obtain N profile information of N image object corresponding to a described N judged result.
Preferably, described based on a described N profile information, obtain N white balance calibration parameter of N image object corresponding with a described N profile information in M image object, specifically comprise:
Treat the first grey dot information of calibration chart picture and add up, obtain the full frame white balance calibration parameter of image to be calibrated;
Statistics obtains RGB characteristic information and the necessary picture characteristics information that in a described N profile information, each profile information is corresponding;
Based on described N RGB characteristic information and described N picture characteristics information, described full frame white balance parameter is compensated or suppressed and process, obtain N white balance calibration parameter.
Preferably, according to described N white balance calibration parameter, described N the corresponding N of a white balance calibration parameter image object carried out to white balance calibration processing, is specially:
Utilize described N white balance calibration parameter, the RGB characteristic of a described N image object is carried out to calibration process, to realize, described N image object white balance calibrated.
Preferably, described based on a described N profile information, obtain N white balance calibration parameter of N image object corresponding with a described N profile information in M image object, specifically comprise:
Respectively the ash point in a described N profile information is added up, obtained N the second ash and count;
Count according to described N the second ash, obtain described N white balance calibration parameter.
Preferably, describedly count according to described N the second ash, obtain described N white balance calibration parameter, be specially:
In described N the second ash counted, there is N1 the second ash to count while being greater than or equal to a threshold value, count according to described N1 the second ash, obtain N1 white balance calibration parameter;
In counting, described N the second ash have N2 the second ash to count while being less than described threshold value, obtaining respectively individual the 3rd ash of N2 of counting in similar individual the first contour area of N2 of the RGB characteristic of a corresponding N2 contour area with described N2 the second ash counts, 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 embodiment of the present invention separately provides a kind of corresponding electronic equipment of method of adjusting white balance, the technical problem that can not do to all regions with general character in image more accurate white balance calibration existing for solving prior art equally.Described electronic equipment can carry out white balance calibration processing to an image, and described electronic equipment comprises:
First obtains unit, and for obtaining N the profile information of M image object of an image to be calibrated, wherein, described M, N are the integer that is more than or equal to 2, and N is less than or equal to M;
Second obtains unit, is connected with described the first acquisition unit, for based on a described N profile information, obtains N white balance calibration parameter of N image object corresponding with a described N profile information in M image object;
The first processing unit, is connected with described the second acquisition unit, for according to described N white balance calibration parameter, a described N image object is carried out to white balance calibration processing.
Preferably, described the first acquisition unit specifically comprises:
First obtains subelement, for obtaining M the profile information of M image object of described image to be calibrated;
Whether second obtains subelement, obtains subelement and is connected with described first, satisfied one pre-conditioned for judging that M the each area of 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;
The 3rd obtains subelement, is connected with described the second acquisition subelement, meets a described pre-conditioned N judged result for determine ratio value from a described M judged result;
The 4th obtains subelement, is connected, for obtaining N profile information of N image object corresponding to a described N judged result with described the 3rd acquisition subelement.
Preferably, described the second acquisition unit specifically comprises:
The 5th obtains subelement, adds up for the first grey dot information for the treatment of calibration chart picture, obtains the full frame white balance calibration parameter of image to be calibrated;
The 6th obtains subelement, for adding up RGB characteristic information and the necessary picture characteristics information that each profile information of a described N profile information is corresponding that obtains;
The 7th obtains subelement, obtaining subelement with described the 5th acquisition subelement, the 6th is respectively connected, for based on described N RGB characteristic information and described N picture characteristics information, described full frame white balance parameter is compensated or suppressed and process, obtain N white balance calibration parameter.
Preferably, described the first processing unit is specially: RGB characteristic processing unit, for utilizing described N white balance calibration parameter, the RGB characteristic of a described N image object is carried out to calibration process, and to realize, described N image object white balance calibrated.
Preferably, described the second acquisition unit specifically comprises:
The 8th obtains subelement, adds up for the ash point to a described N profile information respectively, obtains individual the second ash of N and counts;
The 9th obtains subelement, is connected with described the 8th acquisition subelement, for counting according to described N the second ash, obtains described N white balance calibration parameter.
Preferably, described the 9th acquisition subelement specifically comprises:
The tenth obtains subelement, counts while being greater than or equal to a threshold value for N1 the second ash of having counted when described N the second ash, counts according to individual the second ash of described N1, obtains N1 white balance calibration parameter;
The 11 obtains subelement, count while being less than described threshold value for individual the second ash of N2 of having counted when described N the second ash, obtaining respectively individual the 3rd ash of N2 of counting in similar individual the first contour area of N2 of the RGB characteristic of a corresponding N2 contour area with described N2 the second ash counts, 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 that provide 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 profiles, use the technical scheme of different white balance calibration parameters according to each profile.Solve the technical problem that can not do to all regions with general character in image more accurate white balance calibration existing in prior art, there is the technique effect that can do to all regions with general character in image more accurate white balance calibration.
(2) in addition, divide profile, and then do white balance calibration according to differently contoured region owing to adopting according to the general character existing in image, therefore, can allow the white balance of the various zoness of different of image to be calibrated and object more accurate, color expressive force is more true to nature.
Brief description of the drawings
Fig. 1 is the particular flow sheet of a kind of method of adjusting 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 that in the embodiment of the present application method, the full frame white balance calibration parameter based on whole image to be calibrated is carried out white balance calibration to N image object;
Fig. 4 is the specific implementation flow chart that obtains respectively the white balance calibration parameter that is applicable to this profile in the embodiment of the present application method based on N profile information;
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 be in the embodiment of the present application electronic equipment in the time that the full frame white balance calibration parameter based on whole image to be calibrated is carried out white balance calibration to N image object, second obtains the concrete structure figure of unit 502;
Fig. 8 is when in the embodiment of the present application, electronic equipment obtains respectively based on N profile information the white balance calibration parameter that is applicable to this profile, and second obtains the concrete structure figure of unit 502.
Embodiment
The embodiment of the present application is by providing a kind of method and electronic equipment of adjusting white balance, solved the technical problem that can not do to all regions with general character in image more accurate white balance calibration existing 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 of taking is as follows:
First, obtain N profile information of M image object of an image to be calibrated, wherein, described M, N are the integer that is 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.; Obtaining after N profile information, and then based on a described N profile information, obtaining N white balance calibration parameter of N image object corresponding with a described N profile information in M image object; Obtaining after N white balance calibration parameter, finally, according to N the white balance calibration parameter obtaining, respectively this N the corresponding N of a white balance calibration parameter image object carried out to white balance calibration processing.Process image later by technique scheme, its color expressive force will be more true to nature, and the white balance calibration of image also can be more accurate.
In order better to understand technique scheme, below in conjunction with Figure of description and concrete execution mode, technique scheme is described in detail, and this technical scheme is done to optimization process.
A kind of method of adjusting white balance that the embodiment of the present application provides, in order to solve the technical problem that can not do to all regions with general character in image more accurate white balance calibration existing 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: obtain N profile information of M image object of an image to be calibrated, wherein, described M, N are the integer that is more than or equal to 2, and N is less than or equal to M;
In specific implementation process, in one pictures, can comprise M image object, we can obtain its corresponding M profile information according to the image object of the M in picture, but in concrete practical application, this M profile information might not all will carry out the processing of white balance calibration, because, the profile information that may exist some to there is no need to carry out white balance processing in M profile information, for example, the very little region of area accounting in whole picture; 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 obtaining, but also have equal situation.Criterion is that the area of the whole picture that accounts for according to profile information goes judgement.Therefore, in specific implementation process, obtain M image object of image to be calibrated N profile information specific implementation flow chart as shown in Figure 2, comprising:
Step 201: M the profile information that obtains M image object of described image to be calibrated; For example, in image to be calibrated, there are house, sky, white clouds, little careless 4 image objects, can obtain house, sky, white clouds, little careless 4 profile informations.
Obtaining after a described M profile information, just entering step 202: 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 whether satisfied one pre-conditioned, obtain M judged result; As the example in step 201, can judge in this step house, sky, white clouds, little careless 4 areas that profile information accounts 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%, can judge 43 shared areas of house, sky, white clouds in profile information meets pre-conditioned, little careless 1 shared area does not meet pre-conditioned, meet pre-conditioned judged result thereby obtain 3,1 does not meet pre-conditioned result.
Obtaining, after a described M judged result, just entering step 203: from a described M judged result, determine ratio value and meet a described pre-conditioned N judged result; Example from step 202 can draw, meets pre-conditioned 3 judged results that have in 4 judged results.
Obtaining after a described N judged result, just enter step step 204: N the profile information that obtains N image object corresponding to a described N judged result.According to aforesaid example, in this step, can obtain 3 and meet 3 pre-conditioned profile informations that the corresponding house of judged result, sky, white clouds are needs.
Obtaining after a described N profile information, described method just enters step 102: based on a described N profile information, obtain N white balance calibration parameter of N image object corresponding with a described N 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 is carried out white balance calibration to N image object, and its specific implementation flow process as shown in Figure 3, comprising:
Step 301: the first grey dot information for the treatment of calibration chart picture is added up, obtains the full frame white balance calibration parameter of image to be calibrated;
Step 302: statistics obtains RGB characteristic information and the necessary picture characteristics information that in a described N profile information, each profile information is corresponding; For example, according to aforesaid example, in this step, need to obtain RGN characteristic information and the necessary picture characteristics information of house, sky, 3 profile informations of white clouds, and necessary picture characteristics information specifically can comprise the image parameter information such as the brightness, acutance, noise of image.
Obtaining after RGB characteristic information that in a full frame white balance calibration parameter and N profile information, each profile information is corresponding and necessary picture characteristics information, just enter step 303: based on described N RGB characteristic information and described N picture characteristics information, described full frame white balance parameter is compensated or suppressed and process, obtain N white balance calibration parameter.For example, according to aforesaid example, after the RGN characteristic information of acquisition house, sky, 3 profile informations of white clouds and the picture characteristics information of necessity, by full frame white balance calibration parameter is compensated or suppressed, obtain respectively house, sky, the corresponding white balance calibration parameter of 3 profile informations of white clouds.For example, for sky, itself B(blueness) value is relatively high, and when relative populations reaches a certain amount of, can think that this region itself is should B passage relatively strong, when so this region calibration, thereby can do suitable compensation to the B Gain calibration parameter in full frame white balance calibration parameter and obtain the white balance calibration parameter that is applicable to day dummy section, and work as for house, if find that in the time that house is added up the noise in image parameter information is relatively heavier, the Gain of so each passage is difficult for too large, now just need to suitably suppress full frame white balance calibration parameter, thereby obtain the white balance calibration parameter that is suitable for adjusting region, house.
The second implementation of step 102 is: obtain respectively the white balance calibration parameter that is applicable to this profile based on N profile information, its specific implementation flow chart as shown in Figure 4, comprising:
Step 401: respectively the ash point in a described N profile information is added up, obtained N the second ash and count;
After N the second ash of acquisition counted, just enter step 402: count according to described N the second ash, obtain described N white balance calibration parameter.
This step is in concrete implementation process, only have when the second ash and count and just think that the second such ash is counted while reaching certain value and count for effective ash, general way is to count and set a threshold value for ash, when the second ash is counted while being greater than or equal to the threshold value of setting, think that the second ash is now counted and count for effective ash, can the second ash based on now count and obtain corresponding with it white balance calibration parameter, and count while being less than the threshold value of setting when the second ash, thinking that the second ash is now counted is not that effective ash counts, the white balance calibration parameter that at this moment will obtain this kind of profile need to be counted and count as the ash of this contour area by the 3rd ash of other region or full frame statistics, and count and obtain the white balance calibration parameter that is applicable to this contour area based on the 3rd ash, in concrete practical application, generally need to select Color Channel and the ash ash point replacement area of the most similar region of corresponding contour area while not reaching threshold value as this contour area of counting.For example, give an example according to aforesaid, if counting, the ash in white clouds profile do not reach setting threshold, and the RGB passage in house and white clouds are the most approaching, now needing to select ash that in house, statistics obtains to count counts as the ash in white clouds, count according to this ash again, obtain being applicable to the white balance calibration parameter in white clouds region.Therefore, the specific implementation process of step 402 is divided into following two kinds of situations,
The first situation is: in described N the second ash counted, have N1 the second ash to count while being greater than or equal to a threshold value, count according to described N1 the second ash, obtain N1 white balance calibration parameter, such as house and sky in aforementioned giving an example are applicable to this white balance calibration gain of parameter mode.
The second situation is: in described N the second ash counted, have N2 the second ash to count while being less than described threshold value, obtaining respectively individual the 3rd ash of N2 of counting in similar individual the first contour area of N2 of the RGB characteristic of a corresponding N2 contour area with described N2 the second ash counts, and count based on described N2 the 3rd ash, obtain N2 white balance calibration parameter, wherein, that N1 and N2 are added and equal N, such as aforementioned white clouds in for example are applicable to this white balance calibration gain of parameter mode.
Obtaining after described N white balance calibration parameter, described method just enters step 103: according to described N white balance calibration parameter, a described N image object is carried out to white balance calibration processing.
In specific implementation process, the specific implementation of step 103 is: utilize described N white balance calibration parameter, the RGB characteristic of a described N image object is carried out to calibration process, to realize, described N image object white balance calibrated.White balance calibration essence is exactly that the RGB characteristic in image is calibrated, so that the performance of image is 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 there is no the white balance calibration parameter for little grass, if the white balance calibration parameter in the house obtaining by step 102 is the R(redness in compensation house image-region), the white balance calibration parameter of sky is the B(blueness in compensation sky image region), and the white balance calibration parameter of white clouds is to suppress the G(green of white clouds image-region), utilizing above-mentioned white balance parameter to house, sky, when white clouds carry out white balance calibration, R passage in house image is strengthened to processing, B passage in sky image is also strengthened to processing, G passage in dialogue cloud atlas picture weakens processing.And then realize described N image object white balance calibrated, because white balance calibration is that the RGB characteristic in image is calibrated, so the image after calibration can be more accurate and undistorted in color representation.
Based on same inventive concept, the embodiment of the present invention separately provides the method for a kind of and above-mentioned adjustment white balance corresponding electronic equipment, the technical problem that can not do to all regions with general character in image more accurate white balance calibration existing for solving prior art.In concrete practical application; electronic equipment can be the electronic equipment with camera function or image processing function such as mobile phone, digital camera, MP4, PAD, computer; as long as can realize picture is carried out to the electronic equipment of white balance processing all should be in the claimed scope of the application; therefore; the most basic function that electronic equipment in the embodiment of the present application has is and can carries out white balance calibration processing to an image; the concrete structure of described electronic equipment as shown in Figure 5, comprising:
First obtains unit 501, and for obtaining N the profile information of M image object of an image to be calibrated, wherein, described M, N are the integer that is more than or equal to 2, and N is less than or equal to M;
Second obtains unit 502, is connected with described the first acquisition unit 501, for based on a described N profile information, obtains N white balance calibration parameter of N image object corresponding with a described N profile information in M image object;
The first processing unit 503, is connected with described the second acquisition unit 502, for according to described N white balance calibration parameter, a described N image object is carried out to white balance calibration processing.
In specific implementation process, as shown in Figure 6, described first obtains unit 501 specifically comprises:
First obtains subelement 5011, for obtaining M the profile information of M image object of described image to be calibrated;
Whether second obtains subelement 5012, obtains subelement 5011 and is connected with described first, satisfied one pre-conditioned for judging that M the each area of 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;
The 3rd obtains subelement 5013, is connected with described the second acquisition subelement 5012, meets a described pre-conditioned N judged result for determine ratio value from a described M judged result;
The 4th obtains subelement 5014, is connected, for obtaining N profile information of N image object corresponding to a described N judged result with described the 3rd acquisition subelement 5013.
In specific implementation process, in the time that the full frame white balance calibration parameter based on whole image to be calibrated is carried out white balance calibration to N image object, the concrete structure of described the second acquisition unit 502 as shown in Figure 7, comprising:
The 5th obtains subelement 5021, adds up for the first grey dot information for the treatment of calibration chart picture, obtains the full frame white balance calibration parameter of image to be calibrated;
The 6th obtains subelement 5022, for adding up RGB characteristic information and the necessary picture characteristics information that each profile information of a described N profile information is corresponding that obtains;
The 7th obtains subelement 5023, obtaining subelement 5022 with described the 5th acquisition subelement 5021, the 6th is respectively connected, be used for based on described N RGB characteristic information and described N picture characteristics information, described full frame white balance parameter is compensated or suppressed and process, obtain N white balance calibration parameter.
In specific implementation process, described the first processing unit 503 is specially: RGB characteristic processing unit, be used for utilizing described N white balance calibration parameter, the RGB characteristic of a described N image object is carried out to calibration process, to realize, described N image object white balance calibrated.
In specific implementation process, in the time obtaining respectively based on N profile information the white balance calibration parameter that is applicable to this profile, the concrete structure of described the second acquisition unit 502 as shown in Figure 8, comprising:
The 8th obtains subelement 5024, adds up for the ash point to a described N profile information respectively, obtains individual the second ash of N and counts;
The 9th obtains subelement 5025, is connected with described the 8th acquisition subelement 5024, for counting according to described N the second ash, obtains described N white balance calibration parameter.
In specific implementation process, the described the 9th obtains subelement 5025 specifically comprises again: the tenth obtains subelement, count while being greater than or equal to a threshold value for N1 the second ash of having counted when described N the second ash, count according to individual the second ash of described N1, obtain N1 white balance calibration parameter; The 11 obtains subelement, count while being less than described threshold value for individual the second ash of N2 of having counted when described N the second ash, obtaining respectively individual the 3rd ash of N2 of counting in similar individual the first contour area of N2 of the RGB characteristic of a corresponding N2 contour area with described N2 the second ash counts, and count based on described N2 the 3rd ash, obtain N2 white balance calibration parameter, wherein, N1 and N2 be added and equal N.
Due to electronic equipment be with a kind of aforementioned method of adjusting white balance to corresponding device, therefore, the application is no longer illustrated electronic equipment at this.
Be not limited to above the scope of this structure for the explanation of electronic equipment concrete structure; the function of concrete structure both can hardware mode realizes also mode that can software, and every can substitute lifted concrete structure and can complete the structure of the function that this concrete structure has all should be in the claimed scope of the application.
By the one or more technical schemes in the embodiment of the present application, can be achieved as follows technique effect:
(1) due to adopt by image to be calibrated according to different target objects, mark off multiple different profiles, use the technical scheme of different white balance calibration parameters according to each profile.Solve the technical problem that can not do to all regions with general character in image more accurate white balance calibration existing in prior art, there is the technique effect that can do to all regions with general character in image more accurate white balance calibration.
(2) in addition, divide profile, and then do white balance calibration according to differently contoured region owing to adopting according to the general character existing in image, therefore, can allow the white balance of the various zoness 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 other execution mode, belongs to equally technological innovation scope of the present invention.
Obviously, those skilled in the art can carry out various changes and modification and not depart from the spirit and scope of the present invention the present invention.Like this, if these amendments of the present invention and within modification belongs to the scope of the claims in the present invention and equivalent technologies thereof, the present invention is also intended to comprise these changes and modification interior.

Claims (12)

1. adjust a method for white balance, be applied in an electronic equipment, it is characterized in that, described method comprises:
N the profile information that obtains M image object of an image to be calibrated, wherein, described M, N are the integer that is more than or equal to 2, and N is less than or equal to M;
Based on a described N profile information, obtain N white balance calibration parameter of N image object corresponding with a described N profile information in M image object;
According to described N white balance calibration parameter, a described N image object is carried out to white balance calibration processing.
2. the method for claim 1, is characterized in that, N 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 ratio value and meet a described pre-conditioned N judged result;
Obtain N profile information of N image object corresponding to a described N judged result.
3. method as claimed in claim 2, is characterized in that, described based on a described N profile information, obtains N white balance calibration parameter of N image object corresponding with a described N profile information in M image object, specifically comprises:
Treat the first grey dot information of calibration chart picture and add up, obtain the full frame white balance calibration parameter of image to be calibrated;
Statistics obtains RGB characteristic information and the necessary picture characteristics information that in a described N profile information, each profile information is corresponding;
Based on described N RGB characteristic information and described N picture characteristics information, described full frame white balance parameter is compensated or suppressed and process, obtain N white balance calibration parameter.
4. method as claimed in claim 3, is characterized in that, according to described N white balance calibration parameter, described N the corresponding N of a white balance calibration parameter image object is carried out to white balance calibration processing, is specially:
Utilize described N white balance calibration parameter, the RGB characteristic of a described N image object is carried out to calibration process, to realize, described N image object white balance calibrated.
5. method as claimed in claim 2, is characterized in that, described based on a described N profile information, obtains N white balance calibration parameter of N image object corresponding with a described N profile information in M image object, specifically comprises:
Respectively the ash point in a described N profile information is added up, obtained N the second ash and count;
Count according to described N the second ash, obtain described N white balance calibration parameter.
6. method as claimed in claim 5, is characterized in that, describedly counts according to described N the second ash, obtains described N white balance calibration parameter, is specially:
In described N the second ash counted, there is N1 the second ash to count while being greater than or equal to a threshold value, count according to described N1 the second ash, obtain N1 white balance calibration parameter;
In counting, described N the second ash have N2 the second ash to count while being less than described threshold value, obtaining respectively individual the 3rd ash of N2 of counting in similar individual the first contour area of N2 of the RGB characteristic of a corresponding N2 contour area with described N2 the second ash counts, 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 processing to an image, it is characterized in that, and described electronic equipment comprises:
First obtains unit, and for obtaining N the profile information of M image object of an image to be calibrated, wherein, described M, N are the integer that is more than or equal to 2, and N is less than or equal to M;
Second obtains unit, is connected with described the first acquisition unit, for based on a described N profile information, obtains N white balance calibration parameter of N image object corresponding with a described N profile information in M image object;
The first processing unit, is connected with described the second acquisition unit, for according to described N white balance calibration parameter, a described N image object is carried out to white balance calibration processing.
8. electronic equipment as claimed in claim 7, is characterized in that, described first obtains unit specifically comprises:
First obtains subelement, for obtaining M the profile information of M image object of described image to be calibrated;
Whether second obtains subelement, obtains subelement and is connected with described first, satisfied one pre-conditioned for judging that M the each area of 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;
The 3rd obtains subelement, is connected with described the second acquisition subelement, meets a described pre-conditioned N judged result for determine ratio value from a described M judged result;
The 4th obtains subelement, is connected, for obtaining N profile information of N image object corresponding to a described N judged result with described the 3rd acquisition subelement.
9. electronic equipment as claimed in claim 8, is characterized in that, described second obtains unit specifically comprises:
The 5th obtains subelement, adds up for the first grey dot information for the treatment of calibration chart picture, obtains the full frame white balance calibration parameter of image to be calibrated;
The 6th obtains subelement, for adding up RGB characteristic information and the necessary picture characteristics information that each profile information of a described N profile information is corresponding that obtains;
The 7th obtains subelement, obtaining subelement with described the 5th acquisition subelement, the 6th is respectively connected, for based on described N RGB characteristic information and described N picture characteristics information, described full frame white balance parameter is compensated or suppressed and process, obtain N white balance calibration parameter.
10. electronic equipment as claimed in claim 9, it is characterized in that, described the first processing unit is specially: RGB characteristic processing unit, be used for utilizing described N white balance calibration parameter, RGB characteristic to a described N image object is carried out calibration process, to realize, described N image object white balance is calibrated.
11. electronic equipments as claimed in claim 8, is characterized in that, described second obtains unit specifically comprises:
The 8th obtains subelement, adds up for the ash point to a described N profile information respectively, obtains individual the second ash of N and counts;
The 9th obtains subelement, is connected with described the 8th acquisition subelement, for counting according to described N the second ash, obtains described N white balance calibration parameter.
12. electronic equipments as claimed in claim 11, is characterized in that, the described the 9th obtains subelement specifically comprises:
The tenth obtains subelement, counts while being greater than or equal to a threshold value for N1 the second ash of having counted when described N the second ash, counts according to individual the second ash of described N1, obtains N1 white balance calibration parameter;
The 11 obtains subelement, count while being less than described threshold value for individual the second ash of N2 of having counted when described N the second ash, obtaining respectively individual the 3rd ash of N2 of counting in similar individual the first contour area of N2 of the RGB characteristic of a corresponding N2 contour area with described N2 the second ash counts, 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 true CN103905804A (en) 2014-07-02
CN103905804B 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)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
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
CN106033596A (en) * 2015-03-16 2016-10-19 联想(北京)有限公司 Information processing method and electronic device
WO2019011148A1 (en) * 2017-07-10 2019-01-17 Oppo广东移动通信有限公司 White balance processing method and apparatus
CN113225546A (en) * 2021-04-25 2021-08-06 Oppo广东移动通信有限公司 Color temperature adjusting method and device, electronic equipment and computer readable storage medium

Citations (5)

* 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
US20110122286A1 (en) * 2005-08-25 2011-05-26 Sony Corporation Image pickup apparatus and display control method

Patent Citations (5)

* 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
US20110122286A1 (en) * 2005-08-25 2011-05-26 Sony Corporation Image pickup apparatus and display control method
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
JINLONG LIN: "An automatic white balance method based on edge detection", 《PROC OF THE 10TH INTERNATIONAL SYMPOSIUM ON CONSUMER ELECTRONICS》 *
赵全友 等: "改进的LoG边缘自动白平衡算法", 《计算机应用研究》 *

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106033596A (en) * 2015-03-16 2016-10-19 联想(北京)有限公司 Information processing method and electronic device
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
WO2017096858A1 (en) * 2015-12-08 2017-06-15 乐视控股(北京)有限公司 Method and device for calibrating white balance of images
WO2019011148A1 (en) * 2017-07-10 2019-01-17 Oppo广东移动通信有限公司 White balance processing method and apparatus
US11082677B2 (en) 2017-07-10 2021-08-03 Guangdong Oppo Mobile Telecommunications Corp., Ltd. White balance processing method and apparatus
CN113225546A (en) * 2021-04-25 2021-08-06 Oppo广东移动通信有限公司 Color temperature adjusting method and device, electronic equipment and computer readable storage medium

Also Published As

Publication number Publication date
CN103905804B (en) 2016-03-02

Similar Documents

Publication Publication Date Title
CN103297789B (en) White balance correcting method and white balance correcting device
EP2323373B1 (en) Video enhancing method and device thereof
CN107680056B (en) Image processing method and device
CN104580925A (en) Image brightness controlling method, device and camera
RU2523027C1 (en) Flash synchronisation using image sensor interface timing signal
EP3674967B1 (en) Image signal processing method, apparatus and device
CN102271260B (en) Method for adjusting white balance
CN103905804A (en) Method of adjusting white balance and electronic equipment
WO2021208706A1 (en) High dynamic range image composition method and device, image processing chip and aerial camera
US20200120321A1 (en) White balance adjustment method and apparatus, camera and medium
CN104618702B (en) A kind of digital camera auto white balance method supposed based on white block
CN106897981A (en) A kind of enhancement method of low-illumination image based on guiding filtering
US8781225B2 (en) Automatic tone mapping method and image processing device
CN103714520A (en) Digital video image enhancement achieving system and method based on FPGA
JP2014216019A (en) Image noise reduction method and image noise reduction device
CN202190327U (en) Low-illumination camera imaging control device and shooting system
CN105282529A (en) RAW space based digital wide dynamic method and device
DE102016105753A1 (en) Method and apparatus for determining lens tint correction for a multiple camera device with different fields of view
CN105578165A (en) Method and device for processing white balance of image, and vidicon
CN108364271B (en) Method and device for improving image contrast
CN107077830B (en) Screen brightness adjusting method suitable for unmanned aerial vehicle control end and unmanned aerial vehicle control end
KR20180035863A (en) Image contrast enhancement method
CN102402970B (en) Method and device for adjusting contrast of display screen
CN105611182A (en) Method and device for brightness compensation
US8212891B2 (en) Apparatus, methods and computer readable storage mediums

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