Specific embodiment
Embodiments of the present invention are described below in detail, the example of the embodiment is shown in the accompanying drawings, wherein from beginning
Same or similar element or element with the same or similar functions are indicated to same or similar label eventually.Below by ginseng
The embodiment for examining attached drawing description is exemplary, and for explaining only the invention, and is not considered as limiting the invention.
In the description of the present invention, it is to be understood that, term " first ", " second " are used for description purposes only, and cannot
It is interpreted as indication or suggestion relative importance or hidden conjunction indicates the quantity of indicated technical characteristic.Define as a result, " the
One ", the feature of " second " can express or it is hidden close include one or more feature.In description of the invention
In, the meaning of " plurality " is two or more, unless otherwise specifically defined.
In the description of the present invention, it should be noted that unless otherwise clearly defined and limited, term " installation ", " phase
Even ", " connection " shall be understood in a broad sense, for example, it may be being fixedly connected, may be a detachable connection, or be integrally connected;It can
To be mechanical connection, it is also possible to be electrically connected or can be in communication with each other;It can be directly connected, it can also be by between intermediary
It connects connected, can be the connection inside two elements or the interaction relationship of two elements.For the ordinary skill of this field
For personnel, the specific meanings of the above terms in the present invention can be understood according to specific conditions.
Following disclosure provides many different embodiments or example is used to realize different structure of the invention.In order to
Simplify disclosure of the invention, hereinafter to the component of specific examples and being set for describing.Certainly, they are merely examples, and
And it is not intended to limit the present invention.In addition, the present invention can in different examples repeat reference numerals and/or reference letter,
This repetition is for purposes of simplicity and clarity, itself not indicate between discussed various embodiments and/or setting
Relationship.In addition, the present invention provides various specific techniques and material example, but those of ordinary skill in the art can be with
Recognize the application of other techniques and/or the use of other materials.
Referring to Fig. 1, the white balance of the compatibility RGB color and CMY color space of better embodiment of the present invention
Adjustment system 100 includes processing module 102 and white balance module 104.
Processing module 102 is for pre-processing image data and exporting the pretreated image data.As example
Son explanation, image data may be from optical sensor 200 (such as cmos sensor).Optical sensor 200 converts optical signal
For electric signal, which forms image data and handles for the adjustment system 100 of white balance.
The white balance module 104 is used to receive the image data of the processing module 102 output.Under RGB color,
The white balance module 104 is used to carry out white balance to the image data to calculate to obtain the first yield value of the image data.?
Under CMY color space, which is used to carry out pixel array conversion to the image data, later according to RGB color
The transition matrix in space and CMY color space carries out white balance to the image data under CMY color space and calculates to be somebody's turn to do
Second yield value of image data.
The processing module 102 for receiving first yield value or second yield value, and according to first yield value or
Second yield value carries out blank level adjustment to the image data.
Specifically, the image data that optical sensor 200 exports is generally analog signal, and processing module 102 will first be made
Digital signal is converted to for the image data of analog signal, then digital signal is handled.Therefore, in present embodiment,
Processing unit 102 includes analogy signal processing unit 106, digital signal processing unit 108 and feedback unit 110.
The analogy signal processing unit 106 exports the image data after processing for receiving the image data.Example
Such as, 106 pairs of the analogy signal processing unit image datas as analog signal are for example modulated, filtered and are amplified etc. and is necessary
It handles to obtain the characteristic parameter of image data.When initial, analogy signal processing unit 106 is according to the yield value of setting to image
Data are handled.The yield value of setting includes the yield value of the setting under RGB color, and under CMY color space
Setting yield value.
The yield value of setting under RGB color includes the yield value G_ in the channel yield value R_GAIN, G in the channel R
The yield value B_GAIN of GAIN and channel B.The yield value of setting under CMY color space includes the yield value C_ of C-channel
The yield value Y_GAIN in the channel yield value M_GAIN and Y in the channel GAIN, M.
The image data that the digital signal processing unit 108 is used to export the analogy signal processing unit 106 is converted
For the digitized image data, and export the image data after digitlization.In conversion process, digital signal processing unit
108 can carry out the Digital Image Processing such as interpolation to image data.
Feed circuit can be used in the feedback unit 110, is used to receive and send first yield value or second gain
It is worth to the analogy signal processing unit 106.Therefore, first exported after white balance module 104 is to image real time transfer increases
Beneficial value and the second yield value can feed back to analogy signal processing unit 106, and analogy signal processing unit 106 is enable to pass through gain
Feedback is to adjust image effect.First yield value can be used for handling the image data of RGB color, and the second yield value can be used for
Handle the image data of CMY color space.
When the image data is RGB data, under RGB color, the white balance module 104 is for obtaining the image
The first of data refers to white point, and calculates the first average value, second flat of all this first in the image data with reference to white point
Mean value and third average value, and according to first average value, second average value and the third average value, judge each channel
Yield value adjusts situation to obtain first yield value.
Specifically, incorporated by reference to Fig. 2, firstly, 1) white balance module 104 is according to Rule of judgment:
A1) | R-G | < LIMIT1;
B1) | B-G | < LIMIT2;
C1) | B+R-2*G | < LIMIT3;
All first refer to white point in marked image data, wherein R indicates that the pixel value in the channel R, G indicate the channel G
Pixel value, B indicate the pixel value of channel B.Then all first average value R_AVER (the with reference to R, G, B in white points are calculated
One average value), G_AVER (the second average value) and B_AVER (third average value).In present embodiment, due to the picture in the channel G
On the basis of element value, therefore, white balance module 104 is calculated:
A2) R_AVER_SUB=R_AVER-G_AVER;
B2) B_AVER_SUB=B_AVER-G_AVER;
Wherein, the value size of LIMIT1, LIMIT2 and LIMIT3 are controlled by the register of the adjustment system 100 of white balance.
The value size of LIMIT1, LIMIT2 and LIMIT3 can be obtained according to application by many experiments measurement, in order to accurately be sentenced
The reference white point to break under each scene prevents from causing to judge by accident.
2) white balance module 104 is according to a2) and b2) the colour cast situation of the multilevel iudge image of the average value of formula,
A3) R_AVER_SUB > LOCK1;
B3) B_AVER_SUB > LOCK2;
For ideal scenario: image meets condition a3) then illustrate that current scene is that partially, colour temperature is low color temperature to red partially;Together
Sample meets condition b3 if image) if illustrate current scene be partially blue partially, colour temperature is high color temperature.
Wherein, the value size of LOCK1 and LOCK2 can be controlled by the register of the adjustment system 100 of white balance.LOCK1 and
The value size of LOCK2 can be obtained according to application by many experiments measurement, and too small, mesh cannot be arranged in the value of the LOCK1 and LOCK2
Be in order to prevent occur one step-length of yield value adjustment on image color influence it is excessive, cause the condition to be unable to satisfy and draw
The phenomenon that playing image color concussion.
3) according to the judgement of colour cast situation, white balance module 104 adjusts separately the gain in the channel R in setting adjustable extent
The size of value R_GAIN and the yield value B_GAIN of channel B, the yield value G_GAIN in the channel G are the adjustment system 100 of white balance
The write-in value of register immobilize for example, register can be manually written in the value of G_GAIN:
A4) | R_AVER_SUB | < LOCK1;
B4) | B_AVER_SUB | < LOCK2;
If meeting condition a4), white balance module 104 does not do the adjustment of R_GAIN, if meeting condition b4), white balance
Module 104 does not do the adjustment of B_GAIN, and otherwise white balance module 104 carries out blank level adjustment:
A5) meet R_AVER_SUB > 0, then R_GAIN-STEP;
B5) meet R_AVER_SUB < 0, then R_GAIN+STEP;
C5) meet B_AVER_SUB > 0, then B_GAIN-STEP;
D5) meet B_AVER_SUB < 0, then B_GAIN+STEP;
Wherein, STEP is the tunable steps of the register setting of the adjustment system 100 of white balance, can be selected according to colour cast degree
It selects and regulates the speed.
Therefore, in present embodiment, the first yield value that white balance module 104 exports includes that the yield value in the channel R and B lead to
The yield value in road.
When image data is cmy data, under CMY color space, the white balance module 104 is for obtaining the picture number
According to second refer to white point, and calculate the 4th average value, the 5th average of all this second in the image data with reference to white point
Value and the 6th average value, and according to the 4th average value, the 5th average value and the 6th average value, judge the increasing in each channel
Beneficial value adjustment situation is to obtain second yield value.
Specifically, it if the pixel array under RGB color is BG/GR structure, is defined according to complementary color, CMY color is empty
Between under pixel array be MC/CY structure, so in analogy signal processing unit 106, the channel of RGB color and CMY
The channel corresponding relationship of color space are as follows:
A1) the channel R → Y data
B1) the channel G → C data
C1) channel B → M data
Wherein, the channel R, the channel G and channel B are that basis receives corresponding data definition under RGB color, for table
Show the shared data channel under CMY color space, so not making title to the channel R, the channel G and channel B under CMY color space
Change.
1) incorporated by reference to Fig. 3, white balance module 104 swaps the pixel value M in the channel pixel value C and M of C-channel with right
Image data carries out pixel array conversion, and corresponding relationship becomes:
The channel R → Y data;The channel G → M data;Channel B → C data.
2) Rule of judgment in the second reference white point of CMY color space is derived, according to RGB color and CMY color
One of transition matrix of multiple transition matrixes in space:
A2) R=M+Y-C
B2) G=C+Y-M
C2) B=M+C-Y
It obtains:
A3) | R-G |=| (M+Y-C)-(C+Y-M) |=2* | M-C |
B3) | B-G |=| (M+C-Y)-(C+Y-M) |=2* | M-Y |
C3) | B+R-2*G |=| (M+C-Y)+(M+Y-C) -2* (C+Y-M) |=2* | 2*M-C-Y |
3) according to judgment formula A3), B3) and C3), substitute into the judgment formula of the first reference white point of RGB color
A1), b1) and c1) detection of the second of the image data of progress CMY color space with reference to white point:
A4) | Y-M | < LIMIT1;
B4) | C-M | < LIMIT2;
C4) | C+Y-2*M | < LIMIT3;
The judgement of white balance module 104 meets the above A4 simultaneously), B4) and C4) pixel of condition labeled as the second reference white
Point.Wherein, LIMIT1, LIMIT2, LIMIT3 under LIMIT1, LIMIT2, LIMIT3 and RGB color can be same deposit
Device or different registers control, preferably, being controlled for same register.The size of value is to measure to obtain under CMY color space.
Using condition A4), B4) and purpose C4) be to find tri- components of CMY and differ smaller pixel.Due to LIMIT1,
LIMIT2 and LIMIT3 is the adjustable threshold of register, can be respectively set Bu Tong greatly in RGB color and CMY color space
Small value.
4) white balance module 104 calculates separately C, M and Y average value of the second reference white point all in image:
White point is referred to according to second marked, all second refer to white point in the calculating piece image of white balance module 104
C, M, Y average value: Y_AVER (the 4th average value), M_AVER (the 5th average value), C_AVER (the 6th average value).Due to
RGB color be on the basis of the pixel value G in the channel G, so, accordingly, under CMY color space, white balance module 104
On the basis of the pixel value M in the channel M.Therefore white balance module calculates:
A5) Y_AVER_SUB=Y_AVER-M_AVER;
B5) C_AVER_SUB=C_AVER-M_AVER;
5) according to the judgement of colour cast situation, white balance module 104 adjusts separately Y_GAIN and C_ in setting adjustable extent
The size of GAIN, M_GAIN is the register write-in value of the adjustment system 100 of white balance, for example, the value of M_GAIN can manually be write
Enter register, immobilize:
A6) | Y_AVER_SUB | < LOCK1;
B6) | C_AVER_SUB | < LOCK2;
If meeting condition A6), white balance module 104 does not do the adjustment of Y_GAIN, if meeting condition B6), white balance
Module 104 does not do the adjustment of C_GAIN, and otherwise white balance module 104 carries out blank level adjustment:
A7) meet Y_AVER_SUB > 0, then Y_GAIN-STEP;
B7) meet Y_AVER_SUB < 0, then Y_GAIN+STEP;
C7) meet C_AVER_SUB > 0, then C_GAIN-STEP;
D7) meet C_AVER_SUB < 0, then C_GAIN+STEP;
Wherein, the value size of LOCK1, LOCK2 are controlled by register, measurement method and the survey under RGB color
Amount method is identical, and value size may be alternatively provided as different under RGB color.STEP can pacing for register setting
It is long, it can select to regulate the speed according to colour cast degree.
Therefore, in present embodiment, the second yield value that white balance module 104 exports includes that the yield value in the channel Y and C lead to
The yield value in road.
The yield value Y_GAIN in the channel Y is adopted using the channel R feedback to analogy signal processing unit 106, the yield value of C-channel
It is fed back with channel B to analogy signal processing unit 106, wherein the yield value M_GAIN size in the channel M is controlled by register, is used
It feeds back to analogy signal processing unit 106 in the channel G.
White balance module 104 exports the big as low as feedback unit 110 of the first yield value or the second yield value, feedback unit
110 are input to corresponding Color Channel to analog signal according to the corresponding mode in channel, by the first yield value or the second yield value
Processing unit 106, analogy signal processing unit 106 carry out white balance to image data according to the first yield value or the second yield value
Adjustment.
In conclusion after the adjustment system 100 of above-mentioned white balance carries out pixel array conversion under CMY color space, root
White balance calculating is carried out to image data according to the transition matrix of RGB color and CMY color space, is made in CMY color space
Under obtained yield value it is corresponding with the Color Channel of RGB color, so, it is possible correctly to realize blank level adjustment.
Further, since the adjustment system 100 of white balance adjusts image effect using gain feedback, in processing module
102 3 channel implementations be it is identical, do not bring adverse effect.And the adjustment system 100 of white balance uses more
Add intuitive, simple method, carries out blank level adjustment, in this way, the speed of image procossing can be promoted, and save area.
It please join Fig. 4, better embodiment of the present invention provides a kind of method of adjustment of white balance.The method of adjustment of the white balance
It can be realized by the adjustment system 100 of the white balance of embodiment of above.Specifically, the method for adjustment of the white balance includes following step
It is rapid:
S1: processing module 102 is pre-processed to image data and is exported the pretreated image data, is entered later
Step S2;
S2: white balance module 104 receives the image data of the processing module 102 output, enters step S3 or step later
Rapid S4;
S3: under RGB color, which carries out white balance to the image data and calculates to be somebody's turn to do
First yield value of image data, enters step S5 later;
S4: under CMY color space, which carries out pixel array conversion, Zhi Hougen to the image data
According to the transition matrix of RGB color and CMY color space, white balance meter is carried out to the image data under CMY color space
It calculates to obtain the second yield value of the image data, enters step S6 later;
S5: the processing module 102 receives first yield value, and white to image data progress according to first yield value
Balanced adjustment;
S6: the processing module 102 receives second yield value, and white to image data progress according to second yield value
Balanced adjustment.
In step sl, illustrate as an example, image data may be from optical sensor 200 (such as cmos sensor).
Optical sensor 200 converts optical signals to electric signal, the electric signal formed image data for the adjustment system 100 of white balance at
Reason.
Specifically, the image data that optical sensor 200 exports is generally analog signal, and processing module 102 will first be made
Digital signal is converted to for the image data of analog signal, then digital signal is handled.Therefore, in present embodiment,
Processing unit 102 includes analogy signal processing unit 106, digital signal processing unit 108 and feedback unit 110.
The analogy signal processing unit 106 receives the image data, and exports the image data after processing.For example,
106 pairs of the analogy signal processing unit image datas as analog signal such as are for example modulated, filtered and are amplified at the necessary place
It manages to obtain the characteristic parameter of image data.When initial, analogy signal processing unit 106 is according to the yield value of setting to picture number
According to being handled.The yield value of setting includes the yield value of the setting under RGB color, and under CMY color space
The yield value of setting.
The yield value of setting under RGB color includes the yield value G_ in the channel yield value R_GAIN, G in the channel R
The yield value B_GAIN of GAIN and channel B.The yield value of setting under CMY color space includes the yield value C_ of C-channel
The yield value Y_GAIN in the channel yield value M_GAIN and Y in the channel GAIN, M.
The image data that the analogy signal processing unit 106 exports is converted to number by the digital signal processing unit 108
The image data of word, and export the image data after digitlization.In conversion process, digital signal processing unit 108
The Digital Image Processing such as interpolation can be carried out to image data.
In step s3, when the image data is RGB data, under RGB color, white balance module 104 is obtained
The first of the image data refers to white point, and calculate all this first in the image data with reference to white point the first average value,
Second average value and third average value, and according to first average value, second average value and the third average value, judge each
The yield value adjustment situation in channel is to obtain first yield value.
Specifically, incorporated by reference to Fig. 2, firstly, 1) white balance module 104 is according to Rule of judgment:
A1) | R-G | < LIMIT1;
B1) | B-G | < LIMIT2;
C1) | B+R-2*G | < LIMIT3;
All first refer to white point in marked image data, wherein R indicates that the pixel value in the channel R, G indicate the channel G
Pixel value, B indicate the pixel value of channel B.Then all first average values with reference to R, G, B in white points are calculated: R_AVER (the
One average value), G_AVER (the second average value) and B_AVER (third average value).In present embodiment, due to the picture in the channel G
On the basis of element value, therefore, white balance module 104 is calculated:
A2) R_AVER_SUB=R_AVER-G_AVER;
B2) B_AVER_SUB=B_AVER-G_AVER;
Wherein, the value size of LIMIT1, LIMIT2 and LIMIT3 are controlled by the register of the adjustment system 100 of white balance.
The value size of LIMIT1, LIMIT2 and LIMIT3 can be obtained according to application by many experiments measurement, in order to accurately be sentenced
The reference white point to break under each scene prevents from causing to judge by accident.
2) white balance module 104 is according to a2) and b2) the colour cast situation of the multilevel iudge image of the average value of formula,
A3) R_AVER_SUB > LOCK1;
B3) B_AVER_SUB > LOCK2;
For ideal scenario: image meets condition a3) then illustrate that current scene is that partially, colour temperature is low color temperature to red partially;Together
Sample meets condition b3 if image) if illustrate current scene be partially blue partially, colour temperature is high color temperature.
Wherein, the value size of LOCK1 and LOCK2 can be controlled by the register of the adjustment system 100 of white balance.LOCK1 and
The value size of LOCK2 can be obtained according to application by many experiments measurement, and too small, mesh cannot be arranged in the value of the LOCK1 and LOCK2
Be in order to prevent occur one step-length of yield value adjustment on image color influence it is excessive, cause the condition to be unable to satisfy and draw
The phenomenon that playing image color concussion.
3) according to the judgement of colour cast situation, white balance module 104 adjusts separately the gain in the channel R in setting adjustable extent
The size of value R_GAIN and the yield value B_GAIN of channel B, the yield value G_GAIN in the channel G are the adjustment system 100 of white balance
The write-in value of register immobilize for example, register can be manually written in the value of G_GAIN:
A4) | R_AVER_SUB | < LOCK1;
B4) | B_AVER_SUB | < LOCK2;
If meeting condition a4), white balance module 104 does not do the adjustment of R_GAIN, if meeting condition b4), white balance
Module 104 does not do the adjustment of B_GAIN, and otherwise white balance module 104 carries out blank level adjustment:
A5) meet R_AVER_SUB > 0, then R_GAIN-STEP;
B5) meet R_AVER_SUB < 0, then R_GAIN+STEP;
C5) meet B_AVER_SUB > 0, then B_GAIN-STEP;
D5) meet B_AVER_SUB < 0, then B_GAIN+STEP;
Wherein, STEP is the tunable steps of the register setting of the adjustment system 100 of white balance, can be selected according to colour cast degree
It selects and regulates the speed.
Therefore, in present embodiment, the first yield value that white balance module 104 exports includes that the yield value in the channel R and B lead to
The yield value in road.
In step s 4, when image data is cmy data, under CMY color space, which is used for
Obtain the image data second refers to white point, and calculates the 4th of the second reference white point all in the image data and be averaged
Value, the 5th average value and the 6th average value, and according to the 4th average value, the 5th average value and the 6th average value, judgement
The yield value adjustment situation in each channel is to obtain second yield value.
Specifically, it if the pixel array under RGB color is BG/GR structure, is defined according to complementary color, CMY color is empty
Between under pixel array be MC/CY structure, so in analogy signal processing unit 106, the channel of RGB color and CMY
The channel corresponding relationship of color space are as follows:
A1) the channel R → Y data
B1) the channel G → C data
C1) channel B → M data
Wherein, the channel R, the channel G and channel B are that basis receives corresponding data definition under RGB color, for table
Show the shared data channel under CMY color space, so not making title to the channel R, the channel G and channel B under CMY color space
Change.
1) incorporated by reference to Fig. 3, white balance module 104 swaps the pixel value M in the channel pixel value C and M of C-channel with right
Image data carries out pixel array conversion, and corresponding relationship becomes:
The channel R → Y data;The channel G → M data;Channel B → C data.
2) Rule of judgment in the second reference white point of CMY color space is derived, according to RGB color and CMY color
One of transition matrix of multiple transition matrixes in space:
A2) R=M+Y-C
B2) G=C+Y-M
C2) B=M+C-Y
It obtains:
A3) | R-G |=| (M+Y-C)-(C+Y-M) |=2* | M-C |
B3) | B-G |=| (M+C-Y)-(C+Y-M) |=2* | M-Y |
C3) | B+R-2*G |=| (M+C-Y)+(M+Y-C) -2* (C+Y-M) |=2* | 2*M-C-Y |
3) according to judgment formula A3), B3) and C3), substitute into the judgment formula of the first reference white point of RGB color
A1), b1) and c1) detection of the second of the image data of progress CMY color space with reference to white point:
A4) | Y-M | < LIMIT1;
B4) | C-M | < LIMIT2;
C4) | C+Y-2*M | < LIMIT3;
The judgement of white balance module 104 meets the above A4 simultaneously), B4) and C4) pixel of condition labeled as the second reference white
Point.Wherein, LIMIT1, LIMIT2, LIMIT3 under LIMIT1, LIMIT2, LIMIT3 and RGB color can be same deposit
Device or different registers control, preferably, being controlled for same register.The size of value is to measure to obtain under CMY color space.
Using condition A4), B4) and purpose C4) be to find tri- components of CMY and differ smaller pixel.Due to LIMIT1,
LIMIT2 and LIMIT3 is the adjustable threshold of register, can be respectively set Bu Tong greatly in RGB color and CMY color space
Small value.
4) white balance module 104 calculates separately C, M and Y average value of the second reference white point all in image:
White point is referred to according to second marked, all second refer to white point in the calculating piece image of white balance module 104
C, M, Y average value: Y_AVER (the 4th average value), M_AVER (the 5th average value), C_AVER (the 6th average value).Due to
RGB color be on the basis of the pixel value G in the channel G, so, accordingly, under CMY color space, white balance module 104
On the basis of the pixel value M in the channel M.Therefore white balance module calculates:
A5) Y_AVER_SUB=Y_AVER-M_AVER;
B5) C_AVER_SUB=C_AVER_M_AVER;
5) according to the judgement of colour cast situation, white balance module 104 adjusts separately Y_GAIN and C_ in setting adjustable extent
The size of GAIN, M_GAIN are the register write-in value of the adjustment system of white balance, are posted for example, the value of M_GAIN can manually be written
Storage immobilizes:
A6) | Y_AVER_SUB | < LOCK1;
B6) | C_AVER_SUB | < LOCK2;
If meeting condition A6), white balance module 104 does not do the adjustment of Y_GAIN, if meeting condition B6), white balance
Module 104 does not do the adjustment of C_GAIN, and otherwise white balance module 104 carries out blank level adjustment:
A7) meet Y_AVER_SUB > 0, then Y_GAIN-STEP;
B7) meet Y_AVER_SUB < 0, then Y_GAIN+STEP;
C7) meet C_AVER_SUB > 0, then C_GAIN-STEP;
D7) meet C_AVER_SUB < 0, then C_GAIN+STEP;
Wherein, the value size of LOCK1, LOCK2 are controlled by register, measurement method and the survey under RGB color
Amount method is identical, and value size may be alternatively provided as different under RGB color.STEP can pacing for register setting
It is long, it can select to regulate the speed according to colour cast degree.
Therefore, in present embodiment, the second yield value that white balance module 104 exports includes that the yield value in the channel Y and C lead to
The yield value in road.
The yield value Y_GAIN in the channel Y is adopted using the channel R feedback to analogy signal processing unit 106, the yield value of C-channel
It is fed back with channel B to analogy signal processing unit 106, wherein the yield value M_GAIN size in the channel M is controlled by register, is used
It feeds back to analogy signal processing unit 106 in the channel G.
In step s 5, white balance module 104 exports the big as low as feedback unit 110 of the first yield value, feedback unit 110
According to the corresponding mode in channel, the first yield value is input to corresponding Color Channel to analogy signal processing unit 106, simulation
Signal processing unit 106 carries out blank level adjustment to image data according to the first yield value.
In step s 6, white balance module 104 exports the big as low as feedback unit 110 of the second yield value, feedback unit 110
According to the corresponding mode in channel, the second yield value is input to corresponding Color Channel to analogy signal processing unit 106, simulation
Signal processing unit 106 carries out blank level adjustment to image data according to the second yield value.
In conclusion after the method for adjustment of above-mentioned white balance carries out pixel array conversion under CMY color space, according to
The transition matrix of RGB color and CMY color space carries out white balance calculating to image data, makes under CMY color space
Obtained yield value is corresponding with the Color Channel of RGB color, so, it is possible correctly to realize blank level adjustment.
Further, since the method for adjustment of white balance adjusts image effect using gain feedback, in processing module 102
3 channel implementations be it is identical, do not bring adverse effect.And the method for adjustment of white balance is more intuitive, simple,
Blank level adjustment is carried out, in this way, the speed of image procossing can be promoted, and saves area.
In the description of this specification, reference term " embodiment ", " some embodiments ", " schematically implementation
What the description of mode ", " example ", " specific example " or " some examples " etc. meant to describe in conjunction with the embodiment or example
Particular features, structures, materials, or characteristics are contained at least one embodiment or example of the invention.In this specification
In, schematic expression of the above terms are not necessarily referring to identical embodiment or example.Moreover, the specific spy of description
Sign, structure, material or feature can be combined in any suitable manner in any one or more embodiments or example.
In addition, term " first ", " second " are used for descriptive purposes only and cannot be understood as indicating or suggesting relative importance
Or hidden conjunction indicates the quantity of indicated technical characteristic.Define " first " as a result, the feature of " second " can be expressed or
Hidden conjunction ground includes at least one this feature.In the description of the present invention, the meaning of " plurality " is at least two, such as two, three
It is a etc., unless otherwise specifically defined.
Any process described otherwise above or method description are construed as in flow chart or herein, and expression includes
It is one or more for realizing specific logical function or process the step of executable instruction code module, segment or portion
Point, and the range of the preferred embodiment of the present invention includes other realization, wherein can not press shown or discussed suitable
Sequence, including according to related function by it is basic simultaneously in the way of or in the opposite order, Lai Zhihang function, this should be of the invention
Embodiment person of ordinary skill in the field understood.
Expression or logic and/or step described otherwise above herein in flow charts, for example, being considered use
In the order list for the executable instruction for realizing logic function, may be embodied in any computer-readable medium, for
Instruction execution system, device or equipment (such as computer based system, including the system of processor or other can be held from instruction
The instruction fetch of row system, device or equipment and the system executed instruction) it uses, or combine these instruction execution systems, device or set
It is standby and use.For the purpose of this specification, " computer-readable medium ", which can be, any may include, stores, communicates, propagates or pass
Defeated program is for instruction execution system, device or equipment or the dress used in conjunction with these instruction execution systems, device or equipment
It sets.The more specific example (non-exhaustive list) of computer-readable medium include the following: there is the electricity of one or more wirings
Interconnecting piece (electronic device), portable computer diskette box (magnetic device), random access memory (RAM), read-only memory
(ROM), erasable edit read-only storage (EPROM or flash memory), fiber device and portable optic disk is read-only deposits
Reservoir (CDROM).In addition, computer-readable medium can even is that the paper that can print described program on it or other are suitable
Medium, because can then be edited, be interpreted or when necessary with it for example by carrying out optical scanner to paper or other media
His suitable method is handled electronically to obtain described program, is then stored in computer storage.
It should be appreciated that each section of the invention can be realized with hardware, software, firmware or their combination.Above-mentioned
In embodiment, software that multiple steps or method can be executed in memory and by suitable instruction execution system with storage
Or firmware is realized.It, and in another embodiment, can be under well known in the art for example, if realized with hardware
Any one of column technology or their combination are realized: having a logic gates for realizing logic function to data-signal
Discrete logic, with suitable combinational logic gate circuit specific integrated circuit, programmable gate array (PGA), scene
Programmable gate array (FPGA) etc..
Those skilled in the art are understood that realize all or part of step that above-described embodiment method carries
It suddenly is that relevant hardware can be instructed to complete by program, the program can store in a kind of computer-readable storage medium
In matter, which when being executed, includes the steps that one or a combination set of embodiment of the method.
It, can also be in addition, each functional unit in each embodiment of the present invention can integrate in a processing module
It is that each unit physically exists alone, can also be integrated in two or more units in a module.Above-mentioned integrated mould
Block both can take the form of hardware realization, can also be realized in the form of software function module.The integrated module is such as
Fruit is realized and when sold or used as an independent product in the form of software function module, also can store in a computer
In read/write memory medium.
Storage medium mentioned above can be read-only memory, disk or CD etc..Although having been shown and retouching above
The embodiment of the present invention is stated, it is to be understood that above-described embodiment is exemplary, and should not be understood as to limit of the invention
System, those skilled in the art can be changed above-described embodiment, modify, replace and become within the scope of the invention
Type.