CN108376539B - Image color compensation method and device - Google Patents

Image color compensation method and device Download PDF

Info

Publication number
CN108376539B
CN108376539B CN201810310879.8A CN201810310879A CN108376539B CN 108376539 B CN108376539 B CN 108376539B CN 201810310879 A CN201810310879 A CN 201810310879A CN 108376539 B CN108376539 B CN 108376539B
Authority
CN
China
Prior art keywords
color
target
brightness
ambient light
image
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
CN201810310879.8A
Other languages
Chinese (zh)
Other versions
CN108376539A (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.)
Hisense Visual Technology Co Ltd
Original Assignee
Qingdao Hisense Electronics 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 Qingdao Hisense Electronics Co Ltd filed Critical Qingdao Hisense Electronics Co Ltd
Priority to CN201810310879.8A priority Critical patent/CN108376539B/en
Publication of CN108376539A publication Critical patent/CN108376539A/en
Application granted granted Critical
Publication of CN108376539B publication Critical patent/CN108376539B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G09EDUCATION; CRYPTOGRAPHY; DISPLAY; ADVERTISING; SEALS
    • G09GARRANGEMENTS OR CIRCUITS FOR CONTROL OF INDICATING DEVICES USING STATIC MEANS TO PRESENT VARIABLE INFORMATION
    • G09G5/00Control arrangements or circuits for visual indicators common to cathode-ray tube indicators and other visual indicators
    • G09G5/02Control arrangements or circuits for visual indicators common to cathode-ray tube indicators and other visual indicators characterised by the way in which colour is displayed
    • GPHYSICS
    • G09EDUCATION; CRYPTOGRAPHY; DISPLAY; ADVERTISING; SEALS
    • G09GARRANGEMENTS OR CIRCUITS FOR CONTROL OF INDICATING DEVICES USING STATIC MEANS TO PRESENT VARIABLE INFORMATION
    • G09G5/00Control arrangements or circuits for visual indicators common to cathode-ray tube indicators and other visual indicators
    • G09G5/10Intensity circuits
    • GPHYSICS
    • G09EDUCATION; CRYPTOGRAPHY; DISPLAY; ADVERTISING; SEALS
    • G09GARRANGEMENTS OR CIRCUITS FOR CONTROL OF INDICATING DEVICES USING STATIC MEANS TO PRESENT VARIABLE INFORMATION
    • G09G2320/00Control of display operating conditions
    • G09G2320/06Adjustment of display parameters
    • G09G2320/0626Adjustment of display parameters for control of overall brightness
    • GPHYSICS
    • G09EDUCATION; CRYPTOGRAPHY; DISPLAY; ADVERTISING; SEALS
    • G09GARRANGEMENTS OR CIRCUITS FOR CONTROL OF INDICATING DEVICES USING STATIC MEANS TO PRESENT VARIABLE INFORMATION
    • G09G2320/00Control of display operating conditions
    • G09G2320/06Adjustment of display parameters
    • G09G2320/0666Adjustment of display parameters for control of colour parameters, e.g. colour temperature

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Computer Hardware Design (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Processing Of Color Television Signals (AREA)
  • Color Image Communication Systems (AREA)
  • Control Of Indicators Other Than Cathode Ray Tubes (AREA)

Abstract

The embodiment of the application discloses a color compensation method and equipment for an image, relates to the technical field of display, and solves the problem that the image quality is poor due to the fact that only brightness is adjusted when the color of the image is optimized and compensated. The specific scheme is as follows: the method comprises the steps of obtaining a brightness, a color temperature and RGB values of a currently displayed image and ambient light, determining a target brightness according to the brightness and a brightness compensation curve of the ambient light, adjusting the brightness of display equipment to the target brightness, determining a target color temperature according to the color temperature and the color temperature compensation curve of the ambient light, adjusting the color temperature of the image to the target color temperature, determining a target saturation according to the proportion of the target brightness, the brightness and the saturation, adjusting the saturation of the image to the target saturation, calculating R, G and the variation range of B according to the RGB values of the ambient light, correspondingly adjusting the white balance RGB values of the image, and adjusting the RGB values of each color according to the color temperature of the ambient light. The method and the device are used for optimizing the color of the image.

Description

Image color compensation method and device
Technical Field
The embodiment of the application relates to the technical field of display, in particular to a color compensation method and equipment for an image.
Background
With the development of display technology and intelligent technology, the terminal industries such as televisions and the like increasingly pay attention to automatic adjustment of image effects, for example, adjustment of image brightness is performed through technologies such as local light control and ambient light sensation. However, in the prior art, since only the brightness of the image is adjusted when the color of the image is optimally compensated, the image quality of the image is poor, and the subjective experience of the user is affected.
Disclosure of Invention
The application provides a color compensation method and equipment for an image, which solve the problem of poor image quality caused by only adjusting brightness when the color of the image is optimized and compensated.
in order to achieve the purpose, the technical scheme is as follows:
In a first aspect, the present application provides a method for color compensation of an image, which may include: the display apparatus acquires an image currently displayed, and acquires a brightness, a color temperature, and a Red Green Blue (RGB) value of current ambient light, the image including at least one color. The display device determines the target brightness according to the brightness of the ambient light and the brightness compensation curve, and adjusts the brightness of the display device to the target brightness. The display device determines a target color temperature according to the color temperature of the ambient light and the color temperature compensation curve, and adjusts the color temperature of the image to the target color temperature. The display device determines a target saturation according to the target brightness and the ratio of the brightness to the saturation, and adjusts the saturation of the image to the target saturation. The display device calculates R, G and B variation ranges respectively according to the RGB values of the ambient light, and adjusts the RGB values of the white balance of the image accordingly according to R, G and B variation ranges. The display device adjusts an RGB value of each of at least one color according to a color temperature of ambient light.
With reference to the first aspect, in a possible implementation manner, the adjusting, by the display device, an RGB value of each color of at least one color according to a color temperature of ambient light may specifically include: the display apparatus acquires coordinates of R, G, and B of a target color, and acquires white point coordinates corresponding to a color temperature of ambient light, and determines coordinates of Cyan (Cyan, C), coordinates of violet (Magenta, M), and coordinates of Yellow (Y) of the target color according to the white point coordinates, and the coordinates of R, G, and B of the target color. The display device determines a matrix of CMY of the target color in an RGB color space according to the color temperature of the ambient light, and the coordinates of C, M, and Y of the target color, and acquires the RGB values of R, G, and B of the target color stored in advance, and determines R, G, B, C, M and R, G, B variation ranges corresponding to Y of the target color, respectively. The display apparatus adjusts the RGB values of R, G, B, C, M and Y of the target color accordingly according to the variation range of R, G, B corresponding to R, G, B, C, M and Y of the target color. Wherein the target color is any one of at least one color. The white point coordinates are white reference coordinates. The matrix is a 3 x3 matrix, the first column of which is the RGB value of C of the target color, the second column is the RGB value of M of the target color, and the third column is the RGB value of Y of the target color.
With reference to the first aspect and the foregoing possible implementation manners, in another possible implementation manner, the method may further include: if any one of the RGB values of C, M or Y is larger than a preset value, the preset value is determined as the value of the component, and the other two components are reduced according to a preset proportion, wherein the preset proportion is the ratio of the preset value to the original value of the component.
With reference to the first aspect and the foregoing possible implementation manners, in another possible implementation manner, the method may further include: the display device saves the RGB values of the ambient light.
with reference to the first aspect and the foregoing possible implementation manners, in another possible implementation manner, the method may further include: the display device stores the RGB values of C, M, and Y for the target color in ambient light.
in a second aspect, the present application provides a display device, which may include: the device comprises an acquisition unit, a determination unit, an adjustment unit and a calculation unit. The acquisition unit is used for acquiring a currently displayed image and acquiring the brightness, the color temperature and the RGB value of current ambient light, wherein the image comprises at least one color. And the determining unit is used for determining the target brightness according to the brightness of the ambient light and the brightness compensation curve. And the adjusting unit is used for adjusting the brightness of the display equipment to the target brightness. And the determining unit is also used for determining the target color temperature according to the color temperature of the ambient light and the color temperature compensation curve. And the adjusting unit is also used for adjusting the color temperature of the image to the target color temperature. And the determining unit is also used for determining the target saturation according to the target brightness and the ratio of the brightness to the saturation. And the adjusting unit is also used for adjusting the saturation of the image to the target saturation. And the calculation unit is used for respectively calculating R, G and B variation ranges according to the RGB values of the ambient light. The adjusting unit is also used for correspondingly adjusting the RGB value of the white balance of the image according to the variation ranges of R, G and B; and adjusting the RGB value of each color in at least one color according to the color temperature of the ambient light.
With reference to the second aspect, in a possible implementation manner, the adjusting unit is specifically configured to: acquiring coordinates of R, G and B of a target color, and acquiring a white point coordinate corresponding to the color temperature of the ambient light, wherein the target color is any one of at least one color, and the white point coordinate is a white reference coordinate; determining the coordinates of cyan C, purple M and yellow Y of the target color according to the white point coordinates, and the coordinates of R, G and B of the target color; determining a matrix of CMY of the target color in an RGB color space according to the color temperature of the ambient light, and the coordinates of C, M and Y of the target color, wherein the matrix is a 3-by-3 matrix, the first column of the matrix is the RGB value of C of the target color, the second column is the RGB value of M of the target color, and the third column is the RGB value of Y of the target color; acquiring pre-stored RGB values of R, G and B of a target color; determining R, G, B, C, M and R, G, B variation ranges corresponding to Y of the target color respectively; and adjusting the RGB values of R, G, B, C, M and Y of the target color according to the variation range of R, G, B corresponding to R, G, B, C, M and Y of the target color.
With reference to the second aspect and the foregoing possible implementation manners, in another possible implementation manner, the determining unit is further configured to determine, if any one of the RGB values of C, M, or Y is greater than a preset value, the preset value as a value of any one of the RGB values, and reduce the remaining two RGB values according to a predetermined ratio, where the predetermined ratio is a ratio of the preset value to an original value of any one of the RGB values.
With reference to the second aspect and the foregoing possible implementation manners, in another possible implementation manner, the display device may further include: and a memory unit. And the storage unit is used for storing the RGB value of the ambient light.
with reference to the second aspect and the foregoing possible implementation manners, in another possible implementation manner, the storage unit is further configured to store the RGB values of C, M, and Y of the target color under the ambient light.
Specific implementation manners may refer to behavior functions of the display device in the color compensation method for an image provided by the first aspect or the possible implementation manners of the first aspect.
in a third aspect, there is provided a display device including: at least one processor, a memory, a communication interface, and a communication bus. The processor is connected with the memory and the communication interface through the communication bus, the memory is used for storing computer-executable instructions, and when the display device runs, the processor executes the computer-executable instructions stored by the memory so as to enable the display device to execute the color compensation method of the image as the first aspect or any one of the possible implementation manners of the first aspect.
in a fourth aspect, there is provided a computer storage medium having stored thereon computer-executable instructions that, when executed on a computer, cause the computer to perform a method of color compensation of an image as in the first aspect or any one of its possible implementations.
The application provides a color compensation method of image, display device can adjust luminance of self, and the colour temperature of image, make luminance and colour temperature phase-match with current ambient light, and the saturation of adjustment image, make the white field of image and current ambient light match, and display device is earlier according to the RGB value of ambient light, adjust the RGB value of every colour of image in unison, then according to the colour temperature of ambient light, carry out the adjustment of pertinence to the RGB value of every colour, therefore, through adjusting the luminance of display device, the colour temperature of image, the saturation and the RGB value of every colour, the picture quality of image has been promoted, thereby user experience has been improved.
Drawings
fig. 1 is a schematic composition diagram of a display device according to an embodiment of the present disclosure;
FIG. 2 is a flowchart illustrating a method for color compensation of an image according to an embodiment of the present disclosure;
FIG. 3 is a flowchart of another method for color compensation of an image according to an embodiment of the present disclosure;
fig. 4 is a schematic diagram of a color gamut provided by an embodiment of the present application;
fig. 5 is a schematic composition diagram of another display device provided in an embodiment of the present application;
Fig. 6 is a schematic composition diagram of another display device provided in an embodiment of the present application;
Fig. 7 is a schematic composition diagram of another display device provided in an embodiment of the present application.
Detailed Description
The terms "system" and "network" are often used interchangeably herein. The term "and/or" herein is merely an association describing an associated object, meaning that three relationships may exist, e.g., a and/or B, may mean: a exists alone, A and B exist simultaneously, and B exists alone. In addition, the character "/" herein generally indicates that the former and latter related objects are in an "or" relationship.
embodiments of the present application will be described in detail below with reference to the accompanying drawings.
Fig. 1 is a schematic diagram illustrating a display device according to an embodiment of the present disclosure, in a specific implementation, the display device may be a television, a mobile phone, a desktop, a laptop, a handheld computer, a notebook computer, or the like. Specifically, as shown in fig. 1, the display device may include: at least one processor 11, a memory 12, a communication interface 13, and a communication bus 14.
The following specifically describes each constituent component of the display device with reference to fig. 1:
the processor 11 is a control center of the display device, and may be a single processor or a collective term for a plurality of processing elements. For example, the processor 11 is a Central Processing Unit (CPU), an Application Specific Integrated Circuit (ASIC), or one or more Integrated circuits configured to implement the embodiments of the present Application, such as: one or more Digital Signal Processors (DSPs), or one or more Field Programmable Gate Arrays (FPGAs).
In particular implementations, processor 11 may include one or more CPUs, such as CPU0 and CPU1 shown in FIG. 1, for example, as one embodiment. Also, as an embodiment, the display device may include a plurality of processors, such as the processor 11 and the processor 15 shown in fig. 1. Each of these processors may be a Single-core processor (Single-CPU) or a Multi-core processor (Multi-CPU). A processor herein may refer to one or more devices, circuits, and/or processing cores for processing data (e.g., computer program instructions).
The Memory 12 may be a Read-Only Memory (ROM) or other types of static storage devices that can store static information and instructions, a Random Access Memory (RAM) or other types of dynamic storage devices that can store information and instructions, an electrically erasable Programmable Read-Only Memory (EEPROM), a Compact Disc Read-Only Memory (CD-ROM) or other optical Disc storage, optical Disc storage (including Compact Disc, laser Disc, optical Disc, digital versatile Disc, blu-ray Disc, etc.), a magnetic Disc storage medium or other magnetic storage device, or any other medium that can be used to carry or store desired program code in the form of instructions or data structures and that can be accessed by a computer, but is not limited to such. The memory 12 may be self-contained and coupled to the processor 11 via a communication bus 14. The memory 12 may also be integrated with the processor 11.
in a specific implementation, the memory 12 is used for storing data in the present application and executing software programs of the present application. The processor 11 may perform various functions of the display device by running or executing software programs stored in the memory 12 and calling up data stored in the memory 12.
The communication interface 13 is any device such as a transceiver for communicating with other devices or communication Networks, such as a Radio Access Network (RAN), a Wireless Local Area Network (WLAN), and the like. The communication interface 13 may include a receiving unit implementing a receiving function and a transmitting unit implementing a transmitting function.
The communication bus 14 may be an Industry Standard Architecture (ISA) bus, a Peripheral Component Interconnect (PCI) bus, an Extended ISA (enhanced Industry Standard Architecture) bus, or the like. The 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 in FIG. 1, but it is not intended that there be only one bus or one type of bus.
In order to solve the problem of poor image quality caused by only adjusting brightness when performing optimal compensation on image colors, an embodiment of the present application provides a color compensation method for an image, which may include:
201. The display device acquires a currently displayed image, and acquires brightness, color temperature, and RGB values of current ambient light.
Wherein the image comprises at least one color. When the display device is turned on or detects that the ambient light changes while displaying an image, the currently displayed image may be acquired, and the luminance, color temperature and RGB value of the current ambient light are acquired through the installed ambient light sensor, so as to perform color optimization compensation on the currently displayed image according to the luminance, chromaticity and RGB value of the current ambient light, and specifically, the following steps 202 to 206 may be performed:
202. The display device determines the target brightness according to the brightness of the ambient light and the brightness compensation curve, and adjusts the brightness of the display device to the target brightness.
After the display device acquires the brightness of the ambient light, the target brightness can be calculated according to the brightness of the ambient light and a pre-stored brightness compensation curve, namely a curve of the brightness of the display device changing along with the brightness of the ambient light, and the brightness of the display device is adjusted to the target brightness, so that the brightness of the display device is matched with the brightness of the ambient light.
203. the display device determines a target color temperature according to the color temperature of the ambient light and the color temperature compensation curve, and adjusts the color temperature of the image to the target color temperature.
After the color temperature of the ambient light is obtained, the display device may calculate a target color temperature according to the color temperature of the ambient light and a pre-stored color temperature compensation curve, that is, a curve that the color temperature of the image changes with the color temperature of the ambient light, and adjust the color temperature of the image to the target color temperature, so that the color temperature of the image matches the color temperature of the ambient light.
204. The display device determines a target saturation according to the target brightness and the ratio of the brightness to the saturation, and adjusts the saturation of the image to the target saturation.
After the display device determines the target brightness in step 202, the display device may calculate a target saturation corresponding to the target brightness according to a fixed ratio of the brightness to the saturation, and adjust the saturation of the image to the target saturation.
205. The display device calculates R, G and B variation ranges respectively according to the RGB values of the ambient light, and adjusts the RGB values of the white balance of the image accordingly according to R, G and B variation ranges.
After acquiring the RGB values of the ambient light in step 201, the display device may adopt the following formula: Δ R% ((R-R0)/R0), ((G-G0)/G0), and (B-B0)/B0, and the variation range Δ R%, the variation range Δ G% of G, and the variation range Δ B% of B were calculated, respectively. Wherein R, G, B are RGB values of the ambient light, and R0, G0, and B0 are reference values pre-stored in the display device, specifically: in the case where the display device is first turned on, R0, G0, and B0 are pre-stored initial values, and in the case where the display device is turned on for the nth time (N is an integer greater than 1) or a change in ambient light is detected, R0, G0, and B0 are RGB values of the ambient light recorded last time. Therefore, in the embodiment of the present application, the display device may delete the last recorded RGB values of the ambient light and save the RGB values of the current ambient light as the reference values for the variation range of the next calculation R, G, B.
The display apparatus, after calculating R, G and the variation range of B, may adjust the R0 value of white balance of the image according to the variation range of R, adjust the G0 value of white balance of the image according to the variation range of G, and adjust the B0 value of white balance of the image according to the variation range of B, so that the RGB value of white balance of the image reaches the RGB value of the ambient light. Moreover, the display device adjusts the RGB values of the white balance of the image, which is equivalent to uniformly adjusting the RGB values of each color included in the image.
For example, assuming that the variation range of R is 10%, the variation range of G is-5%, and the variation range of B is 6%, the display device may adjust up the R0 value of the white balance of the image by 10%, adjust down the G0 value of the white balance by 5%, and adjust up the B0 value of the white balance by 6%.
206. the display device adjusts an RGB value of each of at least one color according to a color temperature of ambient light.
after the white balance RGB value of the image is adjusted, the display device can respectively and independently compensate the RGB value of each color according to the color temperature of the ambient light, so that the image quality is better improved.
Further, in the embodiment of the present application, the display device may adjust any one of the at least one color, such as the RGB values of the target color, according to the color temperature of the ambient light. Since each color may be a mixture of several colors, the most common of which is R, G, B, C, M, Y, the display device adjusts the RGB values of the target color, which may be specifically R, G, B, C, M, Y RGB values that respectively adjust the target color. Specifically, as shown in fig. 3, the step 206 may specifically include the following steps 2061 to 2066:
It should be noted that, since the RGB values of C, M, Y of the target color are different at different color temperatures, the display device may determine the RGB values of C, M, Y of the target color according to the color temperature of the ambient light, and specifically may perform the following steps 2061 to 2063:
2061. The display apparatus acquires coordinates of R, G, and B of a target color, and acquires white point coordinates corresponding to a color temperature of ambient light.
Among them, the display device may acquire R, G, B coordinates in the color gamut of the pre-stored target color and acquire coordinates in the color gamut of the white reference corresponding to the color temperature of the ambient light, i.e., white point coordinates, in order to calculate C, M, Y coordinates in the color gamut of the target color.
It should be noted that, in the embodiment of the present application, the coordinates of R, G, B of the target color in the color gamut are specified by a standard, such as DCI-P3, bt.709, etc., and the coordinates of R, G, B of the target color may be stored in the display device in advance. For example, assuming that the target color is red, the coordinates of R, G, B of red specified by the DCI-P3 standard are shown in table 1, and table 1 may be previously saved in the display device.
TABLE 1
x y
R 0.68 0.32
G 0.265 0.69
B 0.15 0.06
2062. the display device determines the coordinates of C, M and Y of the target color from the white point coordinates, and the coordinates of R, G and B of the target color.
Wherein the display device may determine the C, M, Y coordinates of the target color in the color gamut after acquiring the R, G, B coordinates of the target color in the color gamut and the white point coordinates. As shown in fig. 4, the coordinate of C refers to the coordinates of R, the straight line on which the white point coordinates are located, and the coordinates of the intersection point with the coordinates of G and the straight line on which the B coordinates are located, the coordinate of M refers to the coordinates of G, the straight line on which the white point coordinates are located, the coordinates of the intersection point with the coordinates of R and the straight line on which the B coordinates are located, and the coordinate of Y refers to the coordinates of the intersection point of the coordinates of B, the straight line on which the white point coordinates are located, and the coordinates of R and the straight line on which.
2063. The display device determines a matrix of CMY of the target color in the RGB color space.
the matrix of CMY of the target color in the RGB color space is a 3 × 3 matrix, the first column of which is the RGB value of C of the target color, the second column is the RGB value of M of the target color, and the third column is the RGB value of Y of the target color.
After determining C, M, Y coordinates of the target color in the color gamut, the display device may determine C, M, Y tristimulus values XYZ of the target color in the CIE color system, respectively, where Y corresponds to luminance, and determine a matrix of CMY of the target color in the RGB color space from XYZ. Specifically, the display device may first obtain a correspondence between C, M, Y and brightness Y at the color temperature of the current ambient light, and search for brightness Y corresponding to C, brightness Y corresponding to M, and brightness Y corresponding to Y. Then, according to the following formula (1) to formula (4), XZ corresponding to C is calculated when coordinates (x and Y) of C of the target color and luminance Y corresponding to C are known, XZ corresponding to M is calculated when coordinates of M of the target color and luminance Y corresponding to M are known, and XZ corresponding to Y is calculated when coordinates of Y of the target color and luminance Y corresponding to Y are known.
z=1-x-y (1)
Thus, the tristimulus values XYZ of C, M, Y of the target color in the CIE color system are obtained, assuming that the tristimulus values corresponding to C are X1, Y1 and Z1, respectively, the tristimulus values corresponding to M are X2, Y2 and Z2, the tristimulus values corresponding to Y are X3, Y3 and Z3, respectively, and a is a pre-stored matrix of 3 × 3, the display device may calculate R1, G1 and B1 of C, R2, G2 and B2 of M, and R3, G3 and B3 of Y of the target color by using the following formula (5).
It should be noted that, in this embodiment of the application, if any component of the calculated RGB values of C, M, or Y of the target color is greater than the preset value of the component, the display device may determine the preset value of the component as the value of the component, and reduce the values of the remaining two components according to the ratio of the preset value of the component and the original value calculated by the component, so as to ensure that the ratio of the RGB values is not changed. For example, assuming that the calculated RGB components of C of the target color are 25, 18, and 20, respectively, and the preset values of RGB pre-stored in the display device are 20, 21, and 22, respectively, the display device may use 20 as the R value of C, reduce the G value of C to 18 times 20/25, and reduce the B value of C to 20 times 20/25.
In addition, since the RGB values of R, G, B of the target color are the same at different color temperatures, the display device may perform the following step 2064 to obtain the RGB values of R, G, B of the target color:
2064. the display device acquires the RGB values of R, G, and B of the target color stored in advance.
2065. the display devices respectively determine the variation range of R, G, B corresponding to R, G, B, C, M, Y of the target color.
wherein, after acquiring the RGB values of R, G, B, C, M, Y of the target color, the display device may calculate R, G, B, C, M, Y corresponding variation ranges of R, G, B, respectively. In addition, in the embodiment of the present application, a manner of calculating the variation range of R, G, B corresponding to R, G, B, C, M, or Y by the display device is the same as the manner of calculating the variation range of R, G, B of the ambient light in step 205, and for specific description, reference may be made to the related description in step 205, and details are not repeated here.
it should be noted that, in the embodiment of the present application, the display device may delete the RGB values of C, M and Y of the target color recorded last time, and save the RGB values of C, M, and Y of the target color in the current ambient light as the reference values of the variation range of R, G, B corresponding to C, M, Y of the next calculation target color.
2066. The display device adjusts the RGB values of R, G, B, C, M, Y of the target color accordingly according to the variation range of R, G, B corresponding to R, G, B, C, M, Y of the target color.
After determining the variation range of R, G, B corresponding to R, G, B, C, M, Y of the target color, the display device may adopt a 3D-LUT method to adjust the values of R0, G0 and B0 of R, G, B, C, M, Y, respectively.
The application provides a color compensation method of image, display device can adjust luminance of self, and the colour temperature of image, make luminance and colour temperature phase-match with current ambient light, and the saturation of adjustment image, make the white field of image and current ambient light match, and display device is earlier according to the RGB value of ambient light, adjust the RGB value of every colour of image in unison, then according to the colour temperature of ambient light, carry out the adjustment of pertinence to the RGB value of every colour, therefore, through adjusting the luminance of display device, the colour temperature of image, the saturation and the RGB value of every colour, the picture quality of image has been promoted, thereby user experience has been improved.
The scheme provided by the embodiment of the application is mainly introduced from the perspective of the display device. It is understood that the display device includes corresponding hardware structures and/or software modules for performing the respective functions in order to implement the above-described functions. Those of skill in the art will readily appreciate that the present invention can be implemented in hardware or a combination of hardware and computer software, in conjunction with the exemplary algorithm steps described in connection with the embodiments disclosed herein. Whether a function is performed as hardware or computer software drives hardware depends upon the particular application and design constraints imposed on the solution. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present invention.
In the embodiment of the present application, the display device may be divided into the functional modules according to the method example, for example, each functional module may be divided corresponding to each function, or two or more functions may be integrated into one processing module. The integrated module can be realized in a hardware mode, and can also be realized in a software functional module mode. It should be noted that, in the embodiment of the present application, the division of the module is schematic, and is only one logic function division, and there may be another division manner in actual implementation.
In the case of dividing each functional module by corresponding functions, fig. 5 shows another possible composition diagram of the display device related in the above embodiment, as shown in fig. 5, the display device may include: an acquisition unit 31, a determination unit 32, an adjustment unit 33, and a calculation unit 34.
Wherein, the obtaining unit 31 is configured to support the display device to execute step 201 in the color compensation method for the image shown in fig. 2.
A determining unit 32, configured to support the display device to execute the determining of the target brightness in step 202, the determining of the target color temperature in step 203, and the determining of the target saturation in step 204 in the color compensation method for the image shown in fig. 2.
An adjusting unit 33, configured to support the display device to perform the adjusting of the brightness of the display device to the target brightness in step 202, the adjusting of the color temperature of the image to the target color temperature in step 203, the adjusting of the saturation of the image to the target saturation in step 204, the adjusting of the white-balanced RGB values of the image according to the variation ranges R, G and B in step 205, in the color compensation method for the image shown in fig. 2, and step 206.
A calculation unit 34 for supporting the display device to perform the calculation R, G and the variation range of B described in step 205 in the color compensation method for images shown in fig. 2.
in this embodiment, further, as shown in fig. 6, the display device may further include: a storage unit 35.
a storage unit 35 for supporting the display device to perform the RGB values of the storage environment light, and the RGB values of C, M, and Y of the target color in the color compensation method of the image shown in fig. 2.
It should be noted that all relevant contents of each step related to the above method embodiment may be referred to the functional description of the corresponding functional module, and are not described herein again.
the display device provided by the embodiment of the application is used for executing the color compensation method of the image, so that the same effect as the color compensation method of the image can be achieved.
Fig. 7 shows another possible schematic composition of the display device according to the above-described embodiment, in case an integrated unit is used. As shown in fig. 7, the display device includes: a processing module 41 and a communication module 42.
Processing module 41 is used to control and manage the actions of the display device, for example, processing module 41 is used to support the display device to perform steps 201, 202, 203, 204, 205, 206 in fig. 2, and/or other processes for the techniques described herein. The communication module 42 is used to support communication of the display device with other network entities. The display device may further comprise a memory module 43 for storing program codes and data of the display device.
the processing module 41 may be the processor in fig. 1. Which may implement or perform the various illustrative logical blocks, modules, and circuits described in connection with the disclosure. A processor may also be a combination of computing functions, e.g., comprising one or more microprocessors, a DSP and a microprocessor, or the like. The communication module 42 may be the communication interface of fig. 1. The storage module 43 may be the memory of fig. 1.
Through the above description of the embodiments, it is clear to those skilled in the art that, for convenience and simplicity of description, the foregoing division of the functional modules is merely used as an example, and in practical applications, the above function distribution may be completed by different functional modules according to needs, that is, the internal structure of the device may be divided into different functional modules to complete all or part of the above described functions.
In the several embodiments provided in the present application, it should be understood that the disclosed apparatus and method may be implemented in other ways. For example, the above-described device embodiments are merely illustrative, and for example, the division of the modules or units is only one logical functional division, and there may be other divisions when actually implemented, for example, a plurality of units or components may be combined or may be integrated into another device, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may be one physical unit or a plurality of physical units, that is, may be located in one place, or may be distributed in a plurality of different places. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
in addition, functional units in the embodiments of the present invention may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.
The integrated unit, if implemented in the form of a software functional unit and sold or used as a stand-alone product, may be stored in a readable storage medium. Based on such understanding, the technical solutions of the embodiments of the present application may be essentially or partially contributed to by the prior art, or all or part of the technical solutions may be embodied in the form of a software product, where the software product is stored in a storage medium and includes several instructions to enable a device (which may be a single chip, a chip, or the like) or a processor (processor) to execute all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: various media capable of storing program codes, such as a U disk, a removable hard disk, a ROM, a RAM, a magnetic disk, or an optical disk.
The above description is only an embodiment of the present invention, but the scope of the present invention is not limited thereto, and any changes or substitutions within the technical scope of the present invention are intended to be covered by the scope of the present invention. Therefore, the protection scope of the present invention shall be subject to the protection scope of the appended claims.

Claims (8)

1. a method of color compensation of an image, the method comprising:
Acquiring a currently displayed image, and acquiring the brightness, color temperature and red, green and blue (RGB) values of current ambient light, wherein the image comprises at least one color;
Determining target brightness according to the brightness of the ambient light and the brightness compensation curve, and adjusting the brightness of the display device to the target brightness;
Determining a target color temperature according to the color temperature of the ambient light and a color temperature compensation curve, and adjusting the color temperature of the image to the target color temperature;
Determining target saturation according to the target brightness and the ratio of the brightness to the saturation, and adjusting the saturation of the image to the target saturation;
According to the RGB values of the environment light, respectively calculating R, G and B variation ranges, and correspondingly adjusting the RGB values of the white balance of the image according to the R, G and B variation ranges;
adjusting the RGB value of each of the at least one color according to the color temperature of the ambient light, including:
Acquiring coordinates of R, G and B of a target color, and acquiring a white point coordinate corresponding to the color temperature of the ambient light, wherein the target color is any one of the at least one color, and the white point coordinate is a white reference coordinate;
Determining coordinates of cyan C, purple M and yellow Y of the target color according to the white point coordinates, and coordinates of R, G and B of the target color;
Determining a matrix of CMY of the target color in an RGB color space according to the color temperature of the ambient light, and coordinates of C, M and Y of the target color, wherein the matrix is a 3-by-3 matrix, the first column of the matrix is an RGB value of C, the second column is an RGB value of M and the third column is an RGB value of Y of the target color;
Acquiring pre-stored RGB values of R, G and B of the target color;
Determining R, G, B, C, M and R, G, B variation ranges corresponding to Y of the target color respectively;
and according to the R, G, B, C, M of the target color and the change range of R, G, B corresponding to Y, adjusting the RGB values of R, G, B, C, M and Y of the target color respectively.
2. The method of claim 1, further comprising:
If any one of the RGB values of C, M or Y is larger than a preset value, the preset value is determined as the value of any one component, and the other two components are reduced according to a preset proportion, wherein the preset proportion is the ratio of the preset value to the original value of any one component.
3. the method of claim 1, further comprising:
Storing the RGB values of the ambient light.
4. the method of claim 1, further comprising:
and storing the RGB value of C, the RGB value of M and the RGB value of Y of the target color under the ambient light.
5. a display device, characterized in that the display device comprises: the device comprises an acquisition unit, a determination unit, an adjustment unit and a calculation unit;
The acquisition unit is used for acquiring a currently displayed image and acquiring the brightness, the color temperature and the red, green and blue RGB values of current ambient light, wherein the image comprises at least one color;
The determining unit is used for determining the target brightness according to the brightness of the ambient light and the brightness compensation curve;
The adjusting unit is used for adjusting the brightness of the display equipment to the target brightness;
The determining unit is further configured to determine a target color temperature according to the color temperature of the ambient light and the color temperature compensation curve;
The adjusting unit is further used for adjusting the color temperature of the image to the target color temperature;
the determining unit is further used for determining a target saturation according to the target brightness and the ratio of the brightness to the saturation;
The adjusting unit is further configured to adjust the saturation of the image to the target saturation;
The calculation unit is used for respectively calculating R, G and B variation ranges according to the RGB values of the environment light;
The adjusting unit is further used for correspondingly adjusting the RGB value of the white balance of the image according to the variation ranges of the R, G and B; adjusting the RGB value of each color in the at least one color according to the color temperature of the ambient light;
The adjusting unit is specifically configured to:
acquiring coordinates of R, G and B of a target color, and acquiring a white point coordinate corresponding to the color temperature of the ambient light, wherein the target color is any one of the at least one color, and the white point coordinate is a white reference coordinate;
determining coordinates of cyan C, purple M and yellow Y of the target color according to the white point coordinates, and coordinates of R, G and B of the target color;
determining a matrix of CMY of the target color in an RGB color space according to the color temperature of the ambient light, and coordinates of C, M and Y of the target color, wherein the matrix is a 3-by-3 matrix, the first column of the matrix is an RGB value of C, the second column is an RGB value of M and the third column is an RGB value of Y of the target color;
Acquiring pre-stored RGB values of R, G and B of the target color;
Determining R, G, B, C, M and R, G, B variation ranges corresponding to Y of the target color respectively;
and according to the R, G, B, C, M of the target color and the change range of R, G, B corresponding to Y, adjusting the RGB values of R, G, B, C, M and Y of the target color respectively.
6. The display device according to claim 5,
the determining unit is further configured to determine, if any one of RGB values of C, M, or Y is greater than a preset value, the preset value as a value of the any one of RGB values, and reduce the remaining two RGB values according to a predetermined ratio, where the predetermined ratio is a ratio of the preset value to an original value of the any one of RGB values.
7. The display device according to claim 5, characterized in that the display device further comprises: a storage unit;
the storage unit is used for storing the RGB value of the ambient light.
8. the display device according to claim 7,
the storage unit is further configured to store the RGB values of C, M, and Y of the target color under the ambient light.
CN201810310879.8A 2018-04-09 2018-04-09 Image color compensation method and device Active CN108376539B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810310879.8A CN108376539B (en) 2018-04-09 2018-04-09 Image color compensation method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810310879.8A CN108376539B (en) 2018-04-09 2018-04-09 Image color compensation method and device

Publications (2)

Publication Number Publication Date
CN108376539A CN108376539A (en) 2018-08-07
CN108376539B true CN108376539B (en) 2019-12-10

Family

ID=63032183

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810310879.8A Active CN108376539B (en) 2018-04-09 2018-04-09 Image color compensation method and device

Country Status (1)

Country Link
CN (1) CN108376539B (en)

Families Citing this family (16)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109151416A (en) * 2018-08-29 2019-01-04 中航国画(上海)激光显示科技有限公司 The multi-functional fusion processing system of laser projection and method
CN109408018A (en) * 2018-10-26 2019-03-01 深圳大学 A kind of screen color temp adjusting method, device and terminal device
CN111367600A (en) * 2018-12-26 2020-07-03 沈阳美行科技有限公司 Application software display color adjusting method and device and vehicle-mounted equipment
CN109729281A (en) * 2019-01-04 2019-05-07 Oppo广东移动通信有限公司 Image processing method, device, storage medium and terminal
CN109902587B (en) * 2019-01-29 2021-10-08 维沃移动通信有限公司 Image processing method and device, mobile terminal and storage medium
CN110113534B (en) * 2019-05-13 2021-04-23 Oppo广东移动通信有限公司 Image processing method, image processing device and mobile terminal
CN112687232B (en) * 2019-10-18 2022-06-10 北京小米移动软件有限公司 Dimming method and device of OLED display screen, electronic equipment and storage medium
CN112905141B (en) * 2019-12-04 2024-09-03 北京小米移动软件有限公司 Screen display method and device and computer storage medium
CN111785217B (en) * 2020-07-03 2022-02-15 深圳创维-Rgb电子有限公司 Backlight adjusting method and device, terminal equipment and readable storage medium
CN112738488B (en) * 2020-12-23 2021-12-07 深圳市火乐科技发展有限公司 Projection equipment control method, device, medium and electronic equipment
CN113015017B (en) * 2021-03-15 2023-07-18 Vidaa(荷兰)国际控股有限公司 Image quality compensation method and display device
CN113286136B (en) * 2021-07-23 2021-12-17 卡莱特云科技股份有限公司 Picture color adjusting method and device, computer equipment and storage medium
CN113590065B (en) * 2021-07-28 2024-01-16 展讯通信(天津)有限公司 Color adjustment method and device, storage medium and display device
CN113824833A (en) * 2021-08-04 2021-12-21 东莞市金锐显数码科技有限公司 Image quality adjusting method and device, terminal equipment and storage medium
CN114693567B (en) * 2022-05-30 2022-09-20 深圳思谋信息科技有限公司 Image color adjusting method and device, computer equipment and storage medium
CN117079618B (en) * 2023-10-18 2024-01-05 深圳可视科技有限公司 LED liquid crystal display screen brightness correction method and system

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1661666A (en) * 2004-02-26 2005-08-31 三星电子株式会社 Method and apparatus for converting color spaces and multi-color display apparatus using the color space conversion apparatus
CN201174228Y (en) * 2008-04-08 2008-12-31 天津三星电子有限公司 Display device capable of automatic regulating lightness and color temperature
CN101581899A (en) * 2008-05-16 2009-11-18 株式会社理光 Image forming apparatus, image forming method, and printing medium
CN103905754A (en) * 2012-12-30 2014-07-02 青岛海尔软件有限公司 Image automatic adjustment method based on RGB sensor
CN104337137A (en) * 2014-11-13 2015-02-11 广东交通职业技术学院 Intelligent wristband for assisting achromate in discriminating colors and color discrimination method
CN105744247A (en) * 2015-05-26 2016-07-06 维沃移动通信有限公司 Mobile device, method and device for carrying out white balance adjustment in mobile device
CN105955585A (en) * 2016-05-31 2016-09-21 维沃移动通信有限公司 Display method for mobile terminal and mobile terminal
CN106791350A (en) * 2015-11-24 2017-05-31 宏碁股份有限公司 Display adjusting method and electronic installation

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20080051302A (en) * 2006-12-05 2008-06-11 삼성전자주식회사 User terminal apparatus and image display apparatus and method for adjusting light source thereof

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1661666A (en) * 2004-02-26 2005-08-31 三星电子株式会社 Method and apparatus for converting color spaces and multi-color display apparatus using the color space conversion apparatus
JP2005295511A (en) * 2004-02-26 2005-10-20 Samsung Electronics Co Ltd Color converting method and device, and multi-color display device using the same
CN201174228Y (en) * 2008-04-08 2008-12-31 天津三星电子有限公司 Display device capable of automatic regulating lightness and color temperature
CN101581899A (en) * 2008-05-16 2009-11-18 株式会社理光 Image forming apparatus, image forming method, and printing medium
CN103905754A (en) * 2012-12-30 2014-07-02 青岛海尔软件有限公司 Image automatic adjustment method based on RGB sensor
CN104337137A (en) * 2014-11-13 2015-02-11 广东交通职业技术学院 Intelligent wristband for assisting achromate in discriminating colors and color discrimination method
CN105744247A (en) * 2015-05-26 2016-07-06 维沃移动通信有限公司 Mobile device, method and device for carrying out white balance adjustment in mobile device
CN106791350A (en) * 2015-11-24 2017-05-31 宏碁股份有限公司 Display adjusting method and electronic installation
CN105955585A (en) * 2016-05-31 2016-09-21 维沃移动通信有限公司 Display method for mobile terminal and mobile terminal

Also Published As

Publication number Publication date
CN108376539A (en) 2018-08-07

Similar Documents

Publication Publication Date Title
CN108376539B (en) Image color compensation method and device
CN111326099B (en) Display correction method, device and system, storage medium and display system
EP4207754A1 (en) White balance compensation method and apparatus, and electronic device
CN107564493B (en) Color gamut compression method and device and display equipment
CN107784993B (en) Color gamut compression method and device and display equipment
US10453399B2 (en) Grayscale voltage adjusting apparatus and method, display driving apparatus and display apparatus
CN111429827A (en) Display screen color calibration method and device, electronic equipment and readable storage medium
US10594904B2 (en) Correction coefficient calculation unit, image conversion unit, color correction device, display device, correction coefficient calculation method, and program
CN113495709A (en) Color correction method, AP chip, terminal and storage medium
KR102233316B1 (en) Display apparatus, display correction appratus, display correction system and display correction method
US9311890B2 (en) Assigning display colors to achieve apparent desired colors
CN110277076B (en) Color mapping method and device, display equipment and medium
TWI602419B (en) Adjusting method and display apparatus using same
CN105895051A (en) Screen brightness adjustment method and device
US20140314317A1 (en) Method and apparatus for converting gray level of color image
WO2022120799A9 (en) Image processing method and apparatus, electronic device, and storage medium
CN113450687A (en) Color management correction method, device and system
CN111653232B (en) LED screen color gamut calibration method and device
CN113724644B (en) Method for compensating brightness and chroma of display device and related equipment
CN113129813B (en) White balance adjusting method and device and computer equipment
CN116112652A (en) Projection image processing method, apparatus, computer device and storage medium
CN114286067A (en) Projection equipment and image correction method
US20210405352A1 (en) Display device and method of adjusting chromatic aberration of display device
CN108600721A (en) A kind of method of color gamut mapping of color and equipment
CN114615482B (en) White balance debugging method, storage medium and intelligent television

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
CP01 Change in the name or title of a patent holder

Address after: 266555 Qingdao economic and Technological Development Zone, Shandong, Hong Kong Road, No. 218

Patentee after: Hisense Visual Technology Co., Ltd.

Address before: 266555 Qingdao economic and Technological Development Zone, Shandong, Hong Kong Road, No. 218

Patentee before: QINGDAO HISENSE ELECTRONICS Co.,Ltd.

CP01 Change in the name or title of a patent holder