Gamma curve generation method, display panel driving method, display device
By generating an adaptive second gamma curve and redistributing the grayscale and brightness mapping relationship, the problem of decreased resolution of dark details in the display panel under different lighting conditions is solved, thus enhancing the image details.
Patent Information
- Application Number
- CN202411047484.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-31
- Publication Date
- 2026-02-10
- Estimated Expiration
- 2044-07-31
AI Technical Summary
The ability of a display panel to render image details is affected under different lighting conditions, especially the resolution of dark details decreases, resulting in a poor viewing experience.
An adaptive second gamma curve is generated based on the ambient light illuminance value, and the mapping relationship between grayscale and brightness is redistributed, so that the brightness contrast corresponding to low grayscale under the second gamma curve is increased, thus the image details can still be clearly presented under the influence of light.
By adjusting the adaptive gamma curve, the resolution of image details is enhanced, especially the visibility of details in dark areas, thus improving the viewing experience.
Smart Images

Figure CN118824147B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of display technology, and in particular to a method for generating gamma curves, a method for driving display panels, and a display device. Background Technology
[0002] When a display panel shows an image, the ability to render details in the image can be measured by the contrast between adjacent gray levels. However, in practical applications, due to factors such as ambient light reflection, the actual brightness contrast of the image is much smaller than the theoretical value, making the details visible to the human eye less obvious, thus resulting in a loss of image detail. Summary of the Invention
[0003] This invention provides a method for generating a gamma curve, a method for driving a display panel, and a display device to improve the ability of illumination to render image details.
[0004] In a first aspect, embodiments of the present invention provide a method for generating a gamma curve, comprising:
[0005] A second gamma curve is generated based on the illuminance value and the first gamma curve, wherein, in the first state and / or the first area of the display panel, the first brightness contrast corresponding to the same gray level is less than its corresponding second brightness contrast, the first brightness contrast is related to the illuminance value and / or the first gamma curve, and the second brightness contrast is the brightness contrast corresponding to the gray level under the second gamma curve.
[0006] Secondly, based on the same inventive concept, embodiments of the present invention provide a method for driving a display panel, comprising:
[0007] Based on the detected ambient light illuminance value, search for the second gamma curve that matches the ambient light illuminance value in the stored N sets of second gamma curves.
[0008] Display based on the found second gamma curve;
[0009] The stored N sets of second gamma curves are generated based on the first gamma curve and N preset illuminance values. Each set of second gamma curves corresponds to a preset illuminance value. In the first state and / or first area of the display panel, the first brightness contrast corresponding to the same gray level is less than its corresponding second brightness contrast. The first brightness contrast is related to the preset illuminance value and / or the first gamma curve. The second brightness contrast is the brightness contrast of the gray level under the second gamma curve.
[0010] Thirdly, based on the same inventive concept, embodiments of the present invention provide a display device, comprising:
[0011] Display panel;
[0012] The sensing module is used to detect ambient light;
[0013] A first processing module electrically connected to the sensing module is used to obtain the illuminance value of the ambient light based on the detected ambient light information;
[0014] A second processing module electrically connected to the first processing module is used to store N sets of second gamma curves and to search for a second gamma curve that matches the ambient light illuminance value among the N sets of second gamma curves based on the detected ambient light illuminance value. The N sets of second gamma curves are generated based on the first gamma curve and N preset illuminance values. Each set of second gamma curves corresponds to a preset illuminance value. In the first state and / or first area of the display panel, the first brightness contrast corresponding to the same gray level is less than its corresponding second brightness contrast. The first brightness contrast is related to the preset illuminance value and / or the first gamma curve. The second brightness contrast is the brightness contrast corresponding to the gray level under the second gamma curve.
[0015] A driving module electrically connected to the second processing module and the display panel respectively is used to drive the display panel to display according to the found second gamma curve.
[0016] Fourthly, based on the same inventive concept, embodiments of the present invention provide a method for driving a display panel, comprising:
[0017] A second gamma curve is generated based on the first gamma curve and the detected ambient light illuminance value. In the first state and / or first area of the display panel, the first brightness contrast corresponding to the same gray level is less than its corresponding second brightness contrast. The first brightness contrast is related to the detected ambient light illuminance value and / or the first gamma curve. The second brightness contrast is the brightness contrast corresponding to the gray level under the second gamma curve.
[0018] Find the brightness value corresponding to the grayscale displayed in the image to be displayed in the second gamma curve;
[0019] Based on the brightness value found in the second gamma curve, the first gray level corresponding to the display gray level is found in the first gamma curve;
[0020] Display based on the first gamma curve and the first grayscale.
[0021] Fifthly, based on the same inventive concept, embodiments of the present invention provide a display device, comprising:
[0022] Display panel;
[0023] The sensing module is used to detect ambient light;
[0024] A first processing module electrically connected to the sensing module is used to obtain the illuminance value of the ambient light based on the detected ambient light information;
[0025] A second processing module electrically connected to the first processing module is used to generate a second gamma curve based on the first gamma curve and the detected ambient light illuminance value. In the first state and / or first area of the display panel, the first brightness contrast corresponding to the same grayscale level is less than its corresponding second brightness contrast. The first brightness contrast is related to the detected ambient light illuminance value and / or the first gamma curve. The second brightness contrast is the brightness contrast corresponding to the grayscale level under the second gamma curve. The module then searches for a brightness value in the second gamma curve that corresponds to the grayscale level displayed in the image to be displayed. Based on the brightness value found in the second gamma curve, the module searches for a first grayscale level in the first gamma curve that corresponds to the displayed grayscale level.
[0026] A driving module electrically connected to the second processing module and the display panel respectively is used to drive the display panel to display based on the first gamma curve and the first grayscale.
[0027] The technical solutions provided in the embodiments of the present invention have the following beneficial effects:
[0028] In this embodiment of the invention, a second gamma curve is generated based on the illuminance value and the first gamma curve. The mapping relationship between grayscale and brightness is redistributed in the second gamma curve, such that for at least a portion of grayscale levels, the second brightness contrast corresponding to the grayscale level under the second gamma curve is greater than the first brightness contrast corresponding to the same grayscale level. This means it is greater than the actual brightness contrast presented by the display panel when driven by the first gamma curve, under the influence of illumination. Therefore, when the display panel is driven according to the grayscale and brightness mapping relationship of the second gamma curve, even under the influence of illumination, the brightness contrast corresponding to this portion of grayscale levels will be larger, making the contrast perceived by the human eye more obvious. This effectively compensates for the influence of illumination on the brightness contrast corresponding to this portion of grayscale levels, allowing the human eye to still clearly see the details to be presented in the image.
[0029] In summary, the embodiments of the present invention can generate new gamma curves based on different illuminance values, thereby adaptively increasing the brightness contrast corresponding to at least some gray levels and enhancing the details of the image. Attached Figure Description
[0030] To more clearly illustrate the technical solutions in the embodiments of the present invention or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0031] Figure 1 This is a schematic diagram of a brightness contrast curve provided in an embodiment of the present invention;
[0032] Figure 2 This is a schematic diagram of a curve comparison of brightness contrast provided in an embodiment of the present invention;
[0033] Figure 3 A flowchart illustrating a method for generating gamma curves according to an embodiment of the present invention;
[0034] Figure 4 This is another flowchart of the method for generating gamma curves provided in an embodiment of the present invention;
[0035] Figure 5 This is another flowchart of the method for generating gamma curves provided in the embodiments of the present invention;
[0036] Figure 6 This is another flowchart of the method for generating gamma curves provided in the embodiments of the present invention;
[0037] Figure 7 This is another flowchart of the method for generating gamma curves provided in the embodiments of the present invention;
[0038] Figure 8 This is a flowchart of a display panel driving method provided in an embodiment of the present invention;
[0039] Figure 9 This is a schematic diagram of a display device provided in an embodiment of the present invention;
[0040] Figure 10 This is another structural schematic diagram of the display device provided in an embodiment of the present invention;
[0041] Figure 11 Another flowchart of the driving method for the display panel provided in an embodiment of the present invention;
[0042] Figure 12 This is another structural schematic diagram of the display device provided in an embodiment of the present invention;
[0043] Figure 13 This is another structural schematic diagram of the display device provided in an embodiment of the present invention. Detailed Implementation
[0044] To better understand the technical solution of the present invention, the embodiments of the present invention will be described in detail below with reference to the accompanying drawings.
[0045] It should be understood that the described embodiments are merely some, not all, of the embodiments of the present invention. All other embodiments obtained by those skilled in the art based on the embodiments of the present invention without inventive effort are within the scope of protection of the present invention.
[0046] The terminology used in the embodiments of this invention is for the purpose of describing particular embodiments only and is not intended to limit the invention. The singular forms “a,” “the,” and “the” as used in the embodiments of this invention and the appended claims are also intended to include the plural forms unless the context clearly indicates otherwise.
[0047] It should be understood that the term "and / or" used in this article is merely a description of the relationship between related objects, indicating that three relationships can exist. For example, A and / or B can represent: A existing alone, A and B existing simultaneously, and B existing alone. Additionally, the character " / " in this article generally indicates that the preceding and following related objects have an "or" relationship.
[0048] Before describing the technical solutions provided by the embodiments of the present invention, the present invention first explains the problems existing in the related technologies.
[0049] As described in the background section, when a display panel displays an image, the ability to render details in the image can be specifically measured by the contrast of adjacent gray levels, which is also called the brightness contrast (Contrast Ratio, CR) between adjacent gray levels.
[0050] Among them, grayscale G m and grayscale G m-1 The brightness contrast between them is CR(m). Theoretically, the brightness contrast CR(m) presented by the image is only related to the grayscale G. m and grayscale G m-1 The corresponding display brightness L(m) and L(m-1) under the gamma curve are as follows:
[0051] However, the inventors discovered that in practical applications, the brightness contrast CR(m) presented by the image is also affected by lighting, making it related to the light contribution brightness L. evr Related: Among them, the light contribution brightness L evrIt is related to the illuminance and reflection of light. When there is significant environmental interference, the brightness contrast between adjacent gray levels decreases dramatically, and the human eye's ability to distinguish details decreases significantly, thus greatly affecting the viewing experience of the image.
[0052] Further research by the inventors revealed that the aforementioned issues have a greater impact on the rendering of details in dark areas of the image. Based on a current benchmark gamma curve of 2.2, the inventors conducted tests under conditions of 1000 lux illuminance and a total reflectance of 1.42%. Figure 1 As shown, Figure 1 This is a schematic diagram of the brightness contrast curve provided in an embodiment of the present invention. It can be clearly seen in the curve that, affected by the light, in some lower gray levels, such as the gray level range enclosed by the dashed box, the brightness contrast between adjacent gray levels is very small. This will cause the human eye to have a very poor ability to distinguish the details in the dark areas of the image, making the loss of details in the dark areas particularly serious.
[0053] To address this, this invention provides a method for generating a gamma curve, comprising: generating a second gamma curve based on an illuminance value and a first gamma curve. Specifically, in a first state and / or a first region of the display panel, the first brightness contrast corresponding to the same grayscale level is less than its corresponding second brightness contrast. The first brightness contrast is related to the illuminance value and / or the first gamma curve, and the second brightness contrast is the brightness contrast corresponding to the grayscale level under the second gamma curve.
[0054] First, it needs to be explained that:
[0055] I. The brightness contrast corresponding to a certain gray level in the embodiments of the present invention refers to the brightness contrast between that gray level and the adjacent previous gray level, that is, gray level G m The corresponding brightness contrast refers to the grayscale G. m and grayscale G m-1 The brightness contrast between them. Further, it can be understood that since m-1 can only be 0 at its minimum, grayscale G0 does not have the concept of brightness contrast. For example, when the grayscale range of the display panel is 0–255, only grayscale G... 255 ~Gray level G1 corresponds to brightness contrast.
[0056] II. The first state of the display panel refers to a display state of the display panel. For example, the first state can be a dark state, in which the display panel displays a dark image. The first area of the display panel refers to at least a portion of the display area within the display panel. For example, the first area can be a display area used to present a dark image. It should be noted that the dark state mentioned here does not only refer to a black screen, but can also refer to some screen with low brightness.
[0057] Third, the illuminance value used to generate the second gamma curve can be either the actual ambient light illuminance value detected during the operation of the display panel or a set illuminance value. Regardless of the illuminance value, its magnitude reflects the intensity of light. Different illuminance values result in different effects of light on the brightness contrast of the displayed area; that is, the first brightness contrast corresponding to the same grayscale level will be different. Consequently, when generating the second gamma curve based on different illuminance values, the second brightness contrast corresponding to the same grayscale level under the second gamma curve will also be different.
[0058] When the display panel is driven to display using the first gamma curve, the brightness contrast of the actual image will be weakened due to the influence of light. This brightness contrast can be understood as the first brightness contrast described in this invention.
[0059] In this embodiment of the invention, a second gamma curve is generated based on the illuminance value and the first gamma curve. The mapping relationship between grayscale and brightness is redistributed in the second gamma curve, such that for at least a portion of grayscale levels, the second brightness contrast corresponding to the grayscale level under the second gamma curve is greater than the first brightness contrast corresponding to the same grayscale level. This means it is greater than the actual brightness contrast presented by the image when the display panel is driven by the first gamma curve and is affected by illumination. Therefore, when the display panel is driven according to the grayscale and brightness mapping relationship of the second gamma curve, even under illumination, the brightness contrast corresponding to this portion of grayscale levels will be larger, making the contrast perceived by the human eye more obvious. This effectively compensates for the influence of illumination on the brightness contrast corresponding to this portion of grayscale levels, allowing the human eye to still clearly see the details to be presented in the image.
[0060] For example, when generating a second gamma curve based on a first gamma curve with an illuminance of 1000 lux and a gamma value of 2.2, this embodiment of the invention also tested the second gamma curve under the conditions of an ambient illuminance of 1000 lux and a total reflectance of 1.42%. Figure 2 As shown, Figure 2 This is a schematic diagram of a brightness contrast curve provided in an embodiment of the present invention. According to the curve, it can be clearly seen that at least some low gray levels correspond to a large second brightness contrast under the second gamma curve Gamma2. When the display panel is driven according to the mapping relationship between gray levels and brightness of the second gamma curve Gamma2, the human eye can still clearly see the dark details in the picture under the illumination of this illuminance.
[0061] In summary, the embodiments of the present invention can generate new gamma curves based on different illuminance values, thereby adaptively increasing the brightness contrast corresponding to at least some gray levels and enhancing the details of the image.
[0062] In one feasible implementation, the gray level in the first state and / or the first region is less than a threshold gray level G. x This results in a larger brightness contrast corresponding to lower gray levels under the second gamma curve, improving the human eye's ability to distinguish details in the dark areas of the image.
[0063] It should be noted that, in the embodiments of the present invention, "the gray level in the first state and / or the first region is less than the threshold gray level G" x "This only indicates that the grayscale in the first state and / or the first region is higher than the threshold grayscale G." x Smaller does not mean smaller than the threshold gray level G x All small gray levels must be gray levels in the first state and / or in the first region.
[0064] In other words, "the gray level in the first state and / or the first region is less than the threshold gray level G". x "It includes at least two cases. In the first case, the grayscale in the first state and / or the first region is grayscale G0 to grayscale G..." x-1 In the first state and / or the first region, the gray levels are gray levels G0 to G1. x-1 All gray levels in the image.
[0065] For example, combining Figure 2 As mentioned in step S23, after obtaining the first brightness contrast corresponding to each gray level, the gray level corresponding to the largest first brightness contrast is set as the threshold gray level G. x At this point, the grayscale range in the first state and / or the first region can be grayscale G0 to grayscale G... x1 That is, in grayscale G0 to grayscale G x1 In the grayscale curve, the second brightness contrast corresponding to the second grayscale is greater than the first brightness contrast corresponding to the same grayscale, while in grayscale G... x1+1 ~Grayscale G x-1 In this context, the second brightness contrast corresponding to a gray level under the second gamma curve can be less than the first brightness contrast corresponding to the same gray level.
[0066] Furthermore, in the second state and / or second region of the display panel, the first brightness contrast corresponding to the same gray level is greater than or equal to its corresponding second brightness contrast, and the gray level in the second state and / or second region is greater than or equal to the threshold gray level G. x The second state of the display panel can be understood as the bright state, in which the display panel displays a bright image. The second area of the display panel can be a display area used to present the bright image.
[0067] In other words, in some optional embodiments, when the display area displays the complete image, the image corresponding to the first area included in the display area has a lower brightness. For example, the display area may also include other areas besides the first area, and at the same time, the brightness of the image in these other areas is greater than the brightness of the image in the first area.
[0068] Optionally, in some embodiments, the first state is a low-brightness image. Optionally, there may be other states before or after the first state, where the target brightness of the image in these other states is greater than the target brightness of the image in the first state.
[0069] In the above settings, the second brightness contrast corresponding to the medium and high gray levels under the second gamma curve is less than the first brightness contrast corresponding to the same gray level, while at least some low gray levels under the second gamma curve have a second brightness contrast greater than the first brightness contrast corresponding to the same gray level.
[0070] This method redistributes the mapping relationship between gray levels and brightness in the second gamma curve by sacrificing the brightness contrast of mid-to-high gray levels to a certain extent while increasing the brightness contrast of at least some low gray levels. Compared to redistributing the mapping relationship between gray levels and brightness in the second gamma curve by increasing the brightness contrast of all gray levels, this method can minimize the change in the brightness range of the second gamma curve, keeping it relatively close to the brightness range of the first gamma curve. In other words, it redistributes the mapping relationship between gray levels and brightness in the second gamma curve within the original brightness range of the first gamma curve. Thus, while utilizing the second gamma curve to improve detail resolution, it does not cause a significant deviation in image brightness from the original effect.
[0071] In addition, combined Figure 1 It can be seen that under illumination conditions, the brightness contrast of medium and high gray levels is relatively large compared to low gray levels. Therefore, under normal conditions, illumination has little impact on the presentation of bright details. Thus, when generating the second gamma curve, even if the brightness contrast of medium and high gray levels is sacrificed to some extent, it will not have a significant impact on the presentation of bright details.
[0072] In one feasible implementation, the first gamma curve is a reference gamma curve, that is, a gamma curve used as a reference or standard. The second gamma curve is an adaptive gamma curve, that is, a gamma curve that can improve the visual effect of an image by adjusting the brightness and / or contrast of the image.
[0073] In one feasible implementation, such as Figure 3 As shown, Figure 3This is a flowchart of a method for generating a gamma curve according to an embodiment of the present invention. The process of generating a second gamma curve based on an illuminance value and a first gamma curve may specifically include:
[0074] Step S1: Obtain the light contribution luminance L based on the illuminance value. evr .
[0075] Step S2: Based on the first gamma curve and the light contribution brightness L evr Obtain grayscale G A1 ~Grayscale G A2 The corresponding first brightness contrasts CR(A1) to CR(A2), and the threshold grayscale G. x Among them, the threshold gray level G x The corresponding first brightness contrast CR(x) is greater than the first brightness contrast of at least some other gray levels, 1≤A2<A1≤M, gray level G M For the maximum gray level, A2 < x < A1.
[0076] Step S3: Based on grayscale G A1 The corresponding first display brightness L(A1) is used to obtain the grayscale G. A1 The corresponding second display brightness L'(A1) is where the first display brightness is the display brightness corresponding to the grayscale under the first gamma curve.
[0077] Step S4: Substitute i1 = A1, i1 = A1-1, i1 = A1-2, ..., i1 = x into the equations respectively. Get grayscale G A1-1 ~Grayscale G x-1 The corresponding second display brightness L'(A1-1)~L'(x-1) respectively, where CR'(i1) is the grayscale G i1 The corresponding second brightness contrast; and substituting i2=x-1, i2=x-2, i2=x-3, ..., i2=A2 respectively into Get grayscale G x-2 ~Grayscale G A2-1 The corresponding second display brightness L'(x-2)~L'(A2-1) are respectively, where CR'(i2) is the grayscale G. i2 The corresponding second brightness contrast.
[0078] Step S5: Based on grayscale G A1 ~Grayscale G A2-1 The corresponding second display brightness L'(A1)~L'(A2-1) are used to generate the second gamma curve.
[0079] To facilitate understanding, the above process will be explained below using A1 = M = 255 and A2 = 1 as an example.
[0080] Step S1: Obtain the light contribution luminance L based on the illuminance value. evr .
[0081] Step S2: Based on the first gamma curve and the light contribution brightness L evr Obtain grayscale levels G1 to G2 255 The corresponding first brightness contrasts CR1 to CR 255 And obtain the threshold grayscale G x Among them, the threshold gray level G x The corresponding first brightness contrast CR(x) is greater than the first brightness contrast corresponding to at least some of the other gray levels. For example, the threshold gray level G x The corresponding first brightness contrast is CR1~CR 255 The maximum value in.
[0082] Step S3: Based on grayscale G 255 The grayscale G is obtained by taking the first display brightness L(255) corresponding to the first gamma curve. 255 The corresponding second display brightness is L'(255).
[0083] It is understandable that the brightness range corresponding to the first gamma curve consists of grayscale G0 and grayscale G 255 The first display brightness L(0) and L(255) corresponding to grayscale G0 are defined respectively. That is, the first display brightness L(0) corresponding to grayscale G0 is the minimum value in this brightness range, and the grayscale G0 is the minimum value in this range. 255 The corresponding first display brightness L(255) is the maximum value in this brightness range.
[0084] In step S3, grayscale G 255 The corresponding second display brightness L'(255) will be used as the maximum value in the brightness range corresponding to the subsequently generated second gamma curve. When calculating the second display brightness corresponding to other gray levels under the second gamma curve, this maximum value will be used as the basis for calculation. The second display brightness corresponding to other gray levels under the second gamma curve will further determine the second display brightness L'(0) corresponding to gray level G0, which is to say, determine the minimum value in the brightness range corresponding to the subsequently generated second gamma curve.
[0085] Therefore, in the embodiments of the present invention, the grayscale G is set. 255When the corresponding second display brightness L'(255) is set, it is related to the maximum value in the brightness range corresponding to the first gamma curve. For example, the two can be set to be equal. This makes the maximum value in the brightness range corresponding to the second gamma curve generated later closer to the maximum value in the brightness range corresponding to the first gamma curve. Consequently, the minimum value in the brightness range corresponding to the second gamma curve generated later is also closer to the minimum value in the brightness range corresponding to the first gamma curve. This avoids the brightness range of the second gamma curve deviating too much from the brightness range of the first gamma curve, which would affect the image brightness.
[0086] In this embodiment of the invention, the first display brightness and the second display brightness corresponding to a certain gray level refer to the screen brightness of the display panel when displaying the gray level image; or can be understood as the brightness of the display area; or the luminous brightness of the pixel or light-emitting element.
[0087] Step S4: Substitute i1 = 255, i1 = 254, i1 = 253, ..., i1 = x into the equations respectively. Get grayscale G 254 ~Grayscale G x-1 The corresponding second display brightness L'(254)~L'(x-1) respectively.
[0088] Where CR'(i1) is the gray level G i1 The corresponding second brightness contrast is less than or equal to grayscale G. i1 The corresponding first brightness contrast CR(i1). Grayscale G i1 The corresponding second brightness contrast CR'(i1) can be specifically determined by grayscale G. i1 The corresponding first brightness contrast CR(i1) is calculated, and the specific calculation method will be explained in detail in subsequent embodiments.
[0089] And substitute i2 = x - 2, i2 = x - 3, i2 = x - 4, ..., i2 = 1 into the equations respectively. Get grayscale G x-2 The second display brightness L'(x-2) to L'(0) corresponding to the grayscale G0 respectively.
[0090] Where CR'(i2) is the gray level G i2 The corresponding second brightness contrast is less than or equal to the threshold gray level G. x The corresponding first brightness contrast CR(x), and the grayscale G x-1 ~Grayscale G A2 In the grayscale, at least some grayscale levels have a greater second brightness contrast than the first brightness contrast corresponding to the same grayscale level. Grayscale G i2The corresponding second brightness contrast CR'(i2) can be specifically determined by the threshold grayscale G. x The corresponding first brightness contrast CR(x) is calculated, and the specific calculation method will be explained in detail in subsequent embodiments.
[0091] Step S5: Based on grayscale G 255 The second display brightness L'(255) to L'(0) corresponding to the grayscale G0 are used to generate the second gamma curve.
[0092] In the above method, the second brightness contrast corresponding to different gray levels is obtained based on the first brightness contrast corresponding to different gray levels, and then a mapping relationship between gray levels and brightness is constructed based on the second brightness contrast. Since the second brightness contrast corresponding to mid-to-high gray levels and at least some low gray levels is different from the first brightness contrast corresponding to the same gray level, the mapping relationship constructed based on the second brightness contrast can be regarded as a redistribution of the mapping relationship between gray levels and brightness within the brightness range. Therefore, the second gamma curve can be directly generated based on the constructed mapping relationship.
[0093] Furthermore, when there is significant lighting interference, the brightness contrast between adjacent gray levels decreases dramatically, especially at lower gray levels, resulting in a very small brightness contrast and a noticeable decline in the human eye's ability to distinguish details. (See also...) Figure 1 The curve shown starts from the gray level corresponding to the maximum brightness contrast. The brightness contrast decreases rapidly from this gray level to the 0 gray level, resulting in too small a brightness contrast for the gray levels within the dashed box, which has a significant negative impact on the rendering of details in the dark areas.
[0094] In this embodiment of the invention, it is based on the threshold grayscale G. x grayscale G A1 ~Grayscale G A2 Divided into grayscale G A1 ~Grayscale G x and grayscale G x-1 ~Grayscale G A2 These two grayscale intervals, and grayscale G x-1 ~Grayscale G A2 The second brightness contrast corresponding to the gray levels within this range is increased to more effectively eliminate the influence of illumination on the brightness contrast of these gray levels. This is because the threshold gray level G... x The corresponding first brightness contrast CR(x) is greater than the first brightness contrast corresponding to at least some other gray levels, and is still combined with Figure 1 That is, the threshold gray level G x The gray level that is closest to the maximum brightness contrast, or the threshold gray level G. x It is directly equal to the gray level corresponding to the maximum brightness contrast, and then based on the threshold gray level G. x The grayscale G is divided x-1~Grayscale G A2 This range is more affected by lighting. Increasing the second brightness contrast of the grayscale in this range can significantly improve the rendering of details in the shadows.
[0095] Furthermore, A1 = M, A2 = 1. For example, M = 255.
[0096] At this point, in steps S3 and S4, what is obtained is the second display brightness corresponding to all gray levels. Then, when the second gamma curve is generated based on these second display brightnesses in step S5, the mapping relationship between gray levels and brightness reflected by the second gamma curve is more accurate.
[0097] In one feasible implementation, such as Figure 4 As shown, Figure 4 This is another flowchart of the gamma curve generation method provided in this embodiment of the invention. Step S1 may specifically include:
[0098] Step S11: Obtain the direct illuminance value E based on the illuminance value. direct and / or diffuse illuminance value E indirect .
[0099] Step S12: Based on the direct illuminance value E direct and / or diffuse illuminance value E indirect Obtain the light contribution brightness L evr .
[0100] Ambient light illumination is generally categorized into direct illumination and indirect illumination; correspondingly, screen reflection on a display panel is categorized into specular reflection and diffuse reflection. The brightness L contributed by the light source is then determined in the above-mentioned method. evr The time took both reflection scenarios into account, and then based on the light contribution brightness L evr When calculating the first brightness contrast using parameters, the image presented by the first brightness contrast is more realistic. Then, the second brightness contrast is obtained based on the first brightness contrast. When constructing a mapping relationship between grayscale and brightness based on the second brightness contrast, the display driven by this mapping relationship can better eliminate the influence of light corresponding to the illuminance value.
[0101] In one feasible implementation, in step S11, E indirect =E×a,E direct =E×b; where E is the illuminance value, 0≤a≤1, 0≤b≤1, and a+b≤1.
[0102] Since the light sensor may not be able to distinguish the proportion of diffuse reflection and specular reflection when light shines on the panel, the corresponding values for a and b can be pre-set based on the proportion of diffuse reflection and specular reflection when ambient light shines on the panel in normal outdoor environments. This allows for the subsequent calculation of the direct illuminance value E. direct and / or diffuse illuminance value E indirect In this case, you can directly call a and b to perform the calculation.
[0103] Furthermore, b = 1 - a. To better reflect reality, the value of a can be set to 0.5 ≤ a ≤ 0.7. For example, a can be equal to 0.6, that is, E indirect =E × 0.6, E direct =E × 0.4.
[0104] In one possible implementation, before step S11, step S1 may further include:
[0105] Step S10: According to the first instruction, select a first preset value as a from a plurality of pre-stored first preset values, and / or select a second preset value as b from a plurality of pre-stored second preset values.
[0106] In this method, multiple selectable values for a and b can be pre-stored based on various illumination conditions that may be encountered in practical applications. For example, a first preset value and a second preset value can be stored for a normal outdoor environment, where the first preset value is 0.6 and the second preset value is 0.4. A first preset value and a second preset value can also be stored for a shadowless lamp environment, where the first preset value is 1 and the second preset value is 0. A first preset value and a second preset value can also be stored for a direct light environment, where the first preset value is 0 and the second preset value is 1.
[0107] In this way, during the use of the display panel, a first instruction can be generated based on the current lighting conditions of the environment in which the display panel is located, and then a set of first preset values and second preset values can be called as the values of a and b in the formula according to the first instruction.
[0108] The reflective properties of a display panel screen can be described by the Bidirectional Reflectance Distribution Function (BRDF).
[0109] In one feasible implementation, when the BRDF characteristics of the screen are known, step S12 may specifically include: according to Obtaining light contribution brightness L evr Among them, R d For diffuse reflectance, θi The incident angle for direct illumination can be, for example, 45°. BRDF is the bidirectional reflection distribution function.
[0110] Alternatively, when the BRDF characteristics of the screen are unknown, step S12 may specifically include: according to Obtaining light contribution brightness L evr Among them, R d R% represents diffuse reflectance, R% represents total reflectance, and Haze represents haze value.
[0111] In this embodiment of the invention, diffuse reflectance Rd and R% are the total reflectance and haze value Haze, which are specifically related to the film layer of the display panel screen.
[0112] For example, for a typical ordinary screen, the diffuse reflectance Rd is approximately 0, and the haze value Haze is approximately 0. In this case, the light contribution to the brightness L can be... evr The formula simplifies to L evr ≈R%×E direct .
[0113] For a screen that has undergone anti-reflection treatment, the diffuse reflectance Rd is approximately 0, the haze value Haze is approximately 0, and the total reflectance R% decreases slightly. At this point, the light contribution to the brightness L is still acceptable. evr The formula simplifies to L evr ≈R%×E direct .
[0114] For a screen that has undergone weak anti-glare treatment, the diffuse reflectance Rd is approximately 0, and the haze value Haze is less than 25%. At this point, the light contribution brightness L can be considered... evr The formula simplifies to L evr ≈R%×(1-Haze)×E direct .
[0115] For screens that have undergone strong anti-glare treatment, or screens that have undergone both anti-glare and augmented reality (AR) treatment, if the haze value is greater than 25%, then the light contribution brightness L... evr The formula remains the same as before.
[0116] In one feasible implementation, such as Figure 5 As shown, Figure 5 This is another flowchart of the gamma curve generation method provided in the embodiments of the present invention. Step S2 may specifically include:
[0117] Step S21: Obtain the grayscale-display brightness curve L(i) corresponding to the first gamma curve. Among them, L min Let L(0) be the first display brightness corresponding to the minimum gray level G0 under the first gamma curve. max The maximum gray level G M The first display brightness corresponding to the first gamma curve is L(255), where bit is the number of bits of the display panel, for example, it can be 8, and γ is the gamma value corresponding to the first gamma curve, for example, it can be 2.2.
[0118] Step S22: According to Obtain grayscale G respectively M ~The first brightness contrast CR(M)~CR(1) corresponding to grayscale G1 respectively.
[0119] Step S23: Set the gray level corresponding to the maximum value among the first brightness contrasts CR(M) to CR(1) as the threshold gray level G. x .
[0120] The threshold grayscale G obtained using the above method x Its corresponding first brightness contrast is the largest, and then according to the threshold grayscale G x The corresponding first brightness contrast is used to obtain the threshold grayscale G. x When the second brightness contrast corresponds to the following gray levels, the second brightness contrast corresponding to these gray levels can also be relatively large. This allows the second brightness contrast corresponding to more low gray levels to be greater than the first brightness contrast corresponding to the same gray level, thus avoiding the loss of details in dark areas to a greater extent.
[0121] In one feasible implementation, in step S3, L'(A1) = L(A1), that is, grayscale G A1 The corresponding second display brightness L'(A1) is equal to the grayscale G. A1 The corresponding first display brightness L(A1) is obtained from the first gamma curve. Then, the second display brightness L'(A1) corresponding to the grayscale GA1 is directly set to be equal to L(A1).
[0122] Optionally, A1 = 255, which is the maximum grayscale; this ensures that the maximum first display brightness and the maximum second display brightness are consistent. Based on the preceding process, after obtaining the second display brightness L'(A1) corresponding to grayscale GA1 in step S3, the second display brightness corresponding to other grayscales below GA1 is calculated based on L'(A1), thus allowing us to determine the grayscale G... A2-1 The corresponding second display brightness L'(A2-1), which is the second gamma curve generated subsequently in the grayscale range G A1 ~G A2-1 The corresponding brightness range.
[0123] By making L'(A1) equal to L(A1), it is equivalent to setting the second gamma curve within the grayscale range G. A1 ~G A2-1 The maximum value of the corresponding brightness range is set to match the first gamma curve in the grayscale range G. A1 ~G A2-1 The maximum values of the corresponding brightness ranges are equal, and then the second display brightness corresponding to other gray levels is calculated based on L'(A1), and the gray level G is further obtained. A2-1 When the corresponding second display brightness L'(A2-1) is reached, L'(A2-1) will not differ too much from L(A2-1), ensuring that the second gamma curve remains within the grayscale range G. A1 ~G A2-1 The corresponding brightness range and the first gamma curve in the grayscale range G A1 ~G A2-1 Since the corresponding brightness ranges are close, the second gamma curve is only considered as a slight adjustment to the mapping relationship between grayscale and brightness within the approximate original brightness range. Therefore, when driving the display based on the mapping relationship between grayscale and brightness reflected by the second gamma curve, the image brightness can avoid excessive deviation from the image brightness driven by the first gamma curve.
[0124] In one feasible implementation, such as Figure 6 As shown, Figure 6 This is another flowchart of the gamma curve generation method provided in the embodiments of the present invention. Step S4 may specifically include:
[0125] Step S41: Based on the first adjustment factor and grayscale G i1 The corresponding first brightness contrast CR(i1) is used to calculate the grayscale G. i1 The corresponding second brightness contrast CR'(i1), where the calculated grayscale G i1 The corresponding second brightness contrast CR'(i1) is less than or equal to the grayscale G. i1 The corresponding first brightness contrast CR(i1); and according to Get grayscale G i1-1 The corresponding second display brightness L'(i1-1) is given by i1, where i1 is initially calculated to be A1.
[0126] Step S42: Determine if i1 is greater than x. If yes, subtract 1 from the value of i1 and return to step S41. If no, proceed to step S43.
[0127] In the initial calculation of step S41, i1 = A1, and the grayscale G can be obtained. A1 The corresponding second brightness contrast CR'(A1), and grayscale GA1-1 The corresponding second display brightness L'(A1-1) is then determined, and the process proceeds to step S42. When it is determined that A1 > x, i1 is changed to A1-1 and the process returns to step S41. In step S41, the grayscale G is obtained. A1-1 The corresponding second brightness contrast CR'(A1-1), and grayscale G A1-2 The corresponding second display brightness L'(A1-2) is then used to determine whether A1-1 is greater than x in step S42. This process continues until i1 = x + 1. In step S42, i1 is determined to be greater than x, i1 is changed to x, and the process returns to step S41. In step S41, the grayscale G is calculated. x The corresponding second brightness contrast CR'(x), and grayscale G x-1 The corresponding second display brightness L'(x-1) is then determined, and then the process proceeds to step S42. In step S42, it is determined that i1 no longer meets the condition of being greater than x. At this point, the process proceeds to step S43, and the loop of steps S41 and S42 in this round of calculation ends.
[0128] That is, in this round of calculation, the grayscale G can be calculated iteratively according to steps S41 and S42. A1 ~Grayscale G x The corresponding second brightness contrasts CR'(A1) to CR'(x) are determined, and the grayscale G is calculated based on these second brightness contrasts. A1-1 ~Grayscale G x-1 The corresponding second display brightness L'(A1-1)~L'(x-1).
[0129] Step S43: Based on the threshold grayscale G x The corresponding first brightness contrast CR(x) is used to calculate the grayscale G. x-1 ~Grayscale G A2 The corresponding second brightness contrast; where grayscale G x-1 ~Grayscale G A2 The corresponding second brightness contrasts are all less than or equal to the threshold grayscale G. x The corresponding first brightness contrast CR(x), and the grayscale G x-1 ~Grayscale G A2 In the above, at least some gray levels have a second brightness contrast that is greater than the first brightness contrast that corresponds to the same gray level.
[0130] Step S44: According to Calculate grayscale G i2-1 The corresponding second display brightness L'(i2-1) is given by i2, where i2 is initially calculated to be x-1.
[0131] Step S45: Determine if i2 is greater than A2. If yes, subtract 1 from the value of i2 and return to step S44. If no, proceed to step S46.
[0132] In step S43, based on the threshold gray level G x The corresponding first brightness contrast CR(x) is used to calculate the grayscale G. x-1 ~Grayscale G A2 The corresponding second brightness contrast.
[0133] In the initial calculation of step S44, i2 = x - 1, based on the grayscale G obtained in step S43. x-1 The corresponding second brightness contrast is used to calculate the grayscale G. x-2 The corresponding second display brightness L'(x-2) is then determined, and the process proceeds to step S45. When it is determined that x-1 > A2, i1 is changed to x-2 and the process returns to step S44. In step S44, based on the grayscale G obtained in step S43... x-2 The corresponding second brightness contrast is used to calculate the grayscale G. x-3 The corresponding second display brightness L'(x-3) is then used to determine whether x-2 is greater than A2 in step S45. This process continues until i2 = A2+1. In step S45, A2+1 is determined to be greater than A2, i2 is changed to A2, and the process returns to step S44. In step S44, the grayscale G obtained in step S43 is used as the reference. A2 The corresponding second brightness contrast is used to calculate the grayscale G. A2-1 The corresponding second display brightness L'(A2-1) is then determined, and then the process proceeds to step S45. In step S45, it is determined that i2 no longer meets the condition of being greater than A2. At this point, the process proceeds to step S46, and the loop of steps S44 and S45 in this round of calculation ends.
[0134] That is, in this round of calculation, the grayscale G can be calculated according to step S43. x-1 ~Grayscale G A2 The corresponding second brightness contrasts CR'(x-1) to CR'(A2) are respectively used, and the gray level G is obtained by iterative calculation based on these second brightness contrasts in steps S44 and S45. x-2 ~Grayscale G A2-1 The corresponding second display brightness L'(x-2)~L'(A2-1).
[0135] Step S46: Determine grayscale G A2-1 The corresponding second display brightness L'(A2-1) and grayscale G A2-1 If the preset conditions are met between the first display brightness L(A2-1) corresponding to the first gamma curve, proceed to step S5; otherwise, adjust the first adjustment factor and return to step S41.
[0136] In step S46, the grayscale G is determined. A2-1 The corresponding second display brightness L'(A2-1) and grayscale G A2-1 If the difference between the first display brightness L(A2-1) and the first gamma curve is too large, it indicates that the brightness range corresponding to the second gamma curve after generating the second gamma curve based on the second display brightness calculated in this round will differ too much from the brightness range corresponding to the first gamma curve. Therefore, the first adjustment factor can be changed, and the calculation can be restarted in step S41. This allows for at least a recalculation of the grayscale G based on the adjusted first adjustment factor. A2-1 ~Grayscale G x-1 The corresponding second display brightness L'(A2-1)~L'(x-1) is then used to readjust the brightness range corresponding to the second gamma curve to be generated.
[0137] When the grayscale G is determined A2-1 The corresponding second display brightness L'(A2-1) and grayscale G A2-1 When the first display brightness L(A2-1) corresponding to the first gamma curve is relatively close, it means that after generating the second gamma curve based on the second display brightness calculated in this round, the brightness range corresponding to the second gamma curve is relatively close to the brightness range corresponding to the first gamma curve. Therefore, we can directly proceed to step S5 and generate the second gamma curve based on the second display brightness calculated in this round.
[0138] Optionally, in the first round of calculation, the CR'(i1) calculated based on the first adjustment factor in step S41 can be equal to CR(i1), that is, assuming CR'(i1) is equal to CR(i1) multiplied by the first adjustment factor, and the first adjustment factor is initially set to 1. However, if it is determined in step S46 that L'(A2-1) and L(A2-1) do not meet the preset conditions and the first adjustment factor needs to be readjusted, in order to avoid excessive adjustment when calculating CR'(i1), the adjusted first adjustment factor can satisfy that the calculated CR'(i1) is less than CR(i1) and greater than or equal to 0.8×CR(i1), that is, still assuming CR'(i1) is equal to CR(i1) multiplied by the first adjustment factor, the adjusted first adjustment factor can be less than 1 and greater than or equal to 0.8.
[0139] Of course, in some special steps or situations, the adjustment range of the first adjustment factor may not be limited, as long as the adjustment of the first adjustment factor can ultimately make L'(A2-1) and L(A2-1) meet the preset conditions; the details will be introduced below, and will not be repeated here.
[0140] In one feasible implementation, in step S43, grayscale Gx-1 ~Grayscale G A2 The corresponding second brightness contrast is calculated based on the first adjustment factor and CR(x).
[0141] That is, in step S46, when grayscale G is determined... A2-1 The corresponding second display brightness L'(A2-1) and grayscale G A2-1 When the preset conditions are not met between the first display brightness L(A2-1) corresponding to the first gamma curve and the first adjustment factor needs to be adjusted, the grayscale G... x-1 ~Grayscale G A2 The corresponding second brightness contrasts CR'(x-1) to CR'(A2) will also be recalculated.
[0142] Alternatively, in another feasible implementation, in step S43, grayscale G x-1 ~Grayscale G A2 The corresponding second brightness contrast is calculated based on the second adjustment factor and CR(x). In step S46, when it is determined that L'(A2-1) and L(A2-1) do not meet the preset conditions, the second adjustment factor is also adjusted. In one round of calculation from steps S41 to S46, the second adjustment factor is not equal to the first adjustment factor.
[0143] Two different adjustment factors are designed. When it is determined in step S46 that L'(A2-1) and L(A2-1) do not meet the preset conditions, the two adjustment factors can be adjusted to different degrees, so that the grayscale G A1 ~Grayscale G x The corresponding second brightness contrast grayscale G x-1 ~Grayscale G A2 The calculation of the corresponding second brightness contrast will be more flexible.
[0144] Alternatively, in another feasible implementation, grayscale G x-1 The second brightness contrast corresponding to grayscale G1 is fixed. For example, grayscale G... x-1 ~Grayscale G A2 The corresponding second brightness contrast is set to be equal and less than the threshold gray level G. x The corresponding first brightness contrast CR(x).
[0145] In this configuration, when it is determined in step S46 that L'(A2-1) and L(A2-1) do not meet the preset conditions, the grayscale G is changed only by adjusting the first adjustment factor. A1 ~Grayscale G x The corresponding second brightness contrast, grayscale G x-1 ~Grayscale G A2The corresponding second brightness contrast remains constant. This method can reduce the amount of data that needs to be calculated and simplify the calculation process.
[0146] In one feasible implementation, during the initial calculation in step S41, CR'(i1) calculated based on the first adjustment factor is equal to CR(i1). When the first adjustment factor needs to be adjusted, CR'(i1) obtained based on the adjusted first adjustment factor is less than CR(i1).
[0147] With grayscale G x-1 ~Grayscale G A2 The corresponding second brightness contrast is calculated based on the first adjustment factor and CR(x). For example, in the first round of calculation, at grayscale G... A1 ~Grayscale G x In the middle, grayscale G i1 The corresponding second brightness contrast CR'(i1) is equal to the grayscale G. i1 The corresponding first brightness contrast CR(i1), grayscale G x-1 ~Grayscale G A2 The corresponding second brightness contrast is equal to the threshold gray level G. x The corresponding first brightness contrast CR(x).
[0148] When the first round of calculation ends and the process proceeds to step S46, the grayscale G is determined. A2-1 The corresponding second display brightness L'(A2-1) and grayscale G A2-1 When the preset conditions are not met between the first display brightness L(A2-1) corresponding to the first gamma curve, it indicates that when generating the second gamma curve based on the second display brightness corresponding to different gray levels calculated in the first round, the brightness range corresponding to the second gamma curve will be greater than the brightness range corresponding to the first gamma curve. Therefore, the first adjustment factor is changed, and the process returns to step S41 for recalculation.
[0149] In the second round of calculation, grayscale G A1 ~Grayscale G x The corresponding second brightness contrasts all decrease, and the grayscale G x-1 ~Grayscale G A2 The corresponding second brightness contrast also becomes smaller. Thus, when generating the second gamma curve based on the second display brightness corresponding to different gray levels calculated in the second round, the brightness range corresponding to the second gamma curve will be closer to the brightness range corresponding to the first gamma curve than that calculated in the first round.
[0150] When the second round of calculation ends and we proceed to step S46, we determine the grayscale G again. A2-1 The corresponding second display brightness L'(A2-1) and grayscale G A2-1If the preset conditions are not met between the first display brightness L(A2-1) corresponding to the first gamma curve, the first adjustment factor is adjusted again, and the process returns to step S41 for recalculation, so that in the third round of calculation, the grayscale G... A1 ~Grayscale G x The corresponding second brightness contrast is further reduced, grayscale G x-1 ~Grayscale G A2 The corresponding second brightness contrast also decreases further until it is determined that the preset conditions are met and proceed to step S5.
[0151] In one feasible implementation, step S46, the process of determining whether L'(A2-1) and L(A2-1) meet the preset conditions includes: determining whether the absolute value of the difference between L'(A2-1) and L(A2-1) is less than the preset difference ΔL, 0.005nit < ΔL < 0.05nit.
[0152] If the preset difference ΔL is within this range and the preset condition is met, it means that when generating the second gamma curve based on the second display brightness obtained from the previous round of calculation, the brightness range corresponding to the second gamma curve will be closer to the brightness range corresponding to the first gamma curve. When driving the display based on the mapping relationship between grayscale and brightness reflected by the second gamma curve, the display effect will be better.
[0153] In one feasible implementation, step S46, the process of determining whether L'(A2-1) and L(A2-1) satisfy a preset condition includes: determining whether L'(A2-1) is equal to L(A2-1).
[0154] If this preset condition is met, it means that when the second gamma curve is generated based on the second display brightness obtained in the current round of calculation, the brightness range corresponding to the second gamma curve is consistent with the brightness range corresponding to the first gamma curve. When the display is driven based on the second gamma curve, the display effect is better.
[0155] In one feasible implementation, step S46, the process of determining whether L'(A2-1) and L(A2-1) meet the preset conditions includes: determining whether the absolute value of the difference between L'(A2-1) and L(A2-1) is less than the preset difference.
[0156] The display panel has a first brightness level and a first gamma curve corresponding to the first brightness level, which is a first type of first gamma curve, and the first gamma curve corresponding to the first brightness level is a second type of first gamma curve.
[0157] Among them, grayscale G A2-1 The L(A2-1) corresponding to the first type of first gamma curve is greater than the gray level G. A2-1The L(A2-1) corresponding to the first gamma curve of the second type is greater than the preset difference corresponding to the first gamma curve of the first type.
[0158] At different brightness levels, the brightness range corresponding to the first gamma curve is different. The higher the brightness level, the higher the grayscale G. A2-1 The higher the display brightness corresponding to the first gamma curve, the more appropriate the preset difference can be set for different brightness levels. For example, for higher brightness levels, the grayscale G... A2-1 The display brightness corresponds to a larger value under the first gamma curve, so the preset difference can be designed to be larger, making the judgment condition more lenient. For lower brightness levels, the grayscale G... A2-1 The display brightness corresponding to the first gamma curve is already relatively low, so the preset difference can be designed to be smaller.
[0159] In one feasible implementation, in step S4, CR′(i1)=k1×CR(i1), k1 is the first adjustment factor, and k1≤1.
[0160] With grayscale G x-1 ~Grayscale G A2 The corresponding second brightness contrast is calculated based on the first adjustment factor and CR(x), for example:
[0161] In the first round of calculation, k1 can initially be set to 1. In this round of calculation, at grayscale G... A1 ~Grayscale G x In the middle, grayscale G i1 The corresponding second brightness contrast CR'(i1) is equal to the grayscale G. i1 The corresponding first brightness contrast CR(i1), grayscale G x-1 ~Grayscale G A2 The corresponding second brightness contrast is equal to the threshold gray level G. x The corresponding first brightness contrast CR(x). When the first round of calculation ends and proceeds to step S46, the grayscale G is determined. A2-1 The corresponding second display brightness L'(A2-1) and grayscale G A2-1 If the preset conditions are not met between the first display brightness L(A2-1) corresponding to the first gamma curve, the value of k1 is reduced, for example, to 0.95, and the process returns to step S41 for recalculation.
[0162] In the second round of calculation, because the value of k1 becomes smaller, the grayscale G... A1 ~Grayscale G x The corresponding second brightness contrasts all decrease, and the grayscale G x-1 ~Grayscale G A2The corresponding second brightness contrast also decreases. When the second round of calculation ends and we enter step S46, we determine the grayscale G again. A2-1 The corresponding second display brightness L'(A2-1) and grayscale G A2-1 If the preset conditions are not met between the first display brightness L(A2-1) corresponding to the first gamma curve, the value of k1 is reduced again, for example, to 0.9, and the process returns to step S41 for recalculation until the preset conditions are met. If so, the process proceeds to step S5.
[0163] Furthermore, if k1 ≥ 0.8, meaning that in step S46 it is determined that L'(A2-1) and L(A2-1) do not meet the preset conditions and k1 needs to be readjusted, the adjusted k1 needs to be greater than or equal to 0.8 to avoid excessive adjustment and sacrifice of too much contrast in mid-to-high grayscale brightness. Of course, if L'(A2-1) and L(A2-1) still cannot meet the preset conditions when k1 equals 0.8, k1 can be further reduced until it is finally determined that L'(A2-1) and L(A2-1) meet the preset conditions.
[0164] Alternatively, in another feasible implementation, in step S4, CR′(i1)=CR(i1)-p1, where p1 is the first adjustment factor and p1≥0.
[0165] Similar to the process described above, still using grayscale G x-1 ~Grayscale G A2 The corresponding second brightness contrast is calculated based on the first adjustment factor and CR(x). For example:
[0166] In the first round of calculation, p1 can initially be set to 0. In this round of calculation, at grayscale G... A1 ~Grayscale G x In the middle, grayscale G i1 The corresponding second brightness contrast CR'(i1) is equal to the grayscale G. i1 The corresponding first brightness contrast CR(i1), grayscale G x-1 ~Grayscale G A2 The corresponding second brightness contrast is equal to the threshold gray level G. x The corresponding first brightness contrast CR(x). When the first round of calculation ends and proceeds to step S46, the grayscale G is determined. A2-1 The corresponding second display brightness L'(A2-1) and grayscale G A2-1 If the preset conditions are not met between the first display brightness L(A2-1) corresponding to the first gamma curve, the value of p1 is increased, for example, to 0.0005, and the process returns to step S41 for recalculation.
[0167] In the second round of calculation, because the value of p1 increases, the grayscale G...A1 ~Grayscale G x The corresponding second brightness contrasts all decrease, and the grayscale G x-1 ~Grayscale G A2 The corresponding second brightness contrast also decreases. When the second round of calculation ends and we enter step S46, we determine the grayscale G again. A2-1 The corresponding second display brightness L'(A2-1) and grayscale G A2-1 If the preset conditions are not met between the first display brightness L(A2-1) corresponding to the first gamma curve, the value of p1 is increased again, for example, to 0.001, and the process returns to step S41 for recalculation until the preset conditions are met. If so, the process proceeds to step S5.
[0168] In addition, for gray levels G in the medium to high gray range A1 ~Grayscale G x ,according to Figure 1 It can be seen that the brightness contrast of adjacent gray levels in the middle gray range is greater than that of adjacent gray levels in the high gray range. By designing the first adjustment factor as p1 and obtaining CR'(i1) by subtracting a constant from CR(i1), the second brightness contrast corresponding to the gray level in the middle gray range will be sacrificed less. Thus, the degree of sacrifice of the second brightness contrast corresponding to the middle and high gray levels can be differentiated, so that the second brightness contrast corresponding to the middle gray level under the second gamma curve is closer to the first brightness contrast corresponding to the same gray level.
[0169] The following uses A1 = M = 255, A2 = 1, the first adjustment factor as k1, and grayscale G. x-1 ~Grayscale G A2 The corresponding second brightness contrast is calculated based on the first adjustment factor k1 and CR(x). For example, combined with... Figure 7 , Figure 7 This is another flowchart of the gamma curve generation method provided in the embodiments of the present invention, which explains one aspect of the above process.
[0170] It should be noted that only i is involved in the following process, and i1 and i2 are not involved. However, it can be seen from the whole process that the expression of i in this process is consistent with the expression of i1 and i2 in the aforementioned step S4.
[0171] Step S3: L'(255) = L(255).
[0172] Step S41: Calculate the grayscale G based on CR′(i)=k1×CR(i). i The corresponding second brightness contrast CR'(i), and according to Calculate grayscale G i-1The corresponding second display brightness L'(i-1) is calculated, where i is 255 in the first calculation and k1 is 1 in the first calculation.
[0173] Step S42: Determine if i is greater than x. If yes, subtract 1 from the value of i and return to step S41. If no, proceed to step S43.
[0174] Step S43: Calculate the grayscale G based on CR′(i)=k1×CR(x). x-1 The second brightness contrast corresponding to grayscale G1 is i = x-1 ~ 1.
[0175] Step S44: According to Calculate grayscale G i-1 The corresponding second display brightness L'(i-1).
[0176] Step S45: Determine if i is greater than 1. If yes, subtract 1 from the value of i and return to step S44. If no, proceed to step S46.
[0177] Step S46: Determine whether L'(0) and L(0) meet the preset conditions. If yes, proceed to step S5. If no, decrease k1 and return to step S41.
[0178] In one feasible implementation, in step S4, CR'(i1) is calculated based on the first adjustment factor and CR(i1).
[0179] The first adjustment factor includes a first sub-adjustment factor and a second sub-adjustment factor. When i1 takes values from A1 to x1, CR'(i1) is calculated based on the first sub-adjustment factor. When i1 takes values from x1-1 to x, CR'(i1) is calculated based on the second sub-adjustment factor. Furthermore, the difference between CR'(i1) calculated based on the second sub-adjustment factor and CR(i1) is less than the difference between CR'(i1) calculated based on the first sub-adjustment factor and CR(i1).
[0180] For grayscale G in the medium to high grayscale range A1 ~Grayscale G x ,according to Figure 1 It can be seen that the brightness contrast between adjacent gray levels in the mid-grayscale range is greater than that in the high-grayscale range. By setting a first sub-adjustment factor and a second sub-adjustment factor, and using these two different sub-adjustment factors to calculate the second brightness corresponding to the mid-grayscale and high-grayscale, a differentiated design can be made to address the degree of sacrifice in the second brightness contrast corresponding to the mid-grayscale, thus minimizing the sacrifice in the second brightness contrast corresponding to the mid-grayscale.
[0181] In one feasible implementation, in step S4, grayscale G x-1~Grayscale G A2 The corresponding second brightness contrast is equal.
[0182] For example, grayscale G x-1 ~Grayscale G A2 The corresponding second brightness contrast is equal to the threshold gray level G. x The corresponding first brightness contrast CR(x) multiplied by k1, or both equal to the threshold gray level G. x The corresponding first brightness contrast CR(x) is subtracted from p1. This reduces the need to calculate the grayscale G. x-1 ~Grayscale G A2 The calculation of the corresponding second brightness contrast is simplified.
[0183] Alternatively, in another feasible implementation, in step S4, at grayscale G x-1 ~Grayscale G A2 In this design, at least some gray levels correspond to different second brightness contrasts, which allows for greater flexibility in calculating the second brightness contrast for different low gray levels. For example, based on test results, it can be determined which part of the low gray levels has a greater influence from illumination, and a larger second brightness contrast can be designed for this part of the low gray levels.
[0184] Furthermore, it is possible to target grayscale G x-1 ~Grayscale G A2 The corresponding second brightness contrast is calculated using multiple methods. For example, in one setting, the second brightness contrast is different for any two gray levels in this grayscale range. Furthermore, in grayscale G... x-1 ~Grayscale G A2 In this configuration, the difference between the second brightness contrast corresponding to adjacent gray levels is the same. Alternatively, in another setting, gray level G... x-1 ~Grayscale G A2 This constitutes at least two grayscale groups, wherein different grayscale levels within the same grayscale group have the same second brightness contrast, while grayscale levels in different grayscale groups have different second brightness contrasts. For example, grayscale G... x-1 ~Grayscale G A3 The corresponding second brightness contrast is equal, grayscale G A3+1 ~Grayscale G A2 The corresponding second brightness contrast is equal, and the grayscale G x-1 ~Grayscale G A3 The corresponding second brightness contrast and grayscale G A3+1 ~Grayscale G A2 The corresponding second brightness contrasts are not equal.
[0185] Based on the same inventive concept, embodiments of the present invention also provide a method for driving a display panel, combined with Figure 9 and Figure 10 ,like Figure 8 As shown, Figure 8 This is a flowchart of a display panel driving method provided in an embodiment of the present invention. The display panel driving method includes:
[0186] Step K1: Based on the detected ambient light illuminance value, search for a second gamma curve that matches the ambient light illuminance value from the stored N sets of second gamma curves. The stored N sets of second gamma curves are generated based on the first gamma curve and N preset illuminance values. Each set of second gamma curves corresponds to one preset illuminance value. In the first state and / or first area of the display panel, the first brightness contrast corresponding to the same grayscale is less than its corresponding second brightness contrast. The first brightness contrast is related to the preset illuminance value and / or the first gamma curve, and the second brightness contrast is the brightness contrast corresponding to the grayscale under the second gamma curve.
[0187] Step K2: Display the second gamma curve as found.
[0188] It should be noted that the second gamma curve involved in this driving method is generated from the first gamma curve and a preset illuminance value. The specific generation method has been described in detail in the above embodiments and will not be repeated here.
[0189] In this driving method, N preset illuminance values are pre-set, and then N sets of second gamma curves are generated based on these N preset illuminance values and the first gamma curve. These N sets of second gamma curves are then programmed into the processor or driver chip. When the display panel is working, the second gamma curve matching the detected ambient light illuminance value can be directly found from the programmed N sets of second gamma curves, and then used to drive the display panel.
[0190] This method, upon detecting the ambient light illuminance, directly retrieves and calls the pre-stored second gamma curve for driving, eliminating the need to generate a new gamma curve during use, thus simplifying the driving process. Furthermore, as the preceding analysis shows, using the second gamma curve to drive the display allows the human eye to see clearer details in the image, such as more clearly seeing details in dark areas, thereby improving the viewing experience.
[0191] Further, step K1 may specifically include: searching among the preset N illuminance values, taking the preset illuminance value that is closest to the ambient light illuminance value as the first illuminance value, and the second gamma curve corresponding to the first illuminance value as the second gamma curve that matches the ambient light illuminance value. Thus, when driving with the found second gamma curve, the influence of the ambient light at the current illuminance on the brightness contrast seen by the human eye can be better compensated.
[0192] Corresponding to the above-described driving method, this embodiment of the invention also provides a display device, which can also be described as a display system. In conjunction with... Figure 8 ,like Figure 9 and Figure 10 As shown, Figure 9 This is a schematic diagram of a display device provided in an embodiment of the present invention. Figure 10 This is another schematic diagram of the structure of the display device provided in an embodiment of the present invention. The display device includes a display panel 100, a sensing module 200, a first processing module 300, a second processing module 400, and a driving module 500.
[0193] The display panel 100 can be any type of display panel, such as an organic light-emitting diode (OLED) display panel or a light-emitting diode (LED) display panel.
[0194] The sensing module 200 is used to detect ambient light. Specifically, the sensing module 200 can be a light sensor, such as an ambient light sensor or an illuminance sensor.
[0195] The first processing module 300 is electrically connected to the sensing module and is used to obtain the illuminance value of the ambient light based on the detected ambient light information.
[0196] The second processing module 400 is electrically connected to the first processing module 300. For example, it can be a gamma register used to store N sets of second gamma curves and to search for a second gamma curve that matches the ambient light illuminance value among the N sets of second gamma curves. The N sets of second gamma curves are generated based on the first gamma curve and N preset illuminance values. Each set of second gamma curves corresponds to a preset illuminance value. In the first state and / or first area of the display panel, the first brightness contrast corresponding to the same grayscale level is less than its corresponding second brightness contrast. The first brightness contrast is related to the preset illuminance value and / or the first gamma curve, and the second brightness contrast is the brightness contrast corresponding to the grayscale level under the second gamma curve.
[0197] The method by which the second processing module 400 generates the second gamma curve has been described in detail in the above embodiments and will not be repeated here.
[0198] The driving module 500 is electrically connected to the second processing module 400 and the display panel 100 respectively, and is used to drive the display panel to display according to the found second gamma curve.
[0199] Based on the foregoing analysis, this display device can directly retrieve and call the pre-stored second gamma curve for driving after detecting the ambient light illuminance value, eliminating the need to generate a new gamma curve during use, thus simplifying the driving method. Furthermore, as the foregoing analysis shows, using the second gamma curve to drive the display allows the human eye to see clearer details in the image, such as more clearly seeing details in dark areas, thereby improving the viewing experience.
[0200] It should be noted that, in this embodiment of the invention, at least one of the first processing module 300, the second processing module 400, and the driver module 500 may be located in the processor 1000, and / or at least one may be located in the driver chip 2000. This embodiment of the invention does not specifically limit this. For example, in one structure, see again... Figure 9 The first processing module 300 is located in the processor 1000, and the second processing module 400 and the driver module 500 are located in the driver chip 2000.
[0201] Based on the same inventive concept, embodiments of the present invention also provide another method for driving a display panel, combined with Figure 12 and Figure 13 ,like Figure 11 As shown, Figure 11 This is another flowchart of a display panel driving method provided in an embodiment of the present invention, the driving method comprising:
[0202] Step L1: Generate a second gamma curve based on the first gamma curve and the detected ambient light illuminance value, wherein, in the first state and / or the first area of the display panel, the first brightness contrast corresponding to the same gray level is less than its corresponding second brightness contrast, the first brightness contrast is related to the detected ambient light illuminance value and / or the first gamma curve, and the second brightness contrast is the brightness contrast corresponding to the gray level under the second gamma curve.
[0203] Step L2: Find the brightness value in the second gamma curve that corresponds to the grayscale displayed in the image to be displayed.
[0204] Step L3: Based on the brightness value found in the second gamma curve, find the first gray level corresponding to the displayed gray level in the first gamma curve.
[0205] Step L4: Display based on the first gamma curve and the first grayscale.
[0206] It should be noted that the second gamma curve involved in this driving method is generated from the first gamma curve and a preset illuminance value. The specific generation method has been described in detail in the above embodiments and will not be repeated here.
[0207] In this driving method, the second gamma curve is calculated in real time based on the detected ambient light illuminance value. Therefore, the calculated second gamma curve is more closely matched to the intensity of the current ambient light, better compensating for the impact of ambient light reflection on the brightness contrast perceived by the human eye. However, it should be noted that, unlike the previous driving method, the second gamma curve in this method is calculated in real time during the use of the display panel and is not pre-programmed into the processor or driver chip. Therefore, this driving method further utilizes the calculated second gamma curve to further construct the mapping relationship between gray levels in the first gamma curve, and subsequently only the first gamma curve is used to drive the display. In this driving method, the processor or driver chip only needs to pre-store the first gamma curve, resulting in a smaller storage requirement.
[0208] Further, step L3 may specifically include: finding the brightness value in the first gamma curve that is closest to the brightness value found in the second gamma curve; and setting the gray level corresponding to the brightness value found in the first gamma curve as the first gray level corresponding to the display gray level.
[0209] For example, the grayscale value of the display screen is 50. The brightness value corresponding to grayscale 50 under the second gamma curve is L1. Then, the brightness value closest to the brightness value L1 is found in the first gamma curve as the brightness value L2. Then, the grayscale value corresponding to the brightness value L2 is found in the first gamma curve. Assuming that the grayscale value is 55, this grayscale value is used as the first grayscale value. Thus, the mapping relationship between grayscale 50 and grayscale 55 can be constructed, that is, the mapping relationship between the display grayscale value and the first grayscale value can be constructed.
[0210] In step L4, the display can be driven based on the mapping relationship between the displayed grayscale and the first grayscale, as well as the first gamma curve. Specifically, the first grayscale 55 corresponding to the displayed grayscale 50 can be found based on the mapping relationship between the displayed grayscale and the first grayscale, and then the display can be driven based on the data voltage corresponding to the brightness of the first grayscale 55 in the first gamma curve.
[0211] This driving method indirectly utilizes the mapping relationship between grayscale and brightness reflected by the second gamma curve to drive the display panel, thus effectively improving the impact of ambient light on the ability to render image details.
[0212] Corresponding to the above driving method, embodiments of the present invention also provide a display device, combined with Figure 11 ,like Figure 12 and Figure 13 As shown, Figure 12 This is another structural schematic diagram of the display device provided in an embodiment of the present invention. Figure 13This is a schematic diagram of another structure of the display device provided in an embodiment of the present invention. The display device includes a display panel 100', a sensing module 200', a first processing module 300', a second processing module 400', and a driving module 500'.
[0213] Among them, the display panel 100′ can be a variety of display panels such as an organic light-emitting diode (OLED) display panel and a light-emitting diode (LED) display panel.
[0214] The sensing module 200' is used to detect ambient light. Specifically, the sensing module 200' can be a light sensor, such as an ambient light sensor or an illuminance sensor.
[0215] The first processing module 300' is electrically connected to the sensing module 200' and is used to obtain the illuminance value of the ambient light based on the detected ambient light information.
[0216] The second processing module 400' is electrically connected to the first processing module 300' and can be an ambient light adaptive gamma function unit, used to generate a second gamma curve based on the first gamma curve and the detected ambient light illuminance value. Specifically, in the first state and / or first area of the display panel, the first brightness contrast corresponding to the same gray level is less than its corresponding second brightness contrast. The first brightness contrast is related to the detected ambient light illuminance value and / or the first gamma curve, and the second brightness contrast is the brightness contrast corresponding to the gray level under the second gamma curve. The brightness value corresponding to the displayed gray level in the image to be displayed is found in the second gamma curve. Based on the brightness value found in the second gamma curve, the first gray level corresponding to the displayed gray level is found in the first gamma curve.
[0217] The method by which the second processing module 400' generates the second gamma curve has been described in detail in the above embodiments and will not be repeated here.
[0218] The driving module 500' is electrically connected to the second processing module 400' and the display panel 100' respectively, and is used to drive the display panel to display according to the first gamma curve and the first grayscale.
[0219] Based on the foregoing analysis, this display device calculates the second gamma curve in real time based on the detected ambient light illuminance. Therefore, the calculated second gamma curve is more closely matched to the intensity of the current ambient light, better compensating for the impact of ambient light reflection on the brightness contrast perceived by the human eye. Furthermore, this display device only requires pre-programming the first gamma curve, resulting in a smaller storage requirement.
[0220] It should be noted that, in this embodiment of the invention, at least one of the first processing module 300', the second processing module 400', and the driver module 500' may be located in the processor, and / or at least one may be located in the driver chip. This embodiment of the invention does not specifically limit this. For example, in one structure, see again... Figure 9 The first processing module 300' and the second processing module 400' are located in the processor 1000, and the driver module 500' is located in the driver chip 2000.
[0221] The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. Any modifications, equivalent substitutions, improvements, etc., made within the spirit and principles of the present invention should be included within the scope of protection of the present invention.
[0222] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, and are not intended to limit them. Although the present invention 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 or all of the technical features therein. Such modifications or substitutions do not cause the essence of the corresponding technical solutions to deviate from the scope of the technical solutions of the embodiments of the present invention.
Claims
1. A method for generating a gamma curve, characterized in that, include: A second gamma curve is generated based on the illuminance value and the first gamma curve. In the first state and / or the first area of the display panel, the first brightness contrast corresponding to the same gray level is less than its corresponding second brightness contrast. The brightness contrast corresponding to the gray level is the brightness contrast between the gray level and the adjacent previous gray level. The first brightness contrast is related to the illuminance value and the first gamma curve. The second brightness contrast is the brightness contrast corresponding to the gray level under the second gamma curve. The illuminance value includes the illuminance value of ambient light; In the first state and / or in the first region, the gray level is less than the threshold gray level G. x ; The process of generating the second gamma curve based on the illuminance value and the first gamma curve includes: Step S1: Obtain the light contribution luminance L based on the illuminance value. evr ; Step S2: Based on the first gamma curve and the light contribution brightness L evr Obtain grayscale G A1 ~Grayscale G A2 The corresponding first brightness contrasts CR(A1) to CR(A2), and the threshold grayscale G are obtained respectively. x Wherein, the threshold gray level G x The corresponding first brightness contrast CR(x) is greater than the first brightness contrast of at least some other gray levels, 1≤A2<A1≤M, gray level G M For the maximum gray level, A2 < x < A1; Step S3: Based on grayscale G A1 The corresponding first display brightness L(A1) is used to obtain the grayscale G. A1 The corresponding second display brightness L'(A1), wherein the first display brightness is the display brightness corresponding to the gray level under the first gamma curve; Step S4: Substitute i1 = A1, i1 = A1-1, i1 = A1-2, ..., i1 = x into the equations respectively. Get grayscale G A1-1 ~Grayscale G x-1 The corresponding second display brightness L'(A1-1)~L'(x-1) respectively, where CR'(i1) is the grayscale G i1 The corresponding second brightness contrast; And substitute i2 = x - 1, i2 = x - 2, i2 = x - 3, ..., i2 = A2 into the equations respectively. Get grayscale G x-2 ~Grayscale G A2-1 The corresponding second display brightness L'(x-2)~L'(A2-1) are respectively, where CR'(i2) is the grayscale G. i2 The corresponding second brightness contrast; Step S5: Based on grayscale G A1 ~Grayscale G A2-1 The second gamma curve is generated by taking the corresponding second display brightness L'(A1)~L'(A2-1).
2. The method for generating gamma curves according to claim 1 is characterized in that, In the second state and / or second area of the display panel, the first brightness contrast corresponding to the same gray level is greater than or equal to its corresponding second brightness contrast, and the gray level in the second state and / or second area is greater than or equal to the threshold gray level G. x .
3. The method for generating gamma curves according to claim 1 is characterized in that, The first gamma curve is the baseline gamma curve, and the second gamma curve is the adaptive gamma curve.
4. The method for generating a gamma curve according to claim 1, characterized in that, A1 = M, A2 = 1.
5. The method for generating a gamma curve according to claim 1, characterized in that, Step S1 includes: Step S11: Obtain the direct illuminance value E based on the illuminance value. direct and / or diffuse illuminance value E indirect ; Step S12: Based on the direct illuminance value E direct And / or the diffuse illuminance value E indirect Obtain the light contribution brightness L evr .
6. The method for generating a gamma curve according to claim 5, characterized in that, In step S11, E indirect =E×a,E direct =E×b; where E is the illuminance value, 0≤a≤1, 0≤b≤1, and a+b≤1.
7. The method for generating a gamma curve according to claim 6, characterized in that, b = 1 - a, 0.5 ≤ a ≤ 0.
7.
8. The method for generating a gamma curve according to claim 5, characterized in that, Before step S11, step S1 further includes: Step S10: According to the first instruction, select one of the pre-stored first preset values as a from a plurality of pre-stored first preset values, and / or select one of the pre-stored second preset values as b from a plurality of pre-stored second preset values.
9. The method for generating a gamma curve according to claim 5, characterized in that, Step S12 includes: according to Obtain the light contribution brightness L evr Among them, R d For diffuse reflectance, θ i The incident angle for direct illumination is BRDF, which is the bidirectional reflection distribution function. Or, according to Obtain the light contribution brightness L evr Where R% is the total reflectance and Haze is the haze value.
10. The method for generating a gamma curve according to claim 1, characterized in that, Step S2 includes: Step S21: Obtain the grayscale-display brightness curve L(i) corresponding to the first gamma curve. Among them, L min L represents the first display brightness corresponding to the minimum grayscale G0 under the first gamma curve. max The maximum gray level G M The first display brightness corresponding to the first gamma curve, where bit is the number of bits of the display panel and γ is the gamma value corresponding to the first gamma curve; Step S22: According to Obtain grayscale G respectively M ~The first brightness contrast CR(M)~CR(1) corresponding to grayscale G1 respectively; Step S23: Set the gray level corresponding to the maximum value among the first brightness contrasts CR(M) to CR(1) as the threshold gray level G. x .
11. The method for generating a gamma curve according to claim 1, characterized in that, In step S3, L'(A1) = L(A1).
12. The method for generating a gamma curve according to claim 1, characterized in that, Step S4 includes: Step S41: Based on the first adjustment factor and grayscale G i1 The corresponding first brightness contrast CR(i1) is used to calculate the grayscale G. i1 The corresponding second brightness contrast CR'(i1), where the calculated grayscale G i1 The corresponding second brightness contrast CR'(i1) is less than or equal to the grayscale G. i1 The corresponding first brightness contrast CR(i1); and according to Get grayscale G i1-1 The corresponding second display brightness L'(i1-1), where i1 is initially calculated to be A1; Step S42: Determine if i1 is greater than x. If yes, subtract 1 from the value of i1 and return to step S41. If no, proceed to step S43. Step S43: Based on the threshold grayscale G x The corresponding first brightness contrast CR(x) is used to calculate the grayscale G. x-1 ~Grayscale G A2 The corresponding second brightness contrast, where grayscale G x-1 ~Grayscale G A2 The corresponding second brightness contrasts are all less than or equal to the threshold gray level G. x The corresponding first brightness contrast CR(x), and the grayscale G x-1 ~Grayscale G A2 In the above, at least some gray levels have a greater second brightness contrast than the first brightness contrast corresponding to the same gray level; Step S44: According to Calculate grayscale G i2-1 The corresponding second display brightness L'(i2-1), where i2 takes the value of x-1 in the first calculation; Step S45: Determine if i2 is greater than A2. If yes, subtract 1 from the value of i2 and return to step S44. If no, proceed to step S46. Step S46: Determine grayscale G A2-1 The corresponding second display brightness L'(A2-1) and grayscale G A2-1 If the preset conditions are met between the first display brightness L(A2-1) corresponding to the first gamma curve, proceed to step S5; otherwise, adjust the first adjustment factor and return to step S41.
13. The method for generating a gamma curve according to claim 12, characterized in that, In step S43, grayscale G x-1 ~Grayscale G A2 The corresponding second brightness contrast is calculated based on the first adjustment factor and CR(x).
14. The method for generating a gamma curve according to claim 12, characterized in that, In step S43, grayscale G x-1 ~Grayscale G A2 The corresponding second brightness contrast is calculated based on the second adjustment factor and CR(x); In step S46, when it is determined that L'(A2-1) and L(A2-1) do not meet the preset conditions, the second adjustment factor is also adjusted. In one round of calculation from step S41 to step S46, the second adjustment factor is not equal to the first adjustment factor.
15. The method for generating a gamma curve according to claim 12, characterized in that, Grayscale G x-1 The second brightness contrast corresponding to grayscale G1 is fixed.
16. The method for generating a gamma curve according to claim 12, characterized in that, In step S41, during the initial calculation, CR'(i1) calculated based on the first adjustment factor is equal to CR(i1); When the first adjustment factor needs to be adjusted, the CR'(i1) obtained based on the adjusted first adjustment factor is less than CR(i1).
17. The method for generating a gamma curve according to claim 12, characterized in that, In step S46, the process of determining whether L'(A2-1) and L(A2-1) meet the preset conditions includes: determining whether the absolute value of the difference between L'(A2-1) and L(A2-1) is less than the preset difference ΔL, 0.005nit < ΔL < 0.05nit.
18. The method for generating a gamma curve according to claim 12, characterized in that, In step S46, the process of determining whether L'(A2-1) and L(A2-1) satisfy the preset conditions includes: determining whether L'(A2-1) is equal to L(A2-1).
19. The method for generating a gamma curve according to claim 12, characterized in that, In step S46, the process of determining whether L'(A2-1) and L(A2-1) meet the preset conditions includes: determining whether the absolute value of the difference between L'(A2-1) and L(A2-1) is less than the preset difference; The display panel has a first brightness level and a first gamma curve corresponding to the first brightness level, the first gamma curve corresponding to the first brightness level is a first type of first gamma curve, and the first gamma curve corresponding to the first brightness level is a second type of first gamma curve. Among them, grayscale G A2-1 Under the first type of first gamma curve, L(A2-1) is greater than the gray level G. A2-1 The L(A2-1) corresponding to the first gamma curve of the second type is greater than the preset difference corresponding to the first gamma curve of the second type.
20. The method for generating a gamma curve according to claim 1, characterized in that, In step S4, CR′(i1)=k1×CR(i1), k1 is the first adjustment factor, and k1≤1.
21. The method for generating a gamma curve according to claim 1, characterized in that, In step S4, CR′(i1)=CR(i1)-p1, p1 is the first adjustment factor, and p1≥0.
22. The method for generating a gamma curve according to claim 1, characterized in that, In step S4, CR'(i1) is calculated based on the first adjustment factor and CR(i1); Wherein, the first adjustment factor includes a first sub-adjustment factor and a second sub-adjustment factor; When i1 takes values from A1 to x1, CR'(i1) is calculated based on the first sub-adjustment factor. When i1 takes values from x1-1 to x, CR'(i1) is calculated based on the second sub-adjustment factor. Furthermore, the difference between CR'(i1) calculated based on the second sub-adjustment factor and CR(i1) is less than the difference between CR'(i1) calculated based on the first sub-adjustment factor and CR(i1).
23. The method for generating a gamma curve according to claim 1, characterized in that, In step S4, grayscale G x-1 ~Grayscale G A2 The corresponding second brightness contrast is equal.
24. The method for generating a gamma curve according to claim 1, characterized in that, In step S4, at grayscale G x-1 ~Grayscale G A2 In the middle, at least some gray levels correspond to different second brightness contrasts.
25. The method for generating a gamma curve according to claim 24, characterized in that, In grayscale G x-1 ~Grayscale G A2 In the middle, the difference between the second brightness contrast corresponding to adjacent gray levels is the same; Or, grayscale G x-1 ~Grayscale G A2 At least two grayscale groups are formed, wherein the second brightness contrast corresponding to different grayscale levels in the same grayscale group is the same, and the second brightness contrast corresponding to grayscale levels in different grayscale groups is different.
26. A driving method for a display panel, characterized in that, include: Based on the detected ambient light illuminance value, search for the second gamma curve that matches the ambient light illuminance value in the stored N sets of second gamma curves. Display based on the found second gamma curve; The N sets of second gamma curves stored are generated based on the first gamma curve and N preset illuminance values. Each set of second gamma curves corresponds to a preset illuminance value. In the first state and / or first area of the display panel, the first brightness contrast corresponding to the same gray level is less than its corresponding second brightness contrast. The first brightness contrast is related to the preset illuminance value and / or the first gamma curve. The second brightness contrast is the brightness contrast corresponding to the gray level under the second gamma curve. In the first state and / or in the first region, the gray level is less than the threshold gray level G. x ; The process of generating the second gamma curve includes: Step S1: Obtain the light contribution luminance L based on the illuminance value. evr ; Step S2: Based on the first gamma curve and the light contribution brightness L evr Obtain grayscale G A1 ~Grayscale G A2 The corresponding first brightness contrasts CR(A1) to CR(A2), and the threshold grayscale G are obtained respectively. x Wherein, the threshold gray level G x The corresponding first brightness contrast CR(x) is greater than the first brightness contrast of at least some other gray levels, 1≤A2<A1≤M, gray level G M For the maximum gray level, A2 < x < A1; Step S3: Based on grayscale G A1 The corresponding first display brightness L(A1) is used to obtain the grayscale G. A1 The corresponding second display brightness L'(A1), wherein the first display brightness is the display brightness corresponding to the gray level under the first gamma curve; Step S4: Substitute i1 = A1, i1 = A1-1, i1 = A1-2, ..., i1 = x into the equations respectively. Get grayscale G A1-1 ~Grayscale G x-1 The corresponding second display brightness L'(A1-1)~L'(x-1) respectively, where CR'(i1) is the grayscale G i1 The corresponding second brightness contrast; And substitute i2 = x - 1, i2 = x - 2, i2 = x - 3, ..., i2 = A2 into the equations respectively. Get grayscale G x-2 ~Grayscale G A2-1 The corresponding second display brightness L'(x-2)~L'(A2-1) are respectively, where CR'(i2) is the grayscale G. i2 The corresponding second brightness contrast; Step S5: Based on grayscale G A1 ~Grayscale G A2-1 The second gamma curve is generated by taking the corresponding second display brightness L'(A1)~L'(A2-1).
27. The driving method for a display panel according to claim 26, characterized in that, The process of searching for a second gamma curve that matches the ambient light illuminance value from the stored N sets of second gamma curves, based on the detected ambient light illuminance value, includes: The system searches among N preset illuminance values and selects the preset illuminance value that is closest to the ambient light illuminance value as the first illuminance value. The second gamma curve corresponding to the first illuminance value is the second gamma curve that matches the ambient light illuminance value.
28. A display device, characterized in that, include: Display panel; The sensing module is used to detect ambient light; A first processing module electrically connected to the sensing module is used to obtain the illuminance value of the ambient light based on the detected ambient light information; A second processing module electrically connected to the first processing module is used to store N sets of second gamma curves and to search for a second gamma curve that matches the ambient light illuminance value among the N sets of second gamma curves based on the detected ambient light illuminance value. The N sets of second gamma curves are generated based on the first gamma curve and N preset illuminance values. Each set of second gamma curves corresponds to a preset illuminance value. In the first state and / or first area of the display panel, the first brightness contrast corresponding to the same gray level is less than its corresponding second brightness contrast. The first brightness contrast is related to the preset illuminance value and / or the first gamma curve. The second brightness contrast is the brightness contrast corresponding to the gray level under the second gamma curve. A driving module electrically connected to the second processing module and the display panel respectively is used to drive the display panel to display according to the found second gamma curve; In the first state and / or in the first region, the gray level is less than the threshold gray level G. x ; The process by which the second processing module generates the second gamma curve includes: Step S1: Obtain the light contribution luminance L based on the illuminance value. evr ; Step S2: Based on the first gamma curve and the light contribution brightness L evr Obtain grayscale G A1 ~Grayscale G A2 The corresponding first brightness contrasts CR(A1) to CR(A2), and the threshold grayscale G are obtained respectively. x Wherein, the threshold gray level G x The corresponding first brightness contrast CR(x) is greater than the first brightness contrast of at least some other gray levels, 1≤A2<A1≤M, gray level G M For the maximum gray level, A2 < x < A1; Step S3: Based on grayscale G A1 The corresponding first display brightness L(A1) is used to obtain the grayscale G. A1 The corresponding second display brightness L'(A1), wherein the first display brightness is the display brightness corresponding to the gray level under the first gamma curve; Step S4: Substitute i1 = A1, i1 = A1-1, i1 = A1-2, ..., i1 = x into the equations respectively. Get grayscale G A1-1 ~Grayscale G x-1 The corresponding second display brightness L'(A1-1)~L'(x-1) respectively, where CR'(i1) is the grayscale G i1 The corresponding second brightness contrast; And substitute i2 = x - 1, i2 = x - 2, i2 = x - 3, ..., i2 = A2 into the equations respectively. Get grayscale G x-2 ~Grayscale G A2-1 The corresponding second display brightness L'(x-2)~L'(A2-1) are respectively, where CR'(i2) is the grayscale G. i2 The corresponding second brightness contrast; Step S5: Based on grayscale G A1 ~Grayscale G A2-1 The second gamma curve is generated by taking the corresponding second display brightness L'(A1)~L'(A2-1).
29. A driving method for a display panel, characterized in that, include: A second gamma curve is generated based on the first gamma curve and the detected ambient light illuminance value. In the first state and / or first area of the display panel, the first brightness contrast corresponding to the same gray level is less than its corresponding second brightness contrast. The first brightness contrast is related to the detected ambient light illuminance value and / or the first gamma curve. The second brightness contrast is the brightness contrast corresponding to the gray level under the second gamma curve. Find the brightness value corresponding to the grayscale displayed in the image to be displayed in the second gamma curve; Based on the brightness value found in the second gamma curve, the first gray level corresponding to the display gray level is found in the first gamma curve; Display based on the first gamma curve and the first grayscale; In the first state and / or in the first region, the gray level is less than the threshold gray level G. x ; The process of generating the second gamma curve includes: Step S1: Obtain the light contribution luminance L based on the illuminance value. evr ; Step S2: Based on the first gamma curve and the light contribution brightness L evr Obtain grayscale G A1 ~Grayscale G A2 The corresponding first brightness contrasts CR(A1) to CR(A2), and the threshold grayscale G are obtained respectively. x Wherein, the threshold gray level G x The corresponding first brightness contrast CR(x) is greater than the first brightness contrast of at least some other gray levels, 1≤A2<A1≤M, gray level G M For the maximum gray level, A2 < x < A1; Step S3: Based on grayscale G A1 The corresponding first display brightness L(A1) is used to obtain the grayscale G. A1 The corresponding second display brightness L'(A1), wherein the first display brightness is the display brightness corresponding to the gray level under the first gamma curve; Step S4: Substitute i1 = A1, i1 = A1-1, i1 = A1-2, ..., i1 = x into the equations respectively. Get grayscale G A1-1 ~Grayscale G x-1 The corresponding second display brightness L'(A1-1)~L'(x-1) respectively, where CR'(i1) is the grayscale G i1 The corresponding second brightness contrast; And substitute i2 = x - 1, i2 = x - 2, i2 = x - 3, ..., i2 = A2 into the equations respectively. Get grayscale G x-2 ~Grayscale G A2-1 The corresponding second display brightness L'(x-2)~L'(A2-1) are respectively, where CR'(i2) is the grayscale G. i2 The corresponding second brightness contrast; Step S5: Based on grayscale G A1 ~Grayscale G A2-1 The second gamma curve is generated by taking the corresponding second display brightness L'(A1)~L'(A2-1).
30. The driving method for a display panel according to claim 29, characterized in that, The process of finding the first gray level corresponding to the displayed gray level in the first gamma curve based on the brightness value found in the second gamma curve includes: In the first gamma curve, find the brightness value that is closest to the brightness value found in the second gamma curve; The gray level corresponding to the brightness value found in the first gamma curve is set as the first gray level corresponding to the display gray level.
31. A display device, characterized in that, include: Display panel; The sensing module is used to detect ambient light; A first processing module electrically connected to the sensing module is used to obtain the illuminance value of the ambient light based on the detected ambient light information; A second processing module electrically connected to the first processing module is used to generate a second gamma curve based on the first gamma curve and the detected ambient light illuminance value. In the first state and / or first area of the display panel, the first brightness contrast corresponding to the same grayscale level is less than its corresponding second brightness contrast. The first brightness contrast is related to the detected ambient light illuminance value and / or the first gamma curve. The second brightness contrast is the brightness contrast corresponding to the grayscale level under the second gamma curve. The module then searches for a brightness value in the second gamma curve that corresponds to the grayscale level displayed in the image to be displayed. Based on the brightness value found in the second gamma curve, the module searches for a first grayscale level in the first gamma curve that corresponds to the displayed grayscale level. A driving module electrically connected to the second processing module and the display panel respectively is used to drive the display panel to display according to the first gamma curve and the first grayscale. In the first state and / or in the first region, the gray level is less than the threshold gray level G. x ; The process by which the second processing module generates the second gamma curve includes: Step S1: Obtain the light contribution luminance L based on the illuminance value. evr ; Step S2: Based on the first gamma curve and the light contribution brightness L evr Obtain grayscale G A1 ~Grayscale G A2 The corresponding first brightness contrasts CR(A1) to CR(A2), and the threshold grayscale G are obtained respectively. x Wherein, the threshold gray level G x The corresponding first brightness contrast CR(x) is greater than the first brightness contrast of at least some other gray levels, 1≤A2<A1≤M, gray level G M For the maximum gray level, A2 < x < A1; Step S3: Based on grayscale G A1 The corresponding first display brightness L(A1) is used to obtain the grayscale G. A1 The corresponding second display brightness L'(A1), wherein the first display brightness is the display brightness corresponding to the gray level under the first gamma curve; Step S4: Substitute i1 = A1, i1 = A1-1, i1 = A1-2, ..., i1 = x into the equations respectively. Get grayscale G A1-1 ~Grayscale G x-1 The corresponding second display brightness L'(A1-1)~L'(x-1) respectively, where CR'(i1) is the grayscale G i1 The corresponding second brightness contrast; And substitute i2 = x - 1, i2 = x - 2, i2 = x - 3, ..., i2 = A2 into the equations respectively. Get grayscale G x-2 ~Grayscale G A2-1 The corresponding second display brightness L'(x-2)~L'(A2-1) are respectively, where CR'(i2) is the grayscale G. i2 The corresponding second brightness contrast; Step S5: Based on grayscale G A1 ~Grayscale G A2-1 The second gamma curve is generated by taking the corresponding second display brightness L'(A1)~L'(A2-1).
Citation Information
Patent Citations
Display method and display device
CN111916031A