A color adjusting method, device, storage medium and terminal device
By acquiring backlight control coefficients and transmittance data, the image color compensation coefficients are determined, and the color parameters of the display device are adjusted. This solves the color distortion problem caused by primary color doping in the display device and achieves higher color fidelity.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- SHENZHEN TCL NEW-TECH CO LTD
- Filing Date
- 2021-03-17
- Publication Date
- 2026-07-10
AI Technical Summary
The R, G, and B transmission spectra of existing display devices overlap with each other, causing each of the R, B, and G primary colors to be mixed with other primary colors, resulting in color distortion in the displayed image.
By acquiring the backlight control coefficient and transmittance data corresponding to the display screen, the image color compensation coefficient of each pixel is determined, and the color parameters of the display screen are adjusted according to the backlight control coefficient and image color compensation coefficient to reduce the influence of the transmittance overlap area on the color of the display screen.
It improves the color accuracy of the displayed image, avoids color distortion, and enhances the display effect.
Smart Images

Figure CN115116365B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of terminal technology, and in particular to a color adjustment method, apparatus, storage medium and terminal device. Background Technology
[0002] Currently, the R, G, and B transmission spectra of commonly used display devices overlap. This results in each primary color (R, B, and G) being mixed with other primary colors; for example, B primary color light may be mixed with G primary color light. However, this mixing phenomenon can cause color distortion in the displayed image, such as making the blue sky appear purplish. Summary of the Invention
[0003] The technical problem to be solved by this application is to provide a color adjustment method, apparatus, storage medium and terminal device to address the shortcomings of the prior art.
[0004] To address the aforementioned technical problems, a first aspect of this application provides a color adjustment method, the method comprising:
[0005] Obtain the backlight control coefficient corresponding to the displayed image, and the transmittance data of the display device corresponding to the displayed image;
[0006] Based on the backlight control coefficient, the transmittance data, and the pixel values corresponding to each pixel in the display screen, determine the image color compensation coefficient corresponding to each pixel.
[0007] The color parameters of the displayed image are adjusted according to the backlight control coefficient and the image color compensation coefficient corresponding to each pixel.
[0008] The color adjustment method includes a number of backlight control coefficient groups, each of which corresponds to a display area of the display screen, and the display areas corresponding to each backlight control coefficient group are different from each other.
[0009] The color adjustment method, wherein obtaining the backlight control coefficient corresponding to the displayed image specifically includes:
[0010] Obtain the partition data of the display device corresponding to the display screen, and determine several display areas corresponding to the display screen based on the partition data;
[0011] For each of the several display areas, a set of backlight control coefficients corresponding to that display area is determined based on the pixel values corresponding to each pixel in that display area.
[0012] The backlight control coefficients corresponding to the display screen are determined according to the backlight control coefficient groups corresponding to the respective display areas.
[0013] The color adjustment method, wherein the pixel values include R primary color values, B primary color values, and G primary color values; the step of determining the backlight control coefficient group corresponding to the display area based on the pixel values corresponding to each pixel in the display area specifically includes:
[0014] For each target primary color in the pixel value, obtain the maximum value and average value of the target primary color corresponding to each pixel in the display area under the target primary color, and determine the candidate backlight control coefficient of the display area under the target primary color based on the obtained maximum value and average value.
[0015] The backlight control coefficient group consisting of the candidate backlight control coefficients corresponding to each target primary color is taken as the backlight control coefficient group corresponding to the display area.
[0016] The color adjustment method includes a transmittance data set comprising an initial tristimulus value set and a default tristimulus value set. The initial tristimulus value set comprises the initial tristimulus value of the target sub-pixel under R monochrome backlight, the initial tristimulus value of the target sub-pixel under G monochrome backlight, and the initial tristimulus value of the target sub-pixel under B monochrome backlight. The target sub-pixel comprises R sub-pixels, G sub-pixels, and B sub-pixels. The default tristimulus value is the tristimulus value for the display device to display a white field image under white backlight.
[0017] The color adjustment method, wherein determining the image color compensation coefficient corresponding to each pixel based on the backlight control coefficient, the transmittance data, and the pixel value corresponding to each pixel in the display image specifically includes:
[0018] The reference tristimulus values of the display device are determined based on the backlight control coefficient and the initial tristimulus value set.
[0019] Obtain the target color gamut corresponding to the display screen, and determine the target tristimulus value corresponding to each pixel based on the target color gamut, the default tristimulus value, and the pixel value corresponding to each pixel.
[0020] Based on the reference tristimulus value and the target tristimulus value corresponding to each pixel, the image color compensation coefficient corresponding to each pixel is determined.
[0021] The color adjustment method, wherein obtaining the target color gamut corresponding to the display screen, and determining the target tristimulus value corresponding to each pixel based on the target color gamut, the default tristimulus value, and the pixel value corresponding to each pixel specifically includes:
[0022] Obtain the target color gamut corresponding to the display screen, and determine the color gamut tristimulus value corresponding to the target color gamut;
[0023] Based on the color gamut tristimulus values and the default tristimulus values, the basic tristimulus values corresponding to the display device are determined;
[0024] Based on the basic tristimulus values and the corresponding pixel values of each pixel, the target tristimulus values corresponding to each pixel are determined.
[0025] The color adjustment method, wherein determining the image color compensation coefficient corresponding to each pixel based on the reference tristimulus value and the target tristimulus value corresponding to each pixel specifically includes:
[0026] Based on the reference tristimulus value and the target tristimulus value corresponding to each pixel, the target pixel value corresponding to each pixel is determined, wherein the target pixel value includes the target R primary color value, the target G primary color value and the target B primary color value;
[0027] Based on the target pixel value corresponding to each pixel and the pixel value corresponding to each pixel, determine the image color compensation coefficient corresponding to each pixel.
[0028] A second aspect of this application provides a color adjustment device, the color adjustment device comprising:
[0029] The acquisition module is used to acquire the backlight control coefficient corresponding to the display screen, and the transmittance data of the display device corresponding to the display screen;
[0030] The determining module is used to determine the image color compensation coefficient corresponding to each pixel based on the backlight control coefficient, the transmittance data, and the pixel value corresponding to each pixel in the display screen.
[0031] The adjustment module is used to adjust the color parameters of the display screen according to the backlight control coefficient and the image color compensation coefficient corresponding to each pixel.
[0032] A third aspect of this application provides a computer-readable storage medium storing one or more programs that can be executed by one or more processors to implement the steps in any of the color adjustment methods described above.
[0033] A fourth aspect of this application provides a terminal device, which includes: a processor, a memory, and a communication bus; the memory stores a computer-readable program that can be executed by the processor;
[0034] The communication bus enables communication between the processor and the memory;
[0035] When the processor executes the computer-readable program, it implements the steps in any of the color adjustment methods described above.
[0036] Beneficial Effects: Compared with the prior art, this application provides a color adjustment method, apparatus, storage medium, and terminal device. The method includes: acquiring a backlight control coefficient corresponding to a display screen and transmittance data of a display device corresponding to the display screen; determining an image color compensation coefficient corresponding to each pixel based on the backlight control coefficient, transmittance data, and pixel values corresponding to each pixel in the display screen; and adjusting the color parameters of the display screen based on the backlight control coefficient and the image color compensation coefficient corresponding to each pixel. After acquiring the display screen, this application acquires the backlight control coefficient, transmittance data, and image color compensation coefficient corresponding to each pixel, and adjusts the color of the display screen based on the transmittance data. This reduces the influence of overlapping transmittance areas of the display device on the color of the display screen, improves the color fidelity of the display screen, and thus avoids color distortion in the display screen. Attached Figure Description
[0037] To more clearly illustrate the technical solutions in the embodiments of this application, the accompanying drawings used in the description of the embodiments will be briefly introduced below. Obviously, the accompanying drawings described below are only some embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0038] Figure 1 This is a transmission spectrum data diagram of a display device.
[0039] Figure 2 This is a schematic diagram of the view function of the display device.
[0040] Figure 3 A schematic diagram showing crosstalk between blue light and green light.
[0041] Figure 4 A flowchart of the color adjustment method provided in this application.
[0042] Figure 5 A schematic diagram of the structural principle of the color adjustment device provided in this application.
[0043] Figure 6 A schematic diagram of the terminal device provided in this application. Detailed Implementation
[0044] This application provides a color adjustment method, apparatus, storage medium, and terminal device. To make the objectives, technical solutions, and effects of this application clearer and more explicit, the following detailed description is provided with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of this application and are not intended to limit the scope of this application.
[0045] Those skilled in the art will understand that, unless specifically stated otherwise, the singular forms “a,” “an,” “the,” and “the” used herein may also include the plural forms. It should be further understood that the term “comprising” as used in this application means the presence of the stated features, integers, steps, operations, elements, and / or components, but does not exclude the presence or addition of one or more other features, integers, steps, operations, elements, components, and / or groups thereof. It should be understood that when we say an element is “connected” or “coupled” to another element, it can be directly connected or coupled to the other element, or there may be intermediate elements. Furthermore, “connected” or “coupled” as used herein can include wireless connections or wireless coupling. The term “and / or” as used herein includes all or any units and all combinations of one or more associated listed items.
[0046] It will be understood by those skilled in the art that, unless otherwise defined, all terms used herein (including technical and scientific terms) have the same meaning as commonly understood by one of ordinary skill in the art to which this application pertains. It should also be understood that terms such as those defined in general dictionaries should be understood to have the same meaning as in the context of the prior art, and should not be interpreted in an idealized or overly formal sense unless specifically defined as herein.
[0047] In specific implementations, the terminal devices described in the embodiments of this application include, but are not limited to, other portable devices such as mobile phones, laptops, or tablets with touch-sensitive surfaces (e.g., touch displays and / or touchpads). It should also be understood that in some embodiments, the device is not a portable communication device, but a desktop computer with touch-sensitive surfaces (e.g., touch displays and / or touchpads).
[0048] The following discussion describes terminal devices that include displays and touch-sensitive surfaces. However, it should be understood that terminal devices may also include one or more other physical user interface devices such as physical keyboards, mice, and / or joysticks.
[0049] The terminal device supports a variety of applications, such as one or more of the following: drawing applications, presentation applications, word processing applications, video conferencing applications, disc burning applications, spreadsheet applications, game applications, telephone applications, video conferencing applications, email applications, instant messaging applications, exercise support applications, photo management applications, digital camera applications, digital camcorder applications, web browsing applications, digital music player applications, and / or digital video playback applications, etc.
[0050] Various applications that can run on a terminal device can use at least one common physical user interface device, such as a touch-sensitive surface. First or more functions of the touch-sensitive surface and the corresponding information displayed on the terminal can be adjusted and / or changed between and / or within applications. In this way, the terminal's common physical framework (e.g., the touch-sensitive surface) can support various applications with user interfaces that are intuitive and transparent to the user.
[0051] It should be understood that the sequence number and size of each step in this embodiment do not imply the order of execution. The execution order of each process is determined by its function and internal logic, and should not constitute any limitation on the implementation process of this application embodiment.
[0052] The inventors discovered through research that the R-transmission spectrum, G-transmission spectrum, and B-transmission spectrum of the display devices currently used in terminal devices have overlapping regions, for example, such as Figure 1 The transmitted spectrum data diagram shown and as follows Figure 2 The diagram illustrating the visibility function shows overlapping regions between the R, G, and B transmission spectra. However, when these transmission spectra overlap, each of the R, B, and G primary colors will be doped with other primary colors besides itself. For example, as... Figure 3 As shown, because the transmission spectra of the B and G primary colors overlap, and the high-weighted band of the visibility function coincides with the green light band, the backlight spectrum, after passing through the B primary color CF and the visibility function, ultimately results in green light from the G primary color mixed with the B primary color. Therefore, the B primary color light is subject to crosstalk from the G primary color light. Similarly, the R and G primary color lights are also subject to crosstalk from other primary color lights, leading to color distortion in the displayed image, such as a purplish tint to the blue sky. Furthermore, when the display device uses a multi-color zone dynamic backlight control method, the different backlight control coefficients within each zone increase the degree of color distortion in the displayed image.
[0053] To address the aforementioned issues, this application embodiment acquires the backlight control coefficient corresponding to the displayed image and the transmittance data of the display device corresponding to the displayed image; based on the backlight control coefficient, transmittance data, and the pixel values corresponding to each pixel in the displayed image, it determines the image color compensation coefficient corresponding to each pixel; and based on the backlight control coefficient and the image color compensation coefficient corresponding to each pixel, it adjusts the color parameters of the displayed image. After acquiring the displayed image, this application acquires the backlight control coefficient, transmittance data, and image color compensation coefficient corresponding to each pixel, and adjusts the color of the displayed image based on the transmittance data. This reduces the impact of overlapping transmittance areas of the display device on the color of the displayed image, improves the color fidelity of the displayed image, and thus avoids color distortion in the displayed image.
[0054] The application content will be further explained below with reference to the accompanying drawings and the description of the embodiments.
[0055] This embodiment provides a color adjustment method, such as Figure 4 As shown, the method includes:
[0056] S10. Obtain the backlight control coefficient corresponding to the display screen, and the transmittance data of the display device corresponding to the display screen.
[0057] Specifically, the backlight control coefficient is used to adjust the backlight brightness of the display device, wherein the display device is used to display the display image, and when the display device displays the display image, the backlight brightness of the display device is adjusted by the backlight control coefficient corresponding to the display image. The backlight control coefficient includes several backlight control coefficient groups, each of which corresponds to a display area of the display image. The display areas corresponding to each backlight control coefficient group constitute the display image, and the display areas corresponding to each backlight control coefficient group are different from each other. For example, the display screen is a rectangular display screen, and the coordinates of the four display vertices of the rectangular display screen are (0,0), (0,200), (200,200), (200,0) respectively. Several backlight control coefficient groups include four backlight control coefficient groups, denoted as backlight control coefficient group A, backlight control coefficient group B, backlight control coefficient group C, and backlight control coefficient group D respectively. The coordinates of the display vertices of the rectangular display area corresponding to backlight control coefficient group A are (0,0), (0,100), (100,100), (100,0) respectively. The coordinates of the display vertices of the rectangular display area corresponding to the backlight control coefficient group B are (100,0), (100,100), (200,100), (200,0), respectively. The coordinates of the display vertices of the rectangular display area corresponding to the backlight control coefficient group C are (100,100), (200,100), (200,200), (100,200), respectively. The coordinates of the display vertices of the rectangular display area corresponding to the backlight control coefficient group D are (100,100), (100,200), (0,200), (0,100), respectively.
[0058] In one implementation of this embodiment, obtaining the backlight control coefficient corresponding to the displayed image specifically includes:
[0059] Obtain the partition data of the display device corresponding to the display screen, and determine several display areas corresponding to the display screen based on the partition data;
[0060] For each of the several display areas, a set of backlight control coefficients corresponding to that display area is determined based on the pixel values corresponding to each pixel in that display area.
[0061] The backlight control coefficients corresponding to the display screen are determined based on the backlight control coefficient groups corresponding to each of the several display areas.
[0062] Specifically, the partition data reflects the arrangement of display partitions in the display device. Based on this partition data, the number of partitions in the display device and the number of pixel units in each display partition can be determined. Therefore, the partition data can include the number of partitions and the partition arrangement data. For example, the partition data of the display device is {192, (16, 12)}, where 192 is the number of partitions and (16, 12) is the partition arrangement data. Based on this partition data, it can be determined that the display device includes 192 partitions, and each display partition is arranged in 16 rows and 12 columns.
[0063] The number of display areas included in a plurality of display areas is equal to the number of display partitions corresponding to a plurality of display zones on a display device. Each display area within a plurality of display areas corresponds to one of the display partitions. The display partitions corresponding to each display area are distinct. The position of each display area corresponds to the position of its corresponding display partition, and the size of each display area is the same as the size of its corresponding display partition. For example, a display device includes display partition A and display partition B, and display areas include display area a and display area b. Display partition A corresponds to display area a, and display partition B corresponds to display area b. The position of display partition A within the display device corresponds to the position of display area a within the display screen, and the size of display partition A within the display device is the same as the size of display area a within the display screen.
[0064] A backlight control coefficient group is used to adjust the backlight brightness of a display zone of the display device, which is used to display the display area corresponding to the backlight control coefficient group. Therefore, the number of backlight control coefficient groups is the same as the number of display zones in the display device, and each backlight control coefficient group corresponds one-to-one with a specific display zone. Each backlight control coefficient group is used to adjust the backlight brightness of its corresponding display zone.
[0065] In one implementation of this embodiment, the pixel value corresponding to each pixel includes an R primary color value, a B primary color value, and a G primary color value, and the backlight control coefficient group includes an R primary color backlight control coefficient, a G primary color backlight control coefficient, and a B primary color backlight control coefficient. Accordingly, determining the backlight control coefficient group corresponding to the display area based on the pixel values corresponding to each pixel in the display area specifically includes:
[0066] For each target primary color in the pixel value, obtain the maximum value and average value of the target primary color corresponding to each pixel in the display area under the target primary color, and determine the candidate backlight control coefficient of the display area under the target primary color based on the obtained maximum value and average value.
[0067] The backlight control coefficient group consisting of the candidate backlight control coefficients corresponding to each target primary color is taken as the backlight control coefficient group corresponding to the display area.
[0068] Specifically, the target primary color includes the R primary color value, B primary color value, and G primary color value. The target primary color value is the primary color value corresponding to the target primary color. For example, if the target primary color is R primary color, then the target primary color value is R primary color value; if the target primary color is G primary color, then the target primary color value is G primary color value; if the target primary color is B primary color, then the target primary color value is B primary color value. The candidate backlight control coefficient is the backlight control coefficient of the display area under the target primary color. The calculation formula of the candidate backlight control coefficient can be: R_B(i)=A*R_M(i)+(1-A)*R_A(i), where R_B(i) is the candidate backlight control coefficient, R_M(i) is the maximum value of the target primary color value, R_A(i) is the average value of the target primary color value, and A is the cumulative empirical value, with a value range of [0,1]. Furthermore, after obtaining the candidate backlight control coefficients, the candidate backlight control coefficients can be normalized, and the normalized candidate backlight control coefficients can be used as the backlight control coefficients of the display area under the target primary color.
[0069] For example: Assume the current display screen has a pixel resolution of 3840*2160, with R signal display channels, G signal display channels, and B signal display channels. The signal values of each signal display channel are 8-bit data, the number of partitions is 192, and the partition data is arranged in 16 rows and 12 columns. Taking one display partition of the R channel as an example, calculate the maximum value R_M(i) and the average value R_A(i) of the 240*180 pixels in the R signal channel. Then, weight them to obtain the final candidate backlight control coefficient R_B(i) = A*R_M(i) + (1-A)*R_A(i), where A is the cumulative empirical value, ranging from [0,1], and i represents the i-th display partition. After normalizing the determined candidate backlight control coefficient R_B(i), we get the backlight control coefficient R_B_c(i) = R_B(i) / 255 under the R primary color, where i represents the i-th display partition.
[0070] In one implementation of this embodiment, the transmittance data includes an initial tristimulus value set and a default tristimulus value set. The initial tristimulus value set includes the initial tristimulus value of the target sub-pixel under R monochromatic backlight, the initial tristimulus value of the target sub-pixel under G monochromatic backlight, and the initial tristimulus value of the target sub-pixel under B monochromatic backlight. The target sub-pixel includes R sub-pixels, G sub-pixels, and B sub-pixels. The default tristimulus value is the tristimulus value of the display device for displaying a white field image under white backlight. Wherein, the initial tristimulus value of the target sub-pixel under R monochromatic backlight includes the initial tristimulus value of the R sub-pixel under R monochromatic backlight, the initial tristimulus value of the G sub-pixel under R monochromatic backlight, and the initial tristimulus value of the B sub-pixel under R monochromatic backlight; the initial tristimulus value of the target sub-pixel under G monochromatic backlight includes the initial tristimulus value of the R sub-pixel under G monochromatic backlight, the initial tristimulus value of the G sub-pixel under G monochromatic backlight, and the initial tristimulus value of the B sub-pixel under G monochromatic backlight; the initial tristimulus value of the target sub-pixel under B monochromatic backlight includes the initial tristimulus value of the R sub-pixel under B monochromatic backlight, the initial tristimulus value of the G sub-pixel under B monochromatic backlight, and the initial tristimulus value of the B sub-pixel under B monochromatic backlight.
[0071] The transmittance data can be pre-stored in the terminal device corresponding to the display device, or in a remote server (e.g., the cloud); when it is necessary to obtain the transmittance data corresponding to the display device, the transmittance data can be obtained directly. In one implementation of this embodiment, the process of determining the transmittance data can specifically be as follows:
[0072] Acquire tristimulus values for each monochrome field image under each preset backlight model;
[0073] Based on the tristimulus values of each monochrome scene under each preset backlight model, the initial tristimulus values of the target sub-pixel under each monochrome backlight are determined to obtain the initial tristimulus value set.
[0074] Specifically, tristimulus values represent the degree of stimulation of the three primary colors that cause the human retina to perceive a certain color. In a three-primary-color system, tristimulus values are the amounts of the three primary color stimuli required to achieve color matching with the light being measured, denoted as X, Y, and Z, where X represents the amount of red primary color stimulation, Y represents the amount of red primary color stimulation, and Z represents the amount of red primary color stimulation. A monochrome field image refers to a monochrome field image displayed by a display device; for example, an R monochrome field image is an R color field image displayed by a display device. Preset backlight models include R monochrome backlight mode, G monochrome backlight mode, B monochrome backlight mode, and a backlight mode where R, G, and B are all lit. Under a preset backlight model, it means controlling the display device to illuminate the backlight according to the preset backlight model. Therefore, obtaining the tristimulus value data for each monochrome field image under each preset backlight model involves controlling the display device to display a monochrome field image and controlling the display device to illuminate the backlight according to the preset backlight model, then using a color temperature meter (such as CA410) to sequentially record the corresponding tristimulus value data.
[0075] In one implementation of this embodiment, the tristimulus values of each monochrome scene under each preset backlight model can be distinguished using a three-digit subscript rgb, where r, g, and b all range from {0,1}. r represents the R primary color backlight illumination state, g represents the G primary color backlight illumination state, and b represents the B primary color backlight illumination state, with 0 indicating illumination and 1 indicating illumination. For example, "111" represents R primary color backlight illumination, G primary color backlight illumination, and B primary color backlight illumination; "110" represents R primary color backlight illumination and G primary color backlight illumination, but B primary color backlight not illumination; "101" represents R primary color backlight illumination and B primary color backlight illumination, but G primary color backlight not illumination; and "011" represents G primary color backlight illumination and B primary color backlight illumination, but R primary color backlight not illumination.
[0076] Since each preset backlight model includes R monochrome backlight mode, G monochrome backlight mode, B monochrome backlight mode, and a backlight mode where R, G, and B are all lit, each monochrome field image needs to collect tristimulus values for the four backlight modes. Specifically, the tristimulus values for the four backlight modes corresponding to the R monochrome field image are "100", "110", "101", and "111"; the tristimulus values for the four backlight modes corresponding to the G monochrome field image are "010", "110", "011", and "111"; and the tristimulus values for the four backlight modes corresponding to the B monochrome field image are "001", "101", "011", and "111", for a total of four configurations.
[0077] To facilitate determining the initial tristimulus values of the target sub-pixel under R monochrome backlight based on the tristimulus value data of each monochrome scene under each preset backlight model, taking the tristimulus values of the R sub-pixel under each monochrome backlight as an example, the calculation method for the tristimulus values of the R sub-pixel under each monochrome backlight can be as follows:
[0078] X RR =X 100
[0079] X RG =X 110 -X 100
[0080] X RB =X 101 -X 100
[0081] Y RR =Y 100
[0082] Y RG =Y 110 -Y 100
[0083] Y RB =Y 101 -Y 100
[0084] Z RR =Z 100
[0085] Z RG =Z 110 -Z 100
[0086] Z RB =Z 101 -Z 100
[0087] Among them, X ij The first letter "i" represents sub-pixel i, and the second letter "j" represents monochrome backlight j. The values of both i and j are in the range {R, G, B}. Furthermore, the tristimulus values of other sub-pixels are calculated in the same way under each monochrome backlight model, and will not be described in detail here.
[0088] In one implementation of this embodiment, the default tristimulus values are the tristimulus values for the display device to display a white field image under white backlight. In other words, the default tristimulus values are the tristimulus values of the white field image under the full illumination models of R monochrome backlight, G monochrome backlight, and B monochrome backlight. The process of obtaining the default tristimulus values can be as follows: control the display device to display a white field image and control the R monochrome backlight, G monochrome backlight, and B monochrome backlight to be fully illuminated, and then use a color temperature meter (such as CA410) to sequentially record the corresponding tristimulus value data, namely X stimulus value data XW, Y stimulus value data YW, and Z stimulus value data ZW.
[0089] S20. Based on the backlight control coefficient, the transmittance data, and the pixel values corresponding to each pixel in the display screen, determine the image color compensation coefficient corresponding to each pixel.
[0090] Specifically, the image color compensation coefficient is a correction coefficient for the color of the displayed image, used to correct the color of the displayed image. Each pixel in the displayed image has its own corresponding image color compensation coefficient, and each pixel's image color compensation coefficient is determined based on its corresponding pixel value. This allows for color adjustment at the pixel level, thereby improving color fidelity. Furthermore, in practical applications, when the display device includes several display partitions, resulting in a display area, when determining the image color compensation coefficient for each pixel, for each pixel, the display area to which it belongs is determined, and the backlight control coefficient group corresponding to that display area is obtained. This obtained backlight control coefficient group is then used as the backlight control coefficient for that pixel, and the corresponding image color compensation coefficient is determined based on this backlight control coefficient.
[0091] In one implementation of this embodiment, determining the image color compensation coefficient corresponding to each pixel based on the backlight control coefficient, the transmittance data, and the pixel value corresponding to each pixel in the display screen specifically includes:
[0092] The reference tristimulus values of the display device are determined based on the backlight control coefficient and the initial tristimulus value set.
[0093] Obtain the target color gamut corresponding to the display screen, and determine the target tristimulus value corresponding to each pixel based on the target color gamut, the default tristimulus value, and the pixel value corresponding to each pixel.
[0094] Based on the reference tristimulus value and the target tristimulus value corresponding to each pixel, the image color compensation coefficient corresponding to each pixel is determined.
[0095] Specifically, the reference tristimulus value is used to reflect the optical data of the display device under the backlight control coefficient. The reference tristimulus value includes several partition reference tristimulus values, which correspond one-to-one with several backlight control coefficient groups included in the backlight control coefficient. Each reference tristimulus value is determined based on its corresponding backlight control coefficient group and the initial tristimulus value set. Therefore, determining the reference tristimulus value of the display device according to the backlight control coefficient and the initial tristimulus value set specifically involves: for each backlight control coefficient group in the backlight control coefficient, determining a partition reference tristimulus value based on the backlight control coefficient group and the initial tristimulus value set, and using this partition reference tristimulus value as the partition reference tristimulus value corresponding to the display partition of the backlight control coefficient group; finally, using all the obtained partition reference tristimulus values as the reference tristimulus values corresponding to the display device.
[0096] In one implementation of this embodiment, the partitioned reference tristimulus value can be obtained by weighting the stimulus values of each sub-pixel under each monochrome backlight using the candidate backlight control coefficients corresponding to each target primary color in the backlight control coefficient group as weighting coefficients, so as to obtain the target tristimulus value corresponding to each sub-pixel. Therefore, the calculation formula for the reference tristimulus value of the display device is as follows:
[0097] XR1=R_B_c*XRR+G_B_c*XRG+B_B_c*XRB
[0098] YR1=R_B_c*YRR+G_B_c*YRG+B_B_c*YRB
[0099] ZR1=R_B_c*ZRR+G_B_c*ZRG+B_B_c*ZRB
[0100] XG1=R_B_c*XRG+G_B_c*XGG+B_B_c*XGB
[0101] YG1=R_B_c*YRG+G_B_c*YGG+B_B_c*YGB
[0102] ZG1=R_B_c*ZRG+G_B_c*ZGG+B_B_c*ZGB
[0103] XB1=R_B_c*XRB+G_B_c*XGB+B_B_c*XBB
[0104] YB1=R_B_c*YRB+G_B_c*YGB+B_B_c*YBB
[0105] ZB1=R_B_c*ZRB+G_B_c*ZGB+B_B_c*ZBB
[0106] Where XR1, YR1, and ZR1 represent the reference tristimulus values corresponding to the R sub-pixel, XG1, YG1, and ZG1 represent the reference tristimulus values corresponding to the G sub-pixel, and XB1, YB1, and ZB1 represent the reference tristimulus values corresponding to the B sub-pixel.
[0107] In one implementation of this embodiment, obtaining the target color gamut corresponding to the display screen, and determining the target tristimulus value corresponding to each pixel based on the target color gamut, the default tristimulus value, and the pixel value corresponding to each pixel specifically includes:
[0108] Obtain the target color gamut corresponding to the display screen, and determine the color gamut tristimulus value corresponding to the target color gamut;
[0109] Based on the color gamut tristimulus values and the default tristimulus values, the basic tristimulus values corresponding to the display device are determined;
[0110] Based on the basic tristimulus values and the corresponding pixel values of each pixel, the target tristimulus values corresponding to each pixel are determined.
[0111] Specifically, the target color gamut is the display color gamut of the display screen, such as BT.709; the target color gamut corresponds to the color gamut tristimulus values, wherein the correspondence between the color gamut tristimulus values and the target color gamut is preset. After obtaining the target color gamut corresponding to the display screen, the color gamut tristimulus values corresponding to the target color gamut can be directly determined according to the correspondence. Here, the color gamut tristimulus values corresponding to the target color gamut are recorded as (XR2, YR2, ZR2), (XG2, YG2, ZG2), and (XB2, YB2, ZB2).
[0112] The fundamental tristimulus values corresponding to the display device are the tristimulus values required when the display screen's color gamut is the target color gamut. The fundamental tristimulus values are calculated based on the display device's default tristimulus values and the color gamut tristimulus values. The formula for calculating the fundamental tristimulus values can be:
[0113] XR3=XR2*C, YR3=YR2*C, ZR3=ZR2*C
[0114] XG3=XG2*C, YG3=YG2*C, ZG3=ZG2*C
[0115] XB3=XB2*C, YB3=YR2*C, ZB3=ZR2*C
[0116] Where (XR3, YR3, ZR3), (XG3, YG3, ZG3), and (XB3, YB3, Z32) are the basic tristimulus values, C is the adjustment coefficient, C = YW / (YR2 + YG2 + YB2), and YW is the Y stimulus value data in the default tristimulus values.
[0117] The target tristimulus value is a tristimulus value applied to the display screen. Each pixel in the display screen corresponds to a target tristimulus value, which is determined based on its own pixel value and the reference tristimulus value corresponding to its display partition. Therefore, for each pixel, when obtaining the target tristimulus value, the display partition where the pixel is located is obtained, the partition reference tristimulus value corresponding to that partition is determined, and then the target tristimulus value corresponding to that pixel is determined based on the determined partition reference tristimulus value. In a specific implementation of this embodiment, the calculation formula for the target tristimulus value corresponding to each pixel can be:
[0118] XW1=XR3*(R(m,n) / M)^2.2+XG3*(G(m,n) / N)^2.2+XB3*(B(m,n) / L)^2.2
[0119] YW1=YR3*(R(m,n) / M)^2.2+YG3*(G(m,n) / N)^2.2+YB3*(B(m,n) / L)^2.2
[0120] ZW1=ZR3*(R(m,n) / M)^2.2+ZG3*(G(m,n) / N)^2.2+ZB3*(B(m,n) / L)^2.2
[0121] Wherein, XW1, YW1, and ZW1 are target tristimulus values, R(m,n) is the R primary color value of the pixel with pixel coordinates (m,n), G(m,n) is the G primary color value of the pixel with pixel coordinates (m,n), B(m,n) is the B primary color value of the pixel with pixel coordinates (m,n), M is the maximum value of the R primary color value, N is the maximum value of the G primary color value, L is the maximum value of the B primary color value, M=N=L, and XR3, XG3, and XB3 are the partition reference tristimulus values corresponding to the display partition where the pixel is located.
[0122] In one implementation of this embodiment, determining the image color compensation coefficient corresponding to each pixel based on the reference tristimulus value and the target tristimulus value corresponding to each pixel specifically includes:
[0123] Based on the reference tristimulus value and the target tristimulus value corresponding to each pixel, the target pixel value corresponding to each pixel is determined, wherein the target pixel value includes the target R primary color value, the target G primary color value and the target B primary color value;
[0124] Based on the target pixel value corresponding to each pixel and the pixel value corresponding to each pixel, determine the image color compensation coefficient corresponding to each pixel.
[0125] Specifically, the target pixel value is the pixel value corresponding to each pixel when the display image is displayed on the display device. The process of determining the target pixel value can be as follows: for each pixel, determine the display partition in which the pixel is located, and determine the target pixel value corresponding to the pixel based on the partition reference tristimulus value corresponding to the display partition and the target tristimulus value corresponding to the pixel. The formula for calculating the target pixel value can be:
[0126] RC(m,n)=-((-XW1*YG1*ZB1+XG1*YW1*ZB1+XW1*YB1*ZG1-XB1*YW1*ZG1-XG1*YB1*ZW1+XB1*YG1 *ZW1) / (XR1*YG1*ZB1-XG1*YR1*ZB1-XR1*YB1*ZG1+XB1*YR1*ZG1+XG1*YB1*ZR1-XB1*YG1*ZR1))
[0127] GC(m,n)=-(((XW1*YR1*ZB1-XR1*YW1*ZB1-XW1*YB1*ZR1+XB1*YW1*ZR1+XR1*YB1*ZW1-XB1*YR1* ZW1) / (XR1*YG1*ZB1-XG1*YR1*ZB1-XR1*YB1*ZG1+XB1*YR1*ZG1+XG1*YB1*ZR1-XB1*YG1*ZR1))
[0128] BC(m,n)=-((-XW1*YR1*ZG1+XR1*YW1*ZG1+XW1*YG1*ZR1-XG1*YW1*ZR1-XR1*YG1*ZW1+XG1*YR1 *ZW1) / (XR1*YG1*ZB1-XG1*YR1*ZB1-XR1*YB1*ZG1+XB1*YR1*ZG1+XG1*YB1*ZR1-XB1*YG1*ZR1))
[0129] Wherein, RC(m,n) represents the R primary color value of the pixel at pixel coordinate (m,n), GC(m,n) represents the G primary color value of the pixel at pixel coordinate (m,n), BC(m,n) represents the B primary color value of the pixel at pixel coordinate (m,n), XW1, YW1, and ZW1 represent the target tristimulus values, XR1, YR1, and ZR1 represent the reference tristimulus values corresponding to the R sub-pixel, XG1, YG1, and ZG1 represent the reference tristimulus values corresponding to the G sub-pixel, and XB1, YB1, and ZB1 represent the reference tristimulus values corresponding to the B sub-pixel.
[0130] S30. Adjust the color parameters of the display screen according to the backlight control coefficient and the image color compensation coefficient corresponding to each pixel.
[0131] Specifically, the color parameters include the backlight brightness of the display device and the RGB values of each pixel in the display image. The backlight control coefficient is used to adjust the backlight of the display device, and the image color compensation coefficient is used to adjust the pixel values of each pixel in the display image. This makes the colors of the display image on the display device similar to the colors of the image to be displayed, thereby improving the color fidelity of the display image.
[0132] In summary, this embodiment provides a color adjustment method, which includes: acquiring a backlight control coefficient corresponding to a display screen and transmittance data of a display device corresponding to the display screen; determining an image color compensation coefficient corresponding to each pixel based on the backlight control coefficient, transmittance data, and pixel values corresponding to each pixel in the display screen; and adjusting the color parameters of the display screen based on the backlight control coefficient and the image color compensation coefficient corresponding to each pixel. This application, after acquiring the display screen, acquires the backlight control coefficient, transmittance data, and image color compensation coefficient corresponding to each pixel, and adjusts the color of the display screen based on the transmittance data. This reduces the influence of overlapping transmittance areas of the display device on the color of the display screen, improves the color fidelity of the display screen, and thus avoids color distortion in the display screen.
[0133] Based on the above color adjustment method, this embodiment provides a color adjustment device, such as... Figure 5 As shown, the color adjustment device includes:
[0134] The acquisition module 100 is used to acquire the backlight control coefficient corresponding to the display screen and the transmittance data of the display device corresponding to the display screen;
[0135] The determining module 200 is used to determine the image color compensation coefficient corresponding to each pixel based on the backlight control coefficient, the transmittance data and the pixel value corresponding to each pixel in the display screen.
[0136] The adjustment module 300 is used to adjust the color parameters of the display screen according to the backlight control coefficient and the image color compensation coefficient corresponding to each pixel.
[0137] Based on the above color adjustment method, this embodiment provides a computer-readable storage medium storing one or more programs, which can be executed by one or more processors to implement the steps in the color adjustment method as described in the above embodiment.
[0138] Based on the above color adjustment method, this application also provides a terminal device, such as... Figure 6 As shown, it includes at least one processor 20; a display screen 21; and a memory 22, and may also include a communications interface 23 and a bus 24. The processor 20, display screen 21, memory 22, and communications interface 23 can communicate with each other via the bus 24. The display screen 21 is configured to display a preset user guide interface in the initial setup mode. The communications interface 23 can transmit information. The processor 20 can invoke logical instructions in the memory 22 to execute the methods described in the above embodiments.
[0139] Furthermore, the logical instructions in the aforementioned memory 22 can be implemented as software functional units and, when sold or used as independent products, can be stored in a computer-readable storage medium.
[0140] The memory 22, as a computer-readable storage medium, can be configured to store software programs, computer-executable programs, such as program instructions or modules corresponding to the methods in the embodiments of this disclosure. The processor 20 executes functional applications and data processing by running the software programs, instructions, or modules stored in the memory 22, thereby implementing the methods in the above embodiments.
[0141] The memory 22 may include a program storage area and a data storage area. The program storage area may store the operating system and application programs required for at least one function; the data storage area may store data created based on the use of the terminal device. Furthermore, the memory 22 may include high-speed random access memory (RAM) and non-volatile memory. Examples include various media capable of storing program code, such as USB flash drives, portable hard drives, read-only memory (ROM), random access memory (RAM), magnetic disks, or optical disks, as well as transient storage media.
[0142] Furthermore, the specific process of loading and executing multiple instructions in the aforementioned storage medium and mobile terminal has been described in detail in the above method, and will not be repeated here.
[0143] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of this application, and are not intended to limit them. Although this application has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that modifications can still be made to the technical solutions described in the foregoing embodiments, or equivalent substitutions can be made to some of the technical features. Such modifications or substitutions do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of this application.
Claims
1. A color adjustment method, characterized in that, The method includes: Obtain the backlight control coefficient corresponding to the displayed image, and the transmittance data of the display device corresponding to the displayed image; Based on the backlight control coefficient, the transmittance data, and the pixel values corresponding to each pixel in the display screen, determine the image color compensation coefficient corresponding to each pixel. The color parameters of the display screen are adjusted according to the backlight control coefficient and the image color compensation coefficient corresponding to each pixel. The backlight control coefficients include several backlight control coefficient groups, each of which corresponds to a display area of the display screen, and the display areas corresponding to each backlight control coefficient group are different from each other. The transmittance data includes an initial tristimulus value set and a default tristimulus value set. The initial tristimulus value set includes the initial tristimulus values of the target sub-pixel under R monochrome backlight, the initial tristimulus values of the target sub-pixel under G monochrome backlight, and the initial tristimulus values of the target sub-pixel under B monochrome backlight. The target sub-pixel includes R sub-pixels, G sub-pixels, and B sub-pixels. The default tristimulus value is the tristimulus value of the display device for displaying a white field image under white backlight. The step of determining the image color compensation coefficient corresponding to each pixel based on the backlight control coefficient, the transmittance data, and the pixel value corresponding to each pixel in the display image specifically includes: The reference tristimulus values of the display device are determined based on the backlight control coefficient and the initial tristimulus value set. Obtain the target color gamut corresponding to the display screen, and determine the target tristimulus value corresponding to each pixel based on the target color gamut, the default tristimulus value, and the pixel value corresponding to each pixel. Based on the reference tristimulus value and the target tristimulus value corresponding to each pixel, determine the image color compensation coefficient corresponding to each pixel. The step of obtaining the target color gamut corresponding to the display screen, and determining the target tristimulus value corresponding to each pixel based on the target color gamut, the default tristimulus value, and the pixel value corresponding to each pixel, specifically includes: Obtain the target color gamut corresponding to the display screen, and determine the color gamut tristimulus value corresponding to the target color gamut; Based on the color gamut tristimulus values and the default tristimulus values, the basic tristimulus values corresponding to the display device are determined; Based on the basic tristimulus values and the corresponding pixel values of each pixel, the target tristimulus values corresponding to each pixel are determined. The step of determining the image color compensation coefficient corresponding to each pixel based on the reference tristimulus value and the target tristimulus value corresponding to each pixel specifically includes: Based on the reference tristimulus value and the target tristimulus value corresponding to each pixel, the target pixel value corresponding to each pixel is determined, wherein the target pixel value includes the target R primary color value, the target G primary color value and the target B primary color value; Based on the target pixel value corresponding to each pixel and the pixel value corresponding to each pixel, determine the image color compensation coefficient corresponding to each pixel.
2. The color adjustment method according to claim 1, characterized in that, The specific components of obtaining the backlight control coefficient corresponding to the displayed image include: Obtain the partition data of the display device corresponding to the display screen, and determine several display areas corresponding to the display screen based on the partition data; For each of the several display areas, a set of backlight control coefficients corresponding to that display area is determined based on the pixel values corresponding to each pixel in that display area. The backlight control coefficients corresponding to the display screen are determined based on the backlight control coefficient groups corresponding to each of the several display areas.
3. The color adjustment method according to claim 2, characterized in that, The pixel values include R primary color values, B primary color values, and G primary color values; determining the backlight control coefficient group corresponding to the display area based on the pixel values corresponding to each pixel in the display area specifically includes: For each target primary color in the pixel value, obtain the maximum value and average value of the target primary color corresponding to each pixel in the display area under the target primary color, and determine the candidate backlight control coefficient of the display area under the target primary color based on the obtained maximum value and average value. The backlight control coefficient group consisting of the candidate backlight control coefficients corresponding to each target primary color is taken as the backlight control coefficient group corresponding to the display area.
4. A color adjustment device, used to implement the steps of the color adjustment method as described in any one of claims 1-3, characterized in that, The color adjustment device includes: The acquisition module is used to acquire the backlight control coefficient corresponding to the display screen, and the transmittance data of the display device corresponding to the display screen; The determining module is used to determine the image color compensation coefficient corresponding to each pixel based on the backlight control coefficient, the transmittance data, and the pixel value corresponding to each pixel in the display screen. The adjustment module is used to adjust the color parameters of the display screen according to the backlight control coefficient and the image color compensation coefficient corresponding to each pixel.
5. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores one or more programs, which can be executed by one or more processors to implement the steps in the color adjustment method as described in any one of claims 1-3.
6. A terminal device, characterized in that, include: Processor, memory, and communication bus; The memory stores a computer-readable program that can be executed by the processor; The communication bus enables communication between the processor and the memory; When the processor executes the computer-readable program, it implements the steps of the color adjustment method as described in any one of claims 1-3.