CN110830778B - 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 PDF

Info

Publication number
CN110830778B
CN110830778B CN201810922340.8A CN201810922340A CN110830778B CN 110830778 B CN110830778 B CN 110830778B CN 201810922340 A CN201810922340 A CN 201810922340A CN 110830778 B CN110830778 B CN 110830778B
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.)
Active
Application number
CN201810922340.8A
Other languages
Chinese (zh)
Other versions
CN110830778A (en
Inventor
朱成
陈军
高浩然
王祖力
黄中宁
郑海涛
刘瑞红
范沣曦
殷欢
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Hangzhou Hikvision Digital Technology Co Ltd
Original Assignee
Hangzhou Hikvision Digital Technology Co Ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Hangzhou Hikvision Digital Technology Co Ltd filed Critical Hangzhou Hikvision Digital Technology Co Ltd
Priority to CN201810922340.8A priority Critical patent/CN110830778B/en
Publication of CN110830778A publication Critical patent/CN110830778A/en
Application granted granted Critical
Publication of CN110830778B publication Critical patent/CN110830778B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/10Cameras or camera modules comprising electronic image sensors; Control thereof for generating image signals from different wavelengths
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N9/00Details of colour television systems
    • H04N9/64Circuits for processing colour signals
    • H04N9/68Circuits for processing colour signals for controlling the amplitude of colour signals, e.g. automatic chroma control circuits
    • H04N9/69Circuits 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

Imaging device color correction method, imaging device color correction device, electronic device and storage medium
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:
Figure GDA0002991740970000011
this formula describes the raw RGB values: [ R G B]TCorrected by a color correction matrix to obtain new RGB values [ R ' G ' B ']TThe process of (1).
Wherein,
Figure GDA0002991740970000012
representing a color correction matrix.
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:
Figure GDA0002991740970000013
it can also be written as:
Figure GDA0002991740970000021
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 using
Figure GDA0002991740970000022
Or
Figure GDA0002991740970000023
As Δ EiThe color difference index of the operator, wherein,
Figure GDA0002991740970000024
and
Figure GDA0002991740970000025
are all color deviation criteria, e.g.
Figure GDA0002991740970000026
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 whole color deviation value of the initial reference parameter and the initial sampling 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 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 whole color deviation value of the initial reference parameter and the initial sampling 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:
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 represent a range from magenta to green, and b may represent a range from yellow to blue. The color deviation criterion may be
Figure GDA0002991740970000111
And
Figure GDA0002991740970000112
and any one of the color deviation criteria. For example,
Figure GDA0002991740970000113
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*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 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 completed by multiplying the value of the L channel by a stretching coefficient alpha which is (100+ dInt)/100, and 1 is taken as a default value; the adjustment of the hue is performed by the pair of (a)j,bj) The vector is completed by applying a rotation matrix beta, and the angle of the rotation matrix takes 0 degrees as a default value; the saturation is adjusted by(aj,bj) The modulo multiplication of the vector is done by one scaling factor γ ═ 100+ dInt)/100, with 1 as the default value.
Wherein,
Figure GDA0002991740970000131
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、binThree channel values of the color to be adjusted in CIE L a b color space before adjustment, Lout、aout、boutAnd three channel values of the color to be adjusted in the CIE L a b color space after adjustment.
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 sampling 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/max f (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 spaces
Figure GDA0002991740970000171
Taking 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.
Determining the coordinates (a) of the color reference values of the non-neutral colors in the template sample 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} is expressed.
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:
Figure GDA0002991740970000191
Sithe angular range covered by the sector is:
Figure GDA0002991740970000192
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.
Converting color reference values of 24 color cards to CIEL*a*b*A color space. The method comprises the steps of determining the adjustment range and the direction of the color property of a sector to be adjusted by aiming at the purpose that the color deviation of the color to be adjusted meets a preset deviation range, and adjusting the color property and the direction of the sector, wherein the color property comprises brightness, hue and saturation. Wherein,
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 fine adjustment mapping table stores the mapping relation between the hue and the brightness fine adjustment variable dInt. The brightness adjustment is performed by multiplying the value of the L channel by a scaling factor α of (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 is completed by applying a rotation matrix beta, the angle of which is 0 deg. as default. Wherein,
Figure GDA0002991740970000201
the saturation fine-tuning mapping table stores the mapping relationship between the hue and the 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 sampling 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 also Digital Signal Processors (DSPs), Application Specific Integrated Circuits (ASICs), Field Programmable Gate Arrays (FPGAs) or other Programmable logic devices, discrete Gate or transistor logic devices, discrete hardware components.
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 a primary color correction matrix as the color correction matrix of the digital imaging equipment to be corrected; the primary color correction matrix is determined according to the primary correction reference parameter and the initial sampling parameter;
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 whole color deviation value of the initial reference parameter and the initial sampling 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.
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; the primary color correction matrix is determined according to the primary correction reference parameter and the initial sampling parameter;
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 whole color deviation value of the initial reference parameter and the initial sampling 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.
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.
CN201810922340.8A 2018-08-14 2018-08-14 Imaging device color correction method, imaging device color correction device, electronic device and storage medium Active CN110830778B (en)

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 CN110830778A (en) 2020-02-21
CN110830778B true 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)

Families Citing this family (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111583127B (en) * 2020-04-03 2023-08-15 浙江大华技术股份有限公司 Face skin color correction method, device, computer equipment and readable storage medium
CN112073703B (en) * 2020-08-31 2022-04-22 深圳市景阳科技股份有限公司 Method and device for adjusting color correction matrix, terminal equipment and medium
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
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
CN113676639B (en) * 2021-08-17 2023-03-24 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
CN114845094B (en) * 2022-07-06 2022-09-30 深圳思谋信息科技有限公司 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

Citations (3)

* Cited by examiner, † Cited by third party
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
CN102207700A (en) * 2010-03-30 2011-10-05 兄弟工业株式会社 Printing apparatus and a printing system

Family Cites Families (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7636473B2 (en) * 2004-03-12 2009-12-22 Seiko Epson Corporation Image color adjustment
JP4379508B2 (en) * 2007-09-11 2009-12-09 コニカミノルタビジネステクノロジーズ株式会社 Image forming apparatus, gradation correction method, and gradation correction program
CN101500074A (en) * 2008-01-29 2009-08-05 兆宏电子股份有限公司 Image correction method, image correction unit and image pick-up apparatus applying the same
JP4422190B1 (en) * 2008-08-29 2010-02-24 シャープ株式会社 Video display device
CN101815220B (en) * 2009-02-20 2011-08-10 华晶科技股份有限公司 Method for correcting image color distortion
US8259198B2 (en) * 2009-10-20 2012-09-04 Apple Inc. System and method for detecting and correcting defective pixels in an image sensor
CN103179322B (en) * 2011-12-20 2016-03-02 联想(北京)有限公司 A kind of image color correction method and electronic equipment
JP6066866B2 (en) * 2013-08-22 2017-01-25 キヤノン株式会社 Image processing apparatus, control method thereof, and control program
JP2016054405A (en) * 2014-09-03 2016-04-14 キヤノン株式会社 Color processing device and method of the same
JP6369369B2 (en) * 2015-03-27 2018-08-08 ブラザー工業株式会社 Image processing apparatus and computer program
CN105827897B (en) * 2015-11-16 2019-06-07 维沃移动通信有限公司 Adjust card manufacturing method, system, debugging color correction matrix method and apparatus
US9979942B2 (en) * 2016-06-30 2018-05-22 Apple Inc. Per pixel color correction filtering
CN107256703A (en) * 2017-08-15 2017-10-17 友达光电股份有限公司 The color correcting method of reflected displaying device
CN108282647B (en) * 2018-01-31 2019-11-05 上海小蚁科技有限公司 Color correcting method and device, computer readable storage medium, terminal

Patent Citations (3)

* Cited by examiner, † Cited by third party
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
CN102207700A (en) * 2010-03-30 2011-10-05 兄弟工业株式会社 Printing apparatus and a printing system

Also Published As

Publication number Publication date
CN110830778A (en) 2020-02-21

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
CN111861922B (en) Color correction matrix adjusting method and device and storage medium
CN112752023B (en) Image adjusting method and device, electronic equipment and storage medium
CN111292246B (en) Image color correction method, storage medium, and endoscope
US20150097985A1 (en) Compensating for sensor saturation and microlens modulation during light-field image processing
WO2021223185A1 (en) Camera and alignment method and apparatus therefor, and gimbal
US8189909B2 (en) Color temperature conversion method and apparatus having luminance correction conversion function
TWI660633B (en) White balance calibration method based on skin color data and image processing apparatus thereof
CN104796683A (en) Image color calibration method and system
CN111311513B (en) Method, device and computer storage medium for unifying color and style of image
CN105898263B (en) A kind of image white balance method, device and computing device
WO2020093653A1 (en) Color adjustment method, color adjustment device, electronic device and computer-readable storage medium
WO2017096858A1 (en) Method and device for calibrating white balance of images
EP1467555B1 (en) Producing a balanced digital color image having minimal color errors
TW201830337A (en) Method and device for performing automatic white balance on an image
CN111587573B (en) Image processing method and device and computer storage medium
JP2004118442A (en) Image color correction device, image color correction method, and image color correction program
JP4549704B2 (en) Method for adjusting color correction for image and method for adjusting color correction amount for image
US9131200B2 (en) White balance adjusting method with scene detection and device thereof
CN113850738A (en) Device and method for correcting purple border of image
CN109792474B (en) Method for determining a chroma mapping function
Kao et al. Color reproduction for digital imaging systems
TWI513326B (en) Method for correcting high dynamic range synthetic images
CN110809145B (en) Image brightness conversion method, device and equipment based on Craik-O' Brien effect

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