CN103327345A - White balance processing method and processing device thereof - Google Patents
White balance processing method and processing device thereof Download PDFInfo
- Publication number
- CN103327345A CN103327345A CN2012100729686A CN201210072968A CN103327345A CN 103327345 A CN103327345 A CN 103327345A CN 2012100729686 A CN2012100729686 A CN 2012100729686A CN 201210072968 A CN201210072968 A CN 201210072968A CN 103327345 A CN103327345 A CN 103327345A
- Authority
- CN
- China
- Prior art keywords
- image
- cutting apart
- block
- block image
- input image
- 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
Links
- 238000012545 processing Methods 0.000 title claims abstract description 27
- 238000003672 processing method Methods 0.000 title abstract 4
- 238000000034 method Methods 0.000 claims abstract description 52
- 230000008569 process Effects 0.000 claims abstract description 17
- 238000004364 calculation method Methods 0.000 claims abstract description 7
- 238000012797 qualification Methods 0.000 claims description 42
- 238000011156 evaluation Methods 0.000 claims description 18
- 238000003709 image segmentation Methods 0.000 claims description 9
- 230000003287 optical effect Effects 0.000 claims description 3
- 238000004458 analytical method Methods 0.000 abstract description 7
- 238000012937 correction Methods 0.000 description 15
- 238000005516 engineering process Methods 0.000 description 9
- 230000000875 corresponding effect Effects 0.000 description 8
- 238000010586 diagram Methods 0.000 description 4
- 230000008901 benefit Effects 0.000 description 3
- 238000012986 modification Methods 0.000 description 2
- 230000004048 modification Effects 0.000 description 2
- 210000004556 brain Anatomy 0.000 description 1
- 230000008859 change Effects 0.000 description 1
- 230000000295 complement effect Effects 0.000 description 1
- 230000002596 correlated effect Effects 0.000 description 1
- 230000008034 disappearance Effects 0.000 description 1
- 230000000694 effects Effects 0.000 description 1
- 230000007246 mechanism Effects 0.000 description 1
- 229910044991 metal oxide Inorganic materials 0.000 description 1
- 150000004706 metal oxides Chemical class 0.000 description 1
- 238000002715 modification method Methods 0.000 description 1
- 230000002093 peripheral effect Effects 0.000 description 1
- 239000004065 semiconductor Substances 0.000 description 1
- 238000007619 statistical method Methods 0.000 description 1
- 238000012360 testing method Methods 0.000 description 1
Images
Landscapes
- Color Television Image Signal Generators (AREA)
- Processing Of Color Television Signals (AREA)
Abstract
The invention provides a white balance processing method and a processing device thereof. The white balance processing method comprises the following steps that after an input image is divided into a plurality of divided block images, white dot identification is conducted on each divided block image, and white dot identification results are generated; according to the position of each divided block image on the input image and the continuity of each divided block image and a plurality of surrounding divided block images, the weight of the white dot identification results corresponding to all divided blocked images is determined; the white balance estimated value of the input image is calculated according to the white dot identification results of the divided block images and the weight, and white balance process is conducted on the input image. According to the white balance processing method and the processing device thereof, through weight analysis of added input image luminous source sorts and the continuous calculation to the positions of the divided block images and the positions of surrounding divided blocks, white balance process is conducted, and under the premise that specific scene color generation is highlighted, the color generation of the input image can be precisely obtained.
Description
Technical field
The relevant a kind of white balancing treatment method of the present invention and processing unit thereof, particularly relating to a kind of is a plurality of blocks of cutting apart with Image Segmentation, the image data discrete analysis of just respectively cutting apart block is to reach white balancing treatment method and the processing unit thereof that reduces for white point erroneous judgement situation in the video scenery.
Background technology
Along with releasing one after another of digital camera, image sensor such as Charged Coupled Device (Charge-coupled device, CCD) or the status of complementary metal oxide semiconductor sensor (CMOS sensor) also become more and more important, because image sensor can't be distinguished the color of external environment light, therefore must carrying out white balance usually, processes by digital camera.
Generally speaking, object reflects honorable color to be decided on light source color, and such color change can be detected and correct to human brain, therefore no matter in the sun, haze weather, indoor bright light or fluorescence, the white object that people see still; But can't distinguish the color of external environment light because of sensing apparatus, color is for different under Different Light for the white object that sensing apparatus is seen, some is partially yellow or red, and some is partially blue.In order to press close to human vision, the digital camera fibrous root is adjusted color according to light source, makes final image energy present the white that human eye is seen, this adjusts and namely is called white balance.
In traditional white balance technology, in the face of the composition with blue sky background, because all input images are included in the white balance statistics scope, make the blue image data of large stretch of high color temperature be used to white balance statistics analysis data, after making image revise white-balance correction, revised image can present the color of more former input image colour temperature on the low side.
Therefore known technology has proposition will input image be cut into many frames after, carrying out white point with regard to image data in each divided frame identifies, and be located in the image data of input image position top, white point reconnaissance range to the high color temperature picture point gives higher restriction, the high color temperature line of pixels except the statistical analysis of including the white point detecting in, is avoided judging by accident for the scene that large stretch of blue sky is arranged when carrying out white balance, such white balance result can present the blueness that the user wishes outstanding colour developing.
But, cut apart image white balance analysis corrections method because of prior art, only emphasize according to the upper and lower relation of cutting apart the block position, and with color temperature value height as the restriction of carrying out the white point reconnaissance range, but ignored whole composition content and image light source are done further to analyze, namely when image top block mostly is the high color temperature image, still must be according to the continuity of respectively cutting apart the block image, judge accurately whether scene was outdoor blue sky scene at that time, to avoid when input has in the image a plurality of high color temperature objects to be positioned at above the image, generation causes erroneous judgement to the presentation content of cutting apart block, and makes the white-balance correction result produce deviation.
In addition, front case limits the described image data white point reconnaissance range in the scope of cutting apart because being according to the position of respectively cutting apart block, if can do the special circumstances that white point is identified described cutting apart in the block without white point information, also can produce deviation to the white balance correction result.
In view of this, the present invention is directed to the problems referred to above, propose a kind of pick-up image is divided into many frames after, carry out white balancing treatment method for each frame image data content, light source, position after analyzing, effectively to overcome the disappearance of existing white balance technology.
Summary of the invention
In order to solve in the existing white balance technology, ignored whole composition content and image light source have been further analyzed, do not analyze the continuity of respectively cutting apart the block image, accurately judge at that time scene content, easily to cutting apart the presentation content erroneous judgement of block, and making the white-balance correction result produce the problem of deviation, purpose of the present invention provides a kind of white balancing treatment method and device.
For achieving the above object, the present invention is by the following technical solutions:
A kind of white balancing treatment method, the method comprises the following step: acquisition one input image, to input Image Segmentation is a plurality of block images of cutting apart, and then each is cut apart the block image and does white point evaluation, a white point qualification result of cutting apart the block image to produce each.Then, cut apart the block image in the position of input in the image according to each, and with a plurality of continuitys of cutting apart the block image around it, determine corresponding each cut apart the weight of the white point qualification result of block image.Rear with more described white point qualification result and the weight of cutting apart the block image, calculate a white balance estimated value of input image.
Wherein, aforesaid continuity meets a preset value for each a plurality of colour temperature difference of cutting apart between the block image of cutting apart around block image and its.
Wherein, aforesaid decision weight step comprises: the one first light source kind weight that dynamically determines to input image according to input image one brightness value; Judge the position respectively cut apart the block image above the input image, central authorities or below; Judge whether the colour temperature difference of block image meets a preset value around each block image and its, to determine a continuity judged result; According to the first light source kind weight, respectively cut apart the position of block image and the continuity judged result of each block image, determine a secondary light source kind weight of input image, wherein secondary light source kind weight comprises a plurality of outdoor optical source category weights and a plurality of room light source category weight; And according to position, each described continuity judged result and secondary light source kind weight of cutting apart the block image of respectively cutting apart the block image, determine respectively to cut apart the weight of block image white point qualification result.
Foundation input image one brightness value wherein dynamically determines to input one first light source kind weight of image, also comprise: with a plurality of color lumps that brightness value and the input of input image conforms to preliminary setting data in the image, determine one first light source kind weight of input image.
White balancing treatment method of the present invention also comprises: cut apart in the block image in each, according to an image characteristics of cutting apart block, select more than one white point to identify block, make white point with more than one white point evaluation block image data and identify.Wherein, image characteristics is a muted color or a smooth block.
White balancing treatment method of the present invention also comprises: determine an input photo dazzle color temperature threshold value according to the input image, if the white balance estimated value surpasses input photo dazzle color temperature threshold value, then according to input photo dazzle color temperature threshold value the white balance estimated value is revised.If the white balance estimated value does not surpass input photo dazzle color temperature threshold value, then carry out white balance with the white balance estimated value and process.
White balancing treatment method of the present invention also comprises: if a plurality of outdoor light source weight of the secondary light source kind weight of input image is higher than a preset ratio.And the colour temperature that each that is positioned at input image top is cut apart the block image is higher than a threshold value.Cut apart a plurality of block photo dazzle color temperature value tool continuitys of cutting apart around block image and its, wherein, continuity is that the colour temperature difference of cutting apart between the block image meets a preset value.Then reduce at least one weight of cutting apart the white point qualification result of block image that is positioned at input image top.
White balancing treatment method of the present invention also comprises: if a plurality of outdoor light source weight of the secondary light source kind weight of input image is lower than a preset ratio.And the colour temperature that each that is positioned at input image top is cut apart the block image is higher than a threshold value.Cut apart a plurality of block photo dazzle color temperature value tool continuitys of cutting apart around block and its, wherein, continuity is that the colour temperature difference of cutting apart between the block image meets a preset value.Then do not adjust at least one weight of cutting apart the white point qualification result of block image that is positioned at input image top.
White balancing treatment method of the present invention, also comprise: if a plurality of colour temperatures of cutting apart the block image of input image central authorities are lower than a threshold value, and each cuts apart the block image and a plurality of block photo dazzle color temperature value tool continuitys of cutting apart around it, wherein, continuity is that the colour temperature difference of cutting apart between the block image meets a preset value.Then reduce at least one weight of cutting apart the white point qualification result of block image that is positioned at input image central authorities.
White balancing treatment method of the present invention also comprises: if a plurality of outdoor light source weight of the secondary light source kind weight of input image is higher than a preset ratio.The block image of cutting apart of input image top is one first colour temperature, and each cuts apart block image and its a plurality of block photo dazzle color temperature value tool continuitys of cutting apart on every side, and wherein, continuity is that the colour temperature difference of cutting apart between the block image meets a preset value.And the block image of cutting apart of input image below is one second colour temperature, and each cuts apart block image and its a plurality of block photo dazzle color temperature value tool continuitys of cutting apart on every side, and wherein, continuity is that the colour temperature difference of cut section interblock meets a preset value.Then do not adjust the weight of the white point qualification result of cutting apart a bit the block image.
Effect against existing technologies: the present invention is by adding input image light source kind weight analysis, cutting apart the position of block image and calculate with the continuity of cutting apart block on every side, process to carry out white balance, under the prerequisite that highlights the special scenes colour generation, accurately try to achieve the colour generation of input image.
The present invention also provides a kind of white balance processing equipment, and it comprises:
One image acquisition unit is used for acquisition one input image.One cutting unit is coupled to image acquisition unit, and being used for inputting Image Segmentation is a plurality of block images of cutting apart.One white point is identified the unit, is coupled to cutting unit, each is cut apart the block image do white point evaluation, produces the white point qualification result that each cuts apart the block image.One white point weight determining means, be coupled to white point and identify the unit, it can cut apart the block image in the position of input image according to each, and with a plurality of continuitys of cutting apart the block image around it determine corresponding each cut apart a weight of the white point qualification result of block image.One computing unit is coupled to the white point weight unit, to cut apart a bit white point qualification result and the weight of block image, calculates the white balance estimated value to the input image.One white balance processing unit is coupled to computing unit, is used for the white balance estimated value input image being carried out a white balance and processes.
White balance processing equipment of the present invention, also comprise: a white point is chosen the unit, be coupled to described cutting unit and described white point and identify the unit, being used in each cuts apart in the block image, according to an image characteristics of cutting apart block, determine more than one white point evaluation block, make white point with its image data and identify.Wherein, image characteristics is a muted color or a smooth block.
White balance processing equipment of the present invention, also comprise: an amending unit, be coupled to computing unit and white balance processing unit, be used for surpassing input photo dazzle color temperature threshold value when the white balance estimated value, can revise the white balance estimated value according to input photo dazzle color temperature threshold value; If the white balance estimated value does not surpass input photo dazzle color temperature threshold value, then carry out white balance with the white balance estimated value and process.
Wherein, white point weight determining means also comprises: a light source kind weight calculation unit is used for determining one first light source kind weight.One determining positions unit is coupled to described light source kind weight determining means, is used for determining to cut apart the block image in the position of input image.One continuity determining means, be coupled to described determining positions unit, be used for determining that each cuts apart the block image and whether a plurality of colour temperature differences of cutting apart the block image around it meet a preset value, to determine to cut apart block and the continuity of cutting apart the block color temperature value around it.Again light source kind weight determining means can be according to the first light source kind weight, respectively cut apart the position, each block image of block image and the continuity of the colour temperature difference of block image around it, determine a secondary light source kind weight of input image.White point weight determining means can according to the position of respectively cutting apart the block image, each block image and continuity, the secondary light source kind weight of the colour temperature difference of block image around it, determine respectively to cut apart the weight of block image white point qualification result again.
Can be further understood by following specific embodiment and accompanying drawing about the advantages and spirit of the present invention.
Description of drawings
Fig. 1 is the flow chart of white balancing treatment method of the present invention;
Fig. 2 is colour temperature threshold value correction mechanism flow chart of the present invention;
Fig. 3 is the calcspar of white balance processing equipment of the present invention;
Fig. 4 A and Fig. 4 B are the present invention carries out the white balance processing to the setting of blue sky theme schematic diagrames;
Fig. 5 A and Fig. 5 B are the present invention carries out the white balance processing to the setting of a plurality of specific colour temperature objects arranged side by side schematic diagrames;
Fig. 6 A and Fig. 6 B are the present invention carries out the white balance processing to the setting of the continuous colour temperature block of difference schematic diagrames; And
Fig. 7 A and Fig. 7 B are the present invention carries out the white balance processing for the setting of people's face theme to central authorities schematic diagrames.
Embodiment
Below in execution mode, be described in detail detailed features of the present invention and advantage, its content is enough to make any those skilled in the art to understand technology contents of the present invention and implements according to this, and according to the disclosed content of this specification, claim and accompanying drawing, any those skilled in the art can understand purpose and the advantage that the present invention is correlated with easily.
Most of cameras all are equiped with white balancing apparatus, and the present invention is the existing white balancing apparatus that utilizes camera, be aided with cut apart, identify the position and cut apart block peripheral reference determination methods, to reach accurate white balance.White-balance correction method of the present invention is to utilize an image capture unit such as digital camera, can carry out white balance and process, and please refer to Fig. 1, and it illustrates the flow chart of white balancing treatment method of the present invention.Such as figure, the method comprises the following steps.
At first, at step S10, image is inputted in acquisition one, and determines a colour temperature threshold value and a brightness value of this input image; Take step S13 this is inputted Image Segmentation as a plurality of block images of cutting apart, cut apart in the block image in each, with step S15, according to image characteristics, detect the image data source that each cuts apart an above part block that can be used as the white point analysis in the block, select its white point of respectively cutting apart the block image data of making step S16 to identify, namely select respectively to cut apart the reference point that can represent its color in the block, it is according to a default characteristic curve, and utilizes standard deviation (Standard deviation)
And mean value (Mean value)
In respectively cutting apart the block image, select to do white point near the block of muted color and genus flat region and identify.
Step S13 will input Image Segmentation be a plurality of cut apart the block image after, determine one first light source kind weight of input image according to the brightness value of input image in step S14; Detect each with step S17 and cut apart the block image and detect each at position, the step S18 of input image and cut apart the block image and cut apart the continuity of block image, step S19 determines to input image according to the composition analysis result of S17 and S18 a secondary light source kind weight on every side, each cuts apart the weight of block image white point qualification result with the information calculations of S17~S19 in step S20.
Then, at step S21, cut apart the weight that block image white point qualification result and step S20 obtain according to each, determine a white balance estimated value; If the drawn white balance estimated value of step S21 surpasses input photo dazzle color temperature threshold value, execution in step S22 then, according to input photo dazzle color temperature threshold value the white balance estimated value is revised, as shown in Figure 2, at step S201 pick-up image and determine a colour temperature threshold value, identify weight according to step S203 calculation block image white point afterwards, obtain a white balance estimated value in step S205, if meet described colour temperature threshold value in the described white balance estimated value of step S207, then directly carry out white balance in step S211 with described white balance estimated value and process.If judge that in step S207 described white balance estimated value does not conform to the colour temperature threshold value, then in step S209, revise according to the colour temperature threshold value of input image, and in step S211, carry out described white balance with described correction white balance estimated value later and process.Wherein, this modification method can be a dynamic interpolation, if colour temperature threshold value and white balance estimated value difference increase, the correction value of then carrying out increases; If colour temperature threshold value and white balance estimated value difference reduce, the correction value of then carrying out reduces.Otherwise, if the white balance estimated value does not surpass input photo dazzle color temperature threshold value, then in step S23, directly with the white balance estimated value input image is carried out a white balance and processes.Wherein, the technology that above-mentioned white point is identified has been the known technology of this area, therefore do not repeat them here.
The above only is a preferred embodiments of the present invention, and wherein said image can be the person that has the said function such as notebook computer that mobile phone or that digital code camera, has camera has camera, cannot this be limited.
So far, technical characterictic of the present invention has illustrated complete, below special tests in detail method of the present invention with the specific embodiment explanation, so that those skilled in the art, can obtain enough knowledge and implements according to this.
Please refer to Fig. 4 A, in the blue sky of fine day landscape composition example, blue sky occupies more than half section of described image, utilizes each step of white balancing treatment method of the present invention as follows:
Behind the acquisition one input image, determine colour temperature threshold value and the brightness value of described input image; To input image and be cut into a plurality of block images of cutting apart, and each described block image of cutting apart will be done the white point evaluation; Dynamically determine one first light source kind weight of described input image according to described input image one brightness value, particularly, according to a plurality of color lumps that conform to preliminary setting data in the brightness value of inputting image and the input image, determine the first light source kind weight of input image; According to described the first light source kind weight, each described position of cutting apart the block image, whether the colour temperature difference of block image meets a preset value around each block image and its, determine a secondary light source kind weight of described input image, according to each described block image of cutting apart in the position of described input image, itself and a plurality of continuitys of cutting apart the block image on every side, secondary light source kind weight, determine corresponding each described weight of cutting apart the white point qualification result of block image, wherein, secondary light source kind weight comprises a plurality of outdoor optical source category weights and a plurality of room light source category weight; The first half that input image this moment is the blue sky image data (51 blocks of Fig. 4 A) of high color temperature, wherein, each that is arranged in described input image top is cut apart the block image and is continuous (Fig. 4 B with a plurality of block photo dazzle color temperature values of cutting apart around it, take " 5000 " as a certain be chosen to be judgement cut apart the block image, its with on every side cut apart block image 5001,5002,5003,5004,5005,5006,5007,5008,5009,5010 and 5011 color temperature value is continuous), the outdoor light source weight of the secondary light source kind weight of described input image is higher than preset ratio again, therefore downgrade the white point qualification result weight of above-mentioned these blocks, and then avoid the blue image of sheet is included in the white balance statistics scope, and it is white to have caused large stretch of blue sky image to be colour cast, and can obtain accurately white balance, make the image colour generation in large stretch of blue sky more meet the human eye finding; White balance estimates that the result is low with the color temperature value difference value of input image, surpasses the colour temperature threshold value of described input image, need not adjust described white balance estimation result, directly carries out white-balance correction take it as foundation.
Please refer to Fig. 5 A, having a plurality of high color temperature objects to be listed in indoor scene composition example above the image, utilize each step of white balancing treatment method of the present invention as follows:
Behind the acquisition one input image, determine colour temperature threshold value and the brightness value of described input image; To input image and be cut into a plurality of block images of cutting apart, and each described block image of cutting apart will be done the white point evaluation; Dynamically determine one first light source kind weight of described input image according to described input image one brightness value; According to described the first light source kind weight, each described position of cutting apart the block image, each described block image with its on every side the colour temperature difference of block image whether meet a preset value, determine a secondary light source kind weight of described input image; Rear according to each described block image of cutting apart in the position of described input image, and with a plurality of continuity, secondary light source kind weights of cutting apart the block image around it, determine corresponding each described weight of cutting apart the white point qualification result of block image; Though this moment, the first half of described input image was image data (612 of Fig. 5 A of a plurality of high color temperatures, 613,614,615,616,617,618), but each that is arranged in described input image top cut apart the block image with its on every side a plurality of block photo dazzle color temperature values of cutting apart be discontinuous (Fig. 5 B, take " 600 " as a certain be chosen to be judgement cut apart the block image, its with on every side cut apart block image 6001,6002,6003,6004,6005,6006,6007,6008,6009,6010 and 6011 color temperature value is neither continuously), the outdoor light source weight of the secondary light source kind weight of described input image is lower than preset ratio again, judge and belong to the outdoor setting in non-general large stretch of blue sky, need take the overall image colour generation into account balanced, therefore do not downgrade a plurality of weights of cutting apart the white point qualification result of block image that are positioned at described input image top, and carry out the white balance estimation; White balance estimates that the result is low with the color temperature value difference value of input image, surpasses the colour temperature threshold value of described input image, need not adjust described white balance estimation result, directly carries out white-balance correction take it as foundation.
Please refer to Fig. 6 A, the outdoor landscape composition example for blue skies, green land, utilize each step of white balancing treatment method of the present invention as follows:
Behind the acquisition one input image, determine colour temperature threshold value and the brightness value of described input image; To input image and be cut into a plurality of block images of cutting apart, and each described block image of cutting apart will be done the white point evaluation; Dynamically determine one first light source kind weight of described input image according to described input image one brightness value; According to described the first light source kind weight, each described position of cutting apart the block image, each described block image with its on every side the colour temperature difference of block image whether meet a preset value, determine a secondary light source kind weight of described input image; Rear according to each described block image of cutting apart in the position of described input image, and with a plurality of block image continuity, secondary light source kind weights cut apart around it, determine corresponding each described weight of cutting apart the white point qualification result of block image; This moment, the first half because of described input image was the image data (71 blocks of Fig. 6 A) of large stretch of high color temperature, wherein, each the described block image of cutting apart that is arranged in described input image top is continuous (Fig. 6 B with a plurality of block photo dazzle color temperature values of cutting apart around it, take " 701 " as a certain be chosen to be judgement cut apart the block image, its with on every side cut apart block image 7011,7012,7013,7014,7015,7016,7017 color temperature value is continuous), the outdoor light source weight of the secondary light source kind weight of described input image is higher than preset ratio again, therefore be judged as the scene in outdoor blue sky, formerly should downgrade a plurality of weights of cutting apart the white point qualification result of block image that are positioned at described input image top, and carry out the white balance estimation.But it is the second colour temperature (72 blocks of Fig. 6 A) that the block image is cut apart in the below of described input image, and each is described cut apart the block image and around it a plurality of block photo dazzle color temperature values of cutting apart for continuously (among Fig. 6 B, take " 702 " as a certain be chosen to be judgement cut apart the block image, its with on every side cut apart block image 7021,7022,7023,7024,7025,7026,7027 color temperature value is continuous), judge this moment and do not adjust all a plurality of weights of cutting apart the white point qualification result of block image, cause the unbalance situation of another block colour generation colour temperature with 71 or 72 a certain block colour generation of avoiding Fig. 6 A emphatically; White balance estimates that the result is low with the color temperature value difference value of input image, surpasses the colour temperature threshold value of described input image, need not adjust described white balance estimation result, directly carries out white-balance correction take it as foundation.
Please refer to Fig. 7 A, the general composition example central authorities have people's face to occur, utilize each step of white balancing treatment method of the present invention as follows:
Behind the acquisition one input image, determine colour temperature threshold value and the brightness value thereof of described input image; To input image and be cut into a plurality of block images of cutting apart, and each described block image of cutting apart will be done the white point evaluation; Dynamically determine one first light source kind weight of described input image according to described input image one brightness value; According to described the first light source kind weight, each described position of cutting apart the block image, each described block image with its on every side the colour temperature difference of block image whether meet a preset value, determine a secondary light source kind weight of described input image; Rear according to each described block image of cutting apart in the position of described input image, and with a plurality of block image continuity, secondary light source kind weights cut apart around it, determine corresponding each described weight of cutting apart the white point qualification result of block image; This moment, the central authorities because of described input image were the image data (82 blocks of Fig. 7 A) of large stretch of low temperature, wherein, be arranged in that each of described input image central authorities is described cuts apart that a plurality of block photo dazzle color temperature values of cutting apart are continuous (Fig. 7 B around block image and its, take 801 as a certain be chosen to be judgement cut apart the block image, its with on every side cut apart block image 8011,8012,8013,8014,8015,8016,8017,8018 color temperature value is continuous), therefore judge for people's face to be master's setting, downgrade and be positioned at a plurality of weights of cutting apart the white point qualification result of block image of described input image central authorities, and carry out the white balance estimation, to avoid making people's face block present pale colour generation; White balance estimates that the result is low with the color temperature value difference value of input image, surpasses the colour temperature threshold value of described input image, need not adjust described white balance estimation result, directly carries out white-balance correction take it as foundation.
Input the scene that image is extremely low colour temperature, such as the input image in the tunnel, utilizing each step of white balancing treatment method of the present invention as follows:
Behind the acquisition one input image, the colour temperature threshold value that determines described input image belongs to indoor scene for low colour temperature and brightness value thereof are lower than a threshold value; Be a plurality of block images of cutting apart with described input Image Segmentation; Each described block image of cutting apart is done the white point evaluation; Dynamically determine one first light source kind weight of described input image according to described input image one brightness value; According to described the first light source kind weight, each described position of cutting apart the block image, each described block image with its on every side the colour temperature difference of block image whether meet a preset value, determine a secondary light source kind weight of described input image; Rear according to each described block image of cutting apart in the position of described input image, and with a plurality of continuitys of cutting apart the block image, corresponding each the described weight of cutting apart the white point qualification result of block image of secondary light source kind weights decision around it; Because a plurality of block images of cutting apart are all low colour temperature image, therefore do not adjust the weight of each block white point qualification result; With more described described white point qualification result and the described weight of cutting apart the block image, calculate the white balance estimated value to described input image; White balance estimation result (be modified to image partially white) is high with color temperature value (colour temperature on the low side) difference value of input image, the colour temperature threshold value that surpasses described input image, therefore the mode with dynamic interpolation, colour temperature block toward colour temperature threshold value place is done correction, to press close to the result of eye-observation.
See also Fig. 3, it illustrates the calcspar of a kind of white balance processing equipment of the present invention.Among the figure, white balance processing equipment comprises that an image acquisition unit 101, a cutting unit 103, a white point are chosen unit 104, a white point is identified unit 105, white point weight determining means 107, a light source kind weight calculation unit 108, a determining positions unit 109, continuity determining means 110, a computing unit 111, an amending unit 113 and a white balance processing unit 115.
One computing unit 111 is coupled to white point weight determining means, can this cut apart a bit white point qualification result and the weight of block image, calculates the white balance estimated value to described input image; One amending unit 113 is coupled to computing unit and white balance processing unit, and its function is: if described white balance estimated value surpasses described input photo dazzle color temperature threshold value, then according to described input photo dazzle color temperature threshold value described white balance estimated value is revised; If described white balance estimated value does not surpass described input photo dazzle color temperature threshold value, then carry out described white balance with described white balance estimated value and process.One white balance processing unit 115 is coupled to computing unit, is used for described white balance estimated value described input image being carried out a white balance and processes.
The above is by embodiment characteristics of the present invention to be described, its purpose is to make those skilled in the art can understand content of the present invention and implements according to this, and non-limiting claim of the present invention, therefore, all other fails to break away from equivalence modification or the modification that disclosed spirit is finished, and must be included in the claim of the following stated.
Claims (14)
1. a white balancing treatment method is characterized in that, comprising:
Acquisition one input image;
Be a plurality of block images of cutting apart with described input Image Segmentation;
Each described block image of cutting apart is done white point evaluation, produce each described white point qualification result of cutting apart the block image;
According to each described block image of cutting apart in the position of described input image, and with described a plurality of continuitys of cutting apart the block image around it, determine corresponding each described weight of cutting apart the described white point qualification result of block image;
With more described described white point qualification result and the described weight of cutting apart the block image, calculate the white balance estimated value to described input image; And
With described white balance estimated value described input image being carried out a white balance processes.
2. white balancing treatment method as claimed in claim 1 is characterized in that, described continuity cuts apart the block image for each and a plurality of colour temperature differences of cutting apart between the block image around it meet a preset value.
3. white balancing treatment method as claimed in claim 1 is characterized in that, determines that the step of described weight also comprises:
Dynamically determine one first light source kind weight of described input image according to described input image one brightness value;
Judge each described position of cutting apart the block image above the described input image, central authorities or below;
Judge that whether each described colour temperature difference of cutting apart the block image around block image and its of cutting apart meets a preset value, obtains a continuity judged result;
According to described the first light source kind weight, each described position and described continuity judged result of cutting apart the block image, determine a secondary light source kind weight of described input image, wherein said secondary light source kind weight comprises a plurality of outdoor optical source category weights and a plurality of room light source category weight; And
According to each the described position of block image, described continuity judged result and described secondary light source kind weight cut apart, determine each described described weight of cutting apart block image white point qualification result.
4. white balancing treatment method as claimed in claim 3 is characterized in that, described weight dynamically determines the described first light source kind weight of described input image according to the described brightness value of described input image, also comprise:
With a plurality of color lumps that conform to preliminary setting data in the brightness value of described input image and the described input image, determine one first light source kind weight of described input image.
5. white balancing treatment method as claimed in claim 1 is characterized in that, also comprises:
Each described cutting apart in the block image, according to a described image characteristics of cutting apart the block image, select more than one white point to identify block, make white point with described more than one white point evaluation block image data and identify; Wherein, described image characteristics is a muted color or a smooth block.
6. white balancing treatment method as claimed in claim 1 is characterized in that, also comprises:
Determine an input photo dazzle color temperature threshold value according to described input image, if described white balance estimated value surpasses described input photo dazzle color temperature threshold value, then according to described input photo dazzle color temperature threshold value described white balance estimated value is revised;
If described white balance estimated value does not surpass described input photo dazzle color temperature threshold value, then carry out described white balance with described white balance estimated value and process.
7. white balancing treatment method as claimed in claim 1 is characterized in that, also comprises:
If a plurality of outdoor light source weight of a secondary light source kind weight of described input image is higher than a preset ratio;
And each the described colour temperature of cutting apart the block image that is positioned at described input image top is higher than a threshold value;
Describedly cut apart a plurality of block photo dazzle color temperature value tool continuitys of cutting apart around block image and its, wherein, described continuity is that the colour temperature difference of cutting apart between the block image meets a preset value;
Then reduce the described at least one described weight of cutting apart the described white point qualification result of block image that is positioned at described input image top.
8. white balancing treatment method as claimed in claim 1 is characterized in that, also comprises:
If a plurality of outdoor light source weight of a secondary light source kind weight of described input image is lower than a preset ratio;
And each the described colour temperature of cutting apart the block image that is positioned at described input image top is higher than a threshold value;
Describedly cut apart a plurality of block photo dazzle color temperature value tool continuitys of cutting apart around block and its, wherein, described continuity is that the colour temperature difference of cutting apart between the block image meets a preset value;
Then do not adjust the described at least one described weight of cutting apart the described white point qualification result of block image that is positioned at described input image top.
9. white balancing treatment method as claimed in claim 1 is characterized in that, also comprises:
If a plurality of colour temperatures of cutting apart the block image of described input image central authorities are lower than a threshold value, and each is described cuts apart the block image and a plurality of block photo dazzle color temperature value tool continuitys of cutting apart around it, wherein, described continuity is that the colour temperature difference of cutting apart between the block image meets a preset value;
Then reduce the described at least one described weight of cutting apart the described white point qualification result of block image be positioned at described input image central authorities.
10. white balancing treatment method as claimed in claim 1 is characterized in that, also comprises:
If a plurality of outdoor light source weight of a secondary light source kind weight of described input image is higher than a preset ratio;
The described block image of cutting apart of described input image top is one first colour temperature, and each is described cuts apart the block image and a plurality of block photo dazzle color temperature value tool continuitys of cutting apart around it, wherein, described continuity is that the colour temperature difference of cutting apart between the block image meets a preset value;
And the described block image of cutting apart of described input image below is one second colour temperature, and each is described cuts apart the block image and a plurality of block photo dazzle color temperature value tool continuitys of cutting apart around it, wherein, described continuity is that the colour temperature difference of cutting apart between the block image meets a preset value;
Then do not adjust the more described described weight of cutting apart the described white point qualification result of block image.
11. a white balance processing equipment is characterized in that, comprising:
One image acquisition unit is used for acquisition one input image;
One cutting unit is coupled to described image acquisition unit, and being used for described input Image Segmentation is a plurality of block images of cutting apart;
One white point is identified the unit, is coupled to described cutting unit, and each described block image of cutting apart is done white point evaluation, produces each described white point qualification result of cutting apart the block image;
One white point weight determining means, be coupled to described white point and identify the unit, it can be according to each described block image of cutting apart in the position of described input image, and determines corresponding each described weight of cutting apart the described white point qualification result of block image with described a plurality of continuitys of cutting apart the block image around it;
One computing unit is coupled to described white point weight determining means, with more described described white point qualification result and the described weight of cutting apart the block image, calculates the white balance estimated value to described input image; And
One white balance processing unit is coupled to described computing unit, is used for described white balance estimated value described input image being carried out a white balance and processes.
12. white balance processing equipment as claimed in claim 11 is characterized in that, also comprises:
One white point is chosen the unit, be coupled to described cutting unit and described white point and identify the unit, it is used at each described block image of cutting apart, according to a described image characteristics of cutting apart block, determine more than one white point evaluation block, make described white point with described more than one white point evaluation block image data and identify; Wherein, described image characteristics is a muted color or a smooth block.
13. white balance processing equipment as claimed in claim 11 is characterized in that, also comprises:
One amending unit is coupled to described computing unit and described white balance processing unit, if described white balance estimated value surpasses described input photo dazzle color temperature threshold value, then according to described input photo dazzle color temperature threshold value described white balance estimated value is revised; And
If described white balance estimated value does not surpass described input photo dazzle color temperature threshold value, then carry out white balance with described white balance estimated value and process.
14. white balance processing equipment as claimed in claim 11 is characterized in that, described white point weight determining means also comprises:
One light source kind weight calculation unit is used for determining one first light source kind weight;
One determining positions unit is coupled to described light source kind weight determining means, is used for determining that the described block image of cutting apart is in the position of described input image;
One continuity determining means, be coupled to described determining positions unit, be used for to determine whether each described block image of cutting apart meets a preset value with a plurality of colour temperature differences of cutting apart the block image around it, to determine described block image and its continuity judged result of cutting apart the block color temperature value on every side cut apart;
Described light source kind weight determining means can according to described the first light source kind weight, each described position, each described continuity judged result of cutting apart the block image of cutting apart the block image, determine a secondary light source kind weight of described input image again; And
Described white point weight determining means can according to each described position, each the described continuity judged result of block image, described secondary light source kind weight cut apart of cutting apart the block image, determine each described weight of cutting apart block image white point qualification result again.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201210072968.6A CN103327345B (en) | 2012-03-19 | 2012-03-19 | White balance processing method and processing device thereof |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201210072968.6A CN103327345B (en) | 2012-03-19 | 2012-03-19 | White balance processing method and processing device thereof |
Publications (2)
Publication Number | Publication Date |
---|---|
CN103327345A true CN103327345A (en) | 2013-09-25 |
CN103327345B CN103327345B (en) | 2015-03-11 |
Family
ID=49195839
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201210072968.6A Expired - Fee Related CN103327345B (en) | 2012-03-19 | 2012-03-19 | White balance processing method and processing device thereof |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN103327345B (en) |
Cited By (15)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104581105A (en) * | 2015-02-03 | 2015-04-29 | 中国人民解放军国防科学技术大学 | Automatic white balance method based on color temperature range conversion weight map |
CN104683780A (en) * | 2015-03-24 | 2015-06-03 | 广东本致科技有限公司 | Automatic white balance method and device of video surveillance camera |
CN104702941A (en) * | 2013-12-09 | 2015-06-10 | 展讯通信(上海)有限公司 | White-dot area indicating and judging method |
CN104994362A (en) * | 2015-07-02 | 2015-10-21 | 广东欧珀移动通信有限公司 | Method and device for processing white balance |
CN105120247A (en) * | 2015-09-10 | 2015-12-02 | 联想(北京)有限公司 | White-balance adjusting method and electronic device |
CN105898263A (en) * | 2016-05-24 | 2016-08-24 | 厦门美图之家科技有限公司 | Method and device for white balance of image and computing device |
CN106416238A (en) * | 2014-05-29 | 2017-02-15 | 诺基亚技术有限公司 | Method and apparatus for image processing |
WO2017202218A1 (en) * | 2016-05-26 | 2017-11-30 | 努比亚技术有限公司 | Device and method for acquiring image processing mode, and storage medium |
CN107820070A (en) * | 2017-10-25 | 2018-03-20 | 长沙云知检信息科技有限公司 | White balance adjustment method |
CN108093234A (en) * | 2017-12-29 | 2018-05-29 | 努比亚技术有限公司 | A kind of image processing method, terminal and storage medium |
CN108766378A (en) * | 2018-05-29 | 2018-11-06 | 深圳市华星光电技术有限公司 | The white balance method and device of liquid crystal display panel |
CN108769510A (en) * | 2018-05-02 | 2018-11-06 | Oppo广东移动通信有限公司 | Image processing method, device, computer readable storage medium and electronic equipment |
CN110012278A (en) * | 2019-04-30 | 2019-07-12 | 腾讯科技(深圳)有限公司 | A kind of image rendering method, device, computer equipment and storage medium |
WO2020118977A1 (en) * | 2018-12-15 | 2020-06-18 | 深圳市华星光电半导体显示技术有限公司 | Image color temperature correction method and device |
CN111953955A (en) * | 2020-08-26 | 2020-11-17 | 维沃移动通信有限公司 | White balance compensation method and device and electronic equipment |
Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20020101516A1 (en) * | 2001-01-31 | 2002-08-01 | Junichi Ikeda | White balance control apparatus and method, and image pickup apparatus |
CN101159879A (en) * | 2006-10-08 | 2008-04-09 | 普立尔科技股份有限公司 | Digital picture capturing device and white balance adjustment method thereof |
-
2012
- 2012-03-19 CN CN201210072968.6A patent/CN103327345B/en not_active Expired - Fee Related
Patent Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20020101516A1 (en) * | 2001-01-31 | 2002-08-01 | Junichi Ikeda | White balance control apparatus and method, and image pickup apparatus |
CN101159879A (en) * | 2006-10-08 | 2008-04-09 | 普立尔科技股份有限公司 | Digital picture capturing device and white balance adjustment method thereof |
Cited By (24)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104702941A (en) * | 2013-12-09 | 2015-06-10 | 展讯通信(上海)有限公司 | White-dot area indicating and judging method |
CN104702941B (en) * | 2013-12-09 | 2017-03-08 | 展讯通信(上海)有限公司 | A kind of white point region representation and decision method |
CN106416238A (en) * | 2014-05-29 | 2017-02-15 | 诺基亚技术有限公司 | Method and apparatus for image processing |
US10321110B2 (en) | 2014-05-29 | 2019-06-11 | Nokia Technologies Oy | Method and apparatus for image processing |
CN104581105B (en) * | 2015-02-03 | 2016-01-20 | 中国人民解放军国防科学技术大学 | Based on the auto white balance method of colour temperature range conversion weight map and the correction of block reliability |
CN104581105A (en) * | 2015-02-03 | 2015-04-29 | 中国人民解放军国防科学技术大学 | Automatic white balance method based on color temperature range conversion weight map |
CN104683780A (en) * | 2015-03-24 | 2015-06-03 | 广东本致科技有限公司 | Automatic white balance method and device of video surveillance camera |
CN104683780B (en) * | 2015-03-24 | 2017-01-04 | 广东本致科技有限公司 | The auto white balance method of a kind of video monitoring camera and device |
CN104994362A (en) * | 2015-07-02 | 2015-10-21 | 广东欧珀移动通信有限公司 | Method and device for processing white balance |
CN105120247B (en) * | 2015-09-10 | 2017-12-26 | 联想(北京)有限公司 | A kind of white balance adjustment method and electronic equipment |
CN105120247A (en) * | 2015-09-10 | 2015-12-02 | 联想(北京)有限公司 | White-balance adjusting method and electronic device |
CN105898263A (en) * | 2016-05-24 | 2016-08-24 | 厦门美图之家科技有限公司 | Method and device for white balance of image and computing device |
CN105898263B (en) * | 2016-05-24 | 2017-08-25 | 厦门美图之家科技有限公司 | A kind of image white balance method, device and computing device |
WO2017202218A1 (en) * | 2016-05-26 | 2017-11-30 | 努比亚技术有限公司 | Device and method for acquiring image processing mode, and storage medium |
CN107820070A (en) * | 2017-10-25 | 2018-03-20 | 长沙云知检信息科技有限公司 | White balance adjustment method |
CN108093234A (en) * | 2017-12-29 | 2018-05-29 | 努比亚技术有限公司 | A kind of image processing method, terminal and storage medium |
CN108769510A (en) * | 2018-05-02 | 2018-11-06 | Oppo广东移动通信有限公司 | Image processing method, device, computer readable storage medium and electronic equipment |
CN108769510B (en) * | 2018-05-02 | 2021-03-23 | Oppo广东移动通信有限公司 | Image processing method, image processing device, computer-readable storage medium and electronic equipment |
CN108766378A (en) * | 2018-05-29 | 2018-11-06 | 深圳市华星光电技术有限公司 | The white balance method and device of liquid crystal display panel |
CN108766378B (en) * | 2018-05-29 | 2019-12-24 | 深圳市华星光电技术有限公司 | White balance method and device of liquid crystal display panel |
WO2020118977A1 (en) * | 2018-12-15 | 2020-06-18 | 深圳市华星光电半导体显示技术有限公司 | Image color temperature correction method and device |
CN110012278A (en) * | 2019-04-30 | 2019-07-12 | 腾讯科技(深圳)有限公司 | A kind of image rendering method, device, computer equipment and storage medium |
CN110012278B (en) * | 2019-04-30 | 2020-07-07 | 腾讯科技(深圳)有限公司 | Image rendering method and device, computer equipment and storage medium |
CN111953955A (en) * | 2020-08-26 | 2020-11-17 | 维沃移动通信有限公司 | White balance compensation method and device and electronic equipment |
Also Published As
Publication number | Publication date |
---|---|
CN103327345B (en) | 2015-03-11 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN103327345B (en) | White balance processing method and processing device thereof | |
TWI532385B (en) | White balance method and apparatus thereof | |
WO2019148912A1 (en) | Image processing method, apparatus, electronic device and storage medium | |
KR102346522B1 (en) | Image processing device and auto white balancing metohd thereof | |
CN102385753B (en) | Illumination-classification-based adaptive image segmentation method | |
CN108174172B (en) | Image pickup method and device, computer readable storage medium and computer equipment | |
US8698918B2 (en) | Automatic white balancing for photography | |
US9307213B2 (en) | Robust selection and weighting for gray patch automatic white balancing | |
CN104168478B (en) | Based on the video image color cast detection method of Lab space and relevance function | |
CN104834866A (en) | Method and device for protecting privacy-sensitive information by automatically recognizing scene | |
JP3018914B2 (en) | Gradation correction device | |
KR20070113890A (en) | Method and apparatus for auto white balancing | |
CN106412534B (en) | A kind of brightness of image adjusting method and device | |
CN110022469A (en) | Image processing method, device, storage medium and electronic equipment | |
JP2007097178A (en) | Method for removing "red-eyes" by face detection | |
US9378564B2 (en) | Methods for color correcting digital images and devices thereof | |
CN108063926B (en) | Image processing method and device, computer readable storage medium and computer device | |
JP4310317B2 (en) | Visible component ratio calculation method and optical instrument using the same | |
CN105681775A (en) | White balance method and device | |
CN102883168A (en) | White balance processing method directed towards atypical-feature image | |
KR101875891B1 (en) | apparatus and method for face detection using multi detection | |
CN108063934B (en) | Image processing method and device, computer readable storage medium and computer device | |
JP2013142929A (en) | Image processing apparatus | |
CN108012135A (en) | Image processing method and device, computer-readable recording medium and computer equipment | |
CN105657287A (en) | Backlighting scene detection method and device and imaging device |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
C14 | Grant of patent or utility model | ||
GR01 | Patent grant | ||
CF01 | Termination of patent right due to non-payment of annual fee | ||
CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20150311 |