CN105578166B - A kind of colour temperature determines method and device - Google Patents
A kind of colour temperature determines method and device Download PDFInfo
- Publication number
- CN105578166B CN105578166B CN201610013622.7A CN201610013622A CN105578166B CN 105578166 B CN105578166 B CN 105578166B CN 201610013622 A CN201610013622 A CN 201610013622A CN 105578166 B CN105578166 B CN 105578166B
- Authority
- CN
- China
- Prior art keywords
- colour temperature
- white balance
- colour
- image
- balance gains
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N9/00—Details of colour television systems
- H04N9/64—Circuits for processing colour signals
- H04N9/73—Colour balance circuits, e.g. white balance circuits or colour temperature control
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N23/00—Cameras or camera modules comprising electronic image sensors; Control thereof
- H04N23/80—Camera processing pipelines; Components thereof
- H04N23/84—Camera processing pipelines; Components thereof for processing colour signals
- H04N23/88—Camera processing pipelines; Components thereof for processing colour signals for colour balance, e.g. white-balance circuits or colour temperature control
Landscapes
- Engineering & Computer Science (AREA)
- Multimedia (AREA)
- Signal Processing (AREA)
- Color Television Image Signal Generators (AREA)
- Processing Of Color Television Signals (AREA)
Abstract
The present invention provides a kind of colour temperature and determines method and device, the described method includes:The white balance gains of any two primary colours in the primary colours of the image of the target grey object collected under the target light source of at least three kinds different-colours are counted, and determine the relation curve of the white balance gains and colour temperature;Wherein, the target light source is to meet the light source of black body radiation;By in CIE chromaticity diagram etc. correlated colour temperatures line be mapped in the relation curve of the white balance gains and colour temperature, with demarcate the corresponding colour temperature of image of the target grey object collected under each target light source etc. correlated colour temperatures line;According to the white balance gains of image to be detected and the correlated colour temperatures line such as described, the corresponding colour temperature of described image to be detected is determined.The applicability and accuracy that colour temperature determines can be improved using the embodiment of the present invention.
Description
Technical field
The present invention relates to technical field of image processing more particularly to a kind of colour temperature to determine method and device.
Background technology
Colour temperature is to represent the attribute of light source light spectrum composition, and spectrum intermediate waves component multi color temperature is high, the inclined blue-green of light, long wave
Component multi color temperature is low, the inclined reddish yellow of image.
The image modalities for being configured with imaging sensor pass through R (Red, red), G (Green, green), B (Blue, indigo plant
Color) photoelectric signal transformations of three passages realizes the acquisition of chromatic image, but R, G, B that different-colour light source is sent in environment
Color component intensity is different, percent of pass difference and different electrooptical device pair of the optic path to tri- color components of R, G, B
The conversion ratio of varying strength color component is different, is likely to the electric signal of chromatic image for causing image modalities last
Intensity has differences with object own color, partially yellow under low colour temperature environment such as the white object in actual scene, under high color temperature
It is partially blue, and, i.e., image modalities gather shadow partially green to the image of green light photosensitive property better electrooptical device output
As color is influenced by colour temperature, it is necessary to be reduced according to colour temperature to color.Thus color temperature estimation has in image acquisition system
Important function.
The content of the invention
The present invention provides a kind of colour temperature and determines method and device, to improve the applicability and accuracy that colour temperature determines.
It is according to embodiments of the present invention in a first aspect, providing a kind of colour temperature determines method, including:
In the three primary colours for counting the image of the target grey object collected under the target light source of at least three kinds different-colours
The white balance gains of any two primary colours and corresponding colour temperature, and determine the relation curve of the white balance gains and colour temperature;
Wherein, the target light source is to meet the light source of black body radiation;
By in International Commission on Illumination's CIE chromaticity diagram etc. correlated colour temperatures line be mapped to the white balance gains and colour temperature
In relation curve, with demarcate the corresponding colour temperature of image of the target grey object collected under each target light source etc. correlated colour temperatures
Line;
According to the white balance gains of image to be detected and the correlated colour temperatures line such as described, determine that described image to be detected corresponds to
Colour temperature.
Second aspect according to embodiments of the present invention provides a kind of colour temperature determining device, including:
Statistic unit, for counting the figure of the target grey object collected under the target light source of at least three kinds different-colours
The white balance gains of any two primary colours in the three primary colours of picture;Wherein, the target light source is to meet the light source of black body radiation;
First determination unit, for determining the relation curve of the white balance gains and colour temperature;
Demarcate unit, for by International Commission on Illumination's CIE chromaticity diagram etc. correlated colour temperatures line be mapped to it is described white flat
In the relation curve of weighing apparatus gain and colour temperature, to demarcate the corresponding color of image of the target grey object collected under each target light source
Temperature etc. correlated colour temperatures line;
Second determination unit for the white balance gains according to image to be detected and the correlated colour temperatures line such as described, determines
The corresponding colour temperature of described image to be detected.
Using the embodiment of the present invention, the target grey that is collected under the target light source by counting at least three kinds different-colours
The white balance gains of any two primary colours in the three primary colours of the image of object determine that the relation of the white balance gains and colour temperature is bent
Line, and by CIE chromaticity diagram etc. correlated colour temperatures line be mapped in the relation curve of the white balance gains and colour temperature, with calibration
The corresponding colour temperature of image of the target grey object collected under each target light source etc. correlated colour temperatures line, and then according to be detected
The white balance gains of image and correlated colour temperatures line is waited, the corresponding colour temperature of image to be detected is determined, in Image Acquisition scene
It when light source is unsatisfactory for black body radiation, remains able to carry out colour temperature exactly to determine, improves applicability that colour temperature determines and accurate
Property.
Description of the drawings
Fig. 1 is the flow diagram that a kind of colour temperature provided in an embodiment of the present invention determines method;
Fig. 2A is the relation curve schematic diagram of a kind of white balance gains and colour temperature provided in an embodiment of the present invention;
Fig. 2 B are the relation curves of a kind of white balance gains and colour temperature provided in an embodiment of the present invention in three dimensional coordinate space
In schematic diagram;
Fig. 2 C be in a kind of CIE chromaticity diagram etc. correlated colour temperatures line schematic diagram;
Fig. 2 D are a kind of relation curve to white balance gains and colour temperature showing into row interpolation provided in an embodiment of the present invention
It is intended to;
Fig. 2 E are a kind of schematic diagrames of the correlated colour temperatures lines such as calibration provided in an embodiment of the present invention;
Fig. 3 is the flow diagram that another colour temperature provided in an embodiment of the present invention determines method;
Fig. 4 is a kind of structure diagram of colour temperature determining device provided in an embodiment of the present invention;
Fig. 5 is the structure diagram of another colour temperature determining device provided in an embodiment of the present invention;
Fig. 6 is the structure diagram of another colour temperature determining device provided in an embodiment of the present invention;
Fig. 7 is the structure diagram of another colour temperature determining device provided in an embodiment of the present invention.
Specific embodiment
In order to which those skilled in the art is made to more fully understand the technical solution in the embodiment of the present invention, and make of the invention real
Apply the above-mentioned purpose of example, feature and advantage can be more obvious understandable, below in conjunction with the accompanying drawings to technical side in the embodiment of the present invention
Case is described in further detail.
Fig. 1 is referred to, Fig. 1 is the flow diagram that a kind of colour temperature provided in an embodiment of the present invention determines method, such as Fig. 1 institutes
Show, which determines that method may comprise steps of:
The image of the target grey object collected under step 101, the target light source of at least three kinds different-colours of statistics
The white balance gains of any two primary colours in three primary colours, and determine the relation curve of the white balance gains and colour temperature, wherein, the mesh
It is the light source for meeting black body radiation to mark light source.
In the embodiment of the present invention, the above method can be applied to being configured with imaging sensor (such as digital image sensor)
Image modalities (such as camera, video camera).For ease of description, the executive agent of following method described above is image collection
It is illustrated exemplified by equipment.
In the embodiment of the present invention, target grey object is simultaneously not specific to a certain fixed grey object, but may refer to appoint
One for etc. correlated colour temperatures line model establish grey object;Wherein, grey refers to the color that saturation degree is 0.
Preferably, which can be standard gray card.
In the embodiment of the present invention, image modalities can gather the light for meeting black body radiation of at least three kinds different-colours
The image data of target grey object under source (hereinafter referred to as target light source) calculates the target light of the variant colour temperature collected
The white balance gains of any two primary colours in three primary colours of the image data of the target grey object under source.
Wherein, the white balance gains of image data include image progress required tri- components of R, G, B of white balance correction
Gain:RGain (R gains), GGain (G gains), BGain (B gains), as an alternative embodiment, this three points
The gain of amount can be calculated respectively by the following formula:
Wherein, avgR (i), avgG (i), avgB (i) are respectively the target gray collected under each colour temperature target light source
The average value of tri- components of R, G, B of each pixel in the image data of body, i represent the target light source of different-colour.
It wherein, therefore, can be respectively according to the target ash collected since in this embodiment, G gains are steady state value
The white balance gains of R component and B component in the three primary colours of the image of color object determine corresponding white balance gains and colour temperature
Relation curve.
But what deserves to be explained is in embodiments of the present invention, the calculation of the white balance gains of above-mentioned three primary colours is only
It is a kind of specific example rather than limiting the scope of the present invention of technical solution provided in an embodiment of the present invention.For example,
In embodiments of the present invention, the gain of three components can also be calculated by the following formula respectively:
Correspondingly, in this case, since R gains are steady state value, it can be respectively according to the target grey collected
The white balance gains of G components and B component in the three primary colours of the image of object determine the pass of corresponding white balance gains and colour temperature
It is curve.
It similarly, can also be according to the G in the three primary colours of the image of the target grey object collected in the embodiment of the present invention
The white balance gains of component and R component determine the relation curve of corresponding white balance gains and colour temperature, implement herein not
It repeats again.
For ease of description, below with the R component and B in the three primary colours of the image according to the target grey object collected
The white balance gains of component determine to be described exemplified by the relation curve of corresponding white balance gains and colour temperature.
In the embodiment of the present invention, the colour temperature of target light source can be measured by colour temperature measurement device (such as colour temperature meter).
In the embodiment of the present invention, image modalities count on the target ash collected under the target light source of variant colour temperature
Any two primary colours (are said in the embodiment of the present invention by taking R component and B component as an example in three primary colours of the image of color object
It is bright) white balance gains after, it may be determined that the relation curve of the white balance gains and colour temperature.
As an alternative embodiment, determining the relation curve of white balance gains and colour temperature, following step can be included
Suddenly:
11), according to the white balance gains of the above-mentioned two primary colours of the image collected under the target light source of variant colour temperature
(i.e. RGain, BGain) and corresponding colour temperature, respectively with the white balance gains (i.e. RGain and BGain) of two primary colours
To determine corresponding calibration point in the coordinate system of transverse and longitudinal coordinate;
12), carry out curve fitting to calibration point, to determine the relation curve of the white balance gains and colour temperature.
In this embodiment, image modalities count on the image collected under the target light source of variant colour temperature
After white balance gains, image modalities can according to the RGain of the image collected under the target light source of variant colour temperature and
BGain, using RGain as abscissa, BGain for the coordinate system of ordinate in determine corresponding calibration point (or for white balance
Correct position), and carry out curve fitting to each calibration point, to determine the relation curve of white balance gains and colour temperature, schematic diagram
It can as shown in Figure 2 A (wherein Tc is colour temperature);Wherein, the relation curve of white balance gains and colour temperature respectively with RGain,
BGain and colour temperature can as shown in Figure 2 B for the schematic diagram in the three-dimensional system of coordinate of reference axis, and the white balance shown in Fig. 2A increases
The relation curve of benefit and colour temperature is relation curve shown in Fig. 2 B respectively using RGain and BGain as in the coordinate system of transverse and longitudinal coordinate
Projection, herein based on the relation curve shown in Fig. 2A establish etc. correlated colour temperatures line model.
Step 102, by CIE chromaticity diagram etc. correlated colour temperatures line be mapped to the white balance gains and colour temperature relation it is bent
Line, with demarcate the corresponding colour temperature of image of the target grey object collected under each target light source etc. correlated colour temperatures line.
In the embodiment of the present invention, image modalities determine the target grey collected under the target light source of variant colour temperature
The white balance gains of the image of object are with after the relation curve of corresponding colour temperature, can further demarcate under each target light source and gather
The corresponding colour temperature of image of the target grey object arrived etc. correlated colour temperatures line, to establish the correlated colour temperatures line model such as corresponding.
It specifically, can be according to CIE (International Commission on illumination, international lighting
The committee) related colours are waited at each colour temperature in 1960UCS chromatic diagrams (a kind of standard chromatic diagram, hereinafter referred to as CIE chromaticity diagram)
The slope of warm line, demarcate the target grey object collected under each target light source the corresponding colour temperature of image etc. correlated colour temperatures line
Slope.Wherein, in CIE chromaticity diagram etc. correlated colour temperatures line can as shown in Figure 2 C, the transverse and longitudinal coordinate of CIE chromaticity diagram difference
It is correspondingWith
Wherein, for the colour temperature being present in CIE chromaticity diagram, by the colour temperature etc. correlated colour temperatures line in CIE chromaticity diagram
Slope, be determined as the colour temperature etc. slope of the correlated colour temperatures line in the relation curve of above-mentioned white balance gains and colour temperature;
For not existing in the colour temperature in CIE chromaticity diagram, the two neighboring color of the colour temperature according to present in CIE chromaticity diagram
Temperature etc. slope of the correlated colour temperatures line in CIE chromaticity diagram, determine the colour temperature etc. correlated colour temperatures line in above-mentioned white balance gains
With the slope in the relation curve of colour temperature;Wherein, in two colour temperatures adjacent with the colour temperature one be higher than the colour temperature, another is small
In the colour temperature;Etc. slope and the colour temperature size of correlated colour temperatures line meet monotonicity (i.e. with the dull increase of the increase of colour temperature or singly
It adjusts and reduce small).
As an example it is assumed that CIE chromaticity diagram includes colour temperature 10000K, 6000K and 4000K, gathered under each target light source
To the corresponding colour temperature of image of target grey object be respectively 10000K, 7500K and 6000K, then collected under target light source
Target grey object the corresponding colour temperature of image be 10000K and 6000K etc. the slope of correlated colour temperatures line can direct basis
Colour temperature 10000K and 6000K in above-mentioned chromatic diagram etc. the slope of correlated colour temperatures line determine that and colour temperature 7500K waits related colours
The slope of warm line then can be according to two colour temperatures (10000K and 6000K) adjacent with the colour temperature (7500K) in CIE chromaticity diagram
Slope determines.For example, it is assumed that colour temperature 10000K etc. the corresponding angle of slope of the correlated colour temperatures line in CIE chromaticity diagram be A1,
Colour temperature 6000K etc. the corresponding angle of slope of the correlated colour temperatures line in CIE chromaticity diagram be A2, then colour temperature 7500K etc. correlations
The corresponding angle of slope of the colour temperature line in CIE chromaticity diagram can be:A2+(A2-A1)*(7500K-6000K)/(10000K-
6000K), and then, can be oblique in the relation curve of above-mentioned white balance gains and colour temperature according to the angle-determining colour temperature 6000K
Rate.Wherein, the colour temperatures such as 6000K, 7500K and 10000K etc. correlated colour temperatures line increase in CIE chromaticity diagram and above-mentioned white balance
Benefit in the relation curve of colour temperature with being sequentially increased.
Step 103 according to the white balance gains of image to be detected and waits correlated colour temperatures line, determines that image to be detected corresponds to
Colour temperature.
In the embodiment of the present invention, image to be detected can be any one two field picture that image modalities collect.
When image modalities it needs to be determined that during the corresponding colour temperature of image to be detected, image modalities can calculate this and treat
The white balance gains of detection image, and according to the white balance gains of the image to be detected and the correlated colour temperatures line such as above-mentioned, determine
The corresponding colour temperature of the image to be detected.Wherein, the corresponding colour temperature of image to be detected gathers the mapping to be checked for image modalities
As when residing scene light source colour temperature.
As an alternative embodiment, in above-mentioned steps 103, according to the white balance gains of image to be detected and wait
Correlated colour temperature line determines the corresponding colour temperature of image to be detected, may comprise steps of:
21), according to the white balance gains (i.e. RGain and BGain) of the above-mentioned two primary colours of image to be detected, respectively with
The white balance gains (RGain and BGain) of two primary colours are the definite corresponding target location in the coordinate system of transverse and longitudinal coordinate;
22), according to target location to the distance and the grade related colours of adjacent two of the correlated colour temperatures line such as adjacent two
The corresponding colour temperature of warm line, determines the corresponding colour temperature of image to be detected;Wherein, this adjacent two etc. correlated colour temperatures line be located at it is described
The both sides of target location.
In this embodiment, for any one two field picture collected, image modalities can carry out the image
White balance processing, to obtain the RGain of the image and BGain, and then is being the seat of ordinate by abscissa, BGain of RGain
In mark system, corresponding target location is determined.
Further, image modalities can travel through the correlated colour temperatures line such as above-mentioned, obtain the corresponding phase in the target location
The adjacent correlated colour temperatures lines such as two, i.e., positioned at target location both sides, and the correlated colour temperatures lines such as two immediate with the target location.
Image modalities can calculate target location to the distance of the correlated colour temperatures line such as adjacent two, and then according to the target location
To the distance and the corresponding colour temperature of the correlated colour temperatures lines such as adjacent two of the correlated colour temperatures lines such as adjacent two, determine to be checked
The corresponding colour temperature of altimetric image.
As an alternative embodiment, in embodiments of the present invention, according to target location to the correlations such as adjacent two
The distance of colour temperature line and this adjacent two etc. the corresponding colour temperature of correlated colour temperatures line, determine the corresponding colour temperature of image to be detected,
It can be realized especially by the following formula:
Wherein, TcCur is the corresponding colour temperature of image to be detected, and TcLf, TcRt are the correlated colour temperatures lines pair such as adjacent two
The colour temperature answered, TcRt > TcLf, distLf and distRt be respectively target location to the correlated colour temperatures lines such as adjacent two away from
From.
It, can be according to the color after image modalities determine the corresponding colour temperature of the image collected in the embodiment of the present invention
Temperature carries out color rendition correction, and the specific implementation embodiment of the present invention repeats no more.
What deserves to be explained is in embodiments of the present invention, the correlated colour temperatures lines such as step 101~step 102 is described
Calibration mode can be only performed once in whole flow process, and based on such correlated colour temperature line parameter, image modalities can be held
The arbitrary multiple step 103 of row, i.e. image modalities can always arrive subsequent acquisition using such correlated colour temperature line parameter
Image carry out colour temperature determine.When being determined without carrying out colour temperature every time, an inferior correlated colour temperature line is redefined.
Further, it is contemplated that image modalities use filter when hardware units difference, the image collected
Colour temperature may also can be distinct, therefore, for any money image modalities, it is necessary to be used for the image modalities
Different hardware device (such as filter hardware unit that the colour temperature of the image collected can be had an impact) calibration it is different etc. phases
Colour temperature line is closed, specific implementation repeats no more herein.
As it can be seen that in method flow shown in Fig. 1, collected under the target light source by counting at least three kinds different-colours
Target grey object image white balance gains and corresponding colour temperature relation curve, and by CIE chromaticity diagram etc. phases
It closes colour temperature line to be mapped in the relation curve of the white balance gains and colour temperature, to demarcate the target collected under each target light source ash
The corresponding colour temperature of image of color object etc. correlated colour temperatures line, and then it needs to be determined that image to be detected colour temperature when, Ke Yigen
According to image to be detected white balance gains and wait correlated colour temperatures line, the colour temperature of the image to be detected is determined, in Image Acquisition field
It when light source in scape is unsatisfactory for black body radiation, remains able to carry out colour temperature exactly to determine, improves the applicability that colour temperature determines
And accuracy.
Fig. 3 is referred to, Fig. 3 determines the flow diagram of method, such as Fig. 3 for another colour temperature provided in an embodiment of the present invention
Shown, which determines that method may comprise steps of:
The R of the image of the target grey object collected under step 301, the target light source of at least three kinds different-colours of statistics
The white balance gains of component and B component.
The RGain of the image of the target grey object collected under step 302, the target light source according to variant colour temperature,
BGain and corresponding colour temperature, respectively using RGain and BGain as the coordinate system of transverse and longitudinal coordinate in determine corresponding calibration point.
Step 303 carries out curve fitting to calibration point, to determine the relation curve of white balance gains and colour temperature.
In the embodiment of the present invention, the specific implementation of step 301~step 303 may refer in method flow shown in FIG. 1
Associated description, details are not described herein for the embodiment of the present invention.
Step 304, to the calibration point in the relation curve of white balance gains and colour temperature into row interpolation, to increase white balance increasing
Benefit and the quantity of the calibration point on the relation curve of colour temperature.
In the embodiment of the present invention, it is contemplated that when calibration point is very few in the relation curve of white balance gains and colour temperature, subsequently
In flow according to each calibration point it is corresponding image to be detected is determined when correlated colour temperatures line colour temperature when accuracy rate can than relatively low, because
And after the relation curve of white balance gains and colour temperature is determined, it can be to the calibration point on the relation curve into row interpolation, to increase
Add the quantity of the calibration point on the relation curve, schematic diagram can be as shown in Figure 2 D.
It should be appreciated that when in the relation curve of white balance gains and colour temperature with the image collected under each target light source
When the quantity of the corresponding calibration point of white balance gains is enough, i.e., (species of such as target light source is more than the species of target light source enough
Predetermined threshold value) when, the interpolation of calibration point can not also be carried out, and directly carry out the processing of subsequent step.
Step 305, by CIE chromaticity diagram etc. correlated colour temperatures line be mapped to the white balance gains and colour temperature relation it is bent
In line, with calibration and the correlated colour temperatures line such as white balance gains are corresponding with each calibration point on the relation curve of colour temperature.
In the embodiment of the present invention, calibration point in the relation curve to white balance gains and colour temperature into after row interpolation,
Image modalities can be to each calibration point on the relation curve of white balance gains and colour temperature (including with being adopted under each target light source
The corresponding calibration point of white balance gains of the image collected and the calibration point increased newly by interpolation) the correlated colour temperatures line such as carry out
Calibration, schematic diagram can be as shown in Figure 2 E.
Wherein, the calibration point being present in for corresponding colour temperature in CIE chromaticity diagram, by the corresponding colour temperature of the calibration point etc.
Slope of the correlated colour temperature line in CIE chromaticity diagram, be determined as the correlated colour temperatures lines such as the calibration point is corresponding white balance gains with
Slope in the relation curve of colour temperature;
The calibration point in CIE chromaticity diagram is not existed in for corresponding colour temperature, according to present in CIE chromaticity diagram with the mark
Pinpoint two adjacent colour temperatures of corresponding colour temperature etc. slope of the correlated colour temperatures line in CIE chromaticity diagram, determine the calibration point pair
Answer etc. slope of the correlated colour temperatures line in the relation curve of white balance gains and colour temperature;Wherein, color corresponding with the calibration point
One is higher than the corresponding colour temperature of the calibration point in two adjacent colour temperatures of temperature, another is less than the corresponding colour temperature of the calibration point;Deng
The slope of correlated colour temperature line meets monotonicity with colour temperature size.
Step 306 according to the white balance gains of image to be detected and waits correlated colour temperatures line, determines that image to be detected corresponds to
Colour temperature.
In the embodiment of the present invention, the specific implementation of step 306 may refer to the associated description in above-mentioned steps 103, this hair
Details are not described herein for bright embodiment.
It should be noted that in embodiments of the present invention, if target location such as is at the outermost of correlated colour temperatures line, i.e., not
In the presence of the correlated colour temperatures line such as two neighboring positioned at target location both sides, then can by most proximity target location etc. correlated colour temperatures
The corresponding colour temperature of line is determined as the corresponding colour temperature of image to be detected or further determines that image to be detected corresponds to other strategies
Colour temperature, it is not limited in the embodiment of the present invention.
By above description as can be seen that in technical solution provided in an embodiment of the present invention, by counting at least three kinds
The white balance of any two primary colours in the three primary colours of the image of the target grey object collected under the target light source of different-colour
Gain, determines the relation curve of the white balance gains and colour temperature, and by CIE chromaticity diagram etc. correlated colour temperatures line be mapped to it is described
In the relation curve of white balance gains and colour temperature, to demarcate the image of the target grey object collected under each target light source correspondence
Colour temperature etc. correlated colour temperatures line, and then according to the white balance gains of image to be detected and wait correlated colour temperatures line, determine to be checked
The corresponding colour temperature of altimetric image when the light source in Image Acquisition scene is unsatisfactory for black body radiation, remains able to carry out color exactly
Temperature determines, improves applicability and accuracy that colour temperature determines.
Fig. 4 is referred to, is a kind of structure diagram of colour temperature determining device provided in an embodiment of the present invention, wherein, the color
Warm determining device can be applied to the image modalities in above method embodiment, as shown in figure 4, the colour temperature determining device can
To include:
Statistic unit 410, for counting the target grey object collected under the target light source of at least three kinds different-colours
Image three primary colours in any two primary colours white balance gains;Wherein, the target light source is to meet the light of black body radiation
Source;
First determination unit 420, for determining the relation curve of the white balance gains and colour temperature;
Demarcate unit 430, for by CIE chromaticity diagram etc. correlated colour temperatures line be mapped to the white balance gains and colour temperature
Relation curve in, with demarcate the corresponding colour temperature of image of the target grey object collected under each target light source wait related colours
Warm line;
Second determination unit 440, for the white balance gains according to image to be detected and the correlated colour temperatures line such as described, really
Determine the corresponding colour temperature of described image to be detected.
Please refer to fig. 5, Fig. 5 is the structure diagram of another colour temperature determining device provided in an embodiment of the present invention,
On the basis of embodiment illustrated in fig. 4, in the colour temperature determining device shown in Fig. 5, the first determination unit 420 can include:
First determination subelement 421, for the target grey object collected under the target light source according to variant colour temperature
Image described two primary colours white balance gains and corresponding colour temperature, respectively with the white balance gains of two primary colours
To determine corresponding calibration point in the coordinate system of transverse and longitudinal coordinate;
Fitting unit 422, for carrying out curve fitting to the calibration point, to determine the white balance gains and colour temperature
Relation curve.
Also referring to Fig. 6, Fig. 6 is the structure diagram of another colour temperature determining device provided in an embodiment of the present invention,
On the basis of embodiment illustrated in fig. 5, the colour temperature determining device shown in Fig. 6 can also include:
Interpolating unit 450, for the calibration point in the relation curve to the white balance gains and colour temperature into row interpolation, with
Increase the quantity of the calibration point on the relation curve of the white balance gains and colour temperature;
Correspondingly, the calibration unit 430 can be specifically used for being present in the CIE chromaticity diagram for corresponding colour temperature
In calibration point, by the corresponding colour temperature of the calibration point etc. slope of the correlated colour temperatures line in the CIE chromaticity diagram, be determined as this
The slopes of the correlated colour temperatures line in the relation curve of the white balance gains and colour temperature such as calibration point is corresponding;For corresponding color
Temperature does not exist in the calibration point in the CIE chromaticity diagram, the color corresponding with the calibration point according to present in the CIE chromaticity diagram
Adjacent two colour temperatures of temperature etc. slope of the correlated colour temperatures line in the CIE chromaticity diagram, determine the phases such as the calibration point is corresponding
Close slope of the colour temperature line in the relation curve of the white balance gains and colour temperature;Wherein, colour temperature phase corresponding with the calibration point
One is higher than the corresponding colour temperature of the calibration point in two adjacent colour temperatures, another is less than the corresponding colour temperature of the calibration point;Etc. correlations
The slope of colour temperature line meets monotonicity with colour temperature size.
Also referring to Fig. 7, Fig. 7 is the structure diagram of another colour temperature determining device provided in an embodiment of the present invention,
On the basis of embodiment illustrated in fig. 4, in colour temperature determining device shown in Fig. 7, the second determination unit 440 can include:
Second determination subelement 441, for the white balance gains of described two primary colours according to described image to be detected,
Respectively using the white balance gains of described two primary colours to determine corresponding target location in the coordinate system of transverse and longitudinal coordinate;
3rd determination subelement 442, for the distance according to the target location to the correlated colour temperatures line such as adjacent two, with
And this adjacent two etc. the corresponding colour temperature of correlated colour temperatures line, determine the corresponding colour temperature of image to be detected;Wherein, this adjacent two
Etc. correlated colour temperatures line be located at the both sides of the target location.
In an alternative embodiment, the 3rd determination subelement 442 can be specifically used for realizing basis by the following formula
The target location to the correlated colour temperatures line such as adjacent two distance and this adjacent two etc. the corresponding color of correlated colour temperatures line
Temperature determines the corresponding colour temperature of image to be detected:
Wherein, TcCur is the corresponding colour temperature of described image to be detected, and TcLf, TcRt are the correlated colour temperatures such as adjacent two
The corresponding colour temperature of line, TcRt > TcLf, distLf and distRt are respectively that related colours are waited in the target location to this adjacent two
The distance of warm line.
The function of unit and the realization process of effect specifically refer to and step are corresponded in the above method in above device
Realization process, details are not described herein.
For device embodiment, since it corresponds essentially to embodiment of the method, so related part is real referring to method
Apply the part explanation of example.The apparatus embodiments described above are merely exemplary, wherein described be used as separating component
The unit of explanation may or may not be physically separate, and the component shown as unit can be or can also
It is not physical location, you can be located at a place or can also be distributed in multiple network element.It can be according to reality
It needs that some or all of module therein is selected to realize the purpose of the present invention program.Those of ordinary skill in the art are not paying
In the case of going out creative work, you can to understand and implement.
As seen from the above-described embodiment, the target grey collected under the target light source by counting at least three kinds different-colours
The white balance gains of any two primary colours in the three primary colours of the image of object determine that the relation of the white balance gains and colour temperature is bent
Line, and by CIE chromaticity diagram etc. correlated colour temperatures line be mapped in the relation curve of the white balance gains and colour temperature, with calibration
The corresponding colour temperature of image of the target grey object collected under each target light source etc. correlated colour temperatures line, and then according to be detected
The white balance gains of image and correlated colour temperatures line is waited, the corresponding colour temperature of image to be detected is determined, in Image Acquisition scene
It when light source is unsatisfactory for black body radiation, remains able to carry out colour temperature exactly to determine, improves applicability that colour temperature determines and accurate
Property.
Those skilled in the art will readily occur to the present invention its after considering specification and putting into practice invention disclosed herein
Its embodiment.This application is intended to cover the present invention any variations, uses, or adaptations, these modifications, purposes or
Person's adaptive change follows the general principle of the present invention and including undocumented common knowledge in the art of the invention
Or conventional techniques.Description and embodiments are considered only as illustratively, and true scope and spirit of the invention are by following
Claim is pointed out.
It should be appreciated that the invention is not limited in the precision architecture for being described above and being shown in the drawings, and
And various modifications and changes may be made without departing from the scope thereof.The scope of the present invention is only limited by appended claim.
Claims (8)
1. a kind of colour temperature determines method, which is characterized in that including:
Count arbitrary in the three primary colours of the image of the target grey object collected under the target light source of at least three kinds different-colours
The white balance gains of two primary colours, and determine the relation curve of the white balance gains and colour temperature;Wherein, the target light source is
Meet the light source of black body radiation;
By in International Commission on Illumination's CIE chromaticity diagram etc. correlated colour temperatures line be mapped to the relation of the white balance gains and colour temperature
In curve, with demarcate the corresponding colour temperature of image of the target grey object collected under each target light source etc. correlated colour temperatures line;
According to the white balance gains of image to be detected and the correlated colour temperatures line such as described, the corresponding color of described image to be detected is determined
Temperature;
Wherein, the white balance gains according to image to be detected and the correlated colour temperatures line such as described, determine the mapping to be checked
As corresponding colour temperature includes:According to the white balance gains of described two primary colours of described image to be detected, respectively with described two
The white balance gains of a primary colours are the definite corresponding target location in the coordinate system of transverse and longitudinal coordinate;It is arrived according to the target location
The distance of the correlated colour temperatures line such as adjacent two and this adjacent two etc. the corresponding colour temperature of correlated colour temperatures line, determine to be detected
The corresponding colour temperature of image;Wherein, this adjacent two etc. correlated colour temperatures line be located at the both sides of the target location.
2. the according to the method described in claim 1, it is characterized in that, relation song for determining the white balance gains and colour temperature
Line, including:
According to the white flat of described two primary colours of the image of the target grey object collected under the target light source of variant colour temperature
Weigh gain and corresponding colour temperature, respectively using the white balance gains of two primary colours as the coordinate system of transverse and longitudinal coordinate in determine pair
The calibration point answered;
It carries out curve fitting to the calibration point, to determine the relation curve of the white balance gains and colour temperature.
3. according to the method described in claim 2, it is characterized in that, it is described carry out curve fitting to the calibration point after, also
Including:
To the calibration point in the relation curve of the white balance gains and colour temperature into row interpolation, with increase the white balance gains with
The quantity of calibration point on the relation curve of colour temperature;
In the CIE chromaticity diagram by International Commission on Illumination etc. correlated colour temperatures line be mapped to the white balance gains and colour temperature
Relation curve, with demarcate the corresponding colour temperature of image of the target grey object collected under each target light source etc. correlated colour temperatures
Line, including:
Be present in the calibration point in the CIE chromaticity diagram for corresponding colour temperature, by the corresponding colour temperature of the calibration point etc. correlations
Slope of the colour temperature line in the CIE chromaticity diagram is determined as the correlated colour temperatures lines such as the calibration point is corresponding and increases in the white balance
Benefit and the slope in the relation curve of colour temperature;
Do not exist in the calibration point in the CIE chromaticity diagram for corresponding colour temperature, according to present in the CIE chromaticity diagram with
Two adjacent colour temperatures of the corresponding colour temperature of the calibration point etc. slope of the correlated colour temperatures line in the CIE chromaticity diagram, determine should
The slopes of the correlated colour temperatures line in the relation curve of the white balance gains and colour temperature such as calibration point is corresponding;Wherein, with the mark
It pinpoints in two adjacent colour temperatures of corresponding colour temperature one and is higher than the corresponding colour temperature of the calibration point, another is less than the calibration point pair
The colour temperature answered;Etc. slope and the colour temperature size of correlated colour temperatures line meet monotonicity.
It is 4. according to the method described in claim 1, it is characterized in that, described according to the target location to the correlations such as adjacent two
The distance of colour temperature line and this adjacent two etc. the corresponding colour temperature of correlated colour temperatures line, determine the corresponding colour temperature of image to be detected,
It is realized especially by the following formula:
<mrow>
<mi>T</mi>
<mi>c</mi>
<mi>C</mi>
<mi>u</mi>
<mi>r</mi>
<mo>=</mo>
<mi>T</mi>
<mi>c</mi>
<mi>L</mi>
<mi>f</mi>
<mo>+</mo>
<mfrac>
<mrow>
<mi>d</mi>
<mi>i</mi>
<mi>s</mi>
<mi>t</mi>
<mi>L</mi>
<mi>f</mi>
</mrow>
<mrow>
<mi>d</mi>
<mi>i</mi>
<mi>s</mi>
<mi>t</mi>
<mi>L</mi>
<mi>f</mi>
<mo>+</mo>
<mi>d</mi>
<mi>i</mi>
<mi>s</mi>
<mi>t</mi>
<mi>R</mi>
<mi>t</mi>
</mrow>
</mfrac>
<mrow>
<mo>(</mo>
<mi>T</mi>
<mi>c</mi>
<mi>R</mi>
<mi>t</mi>
<mo>-</mo>
<mi>T</mi>
<mi>c</mi>
<mi>L</mi>
<mi>f</mi>
<mo>)</mo>
</mrow>
</mrow>
Wherein, TcCur is the corresponding colour temperature of described image to be detected, and TcLf, TcRt are the correlated colour temperatures lines pair such as adjacent two
The colour temperature answered, TcRt > TcLf, distLf and distRt are respectively the target location to the correlated colour temperatures lines such as adjacent two
Distance.
5. a kind of colour temperature determining device, which is characterized in that including:
Statistic unit, for counting the image of the target grey object collected under the target light source of at least three kinds different-colours
The white balance gains of any two primary colours in three primary colours;Wherein, the target light source is to meet the light source of black body radiation;
First determination unit, for determining the relation curve of the white balance gains and colour temperature;
Demarcate unit, for by International Commission on Illumination's CIE chromaticity diagram etc. correlated colour temperatures line be mapped to the white balance and increase
In the relation curve of benefit and colour temperature, to demarcate the corresponding colour temperature of image of the target grey object collected under each target light source
Etc. correlated colour temperatures line;
Second determination unit for the white balance gains according to image to be detected and the correlated colour temperatures line such as described, determines described
The corresponding colour temperature of image to be detected
Wherein, second determination unit includes:
Second determination subelement, for the white balance gains of described two primary colours according to described image to be detected, respectively with
The white balance gains of described two primary colours are the definite corresponding target location in the coordinate system of transverse and longitudinal coordinate;
3rd determination subelement, for the distance and the phase according to the target location to the correlated colour temperatures line such as adjacent two
Adjacent two etc. the corresponding colour temperature of correlated colour temperatures line, determine the corresponding colour temperature of image to be detected;Wherein, this adjacent two etc. phases
Close the both sides that colour temperature line is located at the target location.
6. device according to claim 5, which is characterized in that first determination unit, including:
First determination subelement, for the image of target grey object that is collected under the target light source according to variant colour temperature
The white balance gains of described two primary colours and corresponding colour temperature are being sat respectively by transverse and longitudinal of the white balance gains of two primary colours
Corresponding calibration point is determined in target coordinate system;
Fitting unit, for carrying out curve fitting to the calibration point, to determine that the relation of the white balance gains and colour temperature is bent
Line.
7. device according to claim 6, which is characterized in that described device further includes:
Interpolating unit, for the calibration point in the relation curve to the white balance gains and colour temperature into row interpolation, to increase
State the quantity of the calibration point on the relation curve of white balance gains and colour temperature;
The calibration unit, the calibration point being present in specifically for calibration for corresponding colour temperature in the CIE chromaticity diagram, by this
The corresponding colour temperature of calibration point etc. slope of the correlated colour temperatures line in the CIE chromaticity diagram, it is corresponding etc. to be determined as the calibration point
Slope of the correlated colour temperature line in the relation curve of the white balance gains and colour temperature;It is not existed in for corresponding colour temperature described
Calibration point in CIE chromaticity diagram, two adjacent colors of the colour temperature corresponding with the calibration point according to present in the CIE chromaticity diagram
Temperature etc. slope of the correlated colour temperatures line in the CIE chromaticity diagram, determine the correlated colour temperatures lines such as the calibration point is corresponding described
Slope in the relation curve of white balance gains and colour temperature;Wherein, in two adjacent colour temperatures of colour temperature corresponding with the calibration point
One is higher than the corresponding colour temperature of the calibration point, another is less than the corresponding colour temperature of the calibration point;Etc. the slope of correlated colour temperatures line with
Colour temperature size meets monotonicity.
8. device according to claim 5, which is characterized in that the 3rd determination subelement, it is following specifically for passing through
Formula realizes the distance and the grade related colours of adjacent two to the correlated colour temperatures line such as adjacent two according to the target location
The corresponding colour temperature of warm line, determines the corresponding colour temperature of image to be detected:
<mrow>
<mi>T</mi>
<mi>c</mi>
<mi>C</mi>
<mi>u</mi>
<mi>r</mi>
<mo>=</mo>
<mi>T</mi>
<mi>c</mi>
<mi>L</mi>
<mi>f</mi>
<mo>+</mo>
<mfrac>
<mrow>
<mi>d</mi>
<mi>i</mi>
<mi>s</mi>
<mi>t</mi>
<mi>L</mi>
<mi>f</mi>
</mrow>
<mrow>
<mi>d</mi>
<mi>i</mi>
<mi>s</mi>
<mi>t</mi>
<mi>L</mi>
<mi>f</mi>
<mo>+</mo>
<mi>d</mi>
<mi>i</mi>
<mi>s</mi>
<mi>t</mi>
<mi>R</mi>
<mi>t</mi>
</mrow>
</mfrac>
<mrow>
<mo>(</mo>
<mi>T</mi>
<mi>c</mi>
<mi>R</mi>
<mi>t</mi>
<mo>-</mo>
<mi>T</mi>
<mi>c</mi>
<mi>L</mi>
<mi>f</mi>
<mo>)</mo>
</mrow>
</mrow>
Wherein, TcCur is the corresponding colour temperature of described image to be detected, and TcLf, TcRt are the correlated colour temperatures lines pair such as adjacent two
The colour temperature answered, TcRt > TcLf, distLf and distRt are respectively the target location to the correlated colour temperatures lines such as adjacent two
Distance.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610013622.7A CN105578166B (en) | 2016-01-08 | 2016-01-08 | A kind of colour temperature determines method and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610013622.7A CN105578166B (en) | 2016-01-08 | 2016-01-08 | A kind of colour temperature determines method and device |
Publications (2)
Publication Number | Publication Date |
---|---|
CN105578166A CN105578166A (en) | 2016-05-11 |
CN105578166B true CN105578166B (en) | 2018-06-05 |
Family
ID=55887766
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201610013622.7A Active CN105578166B (en) | 2016-01-08 | 2016-01-08 | A kind of colour temperature determines method and device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN105578166B (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105959661B (en) * | 2016-05-06 | 2019-07-26 | 联想(北京)有限公司 | A kind of color temperature estimation method and electronic equipment |
Families Citing this family (11)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105606230B (en) * | 2016-01-26 | 2018-06-15 | 浙江大学 | A kind of accurate method and system for obtaining correlated color temperature of light source |
CN106131527A (en) * | 2016-07-26 | 2016-11-16 | 深圳众思科技有限公司 | Dual camera color synchronization method, device and terminal |
CN106370398B (en) * | 2016-09-23 | 2019-02-22 | 北京小米移动软件有限公司 | Flash lamp acceptance method and device |
CN107682958A (en) * | 2017-10-13 | 2018-02-09 | 勤上光电股份有限公司 | A kind of LED desk lamp of computer-readable recording medium and the application medium |
CN107872663B (en) | 2017-12-25 | 2019-05-24 | Oppo广东移动通信有限公司 | Image processing method and device, computer readable storage medium and computer equipment |
CN108184106A (en) * | 2017-12-29 | 2018-06-19 | 努比亚技术有限公司 | Image processing method, mobile terminal and computer readable storage medium |
CN108234971B (en) | 2018-02-09 | 2019-11-05 | 上海小蚁科技有限公司 | White balance parameter determines method, white balance adjustment method and device, storage medium, terminal |
CN108965846A (en) * | 2018-09-07 | 2018-12-07 | 晶晨半导体(上海)股份有限公司 | Adjust method, system and the display of white balance |
CN109493829B (en) * | 2018-11-26 | 2020-08-04 | 深圳市华星光电半导体显示技术有限公司 | Method for acquiring color temperature of image |
CN110211062A (en) * | 2019-05-20 | 2019-09-06 | 深圳市华星光电半导体显示技术有限公司 | A kind of scene light source color temperature control method |
CN113256487B (en) * | 2021-06-10 | 2021-11-12 | 珠海市杰理科技股份有限公司 | Image processing method, device, equipment and storage medium |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1374505A (en) * | 2001-03-10 | 2002-10-16 | 三星电子株式会社 | Apparatus and method for counting colour temperature |
CN1691749A (en) * | 2004-04-21 | 2005-11-02 | 明基电通股份有限公司 | Digital camera capable of measuring chromaticity coordinate and related color temperature and method thereof |
CN101420626A (en) * | 2007-10-22 | 2009-04-29 | 索尼株式会社 | Color signal processing circuit, image capture device and method for processing color singal |
CN101697654A (en) * | 2009-10-30 | 2010-04-21 | 中山大学 | Correlated color temperature and color rendering index self-calibration circuit of LED light source consisting of light of multiple colors |
CN101738831A (en) * | 2008-11-25 | 2010-06-16 | 三星电子株式会社 | Method and apparatus for calibrating a color temperature of a projector |
CN101911715A (en) * | 2008-02-13 | 2010-12-08 | 高通股份有限公司 | The white balance calibration that is used for digital camera device |
-
2016
- 2016-01-08 CN CN201610013622.7A patent/CN105578166B/en active Active
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1374505A (en) * | 2001-03-10 | 2002-10-16 | 三星电子株式会社 | Apparatus and method for counting colour temperature |
CN1691749A (en) * | 2004-04-21 | 2005-11-02 | 明基电通股份有限公司 | Digital camera capable of measuring chromaticity coordinate and related color temperature and method thereof |
CN101420626A (en) * | 2007-10-22 | 2009-04-29 | 索尼株式会社 | Color signal processing circuit, image capture device and method for processing color singal |
CN101911715A (en) * | 2008-02-13 | 2010-12-08 | 高通股份有限公司 | The white balance calibration that is used for digital camera device |
CN101738831A (en) * | 2008-11-25 | 2010-06-16 | 三星电子株式会社 | Method and apparatus for calibrating a color temperature of a projector |
CN101697654A (en) * | 2009-10-30 | 2010-04-21 | 中山大学 | Correlated color temperature and color rendering index self-calibration circuit of LED light source consisting of light of multiple colors |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105959661B (en) * | 2016-05-06 | 2019-07-26 | 联想(北京)有限公司 | A kind of color temperature estimation method and electronic equipment |
Also Published As
Publication number | Publication date |
---|---|
CN105578166A (en) | 2016-05-11 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN105578166B (en) | A kind of colour temperature determines method and device | |
CN108174172B (en) | Image pickup method and device, computer readable storage medium and computer equipment | |
CN102204258B (en) | Image inputting apparatus | |
CN108024055B (en) | Method, apparatus, mobile terminal and the storage medium of white balance processing | |
CN105959662B (en) | Self-adapted white balance method of adjustment and device | |
US8462227B2 (en) | Digital camera module white balance calibration method and apparatus using only single illumination source data | |
CN104363434B (en) | Image processing apparatus | |
Inanici et al. | Evaluation of high dynamic range photography as a luminance mapping technique | |
US20130222652A1 (en) | Compensating for sensor saturation and microlens modulation during light-field image processing | |
Lin et al. | Revisiting radiometric calibration for color computer vision | |
CN112073703B (en) | Method and device for adjusting color correction matrix, terminal equipment and medium | |
CN107483908A (en) | White balance calibration method and electronic equipment | |
CN101933321A (en) | Image sensor apparatus and method for scene illuminant estimation | |
CN108012134B (en) | Image pickup method and device, computer readable storage medium and computer equipment | |
CN104954772B (en) | Image adjacent-grey pixel selection algorithm applied to automatic white balance algorithm | |
CN110213556B (en) | Automatic white balance method and system in monochrome scene, storage medium and terminal | |
CN103108469A (en) | Method and device for controlling output light of illuminating device and illuminating system | |
CN108063926A (en) | Image processing method and device, computer readable storage medium and computer equipment | |
CN104933706B (en) | A kind of imaging system color information scaling method | |
US20100149403A1 (en) | Automatic white balancing using meter sensors | |
CN109459136B (en) | Method and device for measuring chromaticity | |
TW201830337A (en) | Method and device for performing automatic white balance on an image | |
US20090244316A1 (en) | Automatic white balance control | |
CN108063934A (en) | Image processing method and device, computer readable storage medium and computer equipment | |
KR101680446B1 (en) | Creation device for color table, correction and control device for camera image and method thereof |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |