CN110830778A - Imaging device color correction method, imaging device color correction device, electronic device and storage medium - Google Patents
Imaging device color correction method, imaging device color correction device, electronic device and storage medium Download PDFInfo
- Publication number
- CN110830778A CN110830778A CN201810922340.8A CN201810922340A CN110830778A CN 110830778 A CN110830778 A CN 110830778A CN 201810922340 A CN201810922340 A CN 201810922340A CN 110830778 A CN110830778 A CN 110830778A
- Authority
- CN
- China
- Prior art keywords
- color
- parameter
- correction
- sampling
- initial
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
Images
Classifications
-
- 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/10—Cameras or camera modules comprising electronic image sensors; Control thereof for generating image signals from different wavelengths
-
- 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/68—Circuits for processing colour signals for controlling the amplitude of colour signals, e.g. automatic chroma control circuits
- H04N9/69—Circuits for processing colour signals for controlling the amplitude of colour signals, e.g. automatic chroma control circuits for modifying the colour signals by gamma correction
Landscapes
- Engineering & Computer Science (AREA)
- Multimedia (AREA)
- Signal Processing (AREA)
- Image Processing (AREA)
- Facsimile Image Signal Circuits (AREA)
Abstract
The embodiment of the invention provides a color correction method and device for imaging equipment, electronic equipment and a storage medium, which are applied to the technical field of image processing. When the color deviation of each color meets the preset deviation range, the corresponding color correction matrix is used as the color correction matrix of the digital imaging device to be corrected, and the color of the digital imaging device to be corrected is corrected by using the color correction matrix of the digital imaging device to be corrected, so that the condition that the color deviation of partial color blocks is still large after correction can be reduced, and the color correction effect of the digital imaging device can be enhanced.
Description
Technical Field
The present invention relates to the field of image processing technologies, and in particular, to a method and an apparatus for color correction of an imaging device, an electronic device, and a storage medium.
Background
With the increasing requirements of people on image display effects, image processing technologies are changing day by day, and the fields to which the image processing technologies are applied are also becoming wider and wider, such as the video monitoring field, the smart home field, the remote medical field, the movie and television entertainment field, and the like. With digital imaging apparatuses such as digital still cameras, digital video cameras, and monitoring cameras, images are stored as data, but the colors of images in digital imaging apparatuses are different from the colors of real images perceived by the human eye, and therefore it is desirable to correct the colors of digital imaging apparatuses.
In the related art, the RGB (Red Green Blue ) color signals are linearly transformed by a 3 × 3 color correction matrix to realize color correction, so that the image colors of the digital imaging device are improved to have a real color reduction effect. The basic principle of the color correction process is described by the formula:
this formula describes the raw RGB values: [ RG B }TCorrected by a color correction matrix to obtain new RGB values [ R ' G ' B ']TThe process of (1).
The correction of the image colors is achieved by converting the color properties through a color correction matrix. The aim of the calibration of the color correction matrix is to bring the sampling parameters of the color blocks of the 24 color card to a certain minimum value of the color deviation from the reference parameters after the application of the color correction matrix. Expressed by the formula:
it can also be written as:
where M is a 3 x 3 color correction matrix, IrefIs a matrix form of the color reference of a 24-color chip, IinAnd IoutRespectively the matrix form of the acquisition parameters obtained by the digital imaging device shooting 24 color cards color reference and the acquisition parameters after applying the color correction matrix, delta Ei(,) is in CIE L*a*b*Abstract operator omega of color space calculation sequence number i corresponding to color block color mean color differenceiIs the weighted value of the color mean color difference of two corresponding color blocks with the serial number i, and when the standard color difference index is counted, omega isiThe average color difference of each color block is calculated as 1, and n is the number of the color blocks to be counted.
In the related art, by usingOrAs Δ EiThe color difference index of the operator, wherein,andare all color deviation criteria, e.g.
However, by adopting the above calculation method for calculating the color correction matrix, although the color deviation of the whole image is very small, the color deviation of some color blocks with similar color characteristics is still large, and the color correction effect of the digital imaging device is affected.
Disclosure of Invention
The embodiment of the invention aims to provide a method and a device for correcting colors of imaging equipment, electronic equipment and a storage medium, so as to achieve the purpose of enhancing the color correction effect of digital imaging equipment. The specific technical scheme is as follows:
in a first aspect, an embodiment of the present invention provides a color correction method for an imaging device, where the method includes:
acquiring color parameters of a template sample as initial reference parameters, and acquiring color parameters of a sampling image as initial sampling parameters, wherein the sampling image is an image obtained by shooting the template sample by a digital imaging device to be corrected under a preset shooting condition, and the template sample comprises multiple colors;
determining an initial color correction matrix according to the initial reference parameter and the initial sampling parameter;
correcting the initial sampling parameters through the initial color correction matrix to obtain primary correction sampling parameters;
adjusting the parameters of the colors to be adjusted in the initial reference parameters according to the color deviation of the corresponding colors in the primary correction sampling parameters and the initial reference parameters to obtain primary correction reference parameters;
correcting the initial sampling parameters according to the primary correction reference parameters and the initial sampling parameters to obtain secondary correction sampling parameters;
judging whether the color deviation of each corresponding color in the secondary correction sampling parameter and the primary correction reference parameter meets a preset deviation range or not;
if the color deviation of each corresponding color in the secondary correction sampling parameter and the primary correction reference parameter meets a preset deviation range, taking the primary color correction matrix as the color correction matrix of the digital imaging equipment to be corrected;
if the color deviations of the corresponding colors in the secondary correction sampling parameter and the primary correction reference parameter do not all meet a preset deviation range, updating the current value of the primary correction sampling parameter to the current value of the secondary correction sampling parameter, updating the current value of the initial reference parameter to the current value of the primary correction reference parameter, returning to the step of adjusting the color parameter to be adjusted in the initial reference parameter according to the color deviations of the corresponding colors in the primary correction sampling parameter and the initial reference parameter to obtain the primary correction reference parameter, and continuing to execute the step until the color deviations of the corresponding colors in the secondary correction sampling parameter and the primary correction reference parameter all meet the preset deviation range;
and correcting the color of the digital imaging equipment to be corrected by utilizing the color correction matrix of the digital imaging equipment to be corrected.
Optionally, the adjusting the parameter of the color to be adjusted in the initial reference parameter according to the color deviation between the primary correction sampling parameter and each corresponding color in the initial reference parameter to obtain the primary correction reference parameter includes:
determining the color to be adjusted and the color fine adjustment parameter of the color to be adjusted according to the color deviation of each corresponding color in the primary correction sampling parameter and the initial reference parameter;
and adjusting the parameters of the color to be adjusted in the initial reference parameters according to the color fine adjustment parameters to obtain the primary correction reference parameters.
Optionally, the correcting the initial sampling parameter according to the primary correction reference parameter and the initial sampling parameter to obtain a secondary correction sampling parameter includes:
determining a primary color correction matrix according to the primary correction reference parameter and the initial sampling parameter;
and correcting the initial sampling parameters through the primary color correction matrix to obtain the secondary correction sampling parameters.
Optionally, after correcting the initial sampling parameter according to the initial reference parameter and the initial sampling parameter to obtain a once-corrected sampling parameter, the method further includes:
judging whether the color deviation of each corresponding color in the primary correction sampling parameter and the initial reference parameter meets a preset deviation range or not;
if the color deviation of each corresponding color in the primary correction sampling parameter and the initial reference parameter meets a preset deviation range, taking the initial color correction matrix as the color correction matrix of the digital imaging equipment to be corrected;
determining the color to be adjusted and the color fine adjustment parameter of the color to be adjusted according to the color deviation of each corresponding color in the primary correction sampling parameter and the initial reference parameter, wherein the determining comprises the following steps of
And if the color deviation unevenness of each corresponding color in the primary correction sampling parameter and the initial reference parameter meets a preset deviation range, determining the color to be adjusted and the color fine adjustment parameter of each color to be adjusted according to the color deviation of each corresponding color in the primary correction sampling parameter and the initial reference parameter.
Optionally, the determining an initial color correction matrix according to the initial reference parameter and the initial sampling parameter includes:
and calculating a correction matrix which enables the initial reference parameter to be corrected by the correction matrix and has the minimum integral color deviation value with the initial acquisition parameter as the initial color correction matrix based on an augmented Lagrange multiplier method.
Optionally, the determining the color to be adjusted and the color fine tuning parameter of the color to be adjusted according to the color deviation of each corresponding color in the primary correction sampling parameter and the initial reference parameter includes:
calibrating each color in the primary correction sampling parameter and the initial reference parameter in a pre-established color lookup map, and determining the color deviation of each corresponding color in the correction sampling parameter and the initial reference parameter, wherein the color lookup map comprises a plurality of color areas, and each color in the initial reference parameter corresponds to a different color area;
taking the color with the color deviation not meeting the preset deviation range as the color to be adjusted;
and calculating the color fine tuning parameters of the color to be adjusted according to the color deviation of the color to be adjusted.
Optionally, the calculating a color fine tuning parameter of the color to be adjusted according to the color deviation of the color to be adjusted includes:
adjusting the color area corresponding to the color to be adjusted according to the color deviation of each corresponding color in the correction sampling parameter and the initial reference parameter, so that the color deviation of the color to be adjusted meets the color in a preset deviation range;
determining the adjustment amount of a color area corresponding to the color to be adjusted in the color searching graph to obtain an adjustment parameter;
and converting the adjusting parameters in the color searching graph into color fine-tuning parameters of the color to be adjusted.
In a second aspect, an embodiment of the present invention provides an apparatus for color correction of an imaging device, where the apparatus includes:
the parameter acquisition module is used for acquiring color parameters of a template sample as initial reference parameters and acquiring color parameters of a sampling image as initial sampling parameters, wherein the sampling image is an image obtained by shooting the template sample by digital imaging equipment to be corrected under a preset shooting condition, and the template sample comprises multiple colors;
the first matrix determining module is used for determining an initial color correction matrix according to the initial reference parameter and the initial sampling parameter;
the sampling parameter primary correction module is used for correcting the initial sampling parameters through the initial color correction matrix to obtain primary correction sampling parameters;
the reference parameter correction module is used for adjusting the parameters of the colors to be adjusted in the initial reference parameters according to the color deviation of the primary correction sampling parameters and the corresponding colors in the initial reference parameters to obtain primary correction reference parameters;
the sampling parameter secondary correction module is used for correcting the initial sampling parameter according to the primary correction reference parameter and the initial sampling parameter to obtain a secondary correction sampling parameter;
the first color difference judging module is used for judging whether the color deviations of the corresponding colors in the secondary correction sampling parameter and the primary correction reference parameter meet a preset deviation range or not;
the second matrix determining module is used for taking the primary color correction matrix as the color correction matrix of the digital imaging device to be corrected if the color deviation of each corresponding color in the secondary correction sampling parameter and the primary correction reference parameter meets a preset deviation range;
a parameter assignment module, configured to update a current value of the primary correction sampling parameter to a current value of the secondary correction sampling parameter if color deviation unevenness of each corresponding color in the secondary correction sampling parameter and the primary correction reference parameter meets a preset tolerance rule, update a current value of the initial reference parameter to a current value of the primary correction reference parameter, and return to the reference parameter correction module to continue execution until color deviations of each corresponding color in the secondary correction sampling parameter and the primary correction reference parameter meet the preset tolerance rule;
and the color correction module is used for correcting the color of the digital imaging device to be corrected by utilizing the color correction matrix of the digital imaging device to be corrected.
Optionally, the reference parameter correcting module includes:
the fine tuning parameter determining submodule is used for determining the color to be adjusted and the color fine tuning parameter of the color to be adjusted according to the color deviation of each corresponding color in the primary correction sampling parameter and the initial reference parameter;
and the primary correction reference parameter determining submodule is used for adjusting the parameters of the color to be adjusted in the initial reference parameters according to the color fine adjustment parameters to obtain the primary correction reference parameters.
Optionally, the sampling parameter secondary correction module includes:
the correction matrix determining submodule is used for determining a primary color correction matrix according to the primary correction reference parameter and the initial sampling parameter;
and the secondary correction sampling parameter determining submodule is used for correcting the initial sampling parameters through the primary color correction matrix to obtain the secondary correction sampling parameters.
Optionally, the color correction apparatus for an imaging device according to an embodiment of the present invention further includes:
the second color difference judging module is used for judging whether the color deviation of each corresponding color in the primary correction sampling parameter and the initial reference parameter meets a preset deviation range or not;
a third matrix determining module, configured to, if the color deviation of each corresponding color in the primary correction sampling parameter and the initial reference parameter meets a preset deviation range, use the initial color correction matrix as a color correction matrix of the digital imaging device to be corrected;
the reference parameter correction module is specifically configured to:
and if the color deviation unevenness of each corresponding color in the primary correction sampling parameter and the initial reference parameter meets a preset deviation range, adjusting the parameter of the color to be adjusted in the initial reference parameter according to the color deviation of each corresponding color in the primary correction sampling parameter and the initial reference parameter to obtain the primary correction reference parameter.
Optionally, the first matrix determining module is specifically configured to:
and calculating a correction matrix which enables the initial reference parameter to be corrected by the correction matrix and has the minimum integral color deviation value with the initial acquisition parameter as the initial color correction matrix based on an augmented Lagrange multiplier method.
Optionally, the fine tuning parameter determining sub-module includes:
the parameter conversion unit is used for calibrating each color in the primary correction sampling parameter and the initial reference parameter in a pre-established color lookup map, and determining the color deviation of each corresponding color in the correction sampling parameter and the initial reference parameter, wherein the color lookup map comprises a plurality of color areas, and each color in the initial reference parameter corresponds to a different color area;
the color to be adjusted determining unit is used for taking the color of which the color deviation does not meet the preset deviation range as the color to be adjusted;
and the fine tuning parameter calculation unit is used for calculating the color fine tuning parameters of the color to be adjusted according to the color deviation of the color to be adjusted.
Optionally, the fine tuning parameter calculating unit includes:
a color region adjusting subunit, configured to adjust a color region corresponding to the color to be adjusted according to the color deviation between the correction sampling parameter and each corresponding color in the initial reference parameter, so that the color deviation of the color to be adjusted satisfies a color within a preset deviation range;
an adjustment parameter determining subunit, configured to determine an adjustment amount of the color region corresponding to the color to be adjusted in the color lookup map, so as to obtain an adjustment parameter;
and the fine tuning parameter conversion subunit is used for converting the adjusting parameters in the color lookup map into the color fine tuning parameters of the color to be adjusted.
In a third aspect, an embodiment of the present invention provides an electronic device, including a processor and a memory;
the memory is used for storing a computer program;
the processor is configured to implement the color correction method for an imaging device according to any one of the first aspect described above when executing the program stored in the memory.
In a fourth aspect, an embodiment of the present invention provides a computer-readable storage medium, in which a computer program is stored, and the computer program, when executed by a processor, implements the color correction method for an imaging device according to any one of the first aspect.
The color correction method, the color correction device, the electronic device and the storage medium for the imaging device, provided by the embodiment of the invention, are used for acquiring the color parameters of a template sample as initial reference parameters and acquiring the color parameters of a sampling image as initial sampling parameters, wherein the sampling image is an image obtained by shooting the template sample by a digital imaging device to be corrected under a preset shooting condition, and the template sample comprises a plurality of colors; determining an initial color correction matrix according to the initial reference parameter and the initial sampling parameter; correcting the initial sampling parameters through the initial color correction matrix to obtain primary correction sampling parameters; adjusting the parameters of the colors to be adjusted in the initial reference parameters according to the color deviation of the primary correction sampling parameters and the corresponding colors in the initial reference parameters to obtain primary correction reference parameters; correcting the initial sampling parameters according to the primary correction reference parameters and the initial sampling parameters to obtain secondary correction sampling parameters; judging whether the color deviation of each corresponding color in the secondary correction sampling parameter and the primary correction reference parameter meets a preset deviation range; if the color deviation of each corresponding color in the secondary correction sampling parameter and the primary correction reference parameter meets a preset deviation range, taking the primary color correction matrix as the color correction matrix of the digital imaging equipment to be corrected; if the color deviations of all the corresponding colors in the secondary correction sampling parameter and the primary correction reference parameter do not meet the preset deviation range, updating the current value of the primary correction sampling parameter to the current value of the secondary correction sampling parameter, updating the current value of the initial reference parameter to the current value of the primary correction reference parameter, returning to the step of adjusting the color parameter to be adjusted in the initial reference parameter according to the color deviations of all the corresponding colors in the primary correction sampling parameter and the initial reference parameter, and continuing to execute the step of obtaining the primary correction reference parameter until the color deviations of all the corresponding colors in the secondary correction sampling parameter and the primary correction reference parameter meet the preset deviation range; and correcting the color of the digital imaging device to be corrected by utilizing the color correction matrix of the digital imaging device to be corrected. When the color deviation of each corresponding color meets the preset deviation range, the corresponding color correction matrix is used as the color correction matrix of the digital imaging device to be corrected, and the color correction matrix of the digital imaging device to be corrected is utilized to correct the color of the digital imaging device to be corrected, so that the condition that the color deviation of the rear color separation block is still large can be reduced, and the color correction effect of the digital imaging device can be enhanced. Of course, not all of the advantages described above need to be achieved at the same time in the practice of any one product or method of the invention.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.
FIG. 1 is a schematic flow chart of a color correction method for an imaging device according to an embodiment of the present invention;
FIG. 2 is a schematic flow chart of another method for color correction of an imaging device according to an embodiment of the present invention;
FIG. 3 is a schematic diagram of a color correction apparatus of an imaging device according to an embodiment of the present invention;
fig. 4 is a schematic diagram of an electronic device according to an embodiment of the invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
The color correction module is an important component in the digital signal processing flow of the digital imaging equipment, and has the main function of adopting a 3 x 3 color correction matrix to carry out linear transformation on RGB color signals output by the image sensor, so that the original equipment-related RGB color signals are converted into equipment-unrelated RGB standard color signals, and the output image of the digital imaging equipment is ensured to have a real color restoration effect.
Calibration of the color correction matrix requires optimization by a professional image corrector, and the final color correction matrix is obtained by minimizing the color deviation of the sampling parameters of the 24-color chart color reference from the reference parameters after the color correction matrix is applied. Although the color deviation of the whole image is very small by adopting the method, the color deviation of some color blocks with similar color characteristics is difficult to ignore; and although color block color deviation with similar color characteristics is small, the requirement of human eyes for the color deviation direction of the color block may not be met, namely, the adjustment of the specific direction cannot be made for the specific color sensitive to the human eyes. People often judge whether the whole image has color cast by sensing the color cast of the specific color which is sensitive to the people, so the color correction effect of the image is poor.
In view of this, an embodiment of the present invention provides a color correction method for an imaging device, and referring to fig. 1, the method includes:
s101, acquiring color parameters of a template sample as initial reference parameters, and acquiring color parameters of a sampling image as initial sampling parameters, wherein the sampling image is an image obtained by shooting the template sample by a digital imaging device to be corrected under a preset shooting condition, and the template sample comprises multiple colors.
The color correction method of the imaging device in the embodiment of the invention can be realized by a correction system, and the correction system is any system capable of realizing the color correction method of the imaging device in the embodiment of the invention. For example:
the correction system may be an apparatus comprising: a processor, a memory, a communication interface, and a bus; the processor, the memory and the communication interface are connected through a bus and complete mutual communication; the memory stores executable program code; the processor runs a program corresponding to the executable program code by reading the executable program code stored in the memory for executing the color correction method of the imaging device of the embodiment of the present invention.
The correction system may also be an application program for performing the imaging device color correction method of embodiments of the present invention when running.
The correction system may also be a storage medium for storing executable code for performing the imaging device color correction method of an embodiment of the present invention.
The correction system acquires the color parameters of the template sample piece and the color parameters of the sampling image. The color parameter can be an expression value of a color in an RGB color space, or the color parameter can be a brightness, a hue, a saturation, and the like of the color. Optionally, the template sample is a 24-color card, and accordingly, the color parameter of the template sample is an expression value of the color reference of the 24-color card provided by the 24-color card manufacturer in the RGB color space. Of course, the template sample piece can also be other template color cards containing multiple colors. The preset shooting conditions are set according to the required shooting parameters of the template sample, for example, when the template sample is a 24-color card, the preset shooting conditions need to meet the requirements that the 24-color card is under uniform illumination of a specified standard color temperature light source, the illumination of the surface of the 24-color card is within a specified range, and the like.
In general, the light source can be any light source, such as a daylight lamp, an incandescent lamp, a fluorescent lamp, or a mixture of multiple light sources. Standard light sources published by the international commission on illumination, such as F color temperature, CWF color temperature, TL84 color temperature, D50 color temperature, D65 color temperature, or D75 color temperature, can be selected.
A sampled image of the 24 color card is acquired by an image sensor of the digital imaging device to be corrected, and optionally, the correction system may store the sampled image in a Bayer format and subject the sampled image to demosaicing and white balance processing. And acquiring sampling parameters of the sampling image based on the RGB space.
It will be appreciated by those skilled in the art that digital imaging devices may use a color correction matrix that is correlated with the color temperature of the light source in order to achieve better color correction. It is not necessary to know the exact color temperature of the light source, but rather it is only necessary to obtain color correction information from the color correction information corresponding to the subset of candidate light sources when selecting the color correction matrix, wherein the color correction information includes color correction matrix parameters and white balance gain information.
And S102, determining an initial color correction matrix according to the initial reference parameter and the initial sampling parameter.
The correction system determines an initial color correction matrix, which may be a correction matrix selected from a plurality of pre-stored correction matrices and corresponding to initial reference parameters and initial sampling parameters, and the selected correction matrix is used as the initial color correction matrix. By adopting the method, correction matrixes corresponding to various reference parameters and sampling parameters need to be calculated in advance, and the corresponding relation between the reference parameters and the sampling parameters and the correction matrixes is established. The correction system determines an initial color correction matrix, and may select each correction matrix from a plurality of pre-stored correction matrices, calculate the color deviation between the initial sampling parameter and the initial reference parameter after the correction of each correction matrix, and select the correction matrix corresponding to the minimum color deviation as the initial color correction matrix. The correction system determines an initial color correction matrix, and can also calculate the initial color correction matrix through a preset color correction matrix calculation method according to the initial reference parameters and the initial sampling parameters, wherein the initial sampling parameters corrected by the initial color correction matrix have the minimum integral color deviation with the initial reference parameters, namely the sum of the color deviations of all colors is minimum. The preset color correction matrix calculation method is a method for arbitrarily calculating a color correction matrix, for example, an augmented lagrange multiplier method, a least square method with constraint, and the like.
Color deviation is defined in CIE L*a*b*In the color space, the color deviation standard of each color. L may represent luminance, a may be tabulatedShowing a range from magenta to green, b may represent a range from yellow to blue. The color deviation criterion may beAndand any one of the color deviation criteria. For example,
s103, correcting the initial sampling parameters through the initial color correction matrix to obtain primary correction sampling parameters.
And the correction system respectively corrects each color in the initial sampling parameters by using the initial color correction matrix, and takes the corrected initial sampling parameters as the primary correction sampling parameters.
And S104, adjusting the parameters of the colors to be adjusted in the initial reference parameters according to the color deviation of the corresponding colors in the primary correction sampling parameters and the initial reference parameters to obtain primary correction reference parameters.
Optionally, referring to fig. 2, the adjusting the parameter of the color to be adjusted in the initial reference parameter according to the color deviation between the primary correction sampling parameter and each corresponding color in the initial reference parameter to obtain the primary correction reference parameter includes:
and S1041, determining the color to be adjusted and the color fine adjustment parameter of the color to be adjusted according to the color deviation of each corresponding color in the primary correction sampling parameter and the initial reference parameter.
And determining the color to be adjusted and the color fine adjustment parameter of the color to be adjusted according to the color deviation of each corresponding color in the primary correction sampling parameter and the initial reference parameter.
And the correction system respectively calculates the color deviation of each corresponding color in the initial reference parameter and the correction sampling parameter, takes the color of which the color deviation does not meet the preset deviation range as the color to be adjusted, and determines the color fine adjustment parameter of the color to be adjusted, wherein the color deviation of each color in the initial reference parameter and the correction sampling parameter after the color fine adjustment parameter is adjusted meets the preset deviation range. The preset deviation range can be set according to actual conditions, for example, the color deviation of each color is smaller than a preset color deviation threshold; the color cast direction of each color meets the visual perception requirement of human eyes and the like. The human eye is sensitive to different colors and thus has particular needs for its color properties for a particular color. The human eye usually determines whether the color shift occurs in the whole image by sensing whether the color shift occurs in the specific color which is sensitive to the human eye. Therefore, the color cast direction of each color can be judged to meet the visual perception requirement of human eyes according to the preference of the human eyes to specific colors. For example, a corresponding deviation range threshold is set for a color sensitive to human eyes, and when the direction and the magnitude of the color deviation of the color are within the deviation range threshold of the color, the subjective feeling of the human eyes on the color can be considered to be the same or similar, and the color deviation direction of the color is determined to meet the visual perception requirement of the human eyes.
The sampling image is obtained by shooting the template sample, so that corresponding relations exist between colors in the sampling image and colors in the template sample, namely corresponding relations also exist between colors in the sampling parameters (including the initial sampling parameters, the primary correction sampling parameters and the secondary correction sampling parameters) and reference parameters (including the initial reference parameters and the primary correction reference parameters).
And S1042, adjusting the color parameter to be adjusted in the initial reference parameter according to the color fine adjustment parameter to obtain the primary correction reference parameter.
And the correction system adjusts the parameters of the colors to be adjusted in the initial reference parameters according to the color fine adjustment parameters of the colors to be adjusted to obtain primary correction reference parameters.
The color tuning parameters may include a brightness tuning parameter, a hue tuning parameter, and a saturation tuning parameter. For example, in CIE L*a*b*In color space, brightness can be expressed as CIE L*a*b*L-channel of color spaceA value of (d); hue and CIE L*a*b*Of color space (a)j,bj) The angles of the vectors are positively correlated, and the value range of the angles is [ 0-360 DEG ]; saturation and CIE L*a*b*Of color space (a)j,bj) The modulus of the vector is positively correlated.
The brightness fine tuning variable represented by the brightness fine tuning parameter is dInt, the hue fine tuning variable represented by the hue fine tuning parameter is dHue, and the saturation fine tuning variable represented by the saturation fine tuning parameter is dSat.
The brightness adjustment is performed by multiplying the value of L channel by a stretch coefficient α to (100+ dInt)/100, and the hue adjustment is performed by (a)j,bj) The vector is applied with a rotation matrix β, the angle of the rotation matrix is 0 DEG as default, and the saturation is adjusted by pair (a)j,bj) The modulo multiplication of the vector is done by one scaling factor γ ═ 100+ dInt)/100, with 1 as the default value.
and adjusting the color property of the color to be adjusted according to the color fine adjustment parameter. The adjusted color to be adjusted is in CIE L*a*b*The three channel values of the color space are best represented as:
Lout=Lin*(100+dInt)/100
aout=[ain*cos(dHue)-bin*sin(dHue)]*(100+dSat)/100
bout=[bin*cos(dHue)+ain*sin(dHue)]*(100+dSat)/100
wherein L isin、ain、binThe color to be adjusted is in CIE L before adjustment*a*b*Three channel values of the color space, Lout、aout、boutFor the adjusted color is in CIE L*a*b*Three channel values of the color space.
And S105, correcting the initial sampling parameters according to the primary correction reference parameters and the initial sampling parameters to obtain secondary correction sampling parameters.
Optionally, referring to fig. 2, the calibrating the initial sampling parameter according to the primary calibration reference parameter and the initial sampling parameter to obtain a secondary calibration sampling parameter includes:
s1051, according to the primary correction reference parameter and the initial sampling parameter, determining a primary color correction matrix.
The correction system determines a primary color correction matrix, which may be a correction matrix selected from a plurality of pre-stored correction matrices and corresponding to the primary correction reference parameter and the initial sampling parameter, and used as the primary color correction matrix. By adopting the method, correction matrixes corresponding to various reference parameters and sampling parameters need to be calculated in advance, and the corresponding relation between the reference parameters and the sampling parameters and the correction matrixes is established. The correction system determines a primary color correction matrix, and may select each correction matrix from a plurality of pre-stored correction matrices, calculate the color deviation between the initial sampling number corrected by each correction matrix and the primary correction reference parameter, and select the color correction matrix corresponding to the minimum color deviation as the primary color correction matrix. The correction system determines an initial color correction matrix, and can also calculate a primary color correction matrix according to the primary correction reference parameter and the initial sampling parameter, wherein the initial sampling parameter corrected by the primary color correction matrix has the smallest integral color deviation with the primary correction reference parameter, namely the sum of the color deviations of all colors is smallest.
S1052, correcting the initial sampling parameters through the primary color correction matrix to obtain the secondary correction sampling parameters.
The correction system respectively corrects each color in the initial sampling parameters by using the primary color correction matrix, and takes the corrected initial sampling parameters as secondary correction sampling parameters.
And S106, judging whether the color deviation of each corresponding color in the secondary correction sampling parameter and the primary correction reference parameter meets a preset deviation range.
And the correction system calculates the color deviation of each corresponding color in the secondary correction sampling parameter and the primary correction reference parameter and judges whether the color deviation of each corresponding color in the secondary correction sampling parameter and the primary correction reference parameter meets a preset deviation range. For example, the correction system determines whether the color deviation of each corresponding color is smaller than a preset color deviation threshold, and the correction system determines whether the visual chart of the color deviation of each corresponding color meets the visual perception requirement of human eyes.
And S107, if the color deviation of each corresponding color in the secondary correction sampling parameter and the primary correction reference parameter meets a preset deviation range, taking the primary color correction matrix as the color correction matrix of the digital imaging device to be corrected.
And when the color deviation of each corresponding color meets the preset deviation range, the correction system takes the current primary color correction matrix as the color correction matrix of the digital imaging equipment to be corrected.
And S108, if the color deviations of the corresponding colors in the secondary correction sampling parameter and the primary correction reference parameter do not all meet a preset deviation range, updating the current value of the primary correction sampling parameter to the current value of the secondary correction sampling parameter, updating the current value of the initial reference parameter to the current value of the primary correction reference parameter, returning to the step of adjusting the color parameter to be adjusted in the initial reference parameter according to the color deviation of the corresponding colors in the primary correction sampling parameter and the initial reference parameter, and continuing to execute the step of obtaining the primary correction reference parameter until the color deviations of the corresponding colors in the secondary correction sampling parameter and the primary correction reference parameter all meet the preset deviation range.
And when the color deviations of all the corresponding colors do not meet the preset deviation range, the correction system updates the current value of the primary correction sampling parameter to the current value of the secondary correction sampling parameter, updates the current value of the initial reference parameter to the current value of the primary correction reference parameter, and returns to the step S104 to adjust the color parameter to be adjusted in the initial reference parameter according to the color deviations of the primary correction sampling parameter and the corresponding colors of the initial reference parameter, so that the primary correction reference parameter is obtained and continuously executed until the color deviations of the secondary correction sampling parameter and the corresponding colors of the primary correction reference parameter meet the preset deviation range. The correction system takes the primary color correction matrix at the moment as the color correction matrix of the digital imaging device to be corrected.
And S109, correcting the color of the digital imaging device to be corrected by using the color correction matrix of the digital imaging device to be corrected.
In the embodiment of the invention, when the color deviation of each corresponding color meets the preset deviation range, the corresponding color correction matrix is used as the color correction matrix of the digital imaging device to be corrected, and the color of the digital imaging device to be corrected is corrected by using the color correction matrix of the digital imaging device to be corrected, so that the condition that the color deviation of the rear color separation block is still large in correction can be reduced, and the color correction effect of the digital imaging device can be enhanced.
Optionally, after the initial sampling parameter is corrected according to the initial reference parameter and the initial sampling parameter to obtain a once-corrected sampling parameter, the method further includes:
step one, judging whether the color deviation of each corresponding color in the primary correction sampling parameter and the initial reference parameter meets a preset deviation range.
And step two, if the color deviation of each corresponding color in the primary correction sampling parameter and the initial reference parameter meets a preset deviation range, taking the initial color correction matrix as the color correction matrix of the digital imaging equipment to be corrected.
Correspondingly, the adjusting the color parameter to be adjusted in the initial reference parameter according to the color deviation of the corresponding color between the primary correction sampling parameter and the initial reference parameter to obtain the primary correction reference parameter includes
And if the color deviation unevenness of each corresponding color in the primary correction sampling parameter and the initial reference parameter meets a preset deviation range, adjusting the parameter of the color to be adjusted in the initial reference parameter according to the color deviation of each corresponding color in the primary correction sampling parameter and the initial reference parameter to obtain the primary correction reference parameter.
In the embodiment of the invention, whether the color deviation of each corresponding color in the primary correction sampling parameter and the initial reference parameter meets the preset deviation range is judged, and if the color deviation of each corresponding color in the primary correction sampling parameter and the initial reference parameter meets the preset deviation range, the initial color correction matrix meets the correction requirement, so that the initial color correction matrix is used as the color correction matrix of the digital imaging equipment to be corrected, and the calculation resources can be saved.
Optionally, the determining an initial color correction matrix according to the initial reference parameter and the initial sampling parameter includes:
and calculating a correction matrix which enables the whole color deviation value of the initial reference parameter and the initial acquisition parameter to be minimum after the initial reference parameter is corrected by the correction matrix based on an augmented Lagrange multiplier method, and taking the correction matrix as the initial color correction matrix.
The correction system may calculate an initial color correction matrix based on an augmented lagrange multiplier method. The augmented Lagrange multiplier method combines the Lagrange multiplier method and the penalty function method.
The Lagrange multiplier method is mainly used for solving the constraint optimization problem, and the basic idea is to convert the constraint optimization problem containing n variables and k constraint conditions into an unconstrained optimization problem containing (n + k) variables by introducing a Lagrange multiplier. The mathematical meaning behind the lagrange multiplier is that it is a coefficient of each vector in the linear combination of the gradient of the constraint equations.
The Lagrange multiplier method starts from the mathematical meaning, an extreme value condition is created by introducing the Lagrange multipliers, partial derivatives corresponding to n equations are respectively solved for n variables, then k constraint conditions corresponding to k Lagrange multipliers are added, and an equation set problem of (n + k) equations containing (n + k) variables is formed together, so that the equation set problem can be solved according to the method for solving the equation set.
Applicable problem models are constraint optimization problems, such as:
solving a minimization or maximization problem of equation f (x, y, z), where x, y, z are not independent, and g (x, y, z) is 0.
Namely: min/maxf (x, y, z), s.t.g (x, y, z) ═ 0
The augmented Lagrange multiplier method is a method combining a penalty function on the basis of the Lagrange multiplier method, and essentially introduces the Lagrange multiplier into the penalty function to obtain the augmented Lagrange function. Generally, a secondary penalty term is added on the basis of a Lagrange method, so that the converted problem is easier to solve, and the problem that the solution becomes difficult due to the fact that the condition number is increased is avoided. The augmented Lagrange multiplier method can effectively process the optimization problems of boundary constraint and linear constraint.
The mathematical model is constructed by combining the color correction matrix solving requirements explained by the embodiment of the invention, and the model to be optimized has the following characteristics: the problem itself is a non-linear programming problem in which the objective function is non-linear and the constraints are linear.
By CIE L*a*b*Of colour spacesTaking minimization of one of various color difference standards as an optimization target, and deriving an optimization target function; when the color correction matrix is used for left multiplication, it is necessary to ensure that three elements per row are added to 1, thereby ensuring that the neutral gray region is not color shifted, and thus there are three equality constraints.
Aiming at the characteristics, a local derivative-free augmented Lagrange multiplier method in an NLopt nonlinear optimization algorithm library is adopted as a method for solving the optimization problem, and the solution of the color correction matrix can be completed by setting an optimization target, a constraint condition, an optimization precision, a termination condition and an optimization variable value range and selecting a specific optimization algorithm.
Optionally, the determining a color to be adjusted and a color fine-tuning parameter of the color to be adjusted according to the color deviation of each corresponding color in the primary correction sampling parameter and the initial reference parameter includes:
step one, calibrating each color in the primary correction sampling parameter and the initial reference parameter in a pre-established color lookup map, and determining the color deviation of each corresponding color in the correction sampling parameter and the initial reference parameter, wherein the color lookup map comprises a plurality of color areas, and each color in the initial reference parameter corresponds to a different color area.
The correction system represents the correction sampling parameters and the initial reference parameters into a pre-established color lookup map, and determines the color deviation of the same color in the correction sampling parameters and the initial reference parameters in the color lookup map.
And step two, taking the color with the color deviation not meeting the preset deviation range as the color to be adjusted.
And the correction system determines the color corresponding to the color deviation which does not meet the preset deviation range as the color to be adjusted.
And step three, calculating the color fine tuning parameters of the color to be adjusted according to the color deviation of the color to be adjusted.
And the correction system calculates the color fine tuning parameters of the color to be adjusted according to the color deviation and the preset deviation range of the color to be adjusted, wherein the color deviation of each color in the initial reference parameter after the color fine tuning parameters are adjusted and the color deviation of the corresponding color in the correction sampling parameters meets the preset deviation range.
In the embodiment of the invention, the color fine tuning parameters of the color to be adjusted are determined by utilizing the color searching graph, so that the method is more convenient and quicker.
Optionally, in the color correction method for an imaging device according to the embodiment of the present invention, the step of pre-establishing the color lookup map includes:
step one, using CIE L*a*b*A in the color space is the horizontal axis and b is the cartesian coordinate system created by the vertical axis.
And step two, taking the origin as the circle center, and dividing the Cartesian coordinate system into a preset number of non-overlapping sectors in an equal angle manner.
Step three, determining a template sampleCoordinates (a) of color reference values of the non-neutral colors in the article in a Cartesian coordinate systemj,bj) Where j ∈ { 0., 17 }.
Step four, using j as index, rotating counterclockwise from positive direction of horizontal axis by passing angle thetajLooking for (theta)j-Δθ,θj+ Δ θ) all sectors crossed within the angular range, the number of all sectors crossed is counted in the value corresponding to j.
The following describes in detail the steps of creating a color lookup map by taking a 24-color chart as an example:
step one, establishing a CIE L-based network*a*b*A cartesian coordinate system of the color space. By CIE L*a*b*The channels a and b in the color space are horizontal and vertical, and the color reference values of 18 non-neutral patches in the 24 color card are coordinated by coordinates (a)j,bj) J ∈ { 0., 17 }.
And step two, dividing the hue range in a Cartesian coordinate system. The coordinate system is divided into equal angles by taking the origin as the center of a circle, for example, the coordinate system is divided into: 24 contiguous and non-overlapping sectors denoted SiI ∈ {0,..., 23}, the angle of each sector being:Sithe angular range covered by the sector is:
and step three, counting the hue properties of the color reference values of the 18 non-neutral color blocks. I.e. respectively calculating the rotation from the positive direction of the horizontal axis to each coordinate (a) in the counterclockwise directionj,bj) J ∈ { 0., 17} through an angle θj,θjE [0 °, 360 °) and statistics (θ)j-Δθ,θj+ Δ θ) angular range.
And step four, establishing an index relation between the color block serial number and the sector serial number. Using the sequence number j of the color block as an index, and converting (theta)j-Δθ,θj+ Δ θ) the number of all sectors crossed in the angular range is counted in the value corresponding to j, and the number of elements in each value is limited to 2 to 3 by appropriately setting the value of Δ θ, for example, setting Δ θ to 10 °.
Optionally, the calculating a color fine tuning parameter of the color to be adjusted according to the color deviation of the color to be adjusted includes:
step one, according to the color deviation of each corresponding color in the correction sampling parameter and the initial reference parameter, adjusting the color area corresponding to the color to be adjusted so that the color deviation of the color to be adjusted meets the color in a preset deviation range.
The correction system adjusts the color deviation of each color to be adjusted by adjusting the color area corresponding to each color to be adjusted in the color lookup map so that the color deviation of the color to be adjusted meets a preset deviation range, and determines the adjustment parameters of the color area corresponding to the color to be adjusted in the color lookup map.
And step two, determining the adjustment quantity of the color area corresponding to the color to be adjusted in the color searching graph to obtain an adjustment parameter.
And step three, converting the adjusting parameters in the color searching graph into color fine adjusting parameters of the color to be adjusted.
And the correction system converts the adjusting parameters in the color searching graph into color fine-tuning parameters of the color to be adjusted.
The following 24 color charts are used as examples to specifically describe the process of determining the color trimming parameters.
And respectively indexing the serial numbers (0-17) of the colors to be adjusted, which need to be adjusted, in the color lookup chart, looking up corresponding values of the serial numbers, and solving the union set. The union is a serial number set of sectors, i.e. the hue range of the color to be adjusted is in CIE L*a*b*A set of spanning sectors in a coordinate system of space.
Conversion of color reference values of 24 color cards to CIE L*a*b*A color space. Determining the color to be adjusted by using the color deviation of the color to be adjusted to meet the preset deviation rangeThe adjustment range and direction of the color property of the whole sector are adjusted, and the color property and direction of the sector are adjusted, wherein the color property comprises brightness, hue and saturation. Wherein the content of the first and second substances,
in CIE L*a*b*In color space, brightness can be expressed as CIE L*a*b*A value of an L channel of a color space; hue and CIE L*a*b*Of color space (a)j,bj) The angles of the vectors are positively correlated, and the value range of the angles is [ 0-360 DEG ]; saturation and CIE L*a*b*Of color space (a)j,bj) The modulus of the vector is positively correlated.
The adjustment method may be to generate a new luminance fine-tuning variable dInt, a new hue fine-tuning variable dHue, and a new saturation fine-tuning variable dSat by modifying the initialized luminance fine-tuning mapping table, hue fine-tuning mapping table, and saturation fine-tuning mapping table, respectively. The three fine tuning mapping tables respectively store the function relations between the hue of the color to be adjusted and the fine tuning variables dInt, dHue and dSat. The three fine tuning variables are all 0 at initialization, which means no adjustment is made. The granularity of the three fine tuning variables is determined by the number of sectors nSectors. The more the divided sectors are, the more the mapping relation of the three fine tuning variables is, the more the adjusted area is limited, and the more the adjustment workload is.
The brightness adjustment is performed by multiplying the value of the L channel by a scaling factor α ═ 100+ dInt)/100, with 1 as a default value.
The hue fine tuning mapping table stores the mapping relation between the hue and the hue fine tuning variable dHue. The adjustment of the hue is performed by the pair of (a)j,bj) The vector application is accomplished by applying a rotation matrix β, the angle of which is set to 0 as the default value, wherein,
stored in the saturation fine-tuning mapping table are hue sumsAnd (5) mapping relation of a saturation fine-tuning variable dSat. The saturation is adjusted by the pair (a)j,bj) The modulo multiplication of the vector is done by one scaling factor γ ═ 100+ dInt)/100, with 1 as the default value.
And respectively mapping three fine tuning variables dInt, dHue and dSat in the three fine tuning mapping tables through interpolation according to the difference value of the Hue Hue' of the color to be adjusted of the 24 color cards from the Hue Hue corresponding to the center of the sector adjacent to the left.
An embodiment of the present invention further provides a color correction apparatus for an imaging device, and referring to fig. 3, the apparatus includes:
a parameter obtaining module 301, configured to obtain color parameters of a template sample as initial reference parameters, and obtain color parameters of a sample image as initial sampling parameters, where the sample image is an image obtained by shooting the template sample by a digital imaging device to be corrected under a preset shooting condition, and the template sample includes multiple colors;
a first matrix determining module 302, configured to determine an initial color correction matrix according to the initial reference parameter and the initial sampling parameter;
a sampling parameter primary correction module 303, configured to correct the initial sampling parameter through the initial color correction matrix to obtain a primary corrected sampling parameter;
a reference parameter correction module 304, configured to adjust a parameter of a color to be adjusted in the initial reference parameter according to a color deviation between the primary correction sampling parameter and each corresponding color in the initial reference parameter, so as to obtain a primary correction reference parameter;
a sampling parameter secondary correction module 305, configured to correct the initial sampling parameter according to the primary correction reference parameter and the initial sampling parameter, so as to obtain a secondary correction sampling parameter;
a first color difference determining module 306, configured to determine whether color deviations of respective colors in the secondary calibration sampling parameter and the primary calibration reference parameter all satisfy a preset deviation range;
a second matrix determining module 307, configured to use the primary color correction matrix as a color correction matrix of the digital imaging device to be corrected if the color deviations of the respective colors in the secondary correction sampling parameter and the primary correction reference parameter all satisfy a preset deviation range;
a parameter assignment module 308, configured to update a current value of the primary correction sampling parameter to a current value of the secondary correction sampling parameter if color deviation unevenness of each corresponding color in the secondary correction sampling parameter and the primary correction reference parameter meets a preset tolerance rule, update a current value of the primary reference parameter to a current value of the primary correction reference parameter, and return to the reference parameter correction module to continue execution until color deviations of each corresponding color in the secondary correction sampling parameter and the primary correction reference parameter meet the preset tolerance rule;
and a color correction module 309, configured to correct the color of the digital imaging device to be corrected by using the color correction matrix of the digital imaging device to be corrected.
In the embodiment of the invention, when the color deviation of each corresponding color meets the preset deviation range, the corresponding color correction matrix is used as the color correction matrix of the digital imaging device to be corrected, and the color of the digital imaging device to be corrected is corrected by using the color correction matrix of the digital imaging device to be corrected, so that the condition that the color deviation of the rear color separation block is still large in correction can be reduced, and the color correction effect of the digital imaging device can be enhanced.
Optionally, the reference parameter correcting module 304 includes:
a fine tuning parameter determining submodule, configured to determine a color to be adjusted and a color fine tuning parameter of the color to be adjusted according to the color deviation of each corresponding color in the primary correction sampling parameter and the initial reference parameter;
and the primary correction reference parameter determining submodule is used for adjusting the parameters of the color to be adjusted in the initial reference parameters according to the color fine adjustment parameters to obtain the primary correction reference parameters.
Optionally, the sampling parameter secondary correction module 305 includes:
a correction matrix determining submodule for determining a primary color correction matrix according to the primary correction reference parameter and the initial sampling parameter;
and the secondary correction sampling parameter determining submodule is used for correcting the initial sampling parameters through the primary color correction matrix to obtain the secondary correction sampling parameters.
Optionally, the color correction apparatus for an imaging device according to an embodiment of the present invention further includes:
the second color difference judging module is used for judging whether the color deviations of the corresponding colors in the primary correction sampling parameter and the initial reference parameter meet a preset deviation range or not;
a third matrix determining module, configured to, if the color deviation of each corresponding color in the primary correction sampling parameter and the initial reference parameter meets a preset deviation range, use the initial color correction matrix as a color correction matrix of the digital imaging device to be corrected;
the reference parameter correction module 304 is specifically configured to:
and if the color deviation unevenness of each corresponding color in the primary correction sampling parameter and the initial reference parameter meets a preset deviation range, adjusting the parameter of the color to be adjusted in the initial reference parameter according to the color deviation of each corresponding color in the primary correction sampling parameter and the initial reference parameter to obtain the primary correction reference parameter.
Optionally, the first matrix determining module 302 is specifically configured to:
and calculating a correction matrix which enables the whole color deviation value of the initial reference parameter and the initial acquisition parameter to be minimum after the initial reference parameter is corrected by the correction matrix based on an augmented Lagrange multiplier method, and taking the correction matrix as the initial color correction matrix.
Optionally, the fine tuning parameter determining sub-module includes:
a parameter conversion unit, configured to calibrate each color in the primary calibration sampling parameter and the initial reference parameter in a pre-established color lookup map, and determine a color deviation between the calibration sampling parameter and each corresponding color in the initial reference parameter, where the color lookup map includes a plurality of color regions, and each color in the initial reference parameter corresponds to a different color region;
the color to be adjusted determining unit is used for taking the color of which the color deviation does not meet the preset deviation range as the color to be adjusted;
and the fine tuning parameter calculation unit is used for calculating the color fine tuning parameters of the color to be adjusted according to the color deviation of the color to be adjusted.
Optionally, the fine tuning parameter calculating unit includes:
a color region adjusting subunit, configured to adjust a color region corresponding to the color to be adjusted according to the color deviation between the correction sampling parameter and each corresponding color in the initial reference parameter, so that the color deviation of the color to be adjusted satisfies a color within a preset deviation range;
an adjustment parameter determining subunit, configured to determine an adjustment amount of the color region corresponding to the color to be adjusted in the color lookup map, so as to obtain an adjustment parameter;
and the fine tuning parameter conversion subunit is used for converting the adjusting parameters in the color searching graph into the color fine tuning parameters of the color to be adjusted.
An embodiment of the present invention provides an electronic device, which is shown in fig. 4 and includes a processor 401 and a memory 402;
the memory 402 for storing a computer program;
the processor 401, when executing the program stored in the memory 402, implements the following steps:
acquiring color parameters of a template sample as initial reference parameters, and acquiring color parameters of a sampling image as initial sampling parameters, wherein the sampling image is an image obtained by shooting the template sample by a digital imaging device to be corrected under a preset shooting condition, and the template sample comprises multiple colors;
determining an initial color correction matrix according to the initial reference parameter and the initial sampling parameter;
correcting the initial sampling parameters through the initial color correction matrix to obtain primary correction sampling parameters;
adjusting the parameters of the colors to be adjusted in the initial reference parameters according to the color deviation of the corresponding colors in the primary correction sampling parameters and the initial reference parameters to obtain primary correction reference parameters;
correcting the initial sampling parameters according to the primary correction reference parameters and the initial sampling parameters to obtain secondary correction sampling parameters;
judging whether the color deviation of each corresponding color in the secondary correction sampling parameter and the primary correction reference parameter meets a preset deviation range;
if the color deviation of each corresponding color in the secondary correction sampling parameter and the primary correction reference parameter meets a preset deviation range, taking the primary color correction matrix as the color correction matrix of the digital imaging device to be corrected;
if the color deviations of the corresponding colors in the secondary correction sampling parameter and the primary correction reference parameter do not all meet a preset deviation range, updating the current value of the primary correction sampling parameter to the current value of the secondary correction sampling parameter, updating the current value of the initial reference parameter to the current value of the primary correction reference parameter, returning to the step of adjusting the color parameter to be adjusted in the initial reference parameter according to the color deviations of the corresponding colors in the primary correction sampling parameter and the initial reference parameter, and continuing to execute the step of obtaining the primary correction reference parameter until the color deviations of the corresponding colors in the secondary correction sampling parameter and the primary correction reference parameter all meet the preset deviation range;
and correcting the color of the digital imaging device to be corrected by using the color correction matrix of the digital imaging device to be corrected.
In the embodiment of the invention, when the color deviation of each corresponding color meets the preset deviation range, the corresponding color correction matrix is used as the color correction matrix of the digital imaging device to be corrected, and the color of the digital imaging device to be corrected is corrected by using the color correction matrix of the digital imaging device to be corrected, so that the condition that the color deviation of the corrected rear color separation block is still large can be reduced, and the color correction effect of the digital imaging device can be enhanced.
The processor 401 is configured to implement any of the color correction methods of the imaging device when executing the program stored in the memory 402.
Optionally, the electronic device further includes: a communication interface and a communication bus, wherein the processor 401, the communication interface and the memory 402 complete communication with each other through the communication bus.
Optionally, the electronic device may specifically be a digital imaging device, and the digital imaging device further includes: an image sensor;
the image sensor is used for acquiring images.
The communication bus mentioned in the electronic device may be a Peripheral Component Interconnect (PCI) bus, an Extended Industry Standard Architecture (EISA) bus, or the like. The communication bus may be divided into an address bus, a data bus, a control bus, etc. For ease of illustration, only one thick line is shown, but this does not mean that there is only one bus or one type of bus.
The communication interface is used for communication between the electronic equipment and other equipment.
The Memory may include a Random Access Memory (RAM) or a Non-Volatile Memory (NVM), such as at least one disk Memory. Optionally, the memory may also be at least one memory device located remotely from the processor.
The Processor may be a general-purpose Processor, including a Central Processing Unit (CPU), a Network Processor (NP), and the like; but may also be a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), a Field Programmable Gate Array (FPGA) or other Programmable logic device, discrete Gate or transistor logic device, discrete hardware component.
An embodiment of the present invention further provides a computer-readable storage medium, where a computer program is stored in the computer-readable storage medium, and when the computer program is executed by a processor, the computer program implements the following steps:
acquiring color parameters of a template sample as initial reference parameters, and acquiring color parameters of a sampling image as initial sampling parameters, wherein the sampling image is an image obtained by shooting the template sample by a digital imaging device to be corrected under a preset shooting condition, and the template sample comprises multiple colors;
determining an initial color correction matrix according to the initial reference parameter and the initial sampling parameter;
correcting the initial sampling parameters through the initial color correction matrix to obtain primary correction sampling parameters;
adjusting the parameters of the colors to be adjusted in the initial reference parameters according to the color deviation of the corresponding colors in the primary correction sampling parameters and the initial reference parameters to obtain primary correction reference parameters;
correcting the initial sampling parameters according to the primary correction reference parameters and the initial sampling parameters to obtain secondary correction sampling parameters;
judging whether the color deviation of each corresponding color in the secondary correction sampling parameter and the primary correction reference parameter meets a preset deviation range;
if the color deviation of each corresponding color in the secondary correction sampling parameter and the primary correction reference parameter meets a preset deviation range, taking the primary color correction matrix as the color correction matrix of the digital imaging device to be corrected;
if the color deviations of the corresponding colors in the secondary correction sampling parameter and the primary correction reference parameter do not all meet a preset deviation range, updating the current value of the primary correction sampling parameter to the current value of the secondary correction sampling parameter, updating the current value of the initial reference parameter to the current value of the primary correction reference parameter, returning to the step of adjusting the color parameter to be adjusted in the initial reference parameter according to the color deviations of the corresponding colors in the primary correction sampling parameter and the initial reference parameter, and continuing to execute the step of obtaining the primary correction reference parameter until the color deviations of the corresponding colors in the secondary correction sampling parameter and the primary correction reference parameter all meet the preset deviation range;
and correcting the color of the digital imaging device to be corrected by using the color correction matrix of the digital imaging device to be corrected.
In the embodiment of the invention, when the color deviation of each corresponding color meets the preset deviation range, the corresponding color correction matrix is used as the color correction matrix of the digital imaging device to be corrected, and the color of the digital imaging device to be corrected is corrected by using the color correction matrix of the digital imaging device to be corrected, so that the condition that the color deviation of the corrected rear color separation block is still large can be reduced, and the color correction effect of the digital imaging device can be enhanced.
The computer program can be executed by a processor to realize any one of the imaging device color correction methods.
It is noted that, herein, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.
All the embodiments in the present specification are described in a related manner, and the same and similar parts among the embodiments may be referred to each other, and each embodiment focuses on the differences from the other embodiments. In particular, for the embodiments of the apparatus, the electronic device, and the storage medium, since they are substantially similar to the method embodiments, the description is relatively simple, and for the relevant points, reference may be made to the partial description of the method embodiments.
The above description is only for the preferred embodiment of the present invention, and is not intended to limit the scope of the present invention. Any modification, equivalent replacement, or improvement made within the spirit and principle of the present invention shall fall within the protection scope of the present invention.
Claims (16)
1. An imaging device color correction method, the method comprising:
acquiring color parameters of a template sample as initial reference parameters, and acquiring color parameters of a sampling image as initial sampling parameters, wherein the sampling image is an image obtained by shooting the template sample by a digital imaging device to be corrected under a preset shooting condition, and the template sample comprises multiple colors;
determining an initial color correction matrix according to the initial reference parameter and the initial sampling parameter;
correcting the initial sampling parameters through the initial color correction matrix to obtain primary correction sampling parameters;
adjusting the parameters of the colors to be adjusted in the initial reference parameters according to the color deviation of the corresponding colors in the primary correction sampling parameters and the initial reference parameters to obtain primary correction reference parameters;
correcting the initial sampling parameters according to the primary correction reference parameters and the initial sampling parameters to obtain secondary correction sampling parameters;
judging whether the color deviation of each corresponding color in the secondary correction sampling parameter and the primary correction reference parameter meets a preset deviation range or not;
if the color deviation of each corresponding color in the secondary correction sampling parameter and the primary correction reference parameter meets a preset deviation range, taking the primary color correction matrix as the color correction matrix of the digital imaging equipment to be corrected;
if the color deviations of the corresponding colors in the secondary correction sampling parameter and the primary correction reference parameter do not all meet a preset deviation range, updating the current value of the primary correction sampling parameter to the current value of the secondary correction sampling parameter, updating the current value of the initial reference parameter to the current value of the primary correction reference parameter, returning to the step of adjusting the color parameter to be adjusted in the initial reference parameter according to the color deviations of the corresponding colors in the primary correction sampling parameter and the initial reference parameter to obtain the primary correction reference parameter, and continuing to execute the step until the color deviations of the corresponding colors in the secondary correction sampling parameter and the primary correction reference parameter all meet the preset deviation range;
and correcting the color of the digital imaging equipment to be corrected by utilizing the color correction matrix of the digital imaging equipment to be corrected.
2. The method according to claim 1, wherein the adjusting the parameter of the color to be adjusted in the initial reference parameter according to the color deviation between the primary correction sampling parameter and each corresponding color in the initial reference parameter to obtain a primary correction reference parameter comprises:
determining the color to be adjusted and the color fine adjustment parameter of the color to be adjusted according to the color deviation of each corresponding color in the primary correction sampling parameter and the initial reference parameter;
and adjusting the parameters of the color to be adjusted in the initial reference parameters according to the color fine adjustment parameters to obtain the primary correction reference parameters.
3. The method according to claim 1 or 2, wherein the calibrating the initial sampling parameter according to the primary calibration reference parameter and the initial sampling parameter to obtain a secondary calibration sampling parameter comprises:
determining a primary color correction matrix according to the primary correction reference parameter and the initial sampling parameter;
and correcting the initial sampling parameters through the primary color correction matrix to obtain the secondary correction sampling parameters.
4. The method of claim 1, wherein after the initial sampling parameter is corrected according to the initial reference parameter and the initial sampling parameter to obtain a once-corrected sampling parameter, the method further comprises:
judging whether the color deviation of each corresponding color in the primary correction sampling parameter and the initial reference parameter meets a preset deviation range or not;
if the color deviation of each corresponding color in the primary correction sampling parameter and the initial reference parameter meets a preset deviation range, taking the initial color correction matrix as the color correction matrix of the digital imaging equipment to be corrected;
adjusting the parameters of the colors to be adjusted in the initial reference parameters according to the color deviation of the corresponding colors in the primary correction sampling parameters and the initial reference parameters to obtain primary correction reference parameters, wherein the primary correction reference parameters comprise
And if the color deviation unevenness of each corresponding color in the primary correction sampling parameter and the initial reference parameter meets a preset deviation range, adjusting the parameter of the color to be adjusted in the initial reference parameter according to the color deviation of each corresponding color in the primary correction sampling parameter and the initial reference parameter to obtain the primary correction reference parameter.
5. The method of claim 1, wherein determining an initial color correction matrix based on the initial reference parameters and the initial sampling parameters comprises:
and calculating a correction matrix which enables the initial reference parameter to be corrected by the correction matrix and has the minimum integral color deviation value with the initial acquisition parameter as the initial color correction matrix based on an augmented Lagrange multiplier method.
6. The method according to claim 2, wherein the determining the color to be adjusted and the color fine tuning parameter of the color to be adjusted according to the color deviation of each corresponding color in the primary correction sampling parameter and the initial reference parameter comprises:
calibrating each color in the primary correction sampling parameter and the initial reference parameter in a pre-established color lookup map, and determining the color deviation of each corresponding color in the correction sampling parameter and the initial reference parameter, wherein the color lookup map comprises a plurality of color areas, and each color in the initial reference parameter corresponds to a different color area;
taking the color with the color deviation not meeting the preset deviation range as the color to be adjusted;
and calculating the color fine tuning parameters of the color to be adjusted according to the color deviation of the color to be adjusted.
7. The method according to claim 6, wherein said calculating the color fine tuning parameter of the color to be adjusted according to the color deviation of the color to be adjusted comprises:
adjusting the color area corresponding to the color to be adjusted according to the color deviation of each corresponding color in the correction sampling parameter and the initial reference parameter, so that the color deviation of the color to be adjusted meets the color in a preset deviation range;
determining the adjustment amount of a color area corresponding to the color to be adjusted in the color searching graph to obtain an adjustment parameter;
and converting the adjusting parameters in the color searching graph into color fine-tuning parameters of the color to be adjusted.
8. An imaging device color correction apparatus, the apparatus comprising:
the parameter acquisition module is used for acquiring color parameters of a template sample as initial reference parameters and acquiring color parameters of a sampling image as initial sampling parameters, wherein the sampling image is an image obtained by shooting the template sample by digital imaging equipment to be corrected under a preset shooting condition, and the template sample comprises multiple colors;
the first matrix determining module is used for determining an initial color correction matrix according to the initial reference parameter and the initial sampling parameter;
the sampling parameter primary correction module is used for correcting the initial sampling parameters through the initial color correction matrix to obtain primary correction sampling parameters;
the reference parameter correction module is used for adjusting the parameters of the colors to be adjusted in the initial reference parameters according to the color deviation of the primary correction sampling parameters and the corresponding colors in the initial reference parameters to obtain primary correction reference parameters;
the sampling parameter secondary correction module is used for correcting the initial sampling parameter according to the primary correction reference parameter and the initial sampling parameter to obtain a secondary correction sampling parameter;
the first color difference judging module is used for judging whether the color deviations of the corresponding colors in the secondary correction sampling parameter and the primary correction reference parameter meet a preset deviation range or not;
the second matrix determining module is used for taking the primary color correction matrix as the color correction matrix of the digital imaging device to be corrected if the color deviation of each corresponding color in the secondary correction sampling parameter and the primary correction reference parameter meets a preset deviation range;
a parameter assignment module, configured to update a current value of the primary correction sampling parameter to a current value of the secondary correction sampling parameter if color deviation unevenness of each corresponding color in the secondary correction sampling parameter and the primary correction reference parameter meets a preset tolerance rule, update a current value of the initial reference parameter to a current value of the primary correction reference parameter, and return to the reference parameter correction module to continue execution until color deviations of each corresponding color in the secondary correction sampling parameter and the primary correction reference parameter meet the preset tolerance rule;
and the color correction module is used for correcting the color of the digital imaging device to be corrected by utilizing the color correction matrix of the digital imaging device to be corrected.
9. The apparatus of claim 8, wherein the reference parameter correction module comprises:
the fine tuning parameter determining submodule is used for determining the color to be adjusted and the color fine tuning parameter of the color to be adjusted according to the color deviation of each corresponding color in the primary correction sampling parameter and the initial reference parameter;
and the primary correction reference parameter determining submodule is used for adjusting the parameters of the color to be adjusted in the initial reference parameters according to the color fine adjustment parameters to obtain the primary correction reference parameters.
10. The apparatus of claim 8 or 9, wherein the sampling parameter quadratic correction module comprises:
the correction matrix determining submodule is used for determining a primary color correction matrix according to the primary correction reference parameter and the initial sampling parameter;
and the secondary correction sampling parameter determining submodule is used for correcting the initial sampling parameters through the primary color correction matrix to obtain the secondary correction sampling parameters.
11. The apparatus of claim 8, further comprising:
the second color difference judging module is used for judging whether the color deviation of each corresponding color in the primary correction sampling parameter and the initial reference parameter meets a preset deviation range or not;
a third matrix determining module, configured to, if the color deviation of each corresponding color in the primary correction sampling parameter and the initial reference parameter meets a preset deviation range, use the initial color correction matrix as a color correction matrix of the digital imaging device to be corrected;
the reference parameter correction module is specifically configured to:
and if the color deviation unevenness of each corresponding color in the primary correction sampling parameter and the initial reference parameter meets a preset deviation range, adjusting the parameter of the color to be adjusted in the initial reference parameter according to the color deviation of each corresponding color in the primary correction sampling parameter and the initial reference parameter to obtain the primary correction reference parameter.
12. The apparatus of claim 8, wherein the first matrix determination module is specifically configured to:
and calculating a correction matrix which enables the initial reference parameter to be corrected by the correction matrix and has the minimum integral color deviation value with the initial acquisition parameter as the initial color correction matrix based on an augmented Lagrange multiplier method.
13. The apparatus of claim 9, wherein the fine tuning parameter determination sub-module comprises:
the parameter conversion unit is used for calibrating each color in the primary correction sampling parameter and the initial reference parameter in a pre-established color lookup map, and determining the color deviation of each corresponding color in the correction sampling parameter and the initial reference parameter, wherein the color lookup map comprises a plurality of color areas, and each color in the initial reference parameter corresponds to a different color area;
the color to be adjusted determining unit is used for taking the color of which the color deviation does not meet the preset deviation range as the color to be adjusted;
and the fine tuning parameter calculation unit is used for calculating the color fine tuning parameters of the color to be adjusted according to the color deviation of the color to be adjusted.
14. The apparatus of claim 13, wherein the fine tuning parameter calculation unit comprises:
a color region adjusting subunit, configured to adjust a color region corresponding to the color to be adjusted according to the color deviation between the correction sampling parameter and each corresponding color in the initial reference parameter, so that the color deviation of the color to be adjusted satisfies a color within a preset deviation range;
an adjustment parameter determining subunit, configured to determine an adjustment amount of the color region corresponding to the color to be adjusted in the color lookup map, so as to obtain an adjustment parameter;
and the fine tuning parameter conversion subunit is used for converting the adjusting parameters in the color lookup map into the color fine tuning parameters of the color to be adjusted.
15. An electronic device comprising a processor and a memory;
the memory is used for storing a computer program;
the processor, when executing the program stored in the memory, implementing the method steps of any of claims 1-7.
16. A computer-readable storage medium, characterized in that a computer program is stored in the computer-readable storage medium, which computer program, when being executed by a processor, carries out the method steps of any one of claims 1 to 7.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810922340.8A CN110830778B (en) | 2018-08-14 | 2018-08-14 | Imaging device color correction method, imaging device color correction device, electronic device and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810922340.8A CN110830778B (en) | 2018-08-14 | 2018-08-14 | Imaging device color correction method, imaging device color correction device, electronic device and storage medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN110830778A true CN110830778A (en) | 2020-02-21 |
CN110830778B CN110830778B (en) | 2021-05-14 |
Family
ID=69547205
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201810922340.8A Active CN110830778B (en) | 2018-08-14 | 2018-08-14 | Imaging device color correction method, imaging device color correction device, electronic device and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN110830778B (en) |
Cited By (11)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111583127A (en) * | 2020-04-03 | 2020-08-25 | 浙江大华技术股份有限公司 | Face skin color correction method and device, computer equipment and readable storage medium |
CN112073703A (en) * | 2020-08-31 | 2020-12-11 | 深圳市景阳科技股份有限公司 | Method and device for adjusting color correction matrix, terminal equipment and medium |
CN112907459A (en) * | 2021-01-25 | 2021-06-04 | 北京达佳互联信息技术有限公司 | Image processing method and device |
CN113096046A (en) * | 2021-04-15 | 2021-07-09 | 北京有竹居网络技术有限公司 | Image processing method and device |
CN113542593A (en) * | 2021-06-16 | 2021-10-22 | 深圳市景阳科技股份有限公司 | Image processing method and device and terminal equipment |
CN113676639A (en) * | 2021-08-17 | 2021-11-19 | Oppo广东移动通信有限公司 | Image processing method, processing device, electronic apparatus, and medium |
CN113923429A (en) * | 2021-12-16 | 2022-01-11 | 成都索贝数码科技股份有限公司 | Color correction method based on color card |
CN114845094A (en) * | 2022-07-06 | 2022-08-02 | 深圳思谋信息科技有限公司 | Color correction method and device |
CN115209118A (en) * | 2021-04-13 | 2022-10-18 | 泰立戴恩菲力尔商业系统公司 | Image color correction system and method |
CN116612199A (en) * | 2023-07-20 | 2023-08-18 | 中国科学院光电技术研究所 | On-orbit combined color calibration method for deep space exploration color camera |
TWI825964B (en) * | 2022-08-31 | 2023-12-11 | 瑞昱半導體股份有限公司 | Image processing apparatus and method having lens color-shading correction mechanism |
Citations (17)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101064766A (en) * | 2006-04-26 | 2007-10-31 | 夏普株式会社 | Image processing method and image processing apparatus |
CN101359205A (en) * | 2007-07-31 | 2009-02-04 | 佳能株式会社 | Color image forming apparatus and color image forming method |
US20090067860A1 (en) * | 2007-09-11 | 2009-03-12 | Konica Minolta Business Technologies, Inc. | Image forming apparatus, tone correction method, and computer-readable recording medium recorded with tone correction program |
CN101500074A (en) * | 2008-01-29 | 2009-08-05 | 兆宏电子股份有限公司 | Image correction method, image correction unit and image pick-up apparatus applying the same |
US20100067030A1 (en) * | 2004-03-12 | 2010-03-18 | Seiko Epson Corporation | Image color adjustment |
CN101815220A (en) * | 2009-02-20 | 2010-08-25 | 华晶科技股份有限公司 | Method for correcting image color distortion |
US20110090371A1 (en) * | 2009-10-20 | 2011-04-21 | Apple Inc. | System and method for detecting and correcting defective pixels in an image sensor |
CN102132571A (en) * | 2008-08-29 | 2011-07-20 | 夏普株式会社 | Image display apparatus |
CN102207700A (en) * | 2010-03-30 | 2011-10-05 | 兄弟工业株式会社 | Printing apparatus and a printing system |
CN103179322A (en) * | 2011-12-20 | 2013-06-26 | 联想(北京)有限公司 | Image color correction method and electronic device |
US20150054983A1 (en) * | 2013-08-22 | 2015-02-26 | Canon Kabushiki Kaisha | Image processing apparatus that is capable of correcting color shift, method of controlling the same, and storage medium |
JP2016054405A (en) * | 2014-09-03 | 2016-04-14 | キヤノン株式会社 | Color processing device and method of the same |
CN105827897A (en) * | 2015-11-16 | 2016-08-03 | 维沃移动通信有限公司 | Adjustment card manufacturing method, system, color correction matrix debugging method and device |
US20160286094A1 (en) * | 2015-03-27 | 2016-09-29 | Brother Kogyo Kabushiki Kaisha | Image processing apparatus and computer program |
CN107256703A (en) * | 2017-08-15 | 2017-10-17 | 友达光电股份有限公司 | The color correcting method of reflected displaying device |
US20180007333A1 (en) * | 2016-06-30 | 2018-01-04 | Apple Inc. | Per pixel color correction filtering |
CN108282647A (en) * | 2018-01-31 | 2018-07-13 | 上海小蚁科技有限公司 | Color correcting method and device, computer readable storage medium, terminal |
-
2018
- 2018-08-14 CN CN201810922340.8A patent/CN110830778B/en active Active
Patent Citations (17)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20100067030A1 (en) * | 2004-03-12 | 2010-03-18 | Seiko Epson Corporation | Image color adjustment |
CN101064766A (en) * | 2006-04-26 | 2007-10-31 | 夏普株式会社 | Image processing method and image processing apparatus |
CN101359205A (en) * | 2007-07-31 | 2009-02-04 | 佳能株式会社 | Color image forming apparatus and color image forming method |
US20090067860A1 (en) * | 2007-09-11 | 2009-03-12 | Konica Minolta Business Technologies, Inc. | Image forming apparatus, tone correction method, and computer-readable recording medium recorded with tone correction program |
CN101500074A (en) * | 2008-01-29 | 2009-08-05 | 兆宏电子股份有限公司 | Image correction method, image correction unit and image pick-up apparatus applying the same |
CN102132571A (en) * | 2008-08-29 | 2011-07-20 | 夏普株式会社 | Image display apparatus |
CN101815220A (en) * | 2009-02-20 | 2010-08-25 | 华晶科技股份有限公司 | Method for correcting image color distortion |
US20110090371A1 (en) * | 2009-10-20 | 2011-04-21 | Apple Inc. | System and method for detecting and correcting defective pixels in an image sensor |
CN102207700A (en) * | 2010-03-30 | 2011-10-05 | 兄弟工业株式会社 | Printing apparatus and a printing system |
CN103179322A (en) * | 2011-12-20 | 2013-06-26 | 联想(北京)有限公司 | Image color correction method and electronic device |
US20150054983A1 (en) * | 2013-08-22 | 2015-02-26 | Canon Kabushiki Kaisha | Image processing apparatus that is capable of correcting color shift, method of controlling the same, and storage medium |
JP2016054405A (en) * | 2014-09-03 | 2016-04-14 | キヤノン株式会社 | Color processing device and method of the same |
US20160286094A1 (en) * | 2015-03-27 | 2016-09-29 | Brother Kogyo Kabushiki Kaisha | Image processing apparatus and computer program |
CN105827897A (en) * | 2015-11-16 | 2016-08-03 | 维沃移动通信有限公司 | Adjustment card manufacturing method, system, color correction matrix debugging method and device |
US20180007333A1 (en) * | 2016-06-30 | 2018-01-04 | Apple Inc. | Per pixel color correction filtering |
CN107256703A (en) * | 2017-08-15 | 2017-10-17 | 友达光电股份有限公司 | The color correcting method of reflected displaying device |
CN108282647A (en) * | 2018-01-31 | 2018-07-13 | 上海小蚁科技有限公司 | Color correcting method and device, computer readable storage medium, terminal |
Non-Patent Citations (1)
Title |
---|
徐渊等: "基于FPGA的实时CMOS视频图像预处理系统", 《深圳大学学报(理工版)》 * |
Cited By (17)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111583127A (en) * | 2020-04-03 | 2020-08-25 | 浙江大华技术股份有限公司 | Face skin color correction method and device, computer equipment and readable storage medium |
CN111583127B (en) * | 2020-04-03 | 2023-08-15 | 浙江大华技术股份有限公司 | Face skin color correction method, device, computer equipment and readable storage medium |
CN112073703A (en) * | 2020-08-31 | 2020-12-11 | 深圳市景阳科技股份有限公司 | Method and device for adjusting color correction matrix, terminal equipment and medium |
CN112907459A (en) * | 2021-01-25 | 2021-06-04 | 北京达佳互联信息技术有限公司 | Image processing method and device |
CN112907459B (en) * | 2021-01-25 | 2024-04-09 | 北京达佳互联信息技术有限公司 | Image processing method and device |
US11924590B2 (en) | 2021-04-13 | 2024-03-05 | Teledyne Flir Commercial Systems, Inc. | Image color correction systems and methods |
CN115209118A (en) * | 2021-04-13 | 2022-10-18 | 泰立戴恩菲力尔商业系统公司 | Image color correction system and method |
CN113096046A (en) * | 2021-04-15 | 2021-07-09 | 北京有竹居网络技术有限公司 | Image processing method and device |
CN113542593B (en) * | 2021-06-16 | 2023-04-07 | 深圳市景阳科技股份有限公司 | Image processing method and device and terminal equipment |
CN113542593A (en) * | 2021-06-16 | 2021-10-22 | 深圳市景阳科技股份有限公司 | Image processing method and device and terminal equipment |
CN113676639A (en) * | 2021-08-17 | 2021-11-19 | Oppo广东移动通信有限公司 | Image processing method, processing device, electronic apparatus, and medium |
CN113923429B (en) * | 2021-12-16 | 2022-04-12 | 成都索贝数码科技股份有限公司 | Color correction method based on color card |
CN113923429A (en) * | 2021-12-16 | 2022-01-11 | 成都索贝数码科技股份有限公司 | Color correction method based on color card |
CN114845094A (en) * | 2022-07-06 | 2022-08-02 | 深圳思谋信息科技有限公司 | Color correction method and device |
TWI825964B (en) * | 2022-08-31 | 2023-12-11 | 瑞昱半導體股份有限公司 | Image processing apparatus and method having lens color-shading correction mechanism |
CN116612199B (en) * | 2023-07-20 | 2024-02-06 | 中国科学院光电技术研究所 | On-orbit combined color calibration method for deep space exploration color camera |
CN116612199A (en) * | 2023-07-20 | 2023-08-18 | 中国科学院光电技术研究所 | On-orbit combined color calibration method for deep space exploration color camera |
Also Published As
Publication number | Publication date |
---|---|
CN110830778B (en) | 2021-05-14 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN110830778B (en) | Imaging device color correction method, imaging device color correction device, electronic device and storage medium | |
CN107197225B (en) | Color digital camera white balance correcting based on chromatic adaptation model | |
CN111861922A (en) | Method and device for adjusting color correction matrix and storage medium | |
US20150097985A1 (en) | Compensating for sensor saturation and microlens modulation during light-field image processing | |
CN111292246B (en) | Image color correction method, storage medium, and endoscope | |
CN112752023B (en) | Image adjusting method and device, electronic equipment and storage medium | |
JP6752831B2 (en) | Color gamut mapping that changes hue | |
US8189909B2 (en) | Color temperature conversion method and apparatus having luminance correction conversion function | |
WO2021223185A1 (en) | Camera and alignment method and apparatus therefor, and gimbal | |
CN104796683A (en) | Image color calibration method and system | |
TW201944774A (en) | White balance calibration method based on skin color data and image processing apparatus thereof | |
CN110930341A (en) | Low-illumination image enhancement method based on image fusion | |
CN110213556B (en) | Automatic white balance method and system in monochrome scene, storage medium and terminal | |
US7298892B2 (en) | Producing a balanced digital color image having minimal color errors | |
WO2017096858A1 (en) | Method and device for calibrating white balance of images | |
WO2020093653A1 (en) | Color adjustment method, color adjustment device, electronic device and computer-readable storage medium | |
TW201830337A (en) | Method and device for performing automatic white balance on an image | |
JP4549704B2 (en) | Method for adjusting color correction for image and method for adjusting color correction amount for image | |
TWI649724B (en) | Method and apparatus for determining a light source of an image and performing color vision adaptation on the image | |
CN109792474B (en) | Method for determining a chroma mapping function | |
CN113850738A (en) | Device and method for correcting purple border of image | |
US9131200B2 (en) | White balance adjusting method with scene detection and device thereof | |
US20140314317A1 (en) | Method and apparatus for converting gray level of color image | |
Kao et al. | Color reproduction for digital imaging systems | |
US8115834B2 (en) | Image processing device, image processing program and image processing method |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |