CN1202491C - White balancing treatment method for digital image pick-up - Google Patents
White balancing treatment method for digital image pick-up Download PDFInfo
- Publication number
- CN1202491C CN1202491C CN 00136747 CN00136747A CN1202491C CN 1202491 C CN1202491 C CN 1202491C CN 00136747 CN00136747 CN 00136747 CN 00136747 A CN00136747 A CN 00136747A CN 1202491 C CN1202491 C CN 1202491C
- Authority
- CN
- China
- Prior art keywords
- value
- sigma
- gain
- treatment method
- white balancing
- 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.)
- Expired - Fee Related
Links
Images
Abstract
The present invention relates to a white balancing treatment method for a digital image picking-up device, which comprises the steps that values of Ri, Bi, Gi of an image pixel induced by a CCD are read; values of sigma Ri/Gi, sigma Bi/Gi of each interval are calculated; a weighting parameter table is searched according to the values of sigma Ri/Gi, sigma Bi/Gi of each interval to obtain a weighting parameter; the value of [sigma Wj (sigma Ri/Gi)]/ sigma Wj, [sigma Wj (sigma Bi/Gi) /sigma Wj] of a total interval is calculated. Compared with a correction table, R gain and B gain are obtained according to the value of [sigma Wj (sigma Ri/Gi)]/ sigma Wj, [sigma Wj (sigma Bi/Gi) /sigma Wj]; the R gain and the B gain are respectively multiplied to the values of Rl, Bi of each pixel of the total interval; therefore, a corrected value of white balancing of each pixel is obtained.
Description
Technical field
The present invention is the image white balancing treatment method of the digital image pick-up of relevant digital camera, digital camera or computer photography machine etc., especially uses built-in table of corrections, and the color displacement that light source is caused obtains quick, correct correction.
Background technology
When generally image capture unit was with CCD pick-up image information, the chromatic value of the R (red) of each image pixel (Pixel) that it obtained, G (green), B (indigo plant) can be subjected to the different influence of environment light source colour temperature, and colorific skew (Shift); For example white thing is when light source color temperature is on the low side, and it is presented the tone that is offset to reddish yellow by picked image, then to the tone of ultramarine skew, causes the distortion of colors of image when light source color temperature is higher; Handle so need that R, G, the B value of each image pixel of obtain are carried out white balance, to adjust the color displacement that is caused because of the light source difference.
The processing major part of general white balance is to adopt hardware mode to solve, adopt the software mode solver less, for example once applied for a patent before the applicant No. 88115147 " Automatic white balance of digital camera is proofreaied and correct ", disclose a kind of method of white balance correction, it is that the value of will take the gained image pixel changes into the YCrCb coordinate by the RGB coordinate, again according to a plurality of sampling blocks to calculate the Y of the block of respectively taking a sample, Cr, the mean value of Cb, again with Cr, Cb as diaxon to mark off four-quadrant, and with each the sampling block Cr, the Cb value is obtained the pairing quadrant of sampling block, uses the direction that decides correction according to the quadrant of being partial to.Its The conditions of calculation of the method for aforementioned white balance correction is the more the time, though can obtain to proofread and correct more accurately, the relative complicated calculating of must healing, and can't obtain correctly in the calculating of bout (Cycle), proofread and correct fast, very time-consuming.For promoting speed and the accuracy that white balance is handled, after the inventor studies again and again, finish the present invention eventually.
Summary of the invention
Fundamental purpose of the present invention is providing a kind of white balancing treatment method of digital image pick-up, can be quick, correct carry out white balance correction.
The white balancing treatment method of a kind of image capture unit of the present invention is characterized in that, comprises the steps:
(1) reads Ri, Bi, the Gi value of CCD institute sensing image pixel;
(2) calculate ∑ Ri/Gi, the ∑ Bi/Gi value of all pixels of each sub-range or part pixels sampled; Wherein i is from 1 total value to all pixels or part pixels sampled;
(3) according to ∑ Ri/Gi, the ∑ Bi/Gi value in each sub-range, contrast weighting parameters table is obtained weighting parameters Wj, and calculates total interval [∑ Wj (∑ Ri/Gi)]/∑ Wj, the value of [∑ Wj (∑ Bi/Gi)]/∑ Wj; Wherein j is from 1 total value to the sub-range;
(4) according to total interval [∑ Wj (∑ Ri/Gi)]/∑ Wj, the value of [∑ Wj (∑ Bi/Gi)]/∑ Wj, tabling look-up obtains corresponding light source color temperature value, obtains R gain, B gain by the contrast table of corrections;
(5) Ri, the Bi value that is multiplied by each pixel of total interval respectively with R gain, B gain can obtain value Ria, the Bia behind white balance correction, that is: Ria=Ri * R gain, and Bia=Bi * B gains.
Wherein this image capture unit is with the CCD pick-up image.
Wherein this weighting parameters table is to obtain with experiment in advance.
Wherein this table of corrections is to obtain with experiment in advance.
Description of drawings
Other purposes of the present invention, effect and embodiment see also graphic being described in detail as follows, wherein:
Fig. 1 is cut apart the embodiment synoptic diagram for picked image picture of the present invention interval.
Fig. 2 is the weighting parameters table of the present invention's simulation.
The table of corrections that Fig. 3 simulates for the present invention.
Fig. 4 is a process flow diagram of the present invention.
Embodiment
It is described to see also Fig. 1, and the present invention is divided into A for the convenient account form of expressing with CCD institute picked image picture interval 10
0, A
1... A
15In 16 sub-ranges.
The present invention does not adjust as reference value with the G value, only adjusts the value of R, B.When light source color temperature was 5100 ° of K (white light), its R/G, B/G all approximated 1; And light source color temperature become littler, the B/G value of R/G value that heals when high becomes bigger; Otherwise if light source color temperature is healed when hanging down, it is bigger that the R/G value becomes, and the B/G value becomes littler.And find to fall within a certain scope if the R/G that white or grey object cause because of light source, B/G value are offset through experiment.Therefore according to R/G, B/G value the value that size is made weighting parameters Wj that influences to white balance correction value.The weighting parameters table of the present invention simulation as shown in Figure 2, R/G, B/G be in 1.35 to 0.65 scopes the time, its weighting parameters Wj value is between 1.3 to 1, if in this scope in addition the time, its weighting parameters Wj value only is 0.1.
Compare with white thing the pick-up image R/G of institute, B/G value and normal value 1 under the irradiation of different-colour light source, can obtain required R gain, the B gain of correcting image under the different-colour light source.Become table of corrections, analog correction table as shown in Figure 3 so can test the R gain, the B gain column that are obtained.
See also Fig. 2, Fig. 3, shown in Figure 4, the white balancing treatment method of image capture unit of the present invention comprises the steps:
1. read Ri, Bi, the Gi value of CCD institute sensing image pixel;
2. calculate ∑ Ri/Gi, the ∑ Bi/Gi value of all pixels of each sub-range or part pixels sampled; Wherein i is from 1 total value to all pixels or part pixels sampled;
3. according to ∑ Ri/Gi, the ∑ Bi/Gi value in each sub-range, contrast weighting parameters table is obtained weighting parameters Wj, and calculates total interval [∑ Wj (∑ Ri/Gi)]/∑ Wj, the value of [∑ Wj (∑ Bi/Gi)]/∑ Wj, and wherein j is by 0 to 15;
4. according to total interval [∑ Wj (∑ Ri/Gi)]/∑ Wj, the value of [∑ Wj (∑ Bi/Gi)]/∑ Wj, tabling look-up obtains corresponding light source color temperature value, obtains R gain, B gain by the contrast table of corrections;
5. Ri, the Bi value that is multiplied by each pixel of total interval respectively with R gain, B gain can obtain value Ria, the Bia behind white balance correction, that is: Ria=Ri * R gain, and Bia=Bi * B gains.
The present invention is through the calculating of one bout, and be engaged under the identical hardware condition, weighting parameters table and table of corrections through the experiment gained, obtain weighting parameters and gain, value behind the white balance correction of each pixel of acquisition that can be quick, correct, can eliminate the color displacement that causes because of light source, make image present correct color, to promote the quality of digital image pick-up image processing.
The above record only for utilizing the embodiment of the technology of the present invention content, anyly is familiar with modification, the variation that this skill person uses the present invention to do, and all belongs to the claim that the present invention advocates, and is not limited to those disclosed embodiments.
In sum, the present invention is obviously different with known white balance correcting, and the enhancement of tool effect, has closed in the patent of invention important document, earnestly asks early to grant a patent, with Jiahui society.
Claims (4)
1. the white balancing treatment method of an image capture unit is characterized in that, comprises the steps:
(1) reads Ri, Bi, the Gi value of CCD institute sensing image pixel;
(2) calculate ∑ Ri/Gi, the ∑ Bi/Gi value of all pixels of each sub-range or part pixels sampled; Wherein i is from 1 total value to all pixels or part pixels sampled;
(3) according to ∑ Ri/Gi, the ∑ Bi/Gi value in each sub-range, contrast weighting parameters table is obtained weighting parameters Wj, and calculates total interval [∑ Wj (∑ Ri/Gi)]/∑ Wj, the value of [∑ Wj (∑ Bi/Gi)]/∑ Wj; Wherein j is from 1 total value to the sub-range;
(4) according to total interval [∑ Wj (∑ Ri/Gi)]/∑ Wj, the value of [∑ Wj (∑ Bi/Gi)]/∑ Wj, tabling look-up obtains corresponding light source color temperature value, obtains R gain, B gain by the contrast table of corrections;
(5) Ri, the Bi value that is multiplied by each pixel of total interval respectively with R gain, B gain can obtain value Ria, the Bia behind white balance correction, that is: Ria=Ri * R gain, and Bia=Bi * B gains.
2. the white balancing treatment method of image capture unit according to claim 1 is characterized in that, wherein this image capture unit is with the CCD pick-up image.
3. the white balancing treatment method of image capture unit according to claim 1 is characterized in that, wherein this weighting parameters table is to obtain with experiment in advance.
4. the white balancing treatment method of image capture unit according to claim 1 is characterized in that, wherein this table of corrections is to obtain with experiment in advance.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN 00136747 CN1202491C (en) | 2000-12-28 | 2000-12-28 | White balancing treatment method for digital image pick-up |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN 00136747 CN1202491C (en) | 2000-12-28 | 2000-12-28 | White balancing treatment method for digital image pick-up |
Publications (2)
Publication Number | Publication Date |
---|---|
CN1361498A CN1361498A (en) | 2002-07-31 |
CN1202491C true CN1202491C (en) | 2005-05-18 |
Family
ID=4597454
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN 00136747 Expired - Fee Related CN1202491C (en) | 2000-12-28 | 2000-12-28 | White balancing treatment method for digital image pick-up |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN1202491C (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2017008351A1 (en) * | 2015-07-10 | 2017-01-19 | 宇龙计算机通信科技(深圳)有限公司 | White balance adjusting method and photographing terminal |
Families Citing this family (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP5250996B2 (en) * | 2007-04-25 | 2013-07-31 | 株式会社ニコン | White balance adjustment device, imaging device, and white balance adjustment program |
CN103761947B (en) * | 2013-12-26 | 2017-10-17 | 深圳市华星光电技术有限公司 | Adjust method, the manufacture method of liquid crystal display and the liquid crystal display of white balance |
CN104202586B (en) * | 2014-08-11 | 2017-03-22 | 宇龙计算机通信科技(深圳)有限公司 | Method for increasing white balance judgment accuracy and device thereof |
CN106400483A (en) * | 2016-09-08 | 2017-02-15 | 济宁锦祥化工科技有限公司 | Green edible grade softening agent for textile printing and dyeing and preparing method thereof |
-
2000
- 2000-12-28 CN CN 00136747 patent/CN1202491C/en not_active Expired - Fee Related
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2017008351A1 (en) * | 2015-07-10 | 2017-01-19 | 宇龙计算机通信科技(深圳)有限公司 | White balance adjusting method and photographing terminal |
Also Published As
Publication number | Publication date |
---|---|
CN1361498A (en) | 2002-07-31 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN109765245B (en) | Large-size display screen defect detection and positioning method | |
CN1167035C (en) | Detection and calibration of dynamic abnormal picture element | |
JP4707450B2 (en) | Image processing apparatus and white balance adjustment apparatus | |
US6201530B1 (en) | Method and system of optimizing a digital imaging processing chain | |
EP1876565A3 (en) | Method, and apparatus for processing image, recording medium and computer program | |
EP0876731A1 (en) | Method and system for automatically calibrating a color camera in a machine vision system | |
JPH03125286A (en) | Color picture data processor | |
CN101242542A (en) | An image detection method and device | |
US8111301B2 (en) | Method of performing auto white balance in YCbCr color space | |
WO2007090070A2 (en) | Automatic color calibration of an image sensor | |
US5809894A (en) | System and method for registration control on-press during press set-up and printing | |
CN110175969B (en) | Image processing method and image processing apparatus | |
CN1202491C (en) | White balancing treatment method for digital image pick-up | |
EP1808680A2 (en) | Measuring method and apparatus using color images | |
CN1142063C (en) | Method for automatically detecting printing quality of colour picture | |
CN111899690B (en) | Method and device for improving low-brightness Mura | |
CN110702615B (en) | Color correction method for color digital transmission microscope | |
CN1905687A (en) | Apparatus and method capable of correcting human skin pixels in picture | |
JP3950551B2 (en) | Image processing method, apparatus, and recording medium | |
EP2802139B1 (en) | Image color adjusting method and electronic device using the same | |
CN117115610A (en) | Metal surface defect detection method and system based on multi-angle image exposure fusion | |
CN1187990C (en) | Edge achromatic circuit and method | |
CN105303515B (en) | A kind of color misregistration correction method under special illumination condition in closed experimental box | |
US5930401A (en) | Shade gradation correction method and apparatus | |
CN100515094C (en) | Photo dazzle color temperature correction |
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 |
Granted publication date: 20050518 Termination date: 20151228 |
|
EXPY | Termination of patent right or utility model |