Ir drop compensation method and apparatus, terminal, and storage medium
By adjusting the color channel values of the OLED screen image frames through the processor and using the brightness attenuation coefficient and compression coefficient for IR drop compensation, the problem of inaccurate colors in OLED screens is solved, improving display accuracy and user experience.
Patent Information
- Application Number
- CN202210058529.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-01-19
- Publication Date
- 2025-11-21
- Estimated Expiration
- 2042-01-19
AI Technical Summary
OLED screens suffer from IR drop, which causes the same color to appear with different chromaticity and brightness in different displayed images, affecting the accuracy of color display.
The processor adjusts the original channel values of the color channels of each pixel in the image frame, and performs IR Drop compensation using the luminance attenuation coefficient change curve, compression coefficient, and gain coefficient. Specifically, this includes determining the average channel value, luminance attenuation coefficient, gain coefficient, and compression coefficient, and their calculation and application.
It achieves more refined IR Drop compensation, improves the accuracy of OLED screen color display and user experience, and expands the application scenarios of IR Drop compensation.
Smart Images

Figure CN116504180B_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The present disclosure relates to the technical field of terminals, and in particular, to an IR Drop compensation method and device, a terminal, and a storage medium. BACKGROUND
[0002] Currently, many terminals such as mobile phones use OLED (Organic Light-Emitting Diode) screens. OLED screens are composed of self-luminous materials, which causes the OLED screen to have an IR Drop (voltage drop).
[0003] In an OLED screen, different display pictures have different loads, which causes the same color to have different chroma and brightness in different display pictures, and affects the accuracy of color display of the OLED screen. SUMMARY
[0004] To overcome the problems in the related art, the present disclosure provides an IR Drop compensation method and device, a terminal, and a storage medium.
[0005] According to a first aspect of an embodiment of the present disclosure, an IR Drop compensation method is provided, applied to a terminal, and the method comprises:
[0006] determining original channel values of color channels of each pixel in an image frame; wherein the color channels include a red channel, a blue channel, and a green channel;
[0007] compensating the original channel values of the corresponding color channels of the corresponding pixels in the image frame according to the original channel values of the color channels of each pixel in the image frame and a luminance attenuation coefficient change curve of the corresponding color channel, to implement IR Drop compensation of the image frame, wherein the luminance attenuation coefficient change curve represents a corresponding relationship between a luminance attenuation coefficient of the corresponding color channel and a channel value.
[0008] Optionally, the compensating the original channel values of the corresponding color channels of the corresponding pixels in the image frame according to the original channel values of the color channels of each pixel in the image frame and the luminance attenuation coefficient change curve of the corresponding color channel comprises:
[0009] determining an average channel value of the corresponding color channel of the image frame according to the original channel values of the color channels of the plurality of pixels in the image frame;
[0010] determining an average luminance attenuation coefficient of the corresponding color channel according to the average channel value of the color channel and the luminance attenuation coefficient change curve of the corresponding color channel;
[0011] determining a gain coefficient of the corresponding color channel according to the average luminance attenuation coefficient of the color channel;
[0012] Compensate the original channel value of the corresponding color channel of the corresponding pixel in the image frame according to the original channel value of the color channel of each pixel in the image frame, and the compression coefficient and the gain coefficient of the corresponding color channel.
[0013] Optionally, the compensating the original channel value of the corresponding color channel of the corresponding pixel in the image frame according to the original channel value of the color channel of each pixel in the image frame, and the compression coefficient and the gain coefficient of the corresponding color channel comprises:
[0014] Determine the compensated target channel value corresponding to the original channel value according to the original channel value of the color channel of each pixel in the image frame, and the compression coefficient and the gain coefficient of the corresponding color channel.
[0015] Optionally, the determining the compensated target channel value corresponding to the original channel value according to the original channel value of the color channel of each pixel in the image frame, and the compression coefficient and the gain coefficient of the corresponding color channel comprises:
[0016] Multiply the original channel value by the compression coefficient of the corresponding color channel to determine an intermediate channel value;
[0017] Multiply the intermediate channel value by the gain coefficient of the corresponding color channel to determine the target channel value.
[0018] Optionally, the determining the gain coefficient of the corresponding color channel according to the average luminance attenuation coefficient of the color channel comprises:
[0019] Determine the gain coefficient according to the average luminance attenuation coefficient of the color channel and a first conversion formula, the first conversion formula comprising:
[0020] wherein Gain refers to the gain coefficient, and refers to the average luminance attenuation coefficient.
[0021] Optionally, the luminance attenuation coefficient variation curve is determined by:
[0022] Determine a plurality of normal luminance values and a plurality of attenuated luminance values corresponding to a plurality of channel values of the color channel, the plurality of attenuated luminance values, the plurality of normal luminance values and the plurality of channel values corresponding one by one respectively;
[0023] Determine a plurality of luminance attenuation coefficients of the corresponding color channel according to the plurality of normal luminance values and the plurality of attenuated luminance values of the color channel, the plurality of luminance attenuation coefficients corresponding one by one to the plurality of channel values;
[0024] According to the plurality of luminance attenuation coefficients of the color channels and the plurality of channel values, a luminance attenuation coefficient variation curve of a corresponding color channel is determined.
[0025] Optionally, the determining the plurality of normal luminance values and the plurality of attenuated luminance values corresponding to the plurality of channel values of the color channels comprises:
[0026] According to the entire display area of the terminal, the plurality of normal luminance values corresponding to the plurality of channel values of the color channels are determined.
[0027] According to the set display area of the terminal, the plurality of attenuated luminance values corresponding to the plurality of channel values of the color channels are determined; wherein the area of the set display area is less than or equal to 5% of the area of the entire display area.
[0028] Optionally, the compression coefficient is determined by:
[0029] According to the luminance attenuation coefficient variation curve of the color channel, a maximum luminance attenuation coefficient of the corresponding color channel is determined.
[0030] According to the maximum luminance attenuation coefficient of the color channel, the compression coefficient is determined.
[0031] Optionally, the determining the compression coefficient according to the maximum luminance attenuation coefficient of the color channel comprises:
[0032] According to the maximum luminance attenuation coefficient of the color channel and a second conversion formula, the compression coefficient is determined, the second conversion formula comprising:
[0033] Compress=1 / (1+λ max )^(1 / 2.2); wherein Compress indicates the compression coefficient, λ max indicates the maximum luminance attenuation coefficient.
[0034] According to a second aspect of the embodiments of the present disclosure, an IR Drop compensation device is provided, applied to a terminal, the device comprising a determination module, the determination module being configured to:
[0035] determine a channel value of a color channel of an image frame; wherein the color channel comprises a red channel, a blue channel and a green channel;
[0036] According to the channel value of the color channel of the image frame and a luminance attenuation coefficient variation curve of the corresponding color channel, the channel value of the corresponding color channel of the image frame is adjusted to achieve IR Drop compensation of the image frame, the luminance attenuation coefficient variation curve representing a corresponding relationship between the luminance attenuation coefficient and the channel value of the corresponding color channel.
[0037] According to a third aspect of the embodiments of the present disclosure, a terminal is provided, the terminal comprising:
[0038] a processor;
[0039] a memory for storing instructions executable by the processor;
[0040] wherein the processor is configured to perform the method according to the first aspect.
[0041] According to a fourth aspect of the embodiments of the present disclosure, a non-transitory computer-readable storage medium is provided, when instructions in the storage medium are executed by a processor of a terminal, the terminal is enabled to perform the method according to the first aspect.
[0042] The technical solutions provided by the embodiments of the present disclosure can have the following beneficial effects: in the method, the IR Drop compensation of the image frame is realized by adjusting the channel value of the color channel, since the method is based on the processor to realize the IR Drop compensation, and the processor is more powerful than the display driving chip, therefore, the method can realize more detailed IR Drop compensation, to improve the precision of the IR Drop compensation, and the method can be applied to more scenes requiring IR Drop compensation, to enrich the applicable scenes of the IR Drop compensation.
[0043] It should be understood that the above general description and the following detailed description are only exemplary and explanatory, and cannot limit the present disclosure. BRIEF DESCRIPTION OF DRAWINGS
[0044] The accompanying drawings, which are incorporated into and form part of the specification, illustrate embodiments consistent with the present disclosure and, together with the specification, serve to explain the principles of the present disclosure.
[0045] Figure 1 is a flowchart of an IR Drop compensation method according to an exemplary embodiment.
[0046] Figure 2 is a block diagram of an IR Drop compensation device according to an exemplary embodiment.
[0047] Figure 3 is a block diagram of a terminal according to an exemplary embodiment. DETAILED DESCRIPTION
[0048] The exemplary embodiments will be described in detail herein with reference to the attached drawings. The following description is made with reference to the accompanying drawings in which like reference numerals refer to like elements, unless the context of use indicates otherwise. The following description of exemplary embodiments is not representative of all embodiments consistent with the present disclosure. Rather, they are merely examples of apparatuses and methods consistent with some aspects of the present disclosure as detailed in the appended claims.
[0049] In the related art, compensation is generally performed by a DDIC (display driver chip) according to the relationship between the current and the degree of color change. However, the compensation accuracy of this method is poor.
[0050] The present disclosure provides an IR Drop compensation method applied to a terminal. In the method, the IR Drop compensation of an image frame is achieved by adjusting the channel value of a color channel. Since the method is based on a processor to achieve the IR Drop compensation, the processor is more powerful than the display driver chip, and thus the method can achieve more detailed IR Drop compensation to improve the accuracy of the IR Drop compensation. In addition, the method can be applied to more scenarios that require IR Drop compensation to enrich the applicable scenarios of IR Drop compensation.
[0051] In one exemplary embodiment, an IR Drop compensation method is provided and applied to a terminal. As shown in Figure 1 The method includes:
[0052] S110, determining the original channel value of the color channel of each pixel in the image frame; wherein the color channel includes a red channel, a blue channel and a green channel;
[0053] S120, compensating the original channel value of the corresponding color channel of the corresponding pixel in the image frame according to the original channel value of the color channel of each pixel in the image frame and the luminance attenuation coefficient change curve of the corresponding color channel, to achieve the IR Drop compensation of the image frame, wherein the luminance attenuation coefficient change curve represents the corresponding relationship between the luminance attenuation coefficient and the channel value of the corresponding color channel.
[0054] In step S110, the original channel value of the color channel of each pixel in the image frame can be determined by a processor. The processor can be an application processor (AP) or other processors, which are not limited herein. The color channel includes a red (R) channel, a green (G) channel and a blue (B) channel.
[0055] For example, the original channel value of each color channel of each pixel in the image frame can be determined based on the 3D_LUT. The application processor can obtain the 3D_LUT corresponding to the image frame to be processed. The 3D_LUT is a 3-dimensional lookup table corresponding to the red channel, the green channel and the blue channel, and each channel value group in the 3D_LUT corresponds to a pixel in the image frame. That is, the R value (i.e., the original channel value of the red channel), the G value (i.e., the original channel value of the green channel) and the B value (i.e., the original channel value of the blue channel) corresponding to each pixel in the image frame can be found in the 3D_LUT.
[0056] In step S120, the luminance attenuation coefficient change curve of the color channel can be preset in the terminal. The luminance attenuation coefficient change curve represents the corresponding relationship between the luminance attenuation coefficient of the corresponding color channel and the channel value. For example, the luminance attenuation coefficient change curve of the red channel represents the corresponding relationship between the luminance attenuation coefficient of the red channel and the channel value of the red channel.
[0057] The luminance attenuation coefficient change curve is determined according to the actual situation of the terminal. The luminance attenuation coefficient change curve can be set before the terminal is shipped, or can be set after the terminal is shipped, which is not limited. In addition, after the luminance attenuation coefficient change curve is set, it can be modified later to better meet the needs of users.
[0058] In this step, the processor can adjust the original channel value of each color channel (such as the red channel, the blue channel and the green channel) of each pixel in the image frame based on the luminance attenuation coefficient change curve, so as to realize the IR Drop compensation of the image frame and improve the color presented by the image frame. Then, based on the IR Drop compensation of all image frames, the IR Drop compensation of the display screen of the terminal can be realized to improve the color presented by the display screen, improve the accuracy of color display of the display screen, and improve the user experience. The processor can be an application processor (AP), or can be another processor, which is not limited.
[0059] In this method, the IR Drop compensation of the image frame is realized by adjusting the original channel value of each color channel of each pixel. Since this method realizes the IR Drop compensation based on the processor, and the performance of the processor is stronger than that of the display driving chip, this method can realize more detailed IR Drop compensation to improve the accuracy of IR Drop compensation. In addition, the traditional DDIC realizes IR Drop compensation based on current, while this method realizes IR Drop compensation based on channel value, which can also improve the accuracy of IR Drop compensation.
[0060] The method can realize IR Drop compensation of the display screen of the terminal by compensating the IR Drop of each image frame, so as to improve the color presented by the display screen, improve the accuracy of color display of the display screen, and improve the user experience.
[0061] In an example embodiment, an IR Drop compensation method applied to a terminal is provided. In the method, compensating the original channel value of the corresponding color channel of the corresponding pixel in the image frame according to the original channel value of each pixel color channel in the image frame and the luminance attenuation coefficient change curve of the corresponding color channel can include:
[0062] S210, determining the average channel value of the color channel of the plurality of pixels in the image frame;
[0063] S220, determining the average luminance attenuation coefficient of the corresponding color channel according to the average channel value of the color channel and the luminance attenuation coefficient change curve of the corresponding color channel;
[0064] S230, determining the gain coefficient of the corresponding color channel according to the average luminance attenuation coefficient of the color channel;
[0065] S240, compensating the original channel value of the corresponding color channel of the corresponding pixel in the image frame according to the original channel value of each pixel color channel in the image frame and the compression coefficient and gain coefficient of the corresponding color channel.
[0066] In step S210, the plurality of pixels can be all the pixels of the image frame or part of the pixels, which is not limited. Generally, the plurality of pixels are all the pixels of the image frame, so that the determined average channel value can more accurately reflect the average value of the original channel value of the corresponding color channel of the image frame. In this step, the average channel value of the color channel of the image frame can be determined by a processor, which can be an application processor (AP) or other processors, which is not limited here.
[0067] For example, the color channel includes a red (R) channel, a green (G) channel and a blue (B) channel, and the average channel value of the color channel includes the average channel value of the red channel, the average channel value of the green channel and the average channel value of the blue channel.
[0068] For example, the application processor can perform histogram statistics on the display content of each frame to obtain the histogram corresponding to the display content of each frame. Based on the histogram, the number of pixels corresponding to each channel value of each color channel can be determined, and then the average channel value of each color channel can be calculated. Wherein, the display content of each frame can be denoted as an image frame.
[0069] Example 1,
[0070] The terminal's display is a 10-bit display. The application processor performs histogram analysis on the image frames to obtain a histogram. Based on the histogram, the application processor can determine that the image frame includes M pixels, where N... i R i Pixel, where i is the channel value of the R channel, that is, R i A pixel refers to a pixel whose R channel value is i. Since the display screen is a 10-bit display, there are 1024 channel values for the R channel in an image frame, i.e., i = 0, 1, 2...1023.
[0071] Wherein, the value of Ni ranges from 0 to M, and N0, N1, N2...N 1023 The sum of these numbers represents the total number of pixels in the image frame, which means M equals N0, N1, N2...N. 1023 The sum of.
[0072] In this example, the application processor can determine the average channel value corresponding to the red (R) channel of this image frame. It can be calculated using the following formula:
[0073]
[0074] Similarly, the average channel value corresponding to the green (G) channel in this image frame can be determined. and the average channel value corresponding to the blue (B) channel. Thus, the application processor can determine the average channel value of the color channels of the image frame.
[0075] It should be noted that, in addition to the methods described above for determining the average channel values of the color channels in an image frame, other methods can also be used to determine the average channel values of the color channels, and there is no limitation on this. Furthermore, color channels can include not only the red, green, and blue channels mentioned above, but also other color channels, and there is no limitation on this.
[0076] In step S220, the brightness attenuation coefficient variation curve of the color channel can be preset on the terminal. The brightness attenuation coefficient variation curve represents the correspondence between the brightness attenuation coefficient of the corresponding color channel and its channel value. For example, the brightness attenuation coefficient variation curve of the red channel represents the correspondence between the brightness attenuation coefficient of the red channel and its channel value.
[0077] The luminance attenuation coefficient change curve is determined according to the actual situation of the terminal. The luminance attenuation coefficient change curve can be set before the terminal is shipped or set after the terminal is shipped, and no limitation is made in this regard. In addition, after the luminance attenuation coefficient change curve is set, it can be modified later to better meet the needs of users.
[0078] In this step, after the average channel value of the color channel is determined, the luminance attenuation coefficient corresponding to the average channel value can be found from the luminance attenuation coefficient change curve of the corresponding color channel, and then the found luminance attenuation coefficient is determined as the average luminance attenuation coefficient corresponding to the color channel.
[0079] For example, after the average channel value of the red channel (which can be denoted as average R value) is determined, the luminance attenuation coefficient corresponding to the average R value can be found from the luminance attenuation coefficient change curve of the red channel, and then the found luminance attenuation coefficient is determined as the average luminance attenuation coefficient corresponding to the red channel.
[0080] In step S230, the terminal can pre-average set the first conversion formula of the luminance attenuation coefficient and the gain coefficient. The first conversion formula can be set before the terminal is shipped or set after the terminal is shipped, and no limitation is made in this regard. In addition, after the first conversion formula is set, it can be modified later to better meet the needs of users. The first conversion formula can be determined according to the actual situation of the display screen of the terminal and the actual needs of users, and no limitation is made in this regard.
[0081] Example 2,
[0082] The terminal can set the following first conversion formula:
[0083]
[0084] wherein Gain refers to the gain coefficient, and average attenuation coefficient refers to the average luminance attenuation coefficient.
[0085] In this example, the application processor determines that the average luminance attenuation coefficient of the red channel is 1%, and based on the above first conversion formula, the gain coefficient of the red channel can be determined as 1.0045.
[0086] In step S240, the compression coefficient of the color channel can be pre-set in the terminal. The compression coefficient can be set before the terminal is shipped or set after the terminal is shipped, and no limitation is made in this regard. In addition, after the compression coefficient is set, it can be modified later to better meet the needs of users. The compression coefficient can be determined according to the actual situation of the display screen of the terminal and the actual needs of users, and no limitation is made in this regard.
[0087] In addition, the compression coefficient of the color channel can also be determined according to the luminance attenuation coefficient variation curve, that is, the terminal presets the luminance attenuation coefficient variation curve of the color channel, and then determines the compression coefficient of the corresponding color channel based on the luminance attenuation coefficient variation curve.
[0088] In the determination of the compression coefficient of the corresponding color channel according to the luminance attenuation coefficient variation curve, the maximum luminance attenuation coefficient of the color channel can be determined first. Generally, the larger the channel value is, the larger the corresponding luminance attenuation coefficient is. Therefore, the maximum luminance attenuation coefficient can be the luminance attenuation coefficient corresponding to the maximum channel value of the color channel in the luminance attenuation coefficient variation curve, that is, the maximum luminance attenuation coefficient in the luminance attenuation coefficient variation curve. It should be noted that the maximum channel value is related to the type of the display screen of the terminal, for example, when the display screen is a 10-bit display screen, the maximum channel value can be 1023.
[0089] After the maximum luminance attenuation coefficient is determined, the compression coefficient of the corresponding color channel can be determined according to the second conversion formula of the maximum luminance attenuation coefficient and the compression coefficient.
[0090] The setting mode of the second conversion formula can refer to the first conversion formula. The second conversion formula can be set before the terminal is shipped or set after the terminal is shipped, which is not limited. In addition, after the second conversion formula is set, it can also be modified later to better meet the needs of users. The second conversion formula can be determined according to the actual situation of the display screen of the terminal and the actual needs of users, which is not limited.
[0091] Example 3,
[0092] The terminal can set the following second conversion formula:
[0093] Compress=1 / (1+λ max )^(1 / 2.2);
[0094] Wherein, Compress refers to the compression coefficient, λ max refers to the maximum luminance attenuation coefficient.
[0095] In this example, the application processor determines that the maximum luminance attenuation coefficient of the red channel is 10%, and based on the above-mentioned first conversion formula, the gain coefficient of the red channel can be determined as 1.044.
[0096] In this step, after the gain coefficient and the compression coefficient of the color channel are determined, the original channel value of the corresponding color channel of each pixel in the image frame can be adjusted based on the gain coefficient and the compression coefficient, so as to realize the IR Drop compensation of the corresponding color channel. Based on the adjustment of the original channel values of all color channels (such as red channel, blue channel and green channel) of the image frame, the IR Drop compensation of the image frame can be realized to improve the color presented by the image frame. Then, based on the IR Drop compensation of all image frames, the IR Drop compensation of the display screen of the terminal can be realized to improve the color presented by the display screen, improve the accuracy of color display of the display screen, and improve the user experience.
[0097] In this method, the IR Drop compensation of the image frame is realized by adjusting the original channel value of each color channel of each pixel in the image frame. Since this method realizes the IR Drop compensation based on the processor, and the performance of the processor is more powerful than that of the display driving chip, this method can realize more detailed IR Drop compensation to improve the accuracy of IR Drop compensation. In addition, the traditional DDIC realizes IR Drop compensation based on current, while this method realizes IR Drop compensation based on channel value, which can also improve the accuracy of IR Drop compensation.
[0098] By IR Drop compensation of each image frame, the IR Drop compensation of the display screen of the terminal can be realized to improve the color presented by the display screen, improve the accuracy of color display of the display screen, and improve the user experience.
[0099] In one example embodiment, an IR Drop compensation method applied to a terminal is provided. In this method, according to the original channel value of the color channel of each pixel in the image frame, and the compression coefficient and the gain coefficient of the corresponding color channel, the original channel value of the corresponding color channel of the corresponding pixel in the image frame is compensated, which can include:
[0100] S310, according to the original channel value of the color channel of each pixel point in the image frame, and the compression coefficient and the gain coefficient of the corresponding color channel, the original channel value corresponding to the target channel value after compensation is determined.
[0101] The terminal can first acquire the original channel value of each color channel corresponding to each pixel in the image frame, and the compression coefficient and gain coefficient of each color channel, then process the original channel value of the corresponding color channel based on the compression coefficient and gain coefficient of each color channel, so as to obtain the target channel value of the corresponding color channel of the image frame, and the target channel value is the compensated channel value, and the image frame can display the color corresponding to the color channel of the pixel point with the target channel value.
[0102] Example 1,
[0103] The color channels include a red channel, a green channel, and a blue channel. The channel value of the red channel of the first pixel of the image frame is denoted as R 1 , the channel value of the green channel is denoted as G 1 , and the channel value of the blue channel is denoted as B 1 . The compression coefficient of the red channel is denoted as C R , and the gain coefficient is denoted as G R . The compression coefficient of the green channel is denoted as C G , and the gain coefficient is denoted as G G . The compression coefficient of the blue channel is denoted as C B , and the gain coefficient is denoted as G B .
[0104] In this example, the channel value R R is adjusted based on the compression coefficient C R and the gain coefficient G 1 to obtain the target channel value R' 1 . The channel value G G is adjusted based on the compression coefficient C G and the gain coefficient G 1 to obtain the target channel value G' 1 . The channel value B B is adjusted based on the compression coefficient C B and the gain coefficient G 1 to obtain the target channel value B' 1 . Then the first pixel of the image frame is displayed with the target channel value R' 1 , the target channel value G' 1 , and the target channel value B' 1 to achieve IR Drop compensation for the first pixel of the image frame.
[0105] The compensation method of the remaining pixels of the image frame can refer to the compensation of the first pixel described above, so as to achieve IR Drop compensation for the entire image frame, and further achieve IR Drop compensation for the color display of the display screen of the terminal, and improve the color display effect.
[0106] In step S310, the original channel value can be multiplied by the compression coefficient of the corresponding color channel to determine an intermediate channel value, and then the intermediate channel value is multiplied by the gain coefficient of the corresponding color channel to determine the target channel value. Alternatively, the original channel value can be multiplied by the gain coefficient of the corresponding color channel to determine an intermediate channel value, and then the intermediate channel value is multiplied by the compression coefficient of the corresponding color channel to determine the target channel value.
[0107] Example 2,
[0108] The terminal pre-sets a luminance attenuation coefficient change curve, a first conversion formula and a second conversion formula.
[0109] The first conversion formula can be:
[0110]
[0111] wherein Gain refers to a gain coefficient, and Lmean refers to an average luminance attenuation coefficient.
[0112] The second conversion formula can be:
[0113] Compress = 1 / (1+λ max )^(1 / 2.2);
[0114] wherein Compress refers to a compression coefficient, and λ max refers to a maximum luminance attenuation coefficient.
[0115] In this example, the maximum luminance attenuation coefficient set [10.00%, 5.55%, 8.57%] can be determined according to the luminance attenuation coefficient change curve, wherein 10.00% is the maximum luminance attenuation coefficient of the red channel, 5.55% is the maximum luminance attenuation coefficient of the green channel, and 8.57% is the maximum luminance attenuation coefficient of the blue channel. Then, based on the above maximum luminance attenuation coefficient set and the second conversion formula, the compression coefficient set [1 / 1.044, 1 / 1.025, 1 / 1.038] is determined, wherein 1 / 1.044 is the compression coefficient of the red channel, 1 / 1.025 is the compression coefficient of the green channel, and 1 / 1.038 is the compression coefficient of the blue channel.
[0116] In this example, the average channel value group of the image frame to be processed is [50, 200, 100], where 50 is the average channel value of the red channel, 200 is the average channel value of the green channel, and 100 is the average channel value of the blue channel. Based on the average channel value group [50, 200, 100] and the luminance attenuation coefficient variation curve, the average luminance attenuation coefficient group [1%, 4%, 3%] is determined, where 1% is the average luminance attenuation coefficient of the red channel, 5.55% is the average luminance attenuation coefficient of the green channel, and 8.57% is the average luminance attenuation coefficient of the blue channel. Then, according to the average luminance attenuation coefficient group [1%, 4%, 3%] and the first conversion formula, the compression coefficient group [1.0045, 1.0200, 1.0135] can be determined, where 1.0045 is the gain coefficient of the red channel, 1.0200 is the gain coefficient of the green channel, and 1.0135 is the gain coefficient of the blue channel.
[0117] In this example, the 3D_LUT corresponding to the image frame to be processed can be obtained. The 3D_LUT is a 3-dimensional lookup table corresponding to the red channel, the green channel, and the blue channel, and each channel value group in the 3D_LUT corresponds to a pixel in the image frame. That is, the R value (i.e., the original channel value of the red channel), the G value (i.e., the original channel value of the green channel), and the B value (i.e., the original channel value of the blue channel) corresponding to each pixel in the image frame can be found in the 3D_LUT. That is, the color presented by each pixel in the image frame can be determined by the R value, the G value, and the B value found in the 3D_LUT.
[0118] In this example, each original channel value group [R j , G j , B j ] in the 3D_LUT is first left-multiplied by the compression coefficient group [1 / 1.044, 1 / 1.025, 1 / 1.038], and then left-multiplied by the gain coefficient group [1.0045, 1.0200, 1.0135], to obtain the target channel value group [(1.0045 / 1.044)R j , (1.0200 / 1.025)G j , (1.0135 / 1.038)B j ]. Where j represents the jth channel value group, R j represents the red channel value in the jth channel value group, G j represents the green channel value in the jth channel value group, B j represents the blue channel value in the jth channel value group, (1.0045 / 1.044)R j represents the target channel value corresponding to the channel value R j , (1.0200 / 1.025)G j represents the target channel value corresponding to the channel value Gj corresponding target channel value, (1.0135 / 1.038)B j refers to a channel value B j corresponding target channel value, then using the target channel value group [(1.0045 / 1.044)R j , (1.0200 / 1.025)G j , (1.0135 / 1.038)B j ] to replace the original channel value group [R j , G j , B j ] in the 3D_LUT, thereby obtaining a new 3D_LUT, and thus realizing IR Drop compensation for the image frame, thereby improving the color display effect of the display screen of the terminal.
[0119] In the method, the channel value of each pixel in the image frame is adjusted in a left multiplication manner based on the compression coefficient and the gain coefficient to realize IR Drop compensation for the image frame, which can improve the accuracy of IR Drop compensation and enrich the application scenarios of IR Drop compensation. In addition, IR Drop compensation is performed on each image frame based on the method, thereby realizing IR Drop compensation for the display screen of the terminal, improving the color presented by the display screen, improving the accuracy of color display of the display screen, and improving the user experience.
[0120] In one example embodiment, an IR Drop compensation method is provided and applied to a terminal. In the method, the luminance attenuation coefficient change curve can be determined in the following manner:
[0121] S410, a plurality of normal luminance values and a plurality of attenuation luminance values corresponding to a plurality of channel values of a color channel are determined, and the plurality of attenuation luminance values, the plurality of normal luminance values, and the plurality of channel values are one-to-one corresponding;
[0122] S420, a plurality of luminance attenuation coefficients of the corresponding color channel are determined according to the plurality of normal luminance values and the plurality of attenuation luminance values of the color channel, and the plurality of luminance attenuation coefficients are one-to-one corresponding to the plurality of channel values;
[0123] S430, a luminance attenuation coefficient change curve of the corresponding color channel is determined according to the plurality of luminance attenuation coefficients and the plurality of channel values of the color channel.
[0124] In step S410, the plurality of channel values refer to a plurality of different channel values. The normal brightness value refers to a brightness value not affected by the IR Drop, and the decay brightness value refers to a brightness value affected by the IR Drop. The normal brightness value and the decay brightness value can be obtained by testing the terminal, and the specific testing method is not limited. Moreover, the normal brightness value and the decay brightness value can also be obtained by other methods, which are not limited.
[0125] The display area is larger, the greater the impact of the IR Drop. Therefore, the brightness value of the entire display area of the display screen of the terminal can be considered as the brightness value most affected by the IR Drop, and then this brightness value can be determined as the decay brightness value. And the brightness value of the set display area of the display screen of the terminal can be considered as the brightness value not affected by the IR Drop, and then this brightness value can be determined as the normal brightness value. The set display area can be determined according to the actual situation, which is not limited here.
[0126] For example, the set display area can be less than or equal to 5% of the entire display area of the display screen.
[0127] In this step, the channel values of the green channel and the blue channel of the display screen of the terminal can be controlled to be zero, and then the display conditions of different channel values of the red channel are tested respectively to determine the brightness value of the entire display area corresponding to the channel value i, and this brightness value is determined as the decay brightness value corresponding to the channel value i. And the brightness value of the 5% display area corresponding to the channel value i is determined, and this brightness value is determined as the normal brightness value corresponding to the channel value i.
[0128] It should be noted that the channel value i can include all channel values from 0 to 1023, or can include part of the above-mentioned all channel values, which are not limited.
[0129] In step S420, the brightness decay coefficient can be determined by setting the formula. For example, the normal brightness value corresponding to the channel value i is The decay brightness value corresponding to the channel value i is Then the above-mentioned normal brightness value And the decay brightness value Is substituted into the set formula, thereby determining the brightness decay coefficient λ corresponding to the channel value i i .
[0130] The setting manner of the setting formula can refer to the first conversion formula. The setting formula can be set before the terminal is shipped or set after the terminal is shipped, which is not limited. In addition, the setting formula can be modified after being set to better meet the needs of users. The setting formula can be determined according to the actual situation of the display screen of the terminal and the actual needs of users, which is not limited.
[0131] The setting formula can be:
[0132]
[0133] According to the setting formula, the luminance attenuation coefficient can represent the attenuation degree of the corresponding channel value of the corresponding color channel.
[0134] Example 1,
[0135] The display screen is a 10-bit display screen.
[0136] The attenuation luminance value corresponding to the channel value 1023 of the red channel is 110 nit, the normal luminance value corresponding to the channel value 1023 of the red channel is 100 nit, and according to the setting formula The luminance attenuation coefficient λ 1023 =(110-100) / 100=10.00%, which is the luminance attenuation coefficient λ 1023 of the red channel.
[0137] In step S430, the luminance attenuation coefficient change curve of the color channel can be fitted according to the plurality of different channel values and the corresponding luminance attenuation coefficients.
[0138] According to the same manner, the luminance attenuation coefficient change curve of each color channel can be determined. Thus, the luminance attenuation coefficient change curve of the red channel, the luminance attenuation coefficient change curve of the green channel, and the luminance attenuation coefficient change curve of the blue channel can be determined.
[0139] It should be noted that the plurality of different channel values can include all channel values from 0 to 1023, or can include part of the above channel values, which is not limited.
[0140] In the method, the luminance attenuation coefficients corresponding to the channel values of the corresponding color channels are determined based on the luminance values of all display regions and the set display region, and then the luminance attenuation coefficient change curve of the color channel is determined according to the plurality of different channel values of the same color channel and the corresponding luminance attenuation coefficients. The method is simple and reliable, and is convenient for determining the luminance attenuation coefficient change curve.
[0141] In the method, based on the luminance attenuation coefficient change curve and the channel values of the color channels of the image frame, the compression coefficient and the gain coefficient of each color channel are determined, and then the channel values of the color channels of each pixel in the image frame are adjusted based on the compression coefficient and the gain coefficient, so as to realize the IR Drop compensation of the image frame, which can improve the accuracy of the IR Drop compensation and enrich the application scenarios of the IR Drop compensation. In addition, the IR Drop compensation is performed on each image frame based on the method, so as to realize the IR Drop compensation of the display screen of the terminal, improve the color presented by the display screen, improve the accuracy of color display of the display screen, and improve the user experience.
[0142] In an example embodiment, an IR Drop compensation device is provided, which is applied to a terminal. The device is used to implement the above method. For example, referring to FIG. 1, the device can include a determination module 101. In the process of implementing the above method, the determination module 101 is configured to: Figure 2
[0143] determine the original channel values of the color channels of each pixel in the image frame; wherein the color channels include a red channel, a blue channel and a green channel;
[0144] compensate the original channel values of the corresponding color channels of the corresponding pixels in the image frame according to the original channel values of the color channels of each pixel in the image frame and the luminance attenuation coefficient change curve of the corresponding color channel, so as to realize the IR Drop compensation of the image frame, wherein the luminance attenuation coefficient change curve represents the corresponding relationship between the luminance attenuation coefficient of the corresponding color channel and the channel value.
[0145] In an example embodiment, an IR Drop compensation device is provided, which is applied to a terminal. In the device, referring to FIG. 1, the determination module 101 is configured to: Figure 2
[0146] determine the average channel values of the corresponding color channels of the image frame according to the original channel values of the color channels of the plurality of pixels in the image frame;
[0147] determine the average luminance attenuation coefficient of the corresponding color channel according to the average channel value of the color channel and the luminance attenuation coefficient change curve of the corresponding color channel;
[0148] determine the gain coefficient of the corresponding color channel according to the average luminance attenuation coefficient of the color channel;
[0149] compensate the original channel values of the corresponding color channels of the corresponding pixels in the image frame according to the original channel values of the color channels of each pixel in the image frame and the compression coefficient and the gain coefficient of the corresponding color channel.
[0150] In an example embodiment, an IR Drop compensation apparatus is provided for a terminal. In the apparatus, a determination module 101 is configured to: Figure 2
[0151] According to the original channel value of each pixel in the color channel of the image frame, and the compression coefficient and the gain coefficient of the corresponding color channel, the target channel value corresponding to the original channel value is determined.
[0152] In an example embodiment, an IR Drop compensation apparatus is provided for a terminal. In the apparatus, a determination module 101 is configured to: Figure 2
[0153] The original channel value is multiplied by the compression coefficient of the corresponding color channel to determine an intermediate channel value.
[0154] The intermediate channel value is multiplied by the gain coefficient of the corresponding color channel to determine the target channel value.
[0155] In an example embodiment, an IR Drop compensation apparatus is provided for a terminal. In the apparatus, a determination module 101 is configured to: Figure 2
[0156] According to the brightness attenuation coefficient change curve of the color channel, the maximum brightness attenuation coefficient of the corresponding color channel is determined.
[0157] According to the maximum brightness attenuation coefficient of the color channel, the compression coefficient is determined.
[0158] In an example embodiment, an IR Drop compensation apparatus is provided for a terminal. In the apparatus, a determination module 101 is configured to: Figure 2
[0159] According to the maximum brightness attenuation coefficient of the color channel and a second conversion formula, the compression coefficient is determined, and the second conversion formula includes:
[0160] Compress = 1 / (1+λ max )^(1 / 2.2); wherein Compress refers to the compression coefficient, λ max refers to the maximum brightness attenuation coefficient.
[0161] In an example embodiment, an IR Drop compensation apparatus is provided for a terminal. In the apparatus, a determination module 101 is configured to: Figure 2
[0162] According to the average brightness attenuation coefficient of the color channel and a first conversion formula, the gain coefficient is determined, and the first conversion formula includes:
[0163] wherein Gain refers to a gain coefficient, and λ refers to an average luminance decay coefficient.
[0164] In one example embodiment, a terminal, such as a mobile phone, a laptop, a tablet, a wearable device, and the like, is provided.
[0165] Reference Figure 3 As shown, the terminal 400 can include one or more of the following components: a processing component 402, a memory 404, a power supply component 406, a multimedia component 408, an audio component 410, an input / output (I / O) interface 412, a sensor component 414, and a communication component 416.
[0166] The processing component 402 usually controls overall operations of the terminal 400, such as operations associated with displaying, making phone calls, data communications, camera operations, and recording operations. The processing component 402 can include one or more processors 420 to execute instructions to complete all or part of steps of the above methods. In addition, the processing component 402 can include one or more modules to facilitate interaction between the processing component 402 and other components. For example, the processing component 402 can include a multimedia module to facilitate the interaction between the multimedia component 408 and the processing component 402.
[0167] The memory 404 is configured to store various types of data to support operations of the terminal 400. Examples of these data include instructions for any application or method operating on the terminal 400, contact data, phonebook data, messages, pictures, videos, and the like. The memory 404 can be implemented by any type of volatile or non-volatile storage terminals or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic storage, flash memory, magnetic disk or optical disk.
[0168] The power supply component 406 provides power for the various components of the terminal 400. The power supply component 406 can include a power supply management system, one or more power supplies, and other components associated with generating, managing and distributing power for the terminal 400.
[0169] The multimedia component 408 includes a screen providing an output interface between the terminal 400 and a user. In some embodiments, the screen can include a liquid crystal display (LCD) and a touch panel (TP). If the screen includes a touch panel, the screen can be implemented as a touch screen to receive an input signal from a user. The touch panel includes one or more touch sensors for sensing a touch, a slide and a gesture on the touch panel. The touch sensor can not only sense a boundary of a touching or a sliding action, but also detect duration and intensity of the touch or slide action. In some embodiments, the multimedia component 408 includes a front camera module and / or a rear camera module. The front camera module and / or the rear camera module can receive external multimedia data when the terminal 400 is in an operation mode, such as a photographing mode or a video mode. Each of the front camera module and the rear camera module can be a fixed optical lens system or have a focal length and optical zoom ability.
[0170] The audio component 410 is configured to output and / or input audio signals. For example, the audio component 410 includes a microphone (MIC) configured to receive external audio signals when the terminal 400 is in an operation mode, such as a call mode, a recording mode and a voice recognition mode. The received audio signals can be further stored in the memory 404 or transmitted via the communication component 416. In some embodiments, the audio component 410 further includes a speaker for outputting audio signals.
[0171] The I / O interface 412 provides an interface between the processing component 402 and peripheral interface modules, which can be a keypad, a click wheel, buttons and the like. The buttons can include, but are not limited to, a home button, a volume button, a start button and a lock button.
[0172] The sensor component 414 includes one or more sensors for providing various status assessments for the terminal 400. For example, the sensor component 414 can detect an open / closed position of the terminal 400, relative positioning of components, such as a display and a keypad of the terminal 400, a change in position of the terminal 400 or a component of the terminal 400, presence or absence of user contact with the terminal 400, an orientation or acceleration / deceleration of the terminal 400, and a temperature change of the terminal 400. The sensor component 414 can include a proximity sensor configured to detect presence of a nearby object without any physical touch. The sensor component 414 can further include a light sensor such as a CMOS or CCD image sensor for use in an imaging application. In some embodiments, the sensor component 414 can further include an acceleration sensor, a gyroscope sensor, a magnetic sensor, a pressure sensor or a temperature sensor.
[0173] The communication component 416 is configured to facilitate wired or wireless communication between the terminal 400 and another terminal. The terminal 700 can access a wireless network based on a communication standard, such as WiFi, 2G, 3G, 4G, 5G, or a combination thereof. In an exemplary embodiment, the communication component 416 receives a broadcast signal or broadcast related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 416 further includes a Near Field Communication (NFC) module to facilitate short-range communication. For example, the NFC module can be implemented based on Radio Frequency Identification (RFID) technology, infrared data association (IrDA) technology, ultra-wideband (UWB) technology, Bluetooth (BT) technology and other technology.
[0174] In an exemplary embodiment, the terminal 400 can be implemented with one or more application-specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing terminals (DSPDs), programmable logic devices (PLDs), field programmable gate arrays (FPGAs), controllers, microcontrollers, microprocessors, or other electronic elements for performing the above-described methods.
[0175] In an exemplary embodiment, a non-transitory computer-readable storage medium including instructions, such as the memory 404 including instructions, is also provided, which can be executed by the processor 420 of the terminal 400 to perform the above-described methods. For example, the non-transitory computer-readable storage medium can be a ROM, a random access memory (RAM), a CD-ROM, a magnetic tape, a floppy disc, and an optical data storage terminal, etc. When the instructions in the storage medium are executed by the processor of the terminal, the terminal is enabled to perform the methods shown in the above-described embodiments.
[0176] Other embodiments of the present disclosure will be readily apparent to those skilled in the art upon considering the specification and practice of the disclosed application. The present disclosure is intended to cover any variations, uses, or adaptations of the application following the general principles thereof and including such departures from the present disclosure that come within known, accepted, or customary practice in the art to which the present disclosure pertains. The specification and examples are to be regarded as exemplary only, with the true scope and spirit of the present disclosure being indicated by the following claims.
[0177] Other embodiments of the present disclosure will be readily apparent to those skilled in the art upon considering the specification and practice of the disclosed application. The present disclosure is intended to cover any variations, uses, or adaptations of the application following the general principles thereof and including such departures from the present disclosure that come within known, accepted, or customary practice in the art to which the present disclosure pertains. The specification and examples are to be regarded as exemplary only, with the true scope and spirit of the present disclosure being indicated by the following claims.
[0178] It should be understood that the present disclosure is not limited to the precise construction that has been described above and shown in the accompanying drawings, and that various modifications and changes can be made by those skilled in the art without departing from the scope of the present disclosure. The scope of the present disclosure is limited only by the appended claims.
Claims
1. An IR Drop compensation method applied to a terminal, characterized in that, The method comprises: determining original channel values of color channels of each pixel in an image frame; wherein the color channels comprise a red channel, a blue channel and a green channel; compensating the original channel values of the corresponding color channels of the corresponding pixels in the image frame according to the original channel values of the color channels of each pixel in the image frame and a luminance attenuation coefficient variation curve of the corresponding color channel, so as to realize IR Drop compensation of the image frame, wherein the luminance attenuation coefficient variation curve represents a corresponding relationship between a luminance attenuation coefficient of the corresponding color channel and a channel value; the compensation of the original channel values of the corresponding color channels of the corresponding pixels in the image frame according to the original channel values of the color channels of each pixel in the image frame and the luminance attenuation coefficient variation curve of the corresponding color channel comprises: determining average channel values of the corresponding color channels of the image frame according to the original channel values of the color channels of a plurality of pixels in the image frame; determining average luminance attenuation coefficients of the corresponding color channels according to the average channel values of the color channels and the luminance attenuation coefficient variation curve of the corresponding color channel; determining gain coefficients of the corresponding color channels according to the average luminance attenuation coefficients of the color channels; compensating the original channel values of the corresponding color channels of the corresponding pixels in the image frame according to the original channel values of the color channels of each pixel in the image frame and the compression coefficients and the gain coefficients of the corresponding color channel.
2. The method of claim 1, wherein, the compensation of the original channel values of the corresponding color channels of the corresponding pixels in the image frame according to the original channel values of the color channels of each pixel in the image frame and the compression coefficients and the gain coefficients of the corresponding color channel comprises: determining target channel values after compensation corresponding to the original channel values according to the original channel values of the color channels of each pixel in the image frame and the compression coefficients and the gain coefficients of the corresponding color channel.
3. The method of claim 2, wherein, the determination of the target channel values after compensation corresponding to the original channel values according to the original channel values of the color channels of each pixel in the image frame and the compression coefficients and the gain coefficients of the corresponding color channel comprises: multiplying the original channel values by the compression coefficients of the corresponding color channel to determine intermediate channel values; multiplying the intermediate channel values by the gain coefficients of the corresponding color channel to determine the target channel values.
4. The method of claim 1, wherein, the determination of the gain coefficients of the corresponding color channels according to the average luminance attenuation coefficients of the color channels comprises: determining the gain coefficients according to the average luminance attenuation coefficients of the color channels and a first conversion formula, wherein the first conversion formula comprises: wherein Gain refers to a gain coefficient, refers to an average luminance decay coefficient.
5. The method of claim 1, wherein, the luminance attenuation coefficient variation curve is determined by the following method: determining a plurality of normal luminance values and a plurality of attenuation luminance values corresponding to a plurality of channel values of a color channel, wherein the plurality of attenuation luminance values, the plurality of normal luminance values and the plurality of channel values correspond to each other one by one; determining a plurality of luminance attenuation coefficients of the corresponding color channel according to the plurality of normal luminance values and the plurality of attenuation luminance values of the color channel, wherein the plurality of luminance attenuation coefficients correspond to the plurality of channel values one by one; According to the plurality of luminance attenuation coefficients of the color channels and the plurality of channel values, a luminance attenuation coefficient variation curve of a corresponding color channel is determined.
6. The method of claim 5, wherein, The determining of the plurality of normal luminance values and the plurality of attenuated luminance values corresponding to the plurality of channel values of the color channels comprises: According to all display areas of the terminal, the plurality of normal luminance values corresponding to the plurality of channel values of the color channels are determined. According to a set display area of the terminal, the plurality of attenuated luminance values corresponding to the plurality of channel values of the color channels are determined; wherein an area of the set display area is less than or equal to 5% of an area of the all display areas.
7. The method according to any one of claims 1 to 6, characterized in that, The compression coefficient is determined by the following manner: According to the luminance attenuation coefficient variation curve of the color channel, a maximum luminance attenuation coefficient of a corresponding color channel is determined. According to the maximum luminance attenuation coefficient of the color channel, the compression coefficient is determined.
8. The method of claim 7, wherein, The determining of the compression coefficient according to the maximum luminance attenuation coefficient of the color channel comprises: According to the maximum luminance attenuation coefficient of the color channel and a second conversion formula, the compression coefficient is determined, the second conversion formula comprising: Compress = 1 / (1 + λ max )^(1 / 2.2); where Compress refers to the compression factor, λ max refers to the maximum luminance attenuation factor.
9. An IR Drop compensation apparatus applied to a terminal, comprising: The apparatus comprises a determining module, configured to: determine channel values of color channels of an image frame; wherein the color channels comprise a red channel, a blue channel and a green channel; adjust the channel values of the corresponding color channels of the image frame according to the channel values of the color channels of the image frame and a luminance attenuation coefficient variation curve of a corresponding color channel, so as to realize IR Drop compensation of the image frame, the luminance attenuation coefficient variation curve representing a corresponding relationship between a luminance attenuation coefficient and a channel value of a corresponding color channel; The compensating of the original channel values of the corresponding color channels of the corresponding pixels in the image frame according to the original channel values of the color channels of each pixel in the image frame and the luminance attenuation coefficient variation curve of a corresponding color channel comprises: determine average channel values of the corresponding color channels of the image frame according to the original channel values of the color channels of a plurality of pixels in the image frame; determine average luminance attenuation coefficients of the corresponding color channels according to the average channel values of the color channels and the luminance attenuation coefficient variation curve of a corresponding color channel; determine gain coefficients of the corresponding color channels according to the average luminance attenuation coefficients of the color channels; compensate the original channel values of the corresponding color channels of the corresponding pixels in the image frame according to the original channel values of the color channels of each pixel in the image frame and the compression coefficient and the gain coefficient of a corresponding color channel.
10. A terminal, characterized by comprising: The terminal comprises: a processor; a memory for storing instructions executable by the processor; wherein the processor is configured to execute the method according to any one of claims 1-8.
11. A non-transitory computer-readable storage medium, comprising: When the instructions in the storage medium are executed by the processor of the terminal, the terminal is enabled to execute the method according to any one of claims 1-8.
Citation Information
Patent Citations
Method, device, display device and storage medium for determining and compensating display current
CN109473059A