CN108712639A - Image color correction method, apparatus and system - Google Patents

Image color correction method, apparatus and system Download PDF

Info

Publication number
CN108712639A
CN108712639A CN201810529443.8A CN201810529443A CN108712639A CN 108712639 A CN108712639 A CN 108712639A CN 201810529443 A CN201810529443 A CN 201810529443A CN 108712639 A CN108712639 A CN 108712639A
Authority
CN
China
Prior art keywords
color
corrected
image
correction matrix
color correction
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.)
Pending
Application number
CN201810529443.8A
Other languages
Chinese (zh)
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.)
Luster LightTech Co Ltd
Original Assignee
Luster LightTech 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 Luster LightTech Co Ltd filed Critical Luster LightTech Co Ltd
Priority to CN201810529443.8A priority Critical patent/CN108712639A/en
Publication of CN108712639A publication Critical patent/CN108712639A/en
Pending legal-status Critical Current

Links

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
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/80Camera processing pipelines; Components thereof
    • H04N23/84Camera processing pipelines; Components thereof for processing colour signals
    • H04N23/88Camera processing pipelines; Components thereof for processing colour signals for colour balance, e.g. white-balance circuits or colour temperature control
    • 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

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Facsimile Image Signal Circuits (AREA)

Abstract

The embodiment of the present application discloses a kind of image color correction method, apparatus and system, by obtaining colour atla image of the standard color card under a variety of different-colours, analysis obtains under each colour temperature, the standard reference value and acquired original value of the RGB triple channels of each color lump in standard color card, calculate the color correction matrix that each colour temperature subscript is set, color correction matrix is that 3*N ties up color correction matrix, and N is positive integer and N >=3;Obtain the input pixel value of image to be corrected, determine the target colour temperature under the acquisition environment of image to be corrected, matching color of object correction matrix corresponding with target colour temperature, according to the input pixel value of color of object correction matrix and image to be corrected, the color for treating correction image is corrected;The application is by designing the color correction matrix of higher dimension, and grey block bound term in adding, and is corrected to color of image, has preferable color rendition effect, reduces the existing aberration of color of image correction.

Description

Image color correction method, device and system
Technical Field
The present application relates to the field of image processing technologies, and in particular, to a method, an apparatus, and a system for correcting an image color.
Background
The color of the image collected by the camera is closely related to the collection environment, and the color of the image collected by the same collection target is different in different collection environments. The color temperature of the acquisition environment and the response of the RGB three components of the camera chip to different color objects affect the final imaging color, and therefore, the color of the image acquired by the camera needs to be corrected to restore the true color of the acquisition target.
At present, the conventional image color correction method usually utilizes a color correction matrix to adjust the color of the image, for example, a 3 × 3 numerical matrix is used to multiply each pixel point, i.e., each color value, in the image, so as to obtain the color-corrected image. However, in practical practice, the skilled person finds that, after the image color is corrected by the above-mentioned conventional image color correction method, the obtained image color generates a certain color difference.
Disclosure of Invention
The application provides an image color correction method, device and system, which are used for solving the problem that the existing image color correction method can generate color difference after correcting an image.
In a first aspect, the present application first provides an image color correction method, including the following steps:
acquiring color card images of a standard color card under various different color temperatures, wherein the color card images are acquired by a camera to be corrected, the color card images are preprocessed images obtained by processing the camera to be corrected through Bayer interpolation and white balance algorithm, and the middle gray blocks of the preprocessed images are corrected;
analyzing and obtaining standard reference values and original acquisition values of RGB three channels of each color block in the standard color card at each color temperature according to the color card image;
calculating a color correction matrix which is well defined under each color temperature according to the standard reference value and the original collection value, wherein the color correction matrix is a 3 x N-dimensional color correction matrix, N is a positive integer and is not less than 3, and the coefficient of the color correction matrix meets the constraint term of the middle gray block;
acquiring an input pixel value of an image to be corrected;
determining a target color temperature in an acquisition environment of an image to be corrected;
matching a target color correction matrix corresponding to the target color temperature;
and correcting the color of the image to be corrected according to the target color correction matrix and the input pixel value of the image to be corrected.
Optionally, in the step of calculating a color correction matrix specified for each color temperature according to the standard reference value and the original collected value, the color correction matrix is obtained by least square fitting.
Optionally, the color correction matrix is a 3 × 3, 3 × 4, 3 × 6, 3 × 7, 3 × 9, or 3 × 10 dimensional color correction matrix.
Optionally, determining the target color temperature in the acquisition environment of the image to be corrected includes: and automatically calculating the target color temperature of the image to be corrected in the acquisition environment, or manually selecting the target color temperature of the image to be corrected in the acquisition environment.
In a second aspect, the present application provides an image color correction apparatus comprising:
the device comprises an acquisition unit, a correction unit and a correction unit, wherein the acquisition unit is used for acquiring color card images of a standard color card under various different color temperatures, the color card images are acquired by a camera to be corrected, the color card images are preprocessed images obtained by carrying out Bayer interpolation and white balance algorithm processing on the camera to be corrected, and the middle gray blocks of the preprocessed images are corrected;
the analysis unit is used for analyzing and obtaining a standard reference value and an original acquisition value of RGB three channels of each color block in the standard color card at each color temperature according to the color card image;
the calculation unit is used for calculating a well-defined color correction matrix under each color temperature according to the standard reference value and the original collection value, wherein the color correction matrix is a 3 x N-dimensional color correction matrix, N is a positive integer and is not less than 3, and the coefficient of the color correction matrix meets the constraint term of the middle gray block;
the acquisition unit is also used for acquiring the input pixel value of the image to be corrected;
the determining unit is used for determining the target color temperature under the acquisition environment of the image to be corrected;
a matching unit for matching a target color correction matrix corresponding to the target color temperature;
and the correcting unit is used for correcting the color of the image to be corrected according to the target color correction matrix and the input pixel value of the image to be corrected.
Optionally, the calculation unit is configured to obtain the color correction matrix by least square fitting.
Optionally, the color correction matrix is a 3 × 3, 3 × 4, 3 × 6, 3 × 7, 3 × 9, or 3 × 10 dimensional color correction matrix.
Optionally, the determining unit is configured to automatically calculate a target color temperature in an acquisition environment of the image to be corrected, or manually select the target color temperature in the acquisition environment of the image to be corrected.
In a third aspect, the present application provides an image color correction system comprising: the system comprises a camera to be corrected, a PC (personal computer), a standard color card and a plurality of light sources with different color temperatures;
the camera to be corrected is used for collecting the color card images of the standard color card under various different color temperatures and collecting the images to be corrected;
the PC is used for acquiring color card images of a standard color card under various different color temperatures, the color card images are acquired by a camera to be corrected, the color card images are preprocessed images obtained after Bayer interpolation and white balance algorithm processing are carried out on the camera to be corrected, and the middle gray blocks of the preprocessed images are corrected; analyzing and obtaining standard reference values and original acquisition values of RGB three channels of each color block in the standard color card at each color temperature according to the color card image; calculating a color correction matrix which is well defined under each color temperature according to the standard reference value and the original collection value, wherein the color correction matrix is a 3 x N-dimensional color correction matrix, N is a positive integer and is not less than 3, and the coefficient of the color correction matrix meets the constraint term of the middle gray block; acquiring an input pixel value of an image to be corrected; determining a target color temperature in an acquisition environment of an image to be corrected; matching a target color correction matrix corresponding to the target color temperature; and correcting the color of the image to be corrected according to the target color correction matrix and the input pixel value of the image to be corrected.
According to the technical scheme, the image color correction method, the device and the system have the advantages that the color card images of the standard color card under various different color temperatures are acquired, the color card images are collected by the camera to be corrected, the color card images are preprocessed images obtained after the camera to be corrected is subjected to Bayer interpolation and white balance algorithm processing, and the middle gray blocks of the preprocessed images are corrected; analyzing and obtaining standard reference values and original acquisition values of RGB three channels of each color block in the standard color card at each color temperature according to the color card image; calculating a color correction matrix which is well defined under each color temperature according to the standard reference value and the original collection value, wherein the color correction matrix is a 3 x N-dimensional color correction matrix, N is a positive integer and is not less than 3, and the coefficient of the color correction matrix meets the middle gray block constraint term; acquiring an input pixel value of an image to be corrected; determining a target color temperature in an acquisition environment of an image to be corrected; matching a target color correction matrix corresponding to the target color temperature; correcting the color of the image to be corrected according to the target color correction matrix and the input pixel value of the image to be corrected; according to the method, a color correction matrix with higher dimension is designed, a middle gray color block constraint item is added, and the color correction matrix is obtained through the standard reference value and the original acquisition value of RGB three channels of each color block obtained through shooting, so that the method has a better color reduction effect, and the chromatic aberration existing in image color correction is weakened.
Drawings
In order to more clearly explain the technical solution of the present application, the drawings needed to be used in the embodiments will be briefly described below, and it is obvious to those skilled in the art that other drawings can be obtained according to the drawings without any creative effort.
Fig. 1 is a flowchart of an image color correction method according to an embodiment of the present application.
Fig. 2 is a block diagram of an image color correction apparatus according to an embodiment of the present application.
Fig. 3 is a schematic diagram of an image color correction system according to an embodiment of the present disclosure.
Illustration of the drawings; 1-a camera to be corrected; 2-a PC machine; 3-standard color card; 4-a light source; 101-an acquisition unit; 102-an analysis unit; 103-a calculation unit; 104-a determination unit; 105-a matching unit; 106-correction unit.
Detailed Description
Referring to fig. 1, an embodiment of the present application provides an image color correction method, including the following steps:
step S1, acquiring color card images of a standard color card under various different color temperatures, wherein the color card images are acquired by a camera to be corrected, the color card images are preprocessed images obtained after Bayer interpolation and white balance algorithm processing are carried out on the camera to be corrected, and the middle gray color block of the preprocessed images is corrected.
In this embodiment, the standard color chart may be a standard color chart having 24 pure color patches. Under the laboratory environment, different color temperature environments can be created through different types of light sources. For example, a color temperature environment of 2000k can be created by using a candle as a light source, a color temperature environment of 1950k to 2250k can be created by using a high-pressure sodium lamp as a light source, a color temperature environment of 2700k can be created by using a tungsten lamp as a light source, a color temperature environment of 3000k can be created by using a halogen lamp as a light source, a color temperature environment of 2500k to 3000k can be created by using a warm color fluorescent lamp as a light source, a color temperature environment of 3450k to 3750k can be created by using a high-pressure mercury lamp as a light source, a color temperature environment of 4000k to 5000k can be created by using a cold color fluorescent lamp as a light source, a color temperature environment of 4000k to 4600k can be created by using a metal halide lamp as a light source, and the like. When the system is specifically implemented, a series of shooting environments with continuous color temperature values can be provided through different types of light sources. The method comprises the steps of shooting a standard color card by a camera to be corrected at different color temperatures to obtain color card images at each color temperature, and then transmitting the color card images to a PC (personal computer), so that the PC can obtain color card images of the standard color card at various different color temperatures.
And step S2, analyzing and obtaining the standard reference value and the original acquisition value of RGB three channels of each color block in the standard color card at each color temperature according to the color card image.
In this embodiment, the PC may run imatest software, and the imatest software is used to automatically obtain the standard reference values and the original acquisition values of the RGB three channels of each color block in the standard color card by using the prior art.
And step S3, calculating a color correction matrix which is well defined under each color temperature according to the standard reference value and the original collection value, wherein the color correction matrix is a 3-by-N color correction matrix, N is a positive integer and is not less than 3, and the coefficient of the color correction matrix meets the middle gray block constraint item.
Since the middle gray color block should still maintain the middle gray color after being corrected by the color correction matrix, and the three channel values after being corrected by the middle gray color block are equal to the three channel values before being corrected, i.e., R ═ G ═ B, the coefficients of the color correction matrix should satisfy the constraint term of the middle gray color block in order to achieve the ideal color correction effect.
Specifically, in the step of calculating the color correction matrix specified for each color temperature according to the standard reference value and the raw collected value, the color correction matrix is obtained by least square fitting, and in this embodiment, the color correction matrix is a 3 × 3, 3 × 4, 3 × 6, 3 × 7, 3 × 9, or 3 × 10 dimensional color correction matrix.
In step S4, input pixel values of the image to be corrected are acquired.
Specifically, a camera to be corrected is used for shooting an object, the shot image is transmitted to a PC, the PC is enabled to obtain an input pixel value of the image to be corrected, and the input pixel value of the image to be corrected is corrected later.
Step S5, determining a target color temperature in the acquisition environment of the image to be corrected.
Specifically, determining the target color temperature in the acquisition environment of the image to be corrected includes: and automatically calculating the target color temperature of the image to be corrected in the acquisition environment, or manually selecting the target color temperature of the image to be corrected in the acquisition environment.
Step S6, a target color correction matrix corresponding to the target color temperature is matched.
Specifically, a color correction matrix well-defined for each color temperature has been calculated in the previous step, and when color correction is required for a certain image, a target color correction matrix corresponding to a target color temperature of a shooting environment of the image to be corrected needs to be selected, and the image to be corrected is corrected by using the target color correction matrix.
And step S7, correcting the color of the image to be corrected according to the target color correction matrix and the input pixel value of the image to be corrected.
Specifically, the target color correction matrix can be applied to the input pixel values of the image to be corrected, so that the color of the image can be corrected in real time.
The following exemplifies a specific process of image color correction, which is divided into two parts, i.e., calculation of a color correction matrix, and real-time correction of colors.
First, a color correction matrix is calculated. Let the standard color card have M color blocks, and the RGB three-channel standard reference value of the ith color block is R _ refiG_refiB_refiThe RGB three-channel value of the ith color block on the standard color card collected by the camera under the environment of specific color temperature is R _ iniG_iniB_iniWhere i is 1,2,3 … M, then:
R_refi=a11v1i+a12v2i+…+a1jvji
G_refi=a21v2i+a22v2i+…+a2jvji
B_refi=a31v3i+a32v3i+…+a3jvji
wherein v isji(j ═ 1,2,3 … N) (N is the dimension of the color correction matrix), represented by R _ iniG_iniB_iniThe polynomial form of (2) has various polynomial forms depending on the color correction matrix dimension N.
The middle gray color block on the standard color card is corrected by the color correction matrix and then should keep the middle gray color, that is, the three channel values after correction and the three channel values before correction keep equal, and R ═ G ═ B, therefore, the coefficients of the color correction matrix should satisfy the following middle gray color block constraint terms:
1=a11+a12+…+a1j
1=a21+a22+…+a2j
1=a31+a32+…+a3j
and (4) adding a middle gray color block constraint term, and calculating a color correction matrix with higher precision. The two formulas are arranged into a matrix form:
X3×(M+1)=A3×N*UN×(M+1)
where X is a standard reference value matrix of dimensions 3 × (M + 1):
a is a color correction matrix with dimensions 3N:
u adds element 1 in the last column of matrix V, with dimension N × (M + 1).
V is the original data matrix of dimension NxM:
matrix VN×MWith different color correction matrix dimensions N, there are different forms (M ═ 1 for example):
V3×1=[R_in,G_in,B_in]T
V4×1=[R_in,G_in,B_in,R_in*G_in*B_in]T
V6×1=[R_in,G_in,B_in,R_in*G_in,R_in*B_in,G_in*B_in]T
V9×1=[R_in,G_in,B_in,R_in*G_in,R_in*B_in,G_in*B_in,R_in2,G_in2,B_in2]T
V10×1=[R_in,G_in,B_in,R_in*G_in,R_in*B_in,G_in*B_in,R_in2,G_in2,B_in2,R_in*G_in*B_in]T
in the actual calculation process, M +1 is larger than N, the number of equations is larger than the number of unknowns, and the matrix A can be obtained by utilizing the least square method for optimization:
A=(XUT)(UUT)-1
then, the image color is corrected in real time. The color correction matrix a calculated under the corresponding color temperature is substituted into the following formula, so as to realize real-time color correction (taking the color matrix with dimension of 3 × 9 as an example):
Im_out3×1=A3×9*Im_in9×1
wherein,
namely, it is
R G B is the input pixel value, and R ' G ' B ' is the output pixel value after color correction matrix correction.
Wherein Im _ in has different forms with different color matrix dimensions N:
Im_in3×1=[R,G,B]T
Im_in4×1=[R,G,B,R*G*B]T
Im_in6×1=[R,G,B,R*G,R*B,G*B]T
Im_in7×1=[R,G,B,R*G,R*B,G*B,R*G*B]T
Im_in9×1=[R,G,B,R*G,R*B,G*B,R2,G2,B2]T
Im_in10×1=[R,G,B,R*G,R*B,G*B,R2,G2,B2,R*G*B]T
the technicians of the application prove that the color of the image is corrected by the 3-9-dimensional color correction matrix, and the increase of the chroma difference delta C is obvious. However, the higher the color correction matrix dimension is, the better the correction effect is, and the excessive color correction matrix dimension may cause overfitting, which affects the color correction effect of the image.
As can be seen from the above embodiments, in the image color correction method provided in the embodiments of the present application, the color card images of the standard color card at a plurality of different color temperatures are obtained; according to the color card image, acquiring a color card image for a camera to be corrected, wherein the color card image is a preprocessed image obtained after Bayer interpolation and white balance algorithm processing are carried out on the camera to be corrected, and a middle gray block of the preprocessed image is corrected; analyzing to obtain standard reference values and original acquisition values of RGB three channels of each color block in the standard color card at each color temperature; calculating a color correction matrix which is well defined under each color temperature according to the standard reference value and the original collection value, wherein the color correction matrix is a 3 x N-dimensional color correction matrix, N is a positive integer and is not less than 3, and the coefficient of the color correction matrix meets the constraint term of the middle gray block; acquiring an input pixel value of an image to be corrected; determining a target color temperature in an acquisition environment of an image to be corrected; matching a target color correction matrix corresponding to the target color temperature; correcting the color of the image to be corrected according to the target color correction matrix and the input pixel value of the image to be corrected; according to the method, a color correction matrix with higher dimension is designed, a middle gray color block constraint item is added, and the color correction matrix is obtained through the standard reference value and the original acquisition value of RGB three channels of each color block obtained through shooting, so that the method has a better color reduction effect, and the chromatic aberration existing in image color correction is weakened.
Referring to fig. 2, based on the above embodiments, an image color correction apparatus according to an embodiment of the present application includes:
the device comprises an acquisition unit 101, a correction unit and a processing unit, wherein the acquisition unit 101 is used for acquiring color card images of a standard color card under various different color temperatures, the color card images are acquired by a camera to be corrected, the color card images are preprocessed images obtained by carrying out Bayer interpolation and white balance algorithm processing on the camera to be corrected, and the middle gray blocks of the preprocessed images are corrected;
the analysis unit 102 is configured to analyze, according to the color chart image, to obtain a standard reference value and an original acquisition value of RGB three channels of each color block in the standard color chart at each color temperature;
the calculating unit 103 is configured to calculate a color correction matrix which is well defined under each color temperature according to the standard reference value and the original collected value, where the color correction matrix is a 3 × N color correction matrix, N is a positive integer and N is greater than or equal to 3, and coefficients of the color correction matrix satisfy a middle gray block constraint term;
the acquiring unit 101 is further configured to acquire an input pixel value of an image to be corrected;
a determining unit 104, configured to determine a target color temperature in an acquisition environment of an image to be corrected;
a matching unit 105 for matching a target color correction matrix corresponding to the target color temperature;
and the correcting unit 106 is configured to correct the color of the image to be corrected according to the target color correction matrix and the input pixel value of the image to be corrected.
Specifically, the calculation unit 103 is configured to derive the color correction matrix by least squares fitting.
In particular, the color correction matrix is a 3 × 3, 3 × 4, 3 × 6, 3 × 7, 3 × 9 or 3 × 10 dimensional color correction matrix.
Specifically, the determining unit 104 is configured to automatically calculate a target color temperature in the acquisition environment of the image to be corrected, or manually select the target color temperature in the acquisition environment of the image to be corrected.
Referring to fig. 3, the present application provides an image color correction system, including: the device comprises a camera 1 to be corrected, a PC 2, a standard color card 3 and a plurality of light sources 4 with different color temperatures.
The camera 1 to be corrected is used for collecting color card images of the standard color card 3 under various different color temperatures and collecting images to be corrected.
The PC 2 is used for acquiring color card images of a standard color card 3 under various different color temperatures, the color card images are acquired by a camera to be corrected, the color card images are preprocessed images obtained after Bayer interpolation and white balance algorithm processing are carried out on the camera to be corrected, and the middle gray blocks of the preprocessed images are corrected; analyzing and obtaining standard reference values and original acquisition values of RGB three channels of each color block in the standard color card 3 at each color temperature according to the color card image; calculating a color correction matrix which is well defined under each color temperature according to the standard reference value and the original collection value, wherein the color correction matrix is a 3 x N-dimensional color correction matrix, N is a positive integer and is not less than 3, and the coefficient of the color correction matrix meets the constraint term of the middle gray block; acquiring an input pixel value of an image to be corrected; determining a target color temperature in an acquisition environment of an image to be corrected; matching a target color correction matrix corresponding to the target color temperature; and correcting the color of the image to be corrected according to the target color correction matrix and the input pixel value of the image to be corrected.
In a specific implementation, the present application further provides a computer storage medium, where the computer storage medium may store a program, and the program may include some or all of the steps in the embodiments of the image color correction method provided by the present invention when executed. The storage medium may be a magnetic disk, an optical disk, a read-only memory (ROM) or a Random Access Memory (RAM).
Those skilled in the art will readily appreciate that the techniques of the embodiments of the present invention may be implemented as software plus a required general purpose hardware platform. Based on such understanding, the technical solutions in the embodiments of the present invention may be essentially or partially implemented in the form of a software product, which may be stored in a storage medium, such as ROM/RAM, magnetic disk, optical disk, etc., and includes several instructions for enabling a computer device (which may be a personal computer, a server, or a network device, etc.) to execute the method according to the embodiments or some parts of the embodiments.
The same and similar parts in the various embodiments in this specification may be referred to each other. In particular, as for the image color correction apparatus and the system embodiment, since they are substantially similar to the method embodiment, the description is simple, and the relevant points can be referred to the description in the method embodiment.
The above-described embodiments of the present application do not limit the scope of the present application.

Claims (9)

1. An image color correction method, comprising the steps of:
acquiring color card images of a standard color card under various different color temperatures, wherein the color card images are acquired by a camera to be corrected, the color card images are preprocessed images obtained by processing the camera to be corrected through Bayer interpolation and white balance algorithm, and the middle gray blocks of the preprocessed images are corrected;
analyzing and obtaining standard reference values and original acquisition values of RGB three channels of each color block in the standard color card at each color temperature according to the color card image;
calculating a color correction matrix which is well defined under each color temperature according to the standard reference value and the original collection value, wherein the color correction matrix is a 3 x N-dimensional color correction matrix, N is a positive integer and is not less than 3, and the coefficient of the color correction matrix meets the constraint term of the middle gray block;
acquiring an input pixel value of an image to be corrected;
determining a target color temperature in an acquisition environment of an image to be corrected;
matching a target color correction matrix corresponding to the target color temperature;
and correcting the color of the image to be corrected according to the target color correction matrix and the input pixel value of the image to be corrected.
2. The method of claim 1, wherein the step of calculating a well-defined color correction matrix for each color temperature based on the standard reference values and raw acquisition values derives the color correction matrix by least squares fitting.
3. The method of claim 1, wherein the color correction matrix is a 3 x 3, 3 x 4, 3 x 6, 3 x 7, 3 x 9, or 3 x 10 dimensional color correction matrix.
4. The method of claim 1, wherein determining a target color temperature in an acquisition environment of the image to be corrected comprises: and automatically calculating the target color temperature of the image to be corrected in the acquisition environment, or manually selecting the target color temperature of the image to be corrected in the acquisition environment.
5. An image color correction apparatus, comprising:
the device comprises an acquisition unit, a correction unit and a correction unit, wherein the acquisition unit is used for acquiring color card images of a standard color card under various different color temperatures, the color card images are acquired by a camera to be corrected, the color card images are preprocessed images obtained by carrying out Bayer interpolation and white balance algorithm processing on the camera to be corrected, and the middle gray blocks of the preprocessed images are corrected;
the analysis unit is used for analyzing and obtaining a standard reference value and an original acquisition value of RGB three channels of each color block in the standard color card at each color temperature according to the color card image;
the calculation unit is used for calculating a well-defined color correction matrix under each color temperature according to the standard reference value and the original collection value, wherein the color correction matrix is a 3 x N-dimensional color correction matrix, N is a positive integer and is not less than 3, and the coefficient of the color correction matrix meets the constraint term of the middle gray block;
the acquisition unit is also used for acquiring the input pixel value of the image to be corrected;
the determining unit is used for determining the target color temperature under the acquisition environment of the image to be corrected;
a matching unit for matching a target color correction matrix corresponding to the target color temperature;
and the correcting unit is used for correcting the color of the image to be corrected according to the target color correction matrix and the input pixel value of the image to be corrected.
6. The apparatus of claim 5, wherein the computing unit is configured to derive the color correction matrix by least squares fitting.
7. The apparatus of claim 5, wherein the color correction matrix is a 3 x 3, 3 x 4, 3 x 6, 3 x 7, 3 x 9, or 3 x 10 dimensional color correction matrix.
8. The apparatus of claim 5, wherein the determining unit is configured to automatically calculate a target color temperature in the environment of acquiring the image to be corrected, or manually select the target color temperature in the environment of acquiring the image to be corrected.
9. An image color correction system, comprising: the system comprises a camera to be corrected, a PC (personal computer), a standard color card and a plurality of light sources with different color temperatures;
the camera to be corrected is used for collecting the color card images of the standard color card under various different color temperatures and collecting the images to be corrected;
the PC is used for acquiring color card images of a standard color card under various different color temperatures, the color card images are acquired by a camera to be corrected, the color card images are preprocessed images obtained after Bayer interpolation and white balance algorithm processing are carried out on the camera to be corrected, and the middle gray blocks of the preprocessed images are corrected; analyzing and obtaining standard reference values and original acquisition values of RGB three channels of each color block in the standard color card at each color temperature according to the color card image; calculating a color correction matrix which is well defined under each color temperature according to the standard reference value and the original collection value, wherein the color correction matrix is a 3 x N-dimensional color correction matrix, N is a positive integer and is not less than 3, and the coefficient of the color correction matrix meets the constraint term of the middle gray block; acquiring an input pixel value of an image to be corrected; determining a target color temperature in an acquisition environment of an image to be corrected; matching a target color correction matrix corresponding to the target color temperature; and correcting the color of the image to be corrected according to the target color correction matrix and the input pixel value of the image to be corrected.
CN201810529443.8A 2018-05-29 2018-05-29 Image color correction method, apparatus and system Pending CN108712639A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810529443.8A CN108712639A (en) 2018-05-29 2018-05-29 Image color correction method, apparatus and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810529443.8A CN108712639A (en) 2018-05-29 2018-05-29 Image color correction method, apparatus and system

Publications (1)

Publication Number Publication Date
CN108712639A true CN108712639A (en) 2018-10-26

Family

ID=63869735

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810529443.8A Pending CN108712639A (en) 2018-05-29 2018-05-29 Image color correction method, apparatus and system

Country Status (1)

Country Link
CN (1) CN108712639A (en)

Cited By (25)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109348206A (en) * 2018-11-19 2019-02-15 Oppo广东移动通信有限公司 Image white balancing treatment method, device, storage medium and mobile terminal
CN109523485A (en) * 2018-11-19 2019-03-26 Oppo广东移动通信有限公司 Image color correction method, device, storage medium and mobile terminal
CN109785248A (en) * 2018-12-19 2019-05-21 新绎健康科技有限公司 One kind is for the corrected method and system of color of image
CN109903256A (en) * 2019-03-07 2019-06-18 京东方科技集团股份有限公司 Model training method, chromatic aberration calibrating method, device, medium and electronic equipment
CN110335321A (en) * 2019-07-01 2019-10-15 上海外高桥造船有限公司 Appraisal procedure, system, storage medium and the electronic equipment of color lump matching degree
CN110351537A (en) * 2019-07-31 2019-10-18 深圳前海达闼云端智能科技有限公司 White balance method, device, storage medium and the electronic equipment of Image Acquisition
CN110493510A (en) * 2019-07-09 2019-11-22 维沃移动通信有限公司 A kind of image processing method and terminal device
CN110751611A (en) * 2019-11-01 2020-02-04 深圳市博盛医疗科技有限公司 Method for calibrating display colors of endoscope system and endoscope system
CN110880306A (en) * 2019-11-01 2020-03-13 南京图格医疗科技有限公司 Color restoration correction method for medical display
CN110992289A (en) * 2019-12-06 2020-04-10 上海富瀚微电子股份有限公司 Image color correction method and device based on three-dimensional lookup table
CN111008942A (en) * 2019-12-16 2020-04-14 吴成 Image processing method based on light change
CN111292246A (en) * 2018-12-07 2020-06-16 上海安翰医疗技术有限公司 Image color correction method, storage medium, and endoscope
CN111449757A (en) * 2020-04-10 2020-07-28 京东方科技集团股份有限公司 Telemedicine robot, control method and charging method thereof
CN111540335A (en) * 2020-04-13 2020-08-14 芋头科技(杭州)有限公司 Color blindness correction device, method, intelligent glasses, controller and medium
CN112532872A (en) * 2020-11-16 2021-03-19 北京五一视界数字孪生科技股份有限公司 Method and device for adjusting camera parameters, storage medium and electronic equipment
CN112601063A (en) * 2020-12-07 2021-04-02 深圳市福日中诺电子科技有限公司 Mixed color temperature white balance method
CN113506332A (en) * 2021-09-09 2021-10-15 北京的卢深视科技有限公司 Target object identification method, electronic device and storage medium
CN113516132A (en) * 2021-03-25 2021-10-19 杭州博联智能科技股份有限公司 Color calibration method, device, equipment and medium based on machine learning
CN113628135A (en) * 2021-07-28 2021-11-09 Oppo广东移动通信有限公司 Image color correction method, image color correction device, computer device, and storage medium
CN113676712A (en) * 2021-06-25 2021-11-19 浙江大华技术股份有限公司 Color correction method and related device thereof
CN114071110A (en) * 2022-01-14 2022-02-18 广东欧谱曼迪科技有限公司 Endoscope color temperature real-time correction method and device, electronic equipment and camera system
CN114268774A (en) * 2020-09-16 2022-04-01 Oppo广东移动通信有限公司 Image acquisition method, image sensor, device, equipment and storage medium
CN115209118A (en) * 2021-04-13 2022-10-18 泰立戴恩菲力尔商业系统公司 Image color correction system and method
WO2023240650A1 (en) * 2022-06-17 2023-12-21 北京小米移动软件有限公司 Color correction matrix calibration method and apparatus for camera module
EP4335106A4 (en) * 2021-06-25 2024-08-07 Zhejiang Dahua Technology Co Systems and methods for image correction

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101242476A (en) * 2008-03-13 2008-08-13 北京中星微电子有限公司 Automatic correction method of image color and digital camera system
CN101521001A (en) * 2008-02-26 2009-09-02 瑞昱半导体股份有限公司 Color correcting method and device of display device
CN103079076A (en) * 2013-01-22 2013-05-01 无锡鸿图微电子技术有限公司 Method and device for generating color calibration matrix of self-adaption gamma calibration curve
CN103080999A (en) * 2010-08-30 2013-05-01 高通股份有限公司 Adaptive color correction for display with backlight modulation
CN103686111A (en) * 2013-12-31 2014-03-26 上海富瀚微电子有限公司 Method and device for correcting color based on RGBIR (red, green and blue, infra red) image sensor

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101521001A (en) * 2008-02-26 2009-09-02 瑞昱半导体股份有限公司 Color correcting method and device of display device
CN101242476A (en) * 2008-03-13 2008-08-13 北京中星微电子有限公司 Automatic correction method of image color and digital camera system
CN103080999A (en) * 2010-08-30 2013-05-01 高通股份有限公司 Adaptive color correction for display with backlight modulation
CN103079076A (en) * 2013-01-22 2013-05-01 无锡鸿图微电子技术有限公司 Method and device for generating color calibration matrix of self-adaption gamma calibration curve
CN103686111A (en) * 2013-12-31 2014-03-26 上海富瀚微电子有限公司 Method and device for correcting color based on RGBIR (red, green and blue, infra red) image sensor

Cited By (39)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109523485A (en) * 2018-11-19 2019-03-26 Oppo广东移动通信有限公司 Image color correction method, device, storage medium and mobile terminal
WO2020103570A1 (en) * 2018-11-19 2020-05-28 Oppo广东移动通信有限公司 Image color correction method, device, storage medium and mobile terminal
CN109348206A (en) * 2018-11-19 2019-02-15 Oppo广东移动通信有限公司 Image white balancing treatment method, device, storage medium and mobile terminal
CN111292246B (en) * 2018-12-07 2024-03-01 上海安翰医疗技术有限公司 Image color correction method, storage medium, and endoscope
CN111292246A (en) * 2018-12-07 2020-06-16 上海安翰医疗技术有限公司 Image color correction method, storage medium, and endoscope
CN109785248A (en) * 2018-12-19 2019-05-21 新绎健康科技有限公司 One kind is for the corrected method and system of color of image
CN109903256B (en) * 2019-03-07 2021-08-20 京东方科技集团股份有限公司 Model training method, chromatic aberration correction device, medium, and electronic apparatus
CN109903256A (en) * 2019-03-07 2019-06-18 京东方科技集团股份有限公司 Model training method, chromatic aberration calibrating method, device, medium and electronic equipment
US11134229B2 (en) 2019-03-07 2021-09-28 Beijing Boe Display Technology Co., Ltd. Model training method, chromatic aberration correction method, apparatus, medium and electronic device
CN110335321A (en) * 2019-07-01 2019-10-15 上海外高桥造船有限公司 Appraisal procedure, system, storage medium and the electronic equipment of color lump matching degree
CN110335321B (en) * 2019-07-01 2021-04-23 上海外高桥造船有限公司 Color block matching degree evaluation method and system, storage medium and electronic equipment
CN110493510A (en) * 2019-07-09 2019-11-22 维沃移动通信有限公司 A kind of image processing method and terminal device
CN110351537A (en) * 2019-07-31 2019-10-18 深圳前海达闼云端智能科技有限公司 White balance method, device, storage medium and the electronic equipment of Image Acquisition
CN110351537B (en) * 2019-07-31 2021-09-24 深圳前海达闼云端智能科技有限公司 White balance method and device for image acquisition, storage medium and electronic equipment
CN110880306A (en) * 2019-11-01 2020-03-13 南京图格医疗科技有限公司 Color restoration correction method for medical display
CN110751611A (en) * 2019-11-01 2020-02-04 深圳市博盛医疗科技有限公司 Method for calibrating display colors of endoscope system and endoscope system
CN110992289B (en) * 2019-12-06 2023-05-12 上海富瀚微电子股份有限公司 Image color correction method and device based on three-dimensional lookup table
CN110992289A (en) * 2019-12-06 2020-04-10 上海富瀚微电子股份有限公司 Image color correction method and device based on three-dimensional lookup table
CN111008942A (en) * 2019-12-16 2020-04-14 吴成 Image processing method based on light change
CN111449757A (en) * 2020-04-10 2020-07-28 京东方科技集团股份有限公司 Telemedicine robot, control method and charging method thereof
CN111540335B (en) * 2020-04-13 2021-04-23 芋头科技(杭州)有限公司 Color blindness correction device, method, intelligent glasses, controller and medium
US11657545B2 (en) 2020-04-13 2023-05-23 Yutou Technology (Hangzhou) Co., Ltd. Device, method, smart glasses for color vision deficiency correction
CN111540335A (en) * 2020-04-13 2020-08-14 芋头科技(杭州)有限公司 Color blindness correction device, method, intelligent glasses, controller and medium
CN114268774A (en) * 2020-09-16 2022-04-01 Oppo广东移动通信有限公司 Image acquisition method, image sensor, device, equipment and storage medium
CN112532872A (en) * 2020-11-16 2021-03-19 北京五一视界数字孪生科技股份有限公司 Method and device for adjusting camera parameters, storage medium and electronic equipment
CN112601063A (en) * 2020-12-07 2021-04-02 深圳市福日中诺电子科技有限公司 Mixed color temperature white balance method
CN113516132A (en) * 2021-03-25 2021-10-19 杭州博联智能科技股份有限公司 Color calibration method, device, equipment and medium based on machine learning
CN113516132B (en) * 2021-03-25 2024-05-03 杭州博联智能科技股份有限公司 Color calibration method, device, equipment and medium based on machine learning
CN115209118B (en) * 2021-04-13 2024-10-15 泰立戴恩菲力尔商业系统公司 Image color correction system and method
US11924590B2 (en) 2021-04-13 2024-03-05 Teledyne Flir Commercial Systems, Inc. Image color correction systems and methods
CN115209118A (en) * 2021-04-13 2022-10-18 泰立戴恩菲力尔商业系统公司 Image color correction system and method
CN113676712A (en) * 2021-06-25 2021-11-19 浙江大华技术股份有限公司 Color correction method and related device thereof
CN113676712B (en) * 2021-06-25 2023-08-01 浙江大华技术股份有限公司 Color correction method and related device thereof
EP4335106A4 (en) * 2021-06-25 2024-08-07 Zhejiang Dahua Technology Co Systems and methods for image correction
CN113628135A (en) * 2021-07-28 2021-11-09 Oppo广东移动通信有限公司 Image color correction method, image color correction device, computer device, and storage medium
CN113506332B (en) * 2021-09-09 2021-12-17 北京的卢深视科技有限公司 Target object identification method, electronic device and storage medium
CN113506332A (en) * 2021-09-09 2021-10-15 北京的卢深视科技有限公司 Target object identification method, electronic device and storage medium
CN114071110A (en) * 2022-01-14 2022-02-18 广东欧谱曼迪科技有限公司 Endoscope color temperature real-time correction method and device, electronic equipment and camera system
WO2023240650A1 (en) * 2022-06-17 2023-12-21 北京小米移动软件有限公司 Color correction matrix calibration method and apparatus for camera module

Similar Documents

Publication Publication Date Title
CN108712639A (en) Image color correction method, apparatus and system
CN110447051B (en) Perceptually preserving contrast and chroma of a reference scene
CN113170028B (en) Method for generating image data of machine learning based imaging algorithm
Jobson et al. Properties and performance of a center/surround retinex
US20220222792A1 (en) Method and system for image enhancement
Bianco et al. Color correction pipeline optimization for digital cameras
JP6840957B2 (en) Image similarity calculation device, image processing device, image processing method, and recording medium
US20030222991A1 (en) Image processing
US8111301B2 (en) Method of performing auto white balance in YCbCr color space
CN100571327C (en) Regulate the method and system of pixel with desirable gain and factor
CN112508812B (en) Image color cast correction method, model training method, device and equipment
JP2016006954A (en) Color correction parameter calculation method, color correction parameter calculation device and image output system
EP1333660A2 (en) Adjusting the color, brightness, and tone scale of rendered digital images
CN112348754B (en) Low-illumination color image enhancement method and device
Penczek et al. Color error in the digital camera image capture process
CN105933687A (en) Automatic white balance processing method and device for images
CN106895916B (en) A kind of method that single exposure shooting obtains multispectral image
TWI512682B (en) Image processing system and saturation compensation method
CN111010557B (en) White point range determining method, white balance correcting method and device, and storage medium
US20230098058A1 (en) System and method of white balancing a digital image with multiple light sources
TW201541961A (en) Camera array correction method
US20190228509A1 (en) Image processing method and apparatus
JP2003051004A (en) System and method for selecting image processing path by utilizing estimated appearance of noise
JP2000069327A (en) Gamma-correction device
CN111064860A (en) Image correction method, image correction device and electronic equipment

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
CB02 Change of applicant information
CB02 Change of applicant information

Address after: 100094 Beijing city Haidian District Cui Hunan loop 13 Hospital No. 7 Building 7 room 701

Applicant after: Lingyunguang Technology Co., Ltd

Address before: 100094 Beijing city Haidian District Cui Hunan loop 13 Hospital No. 7 Building 7 room 701

Applicant before: LUSTER LIGHTTECH GROUP Co.,Ltd.

RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20181026