Summary of the invention
An object of the present invention is to provide a kind of new solution of camera lens module chromatic aberration correction, make correct accuracy high, error is little.
According to a first aspect of the invention, a kind of antidote of camera lens module aberration is provided, comprises the following steps: the ambient color temperature value obtaining the current residing environment of described camera lens module; The color temperature parameters of described camera lens module under described ambient color temperature value is found out from the colour temperature-color temperature parameters corresponding relation curve of described camera lens module; The color temperature parameters of described standard specimen camera lens module under described ambient color temperature value is found out from the colour temperature-color temperature parameters corresponding relation curve of standard specimen camera lens module; Calculate the color temperature parameters of described camera lens module under described ambient color temperature value that find out and the relative difference of the color temperature parameters of described standard specimen camera lens module under described ambient color temperature value, and the aberration correcting the image that described camera lens module is taken under described ambient color temperature value according to the aberration of described relative difference to the image that described camera lens module take is close or reach the aberration of the image that described standard specimen camera lens module is taken under described ambient color temperature value.
Preferably, described color temperature parameters at least comprises following arbitrary: R/B parameter, R/G parameter, G/B parameter.
Preferably, the colour temperature-color temperature parameters corresponding relation curve of described camera lens module is obtained by following steps: obtain many sample camera lens module colour temperature-color temperature parameters corresponding relation curves that matching in advance obtains; Test the actual color temperature parameters of described camera lens module under preset color temperature value; From many sample camera lens module colour temperature-color temperature parameters corresponding relation curves, select the color temperature parameters under preset color temperature value and the immediate sample camera lens module colour temperature-color temperature parameters corresponding relation curve of described actual color temperature parameters as the colour temperature-color temperature parameters corresponding relation curve of described camera lens module.
Preferably, the colour temperature-color temperature parameters corresponding relation curve of described camera lens module is obtained by following steps: obtain many sample camera lens module colour temperature-color temperature parameters corresponding relation curves that matching in advance obtains; Test the actual color temperature parameters of described camera lens module under preset color temperature value; The color temperature parameters under preset color temperature value and immediate two the sample camera lens module colour temperature-color temperature parameters corresponding relation curves of described actual color temperature parameters are selected from many sample camera lens module colour temperature-color temperature parameters corresponding relation curves; Colour temperature-color temperature parameters corresponding relation the curve of described camera lens module is generated according to two the sample camera lens module colour temperature-color temperature parameters corresponding relation curves selected.
Preferably, the approximating method of described sample camera lens module colour temperature-color temperature parameters corresponding relation curve comprises: the sample camera lens module obtaining predetermined number; According to default classifying rules, sample camera lens module is divided into groups; For each group sample camera lens module, test actual color temperature parameters under different-colour value of each sample camera lens module in this group one by one and the mean value of the actual color temperature parameters of sample camera lens module in group under calculating same color temperature value, the matching that is connected by described mean value obtains the sample camera lens module colour temperature-color temperature parameters corresponding relation curve of this group.
According to a second aspect of the invention, a kind of correction system of camera lens module aberration is provided, comprises: the first memory module, for the colour temperature-color temperature parameters corresponding relation curve of the colour temperature-color temperature parameters corresponding relation curve and standard specimen camera lens module that store camera lens module; Ambient color temperature value acquisition module, for obtaining the ambient color temperature value of the current residing environment of described camera lens module; First searches module, for finding out the color temperature parameters of described camera lens module under described ambient color temperature value from the colour temperature-color temperature parameters corresponding relation curve of described camera lens module; Second searches module, for finding out the color temperature parameters of described standard specimen camera lens module under described ambient color temperature value from the colour temperature-color temperature parameters corresponding relation curve of standard specimen camera lens module; Color temperature parameters relative difference computing module, for calculating the color temperature parameters of described camera lens module under described ambient color temperature value and the relative difference of the color temperature parameters of described standard specimen camera lens module under described ambient color temperature value that find out; Chromatic aberration correction module, for the aberration of correcting the image that described camera lens module is taken under described ambient color temperature value according to the aberration of described relative difference to the image that described camera lens module is taken near or reach the aberration of the image that described standard specimen camera lens module is taken under described ambient color temperature value.
Preferably, described color temperature parameters at least comprises following arbitrary: R/B parameter, R/G parameter, G/B parameter.
According to a third aspect of the invention we, a kind of camera lens module is provided, is equipped with foregoing system.
According to a forth aspect of the invention, provide a kind of photographing device, be equipped with foregoing system.
Preferably, described photographing device also comprises the second memory module, the 3rd and searches module and white balance compensation module; Described second memory module, for storing the white balance compensation coefficient of described standard specimen camera lens module under each colour temperature; Described 3rd searches module, for searching the white balance compensation coefficient of described standard specimen camera lens module under described ambient color temperature value; Described white balance compensation module, carries out white balance compensation for the image after correcting described chromatic aberration correction module according to the white balance compensation coefficient found out.
The present invention is after each ambient color temperature value changes, all recalculate the relative difference of the color temperature parameters of camera lens module and the color temperature parameters of standard lens module, thus realize dynamically correcting camera lens module aberration when ambient color temperature value is different, rectification accuracy is high, effective.Correcting process only needs the ambient color temperature value obtaining environment residing for camera lens module, and scheme is simple.
By referring to the detailed description of accompanying drawing to exemplary embodiment of the present invention, further feature of the present invention and advantage thereof will become clear.
Embodiment
Various exemplary embodiment of the present invention is described in detail now with reference to accompanying drawing.It should be noted that: unless specifically stated otherwise, otherwise positioned opposite, the numerical expression of the parts of setting forth in these embodiments and step and numerical value do not limit the scope of the invention.
Illustrative to the description only actually of at least one exemplary embodiment below, never as any restriction to the present invention and application or use.
May not discuss in detail for the known technology of person of ordinary skill in the relevant, method and apparatus, but in the appropriate case, described technology, method and apparatus should be regarded as a part for specification.
In all examples with discussing shown here, any occurrence should be construed as merely exemplary, instead of as restriction.Therefore, other example of exemplary embodiment can have different values.
It should be noted that: represent similar terms in similar label and letter accompanying drawing below, therefore, once be defined in an a certain Xiang Yi accompanying drawing, then do not need to be further discussed it in accompanying drawing subsequently.
Introduce the antidote of the camera lens module aberration that the embodiment of the present invention provides with reference to figure 1, comprise the steps:
Step 100: the ambient color temperature value obtaining the current residing environment of camera lens module.
For same camera lens module, because the ambient color temperature value of varying environment is different, thus make same camera lens module can produce different aberration under various circumstances, need to adopt different rectification standards to correct, the accuracy of guarantee correction result.After the environment residing for camera lens module is determined, easily by measuring the ambient color temperature value obtaining current residing environment.
Step 200: find out the color temperature parameters of camera lens module under ambient color temperature value from the colour temperature-color temperature parameters corresponding relation curve of camera lens module.
Wherein, colour temperature-color temperature parameters embodies the parameter of the color representation of camera lens module under certain colour temperature, such as, can be the parameter of proportionate relationship between this colour temperature hypograph R, G, B component (red component, green component, blue component).Color temperature parameters can be following arbitrary or combination: R/B parameter, R/G parameter, G/B parameter, R/B parameter refers to the ratio of R component and B component, and R/G parameter refers to the ratio of R component and G component, and G/B parameter refers to the ratio of G component and B component.
Step 300: find out the color temperature parameters of standard specimen camera lens module under ambient color temperature value from the colour temperature-color temperature parameters corresponding relation curve of standard specimen camera lens module.
Step 400: calculate the color temperature parameters of camera lens module under ambient color temperature value and the relative difference of the color temperature parameters of standard specimen camera lens module under ambient color temperature value that find out.
Step 500: the aberration correcting the image that camera lens module is taken under ambient color temperature value according to the aberration of relative difference to the image that camera lens module is taken near or reach the aberration of the image that standard specimen camera lens module is taken under ambient color temperature value.
The antidote of the camera lens module aberration that the embodiment of the present invention provides, after each ambient color temperature value changes, the relative difference of the color temperature parameters of camera lens module and the color temperature parameters of standard lens module is recalculated according to the ambient color temperature value after change in capital, thus realize dynamically correcting camera lens module aberration when ambient color temperature value is different, rectification accuracy is high, effective.Correcting process only needs the ambient color temperature value obtaining environment residing for camera lens module, and scheme is simple.
It should be noted that, the execution sequence of above-mentioned steps 200 and step 300 is not limited to said sequence, first can perform step 200, perform step 300 again, also can perform step 300 and step 200 simultaneously, certainly first can also perform step 300, then perform step 200.
In step 300, the colour temperature-color temperature parameters corresponding relation curve of standard specimen camera lens module tests the color temperature parameters of standard specimen camera lens module under each color temperature value one by one, then carries out colour temperature-color temperature parameters corresponding relation curve that matching forms standard specimen camera lens module.
In step 200, the colour temperature-color temperature parameters corresponding relation curve of camera lens module, can utilize the colour temperature of sample camera lens module-color temperature parameters homologous thread to obtain, and following two kinds of modes can be had to obtain:
First kind of way:
Step 101: obtain many sample camera lens module colour temperature-color temperature parameters corresponding relation curves that matching in advance obtains;
Step 102: the actual color temperature parameters of testing lens module under preset color temperature value;
Step 103: select the color temperature parameters under preset color temperature value and the immediate sample camera lens module colour temperature-color temperature parameters corresponding relation curve of actual color temperature parameters as the colour temperature-color temperature parameters corresponding relation curve of camera lens module from many sample camera lens module colour temperature-color temperature parameters corresponding relation curves.
The second way:
Step 201: obtain many sample camera lens module colour temperature-color temperature parameters corresponding relation curves that matching in advance obtains;
Step 202: the actual color temperature parameters of testing lens module under preset color temperature value;
Step 203: select the color temperature parameters under preset color temperature value and immediate two the sample camera lens module colour temperature-color temperature parameters corresponding relation curves of actual color temperature parameters from many sample camera lens module colour temperature-color temperature parameters corresponding relation curves;
Step 204: the colour temperature-color temperature parameters corresponding relation curve generating camera lens module according to two the sample camera lens module colour temperatures selected-color temperature parameters corresponding relation curve.In this step, can with the colour temperature-color temperature parameters corresponding relation curve of the averaged curve of two sample camera lens module colour temperature-color temperature parameters corresponding relation curves as camera lens module.
Wherein, preset color temperature value can set in advance, such as, be the random colour temperature value such as 3000K, 5000K or 6500K, is preferably 5000K color temperature value.
In these two kinds of modes, sample camera lens module colour temperature-color temperature parameters corresponding relation curve can obtain in the following manner:
Step 301: the sample camera lens module obtaining predetermined number.
Wherein, predetermined number can be tens, hundreds of even several thousand, specifically can determine as required.
Step 302: sample camera lens module is divided into groups according to default classifying rules.
Wherein, classifying rules can be one or more evaluation indexes of camera lens module, set in advance before classification, sample camera lens module can be divided into one group or many groups by this classifying rules, preferred in embodiments of the present invention sample camera lens module is divided into many groups, the group number that divides more, the quantity of the sample camera lens module colour temperature-color temperature parameters corresponding relation curve of matching is also more, under equal conditions, correction result is also more accurate, also be, the group number that sample camera lens module is divided into equals the quantity of the colour temperature-color temperature parameters corresponding relation curve of the sample camera lens module that matching obtains.
Step 303: for each group sample camera lens module, tests actual color temperature parameters under different-colour value of each sample camera lens module in this group and the mean value of the actual color temperature parameters of sample camera lens module in group under calculating same color temperature value one by one.
Step 304: the matching that is connected by mean value obtains the sample camera lens module colour temperature-color temperature parameters corresponding relation curve of this group.
Adopt said method, the colour temperature-color temperature parameters corresponding relation curve of all samples camera lens module by group differentiation can be obtained.
The process obtaining the colour temperature-color temperature parameters corresponding relation curve of camera lens module in aforesaid way has the following advantages: carry out grouping test to sample module in advance, obtain many sample module colour temperatures-color temperature parameters corresponding relation curve, then only need the color temperature parameters of testing lens module under preset color temperature value, just can determine the colour temperature-color temperature parameters corresponding relation curve of camera lens module.Test volume is generally little, and final what obtain is a curve, but not the color temperature parameters of a color temperature value in background technology or the color temperature parameters of three color temperature values, utilize this curve to carry out dynamic chromatic aberration correction, correction result is more accurate.
Introduce the correction system of the camera lens module aberration that the embodiment of the present invention provides with reference to figure 2, comprise with lower module:
First memory module 11, for the colour temperature-color temperature parameters corresponding relation curve of the colour temperature-color temperature parameters corresponding relation curve and standard specimen camera lens module that store camera lens module;
Ambient color temperature value acquisition module 12, for obtaining the ambient color temperature value of the current residing environment of camera lens module;
First searches module 13, for finding out the color temperature parameters of camera lens module under ambient color temperature value from the colour temperature-color temperature parameters corresponding relation curve of camera lens module;
Second searches module 14, for finding out the color temperature parameters of standard specimen camera lens module under ambient color temperature value from the colour temperature-color temperature parameters corresponding relation curve of standard specimen camera lens module;
Color temperature parameters relative difference computing module 15, for calculating the color temperature parameters of camera lens module under ambient color temperature value and the relative difference of the color temperature parameters of standard specimen camera lens module under ambient color temperature value that find out;
Chromatic aberration correction module 16, for the aberration of correcting the image that camera lens module is taken under ambient color temperature value according to the aberration of relative difference to the image that camera lens module is taken near or reach the aberration of the image that standard specimen camera lens module is taken under ambient color temperature value.
The invention also discloses a kind of camera lens module, there is the chromatic aberration correction system introduced above.
Introduce with reference to figure 3 photographing device that the embodiment of the present invention provides, comprise with lower module:
First memory module 11, for the colour temperature-color temperature parameters corresponding relation curve of the colour temperature-color temperature parameters corresponding relation curve and standard specimen camera lens module that store camera lens module;
Ambient color temperature value acquisition module 12, for obtaining the ambient color temperature value of the current residing environment of camera lens module;
First searches module 13, for finding out the color temperature parameters of camera lens module under ambient color temperature value from the colour temperature-color temperature parameters corresponding relation curve of camera lens module;
Second searches module 14, for finding out the color temperature parameters of standard specimen camera lens module under ambient color temperature value from the colour temperature-color temperature parameters corresponding relation curve of standard specimen camera lens module;
Color temperature parameters relative difference computing module 15, for calculating the color temperature parameters of camera lens module under ambient color temperature value and the relative difference of the color temperature parameters of standard specimen camera lens module under ambient color temperature value that find out;
Chromatic aberration correction module 16, for the aberration of correcting the image that camera lens module is taken under ambient color temperature value according to the aberration of relative difference to the image that camera lens module is taken near or reach the aberration of the image that standard specimen camera lens module is taken under ambient color temperature value;
Second memory module 21, for storing the white balance compensation coefficient of standard specimen camera lens module under each colour temperature;
3rd searches module 22, for searching the white balance compensation coefficient of standard specimen camera lens module under ambient color temperature value;
White balance compensation module 23, carries out white balance compensation for the image after correcting aberration rectification module 16 according to the white balance compensation coefficient found out.
In photographing device, the first memory module 11, ambient color temperature value acquisition module 12, first are searched module 13, second and are searched inside or the outside that module 14, color temperature parameters relative difference computing module 15 and chromatic aberration correction module 16 can be arranged at camera lens module.Second memory module 21, the 3rd searches inside or the outside that module 22 and white balance compensation module 23 also can be arranged at camera lens module.
The correction system of the camera lens module aberration that the embodiment of the present invention provides, after each ambient color temperature value changes, the relative difference of the color temperature parameters of camera lens module and the color temperature parameters of standard lens module is recalculated according to the ambient color temperature value after change in capital, thus realize dynamically correcting camera lens module aberration when ambient color temperature value is different, rectification accuracy is high, effective.Correcting process only needs the ambient color temperature value obtaining environment residing for camera lens module, and scheme is simple.
The present invention can be system, method and/or computer program.Computer program can comprise computer-readable recording medium, containing the computer-readable program instructions for making processor realize various aspects of the present invention.Be well known that to those skilled in the art, the present invention can be realized by hardware mode, realized by software mode and realized by the mode that software and hardware combines, realize in which way all belonging in protection scope of the present invention.
Although be described in detail specific embodiments more of the present invention by example, it should be appreciated by those skilled in the art, above example is only to be described, instead of in order to limit the scope of the invention.It should be appreciated by those skilled in the art, can without departing from the scope and spirit of the present invention, above embodiment be modified.Scope of the present invention is limited by claims.