Image display method, apparatus, display device, and storage medium
By obtaining the average grayscale value of the image to be displayed and selecting and adjusting the gamma curve of the display device, the problem of poor display effect of the display device on different images is solved, the brightness is matched with the image, and the display effect is improved.
Patent Information
- Application Number
- CN202210135533.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-02-14
- Publication Date
- 2025-11-04
- Estimated Expiration
- 2042-02-14
AI Technical Summary
Existing display devices struggle to achieve optimal display results using the same gamma curve when displaying different images, resulting in poor display quality.
By obtaining the average grayscale value of the image to be displayed, a matching gamma curve is selected from multiple gamma curves of the display device, the reference gamma curve is adjusted to generate a second gamma curve, and then the image is displayed.
It achieves a match between the brightness of the display device and the actual image, improving the display effect, making dark areas darker, bright areas brighter, details more outstanding, and overall contrast improved.
Smart Images

Figure CN116631314B_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The present application relates to the technical field of display, more particularly, to an image display method and device, a display apparatus and a storage medium. BACKGROUND
[0002] With the development of display technology, people have higher and higher requirements on display effect. When displaying content, people usually hope that the display effect of the display apparatus is clear and beautiful, and people can enjoy it. In the related art, in order to improve the display effect, new display apparatuses are subjected to gamma correction, and content is displayed according to a fixed gamma curve thereafter. SUMMARY
[0003] The present application provides an image display method, device, display apparatus and storage medium, which can realize matching of display brightness and actual image, and improve display effect.
[0004] In a first aspect, an image display method is provided, which is applied to a display apparatus, and includes: obtaining an average gray value corresponding to a to-be-displayed image; obtaining, based on the average gray value, a gamma curve corresponding to the to-be-displayed image from a plurality of first gamma curves corresponding to the display apparatus, as a target gamma curve, wherein the plurality of first gamma curves are gamma curves corresponding to different gamma values of the display apparatus; adjusting a reference gamma curve corresponding to the display apparatus based on the target gamma curve, to obtain a second gamma curve; and displaying the to-be-displayed image based on the second gamma curve.
[0005] In a second aspect, an image display device is provided, which is applied to a display apparatus, and includes: a gray value obtaining module, a curve obtaining module, a curve adjusting module and a content display module, wherein the gray value obtaining module is configured to obtain an average gray value corresponding to a to-be-displayed image; the curve obtaining module is configured to obtain, based on the average gray value, a gamma curve corresponding to the to-be-displayed image from a plurality of first gamma curves corresponding to the display apparatus, as a target gamma curve, wherein the plurality of first gamma curves are gamma curves corresponding to different gamma values of the display apparatus; the curve adjusting module is configured to adjust a reference gamma curve corresponding to the display apparatus based on the target gamma curve, to obtain a second gamma curve; and the content display module is configured to display the to-be-displayed image based on the second gamma curve.
[0006] In a third aspect, an embodiment of the present application provides a display device, comprising: one or more processors; a memory; and one or more application programs, wherein the one or more application programs are stored in the memory and configured to be executed by the one or more processors, and the one or more application programs are configured to execute the image display method provided in the first aspect.
[0007] In a fourth aspect, an embodiment of the present application provides a computer readable storage medium, wherein the computer readable storage medium stores program codes, and the program codes can be invoked by a processor to execute the image display method provided in the first aspect.
[0008] The scheme provided in the present application can obtain the average gray value corresponding to the image to be displayed, obtain the gamma curve corresponding to the image to be displayed from the gamma curves corresponding to different gamma values of the display device based on the average gray value, adjust the reference gamma curve corresponding to the display device based on the obtained gamma curve, and then display the image to be displayed based on the adjusted gamma curve. Thus, the display device can determine the corresponding gamma curve based on the actual gray value of the image, adjust the reference gamma curve, and then display the image to be displayed, so as to realize the matching of the display brightness and the actual image and improve the display effect. BRIEF DESCRIPTION OF DRAWINGS
[0009] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings needed in the embodiment description will be briefly introduced. Obviously, the drawings in the following description are only some embodiments of the present application, and other drawings can be obtained by those skilled in the art without creative effort.
[0010] Figure 1 An image display method flowchart according to an embodiment of the present application is shown.
[0011] Figure 2 An image display method flowchart according to another embodiment of the present application is shown.
[0012] Figure 3 An image display method flowchart according to another embodiment of the present application is shown.
[0013] Figure 4 An image display method flowchart according to another embodiment of the present application is shown.
[0014] Figure 5 An image display method flowchart according to another embodiment of the present application is shown.
[0015] Figure 6A block diagram of an image display device according to an embodiment of the present application is shown.
[0016] Figure 7 A block diagram of an electronic device for performing an image display method according to an embodiment of the present application is shown.
[0017] Figure 8 A storage unit for storing or carrying program code for implementing an image display method according to an embodiment of the present application is shown. DETAILED DESCRIPTION
[0018] In order to enable those skilled in the art to better understand the present application, the technical solutions in the embodiments of the present application will be described clearly and completely below with reference to the drawings in the embodiments of the present application.
[0019] In display technology, a display device usually displays content through a gamma curve, and for a new display device, the gamma curve is corrected, and content is displayed according to the corrected gamma curve. However, the display device usually displays content according to a fixed gamma curve when displaying content later. However, there are differences between different images, and if the same gamma curve is used to display images, it is difficult to achieve a better display effect.
[0020] To solve the above problems, the inventors provide an image display method, device, display device and storage medium, which obtain an average gray value corresponding to a to-be-displayed image, obtain a gamma curve corresponding to the to-be-displayed image from a plurality of gamma curves corresponding to the display device, and adjust a reference gamma curve corresponding to the display device based on the obtained gamma curve, and then display the to-be-displayed image based on the adjusted gamma curve. Thus, the display device can determine a corresponding gamma curve based on the actual gray value of the image, adjust the reference gamma curve based on the corresponding gamma curve, and then display the to-be-displayed image, so as to realize matching of display brightness and actual image and improve the display effect. The specific image display method is described in detail in subsequent embodiments.
[0021] The image display method provided by the embodiments of the present application will be described in detail below with reference to the accompanying drawings.
[0022] Please refer to Figure 1 , Figure 1 A flowchart of an image display method according to an embodiment of the present application is shown. In specific embodiments, the image display method is applied to an image display device 400 as shown in Figure 6 and a display device 100 configured with the image display device 400. Figure 7). The following will take the display device as an example to illustrate the specific process of the embodiment. It can be understood that the display device applied in the embodiment can be a smart television, a display, a smart phone, a tablet computer, a smart watch, an electronic book, etc., which is not limited here. The following will be described in detail with reference to the flow shown in FIG. 1. The image display method can specifically include the following steps: Figure 1
[0023] Step S110: Obtain an average gray value corresponding to the to-be-displayed image.
[0024] In the embodiment of the present application, when the display device displays content, the to-be-displayed image can be obtained to determine the gamma curve according to different display images for display. The display device can obtain the average gray value corresponding to the to-be-displayed image, adjust the reference gamma curve corresponding to the display device according to the average gray value, and then display the to-be-displayed image. The to-be-displayed image can be a video image in a video stream, or a single picture, etc., which is not limited here.
[0025] In some embodiments, the to-be-displayed image can be transmitted by an external device, for example, when the display device is a smart television, the image in the video stream obtained by the smart television through the network; the to-be-displayed image can also be an image stored by the display device. The specific source of the to-be-displayed image can not be limited. Alternatively, when the display device displays content, the to-be-displayed image can be cached in a buffer, and the display device can obtain the to-be-displayed image from the buffer.
[0026] In some embodiments, when the display device obtains the average gray value corresponding to the to-be-displayed image, the gray histogram of the to-be-displayed image can be obtained. Since the gray histogram is a statistical representation of the distribution of gray levels in the image, it represents the number of pixels with a certain gray level in the image. Therefore, the average gray value of the to-be-displayed image can be obtained based on the gray histogram of the to-be-displayed image.
[0027] Step S120: Based on the average gray value, obtain a gamma curve corresponding to the to-be-displayed image from a plurality of first gamma curves corresponding to the display device as a target gamma curve, wherein the plurality of first gamma curves are gamma curves corresponding to different gamma values of the display device.
[0028] In the embodiments of the present application, after the display device obtains the average gray value corresponding to the image to be displayed, the display device can determine a gamma curve for adjusting the corresponding gamma value of the reference gamma curve of the display device based on the average gray value of the image to be displayed. For an image, each pixel has a certain brightness, and these pixel values are the information input into the display device. However, due to technical limitations, the display device can only output these values in a nonlinear manner, that is, output = input / gamma. Because different display devices have different display performance, the gamma curves corresponding to different gamma values (gamma coefficients) of different display devices are also different.
[0029] It can be understood that, for the gamma curves corresponding to different gamma values, the display performance of the display device when presenting the same color is also different. For example, for the gamma curve corresponding to a relatively high gamma value, the output value presented by the gamma curve is lower than the output value presented by the gamma curve corresponding to a relatively low gamma value when the input value is the same. Conversely, for the gamma curve corresponding to a relatively low gamma value, the output value presented by the gamma curve is higher than the output value presented by the gamma curve corresponding to a relatively high gamma value when the input value is the same. In addition, the average gray value of the image to be displayed can represent the overall brightness of the image to be displayed. Therefore, the gamma curve corresponding to the average gray value can be determined, and the reference gamma curve is adjusted, and then the adjusted reference gamma curve is used to display the image to be displayed.
[0030] In some embodiments, the display device can test the gamma curves corresponding to different gamma values in advance when displaying images. For example, the gamma curves corresponding to different gamma values can be obtained according to the brightness presented when displaying images.
[0031] As a possible implementation, the display device can also test the gamma curves corresponding to different gamma values before performing a display task each time. For example, the display device can test the gamma curves corresponding to different gamma values each time the display device is turned on.
[0032] In some embodiments, the electronic device can prestore a correspondence between different gray values and gamma curves, so as to obtain a gamma curve matched with the image to be displayed according to the average gray value of the image to be displayed. The correspondence can be obtained through experiments in advance, that is, when the image with the average gray value is displayed by using the reference gamma curve adjusted by using the gamma curve corresponding to the average gray value, a better effect can be presented, for example, the dark area is darker, the bright area is brighter, the details are better, and the overall contrast is improved.
[0033] Step S130: adjusting the reference gamma curve corresponding to the display device based on the target gamma curve to obtain a second gamma curve.
[0034] In the embodiments of the present application, after the target gamma curve is determined, the target gamma curve can be used to adjust the reference gamma curve corresponding to the display device to obtain a second gamma curve. The reference gamma curve can be a gamma curve that is usually used by the display device when displaying content, for example, the reference gamma curve can be a gamma2.2 standard curve. It should be noted that the reference gamma curves corresponding to different display devices can be different.
[0035] In some embodiments, when the display device adjusts the reference gamma curve corresponding to the display device based on the target gamma curve, the offset value between the output luminance and the input luminance corresponding to the target gamma curve can be obtained; the initial output luminance in the reference gamma curve is updated to the sum value between the initial output luminance and the offset value to obtain the second gamma curve. For example, the adjustment can be performed according to the following formula:
[0036] Y = Y2.2 + |Y n -n|, where Y2.2 is the reference gamma curve, Y n is the target gamma curve, and n is the input value, that is, the offset range of the output value of the target gamma curve is added to the value according to the reference gamma curve to generate a new gamma curve, the fitting of the target gamma curve and the reference gamma curve is realized, so that the new gamma curve can match the actual average gray value of the to-be-displayed image, thereby better presenting the image content of the to-be-displayed image.
[0037] Step S140: displaying the to-be-displayed image based on the second gamma curve.
[0038] In the embodiments of the present application, after the display device obtains the second gamma curve obtained by adjusting the reference gamma curve, the input value corresponding to the to-be-displayed image can be determined based on the corresponding relationship between the output value and the input value in the second gamma curve, and the to-be-displayed image can be displayed based on the input value.
[0039] The image display method provided in the embodiments of the present application obtains the average gray value corresponding to the to-be-displayed image, obtains the gamma curve corresponding to the to-be-displayed image from the gamma curves corresponding to different gamma values of the display device based on the average gray value, adjusts the reference gamma curve corresponding to the display device based on the obtained gamma curve, and then displays the to-be-displayed image based on the adjusted gamma curve. Therefore, the display device can determine the corresponding gamma curve based on the actual gray value of the image, adjust the reference gamma curve, and then display the to-be-displayed image, so as to realize the matching of the display luminance and the actual image and improve the display effect.
[0040] Please refer to Figure 2 , Figure 2 A flowchart of an image display method provided by another embodiment of the present application is shown. The image display method is applied to the display device described above, and will be described in detail below with respect to the flowchart shown in FIG. 8. The image display method can specifically include the following steps. Figure 2
[0041] Step S210: Obtain an average gray value corresponding to the image to be displayed.
[0042] In the embodiments of the present application, step S210 can refer to the content of the foregoing embodiments, which will not be described here again.
[0043] Step S220: According to a mapping relationship between the gray value and the gamma curve, obtain a first gamma curve matching the average gray value from a plurality of first gamma curves corresponding to the display device as a target gamma curve, the plurality of first gamma curves being different gamma value gamma curves corresponding to the display device.
[0044] In the embodiments of the present application, the mapping relationship between the gray value and the gamma curve is pre-set in the display device. When the gamma curve corresponding to the image to be displayed is determined based on the average gray value of the image to be displayed, the mapping relationship can be used to obtain a first gamma curve matching the average gray value of the image to be displayed from a plurality of first gamma curves of different gamma values corresponding to the display device as a target gamma curve. The mapping relationship can be obtained through experiments in advance, that is, the gamma curve corresponding to the average gray value is used to adjust the reference gamma curve, and the image of the average gray value is displayed using the adjusted reference gamma curve. As a result, a better effect can be achieved, such as darker dark areas, brighter bright areas, better detail performance, and improved overall contrast.
[0045] In some embodiments, the gray value range can be divided into multiple gray value ranges, for example, the gray value range of 0-255 can be evenly divided into 7 ranges: 0-36, 37-64, 65-102, 103-140, 141-178, 179-216, 217-255; for another example, the maximum gray value is set to 100, which can be divided into: 0-10, 11-20, 21-50, 51-60, 61-70, 71-80, 81-90, 90-100. In addition, the first gamma curve corresponding to each gray value range can be determined in advance through experiments, so as to establish the sub-mapping relationship between the first gamma curve and the gray value in each gray value range. For example, for the second division method described above, the gamma value corresponding to 0-10 is: 1.8-1.9, the gamma value corresponding to 11-20 is: 2.3-1.9, the gamma value corresponding to 21-50 is: 2.1-2.2, the gamma value corresponding to 51-60 is: 2.21-2.3, the gamma value corresponding to 61-70 is: 2.31-2.4, the gamma value corresponding to 71-80 is: 2.4-2.3, the gamma value corresponding to 81-90 is: 2.3-2.2, and the gamma value corresponding to 90-100 is: 2.2-2.0. The above only exemplifies the range of gamma value corresponding to each gray value range, and in the specific implementation, the corresponding relationship between the gray value in each gray value range and the gamma value in the range of the corresponding gamma value can be established, that is, the corresponding relationship between the gray value in each gray value range and the gamma curve of different gamma values. In this example, the gamma curve corresponding to each gray value range can be obtained through experiments, for example, when the average gray value belongs to 0-10, the gamma curve with a gamma value of 1.8-1.9 has better color gradient for darker images, not only makes the darker scene clearer, but also increases the overall tone brightness, so it is suitable for too dark images; for another example, when the average gray value belongs to 81-90, the gamma curve with a gamma value of 2.2-2.3 can enhance the details in slightly over-bright scenes, provide enhanced contrast, and improve the visibility of bright colors, so it is suitable for slightly over-bright images. Of course, the effect of the gamma curve corresponding to each gray value range can be referred to the effect of the corresponding gamma curve itself on different gray images, which will not be exemplified one by one here.
[0046] In this mode, the display device obtains, as the target gamma curve, a first gamma curve matching the average gray value from the plurality of first gamma curves corresponding to the display device according to the mapping relationship between the preset gray value and the gamma curve, which can include: obtaining a first target gray range to which the average gray value belongs; and obtaining, as the target gamma curve, a first gamma curve matching the average gray value from the plurality of first gamma curves corresponding to the display device based on a sub-mapping relationship corresponding to the first target gray range. Wherein, the display device can determine the gray range corresponding to the average gray value of the image to be displayed, and then obtain, as the target gamma curve, a first gamma curve matching the average gray value from the plurality of first gamma curves corresponding to the display device according to the sub-mapping relationship corresponding to the gray range.
[0047] Step S230: adjusting the reference gamma curve corresponding to the display device based on the target gamma curve to obtain a second gamma curve.
[0048] In the embodiments of the present application, after the display device determines the target gamma curve, the display device can adjust the reference gamma curve corresponding to the display device based on the target gamma curve to obtain a second gamma curve.
[0049] In some embodiments, referring to Figure 3 adjusting the reference gamma curve corresponding to the display device based on the target gamma curve to obtain a second gamma curve can include:
[0050] Step S231: obtaining, as a first curve segment, a curve segment corresponding to the first target gray range from the target gamma curve.
[0051] Step S232: adjusting the reference gamma curve corresponding to the display device based on the first curve segment to obtain a second gamma curve.
[0052] In this embodiment, for the determined target gamma curve, since the image in the gray range has a good presentation effect, and the average gray value of the image to be displayed also belongs to the gray range, when the reference gamma curve is adjusted based on the target gamma curve, only the curve segment of the target gamma curve in the gray range can be taken to adjust the reference gamma curve.
[0053] Optionally, the display device can adjust, based on the first curve segment, a curve segment corresponding to the first target gray range in the reference gamma curve corresponding to the display device to obtain a second gamma curve.
[0054] As an implementation, the display device can adjust the curve segment corresponding to the first target gray scale range in the reference gamma curve corresponding to the display device based on the first curve segment, and obtain the offset value between the output luminance corresponding to the first curve segment and the input luminance; update the initial output luminance in the first target gray scale range in the reference gamma curve in the reference gamma curve to the sum value between the initial output luminance and the offset value, to obtain a second gamma curve. For example, when adjusting the curve segment in the first target gray scale range in the reference gamma curve, the adjustment can be performed according to the following formula:
[0055] Y = Y 2.2 + |Y n -n|, where Y 2.2 is the reference gamma curve, Y n is the target gamma curve, and n is the input value in the first target gray scale range, that is, a new curve segment is generated by adding the offset range of the output value of the first curve segment to the value in the first target gray scale range of the reference gamma curve, and then the new curve segment is replaced with the curve segment corresponding to the first target gray scale range in the reference gamma curve, to realize the fitting of the target gamma curve and the reference gamma curve, so that the new gamma curve can have a better presentation effect on the image to be displayed.
[0056] Step S240: displaying the image to be displayed based on the second gamma curve.
[0057] In the embodiments of the present application, step S240 can refer to the content of the foregoing embodiments, which will not be described here.
[0058] The image display method provided by the embodiments of the present application obtains the average gray scale corresponding to the image to be displayed, obtains the first gamma curve matching the average gray scale value from the plurality of first gamma curves corresponding to the display device based on the mapping relationship between the gray scale value and the gamma curve, and adjusts the reference gamma image by using the determined gamma image, so that the image to be displayed can have a better presentation effect.
[0059] Please refer to Figure 4 , Figure 4 Fig. 1 shows a flow diagram of an image display method provided by another embodiment of the present application. The image display method is applied to the display device described above, and the following will be described in detail with respect to the flow shown in Fig. 1. The image display method can specifically include the following steps: Figure 4
[0060] Step S310: obtaining an average gray scale value corresponding to an image to be displayed.
[0061] In the embodiments of the present application, step S310 can refer to the content of the foregoing embodiments, and will not be described here again.
[0062] Step S320: based on the gray histogram corresponding to the image to be displayed, obtaining the gray mean value corresponding to each gray range, wherein the gray range is a pre-divided gray range.
[0063] In the embodiments of the present application, the display device can pre-divide each gray range, wherein the way of dividing the gray range can refer to the way of dividing the gray range in the foregoing embodiments, and will not be described here again. The display device can also obtain the gray mean value corresponding to each gray range based on the gray histogram corresponding to the image to be displayed. For example, the gray mean value is divided into 7 ranges, i.e. 0-36, 37-64, 65-102, 103-140, 141-178, 179-216, and 217-255, the average value corresponding to each range in the 7 ranges can be obtained by calculating the average value of the histogram distribution of the seven ranges.
[0064] Step S330: based on the gray mean value corresponding to each gray range, obtaining the gray range with a gray mean value greater than the average gray value as a second target gray range.
[0065] In the embodiments of the present application, after the display device determines the gray mean value corresponding to each gray range, the display device can obtain the gray range with a gray mean value greater than the average gray value, so as to adjust the reference gamma curve for the gray range. It can be understood that if the gray mean value corresponding to any gray range is greater than the average gray mean value, it indicates that the gray in the gray range is relatively greater than the average gray value of the image to be displayed, and the greater the gray, the brighter the content of the gray range. Therefore, the reference gamma curve can be adjusted for the brighter gray range, so that the content of the gray range is brighter, or the content of the gray range can present more details.
[0066] Step S340: based on the mapping relationship between the gray range and the gamma curve pre-set, obtaining the gamma curve corresponding to the second target gray range from the plurality of first gamma curves corresponding to the display device as a target gamma curve, wherein the plurality of first gamma curves are the gamma curves corresponding to different gamma values of the display device.
[0067] In the embodiments of the present application, the display device can pre-set the mapping relationship between the gray range and the gamma curve. In the mapping relationship, each gamma curve has a better presentation effect on the image corresponding to the gray range, for example, can increase the brightness, or enhance the detail display, etc. Therefore, based on the mapping relationship, the selected gamma curve corresponding to the second target gray range can better present the image in the second target gray range.
[0068] Step S350: Obtain the curve segment corresponding to the second target gray scale range from the target gamma curve as a second curve segment.
[0069] In the embodiments of the present application, when the display device adjusts the reference gamma curve according to the target gamma curve, the target gamma curve has a better presentation effect on the image in the second target gray scale range corresponding to the target gamma curve. Therefore, when the reference gamma curve is adjusted according to the target gamma curve, the curve segment of the second target gray scale range in the target gamma curve can be used to adjust the reference gamma curve.
[0070] Step S360: Adjust the reference gamma curve corresponding to the display device based on the second curve segment to obtain a second gamma curve.
[0071] In some embodiments, the display device can adjust the curve segment corresponding to the second target gray scale range in the reference gamma curve corresponding to the display device based on the second curve segment to obtain a second gamma curve.
[0072] As an embodiment, the display device can adjust the curve segment corresponding to the second target gray scale range in the reference gamma curve corresponding to the display device based on the second curve segment, obtain the offset value between the output luminance corresponding to the second curve segment and the input luminance, update the initial output luminance in the second target gray scale range in the reference gamma curve to the sum of the initial output luminance and the offset value to obtain a second gamma curve. For example, when the curve segment in the second target gray scale range in the reference gamma curve is adjusted, the adjustment can be performed according to the following formula:
[0073] Y = Y2.2 + |Y n -n|, where Y2.2 is the reference gamma curve, Y n is the target gamma curve, and n is the input value in the second target gray scale range, that is, a new curve segment is generated by adding the offset range of the output value of the second curve segment to the value in the second target gray scale range of the reference gamma curve, and then the new curve segment is used to replace the curve segment corresponding to the second target gray scale range in the reference gamma curve, so as to realize the fitting of the target gamma curve and the reference gamma curve, thereby enabling the new gamma curve to have a better presentation effect on the image to be displayed.
[0074] Step S370: Display the image to be displayed based on the second gamma curve.
[0075] In the embodiments of the present application, step S370 can refer to the content of the foregoing embodiments, which will not be described here.
[0076] The image display method provided in the embodiments of the present application can select the corresponding gamma curve for adjustment for the gray scale range with a mean gray scale value greater than the average gray scale value in the image to be displayed, and then display the image to be displayed based on the adjusted gamma curve, so that the area with a gray scale value greater than the average gray scale value of the image to be displayed can be brighter and more details can be presented, thereby improving the image display effect.
[0077] Please refer to Figure 5 , Figure 5 A flowchart of an image display method provided in another embodiment of the present application is shown. The image display method is applied to the display device described above, and will be described in detail below with reference to the flowchart shown in Figure 5 The image display method can specifically include the following steps:
[0078] Step S410: Display a plurality of test images.
[0079] In the embodiments of the present application, the display device can pre-store test images for testing gamma curves, and when the display device needs to obtain gamma curves with different gamma values, the display device can display a plurality of test images and obtain the maximum brightness of the display panel when displaying the images.
[0080] Step S420: Obtain gamma curves with different gamma values based on the maximum brightness of the display panel when the display device displays the test images, to obtain a plurality of first gamma curves.
[0081] In the embodiments of the present application, the display device can obtain gamma curves with different gamma coefficients (gamma values) based on the maximum brightness of the display panel when displaying the test images by using the cubic spline interpolation method, to obtain a plurality of first gamma curves.
[0082] In some embodiments, after obtaining the plurality of first gamma curves, the display device can store the data corresponding to the first gamma curves, so as to adjust the reference gamma curve when displaying content. In this way, the display device does not need to determine the gamma curves with different gamma values every time when displaying content.
[0083] As a possible implementation, the performance of the display device can change over time. To ensure the display effect when displaying images, the display device can periodically obtain the gamma curves with different gamma values by using the above method to update the plurality of first gamma curves. For example, the display device can obtain the plurality of first gamma curves by using the above method every preset display duration. For another example, the display device can obtain the plurality of first gamma curves by using the above method every time when starting up.
[0084] Step S430: obtaining an average gray value corresponding to the to-be-displayed image.
[0085] In some embodiments, since the display device needs to determine the second gamma curve for each frame of to-be-displayed image when displaying the content, the amount of calculation is relatively large, which may cause display lag for the device with limited processing capacity. Therefore, before performing steps S430-S460, the display device can obtain a parameter value of a remaining resource parameter, such as a remaining usage rate of a processor, and if the parameter value of the remaining resource parameter is greater than a preset parameter threshold, steps S430-S460 can be performed; if the parameter value of the remaining resource parameter is not greater than the preset parameter threshold, steps S430-S460 can not be performed.
[0086] As a possible implementation, if the display device determines that the parameter value of the remaining resource parameter is not greater than the preset parameter threshold, the average gray values of a plurality of consecutive frames of to-be-displayed images can be determined, and if the difference between the average gray values of the plurality of frames of to-be-displayed images is not greater than a preset difference value, steps S430-S460 are performed; if the difference between the average gray values of the plurality of frames of to-be-displayed images is greater than the preset difference value, steps S430-S460 are not performed. It can be understood that if the difference between the average gray values of the plurality of frames of to-be-displayed images is not greater than the preset difference value, it indicates that the difference between the plurality of consecutive frames of to-be-displayed images is small, and therefore the same adjusted gamma curve can be used to display the to-be-displayed image, thereby saving processing resources and improving the image display effect to some extent.
[0087] Step S440: obtaining, based on the average gray value, a gamma curve corresponding to the to-be-displayed image from a plurality of first gamma curves corresponding to the display device as a target gamma curve, wherein the plurality of first gamma curves are gamma curves corresponding to different gamma values of the display device.
[0088] Step S450: adjusting, based on the target gamma curve, a reference gamma curve corresponding to the display device to obtain a second gamma curve.
[0089] Step S460: displaying, based on the second gamma curve, the to-be-displayed image.
[0090] In the embodiments of the present application, steps S430-S460 can refer to the content of the foregoing embodiments, which will not be described here.
[0091] The image display method provided by the embodiments of the present application, the display device displays a test image, and determines a gamma curve of different gamma values based on the maximum brightness when the test image is displayed. When displaying a to-be-displayed image, the to-be-displayed image is displayed after the reference gamma curve is adjusted by using the gamma curve corresponding to the average gray value of the to-be-displayed image in the test gamma curves of different gamma values. Thus, the matching between the display brightness and the actual image can be realized, and the display effect is improved. Moreover, the gamma curves of different gamma values are obtained by the display device, and thus the gamma curves are more accurate. When the reference gamma curve is adjusted, the adjusted gamma curve is more accurate, so that the image can be better presented, and the display effect is further improved.
[0092] Referring to Figure 6 which shows a structural block diagram of an image display device 400 provided by an embodiment of the present application. The image display device 400 applies the display device described above, and the image display device 400 includes a gray value obtaining module 410, a curve obtaining module 420, a curve adjusting module 430, and a content display module 440. The gray value obtaining module 410 is configured to obtain an average gray value corresponding to a to-be-displayed image. The curve obtaining module 420 is configured to obtain, based on the average gray value, a gamma curve corresponding to the to-be-displayed image from a plurality of first gamma curves corresponding to the display device, as a target gamma curve, wherein the plurality of first gamma curves are gamma curves of different gamma values corresponding to the display device. The curve adjusting module 430 is configured to adjust, based on the target gamma curve, a reference gamma curve corresponding to the display device, to obtain a second gamma curve. The content display module 440 is configured to display the to-be-displayed image based on the second gamma curve.
[0093] In some embodiments, the curve obtaining module 420 can be specifically configured to obtain, according to a preset mapping relationship between a gray value and a gamma curve, a first gamma curve matching the average gray value from the plurality of first gamma curves corresponding to the display device, as the target gamma curve.
[0094] As a possible implementation, the mapping relationship includes a sub-mapping relationship corresponding to each gray range in a pre-divided gray range. The curve obtaining module 420 can be further specifically configured to obtain a first target gray range to which the average gray value belongs, and obtain, based on the sub-mapping relationship corresponding to the first target gray range, a first gamma curve matching the average gray value from the plurality of first gamma curves corresponding to the display device, as the target gamma curve.
[0095] In this implementation, the curve adjustment module 430 can be specifically configured to: obtain, from the target gamma curve, a curve segment corresponding to the first target gray range as a first curve segment; and adjust the reference gamma curve corresponding to the display device based on the first curve segment to obtain a second gamma curve.
[0096] Optionally, the curve adjustment module 430 can also be specifically configured to: adjust, based on the first curve segment, a curve segment corresponding to the first target gray range in the reference gamma curve corresponding to the display device to obtain a second gamma curve.
[0097] In some implementations, the gray level obtaining module 410 can also be configured to: before the obtaining, based on the average gray level value, the gamma curve corresponding to the to-be-displayed image from the plurality of first gamma curves corresponding to the display device as a target gamma curve, obtain a gray level mean value corresponding to each gray range based on a gray level histogram corresponding to the to-be-displayed image, the each gray range being a pre-divided gray range. The curve obtaining module 420 can be configured to: based on the gray level mean value corresponding to each gray range, obtain a gray range with a gray level mean value greater than the average gray level value as a second target gray range; and based on a pre-set mapping relationship between a gray range and a gamma curve, obtain, from the plurality of first gamma curves corresponding to the display device, a gamma curve corresponding to the second target gray range as a target gamma curve.
[0098] As a possible implementation, the curve adjustment module 430 can be specifically configured to: obtain, from the target gamma curve, a curve segment corresponding to the second target gray range as a second curve segment; and adjust the reference gamma curve corresponding to the display device based on the second curve segment to obtain a second gamma curve.
[0099] In some implementations, the curve adjustment module 430 can be specifically configured to: obtain an offset value between an output luminance and an input luminance corresponding to the target gamma curve; and update an initial output luminance in the reference gamma curve to a sum value between the initial output luminance and the offset value to obtain a second gamma curve.
[0100] In some implementations, the content display module 440 can also be configured to display a plurality of test images before the obtaining, based on the average gray level value, the gamma curve corresponding to the to-be-displayed image from the plurality of first gamma curves corresponding to the display device as a target gamma curve. The curve obtaining module 420 can also be configured to obtain the plurality of first gamma curves according to a maximum luminance when the display device displays the test images.
[0101] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working process of the above-described device and module can refer to the corresponding process in the foregoing method embodiments, and will not be described here.
[0102] In several embodiments provided in the present application, the coupling between the modules can be electrical, mechanical or other forms of coupling.
[0103] In addition, each functional module in each embodiment of the present application can be integrated into a processing module, or each module can exist physically alone, or two or more modules can be integrated into one module. The integrated module can be realized in the form of hardware or in the form of a software functional module.
[0104] To sum up, the scheme provided in the present application acquires the average gray value corresponding to the image to be displayed, acquires the gamma curve corresponding to the image to be displayed from the gamma curves corresponding to different gamma values of the display device based on the average gray value, adjusts the reference gamma curve corresponding to the display device based on the acquired gamma curve, and then displays the image to be displayed based on the adjusted gamma curve. Thus, the display device can determine the corresponding gamma curve based on the actual gray value of the image, adjust the reference gamma curve, and then display the image to be displayed, so as to realize the matching of the display brightness and the actual image and improve the display effect.
[0105] Please refer to Figure 7 which shows a structural block diagram of a display device provided in an embodiment of the present application. The display device 100 can be a smart television, a display, a smart phone, a tablet computer, a smart watch, an electronic book, or the like, which can run an application program. The display device 100 in the present application can include one or more of the following components: a processor 110, a memory 120, and one or more application programs, wherein the one or more application programs can be stored in the memory 120 and configured to be executed by the one or more processors 110, and the one or more application programs are configured to execute the method as described in the foregoing method embodiments.
[0106] The processor 110 can include one or more processing cores. The processor 110 utilizes various interfaces and lines to connect various parts within the entire display device 100, performs various functions of the display device 100 and processes data by running or executing instructions, programs, code sets or instruction sets stored in the memory 120, and calling data stored in the memory 120. Optionally, the processor 110 can be implemented in at least one of a hardware form of a digital signal processing (DSP), a field-programmable gate array (FPGA), a programmable logic array (PLA). The processor 110 can be integrated with a combination of one or more of a central processing unit (CPU), a graphics processing unit (GPU), and a modem. Among them, the CPU mainly processes operating systems, user interfaces, and application programs; the GPU is responsible for rendering and drawing display content; and the modem is used for processing wireless communication. It can be understood that the above-mentioned modem can also not be integrated into the processor 110, but can be implemented separately by a communication chip.
[0107] The memory 120 can include a random access memory (RAM) and can also include a read-only memory (ROM). The memory 120 can be used to store instructions, programs, codes, code sets or instruction sets. The memory 120 can include a program storage area and a data storage area, wherein the program storage area can store instructions for implementing an operating system, instructions for implementing at least one function (such as a touch function, a sound playing function, an image playing function, etc.), instructions for implementing each of the method embodiments described below, etc. The data storage area can also store data created by the display device 100 in use (such as a phone book, audio and video data, chat record data, etc.).
[0108] Please refer to Figure 8 which shows a structural block diagram of a computer readable storage medium provided by the embodiments of the present application. The computer readable medium 800 stores program codes therein, and the program codes can be called and executed by a processor to perform the methods described in the above method embodiments.
[0109] The computer-readable storage medium 800 can be an electronic storage memory such as a flash memory, an EEPROM (Electrically Erasable Programmable Read-Only Memory), an EPROM, a hard disk or a ROM. Optionally, the computer-readable storage medium 800 comprises a non-transitory computer-readable medium. The computer-readable storage medium 800 has a storage space for program codes 810 to execute any of the method steps described above. These program codes can be read from or written to one or more computer program products. The program codes 810 can be compressed, for example, in an appropriate form.
[0110] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present application, rather than limit them. Although the present application has been described in detail with reference to the foregoing embodiments, those of ordinary skill in the art will understand that they can still modify the technical solutions described in the foregoing embodiments, or make equivalent replacements for some of the technical features, without departing from the spirit and scope of the technical solutions of the embodiments of the present application.
Claims
1. An image display method characterized by, Applied to a display device, the method comprises: obtaining an average gray value corresponding to a to-be-displayed image; based on the average gray value, obtaining a gamma curve corresponding to the to-be-displayed image from a plurality of first gamma curves corresponding to the display device as a target gamma curve, wherein the plurality of first gamma curves are gamma curves corresponding to different gamma values of the display device; based on the target gamma curve, adjusting a reference gamma curve corresponding to the display device to obtain a second gamma curve; based on the second gamma curve, displaying the to-be-displayed image.
2. The method of claim 1, wherein, The method comprises: According to the pre-set mapping relationship between the gray value and the gamma curve, the first gamma curve matching the average gray value is obtained from the plurality of first gamma curves corresponding to the display device as the target gamma curve.
3. The method of claim 2, wherein, The mapping relationship comprises a sub-mapping relationship corresponding to each gray range in a pre-divided gray range, and the first gamma curve matching the average gray value is obtained from the plurality of first gamma curves corresponding to the display device as the target gamma curve according to the pre-set mapping relationship between the gray value and the gamma curve. The method comprises: obtaining a first target gray range to which the average gray value belongs; based on the sub-mapping relationship corresponding to the first target gray range, obtaining the first gamma curve matching the average gray value from the plurality of first gamma curves corresponding to the display device as the target gamma curve; The method comprises: obtaining a curve segment corresponding to the first target gray range from the target gamma curve as a first curve segment; 4. The method of claim 3, wherein, based on the first curve segment, adjusting the reference gamma curve corresponding to the display device to obtain a second gamma curve. The method comprises:
5. The method of claim 1, wherein, based on the first curve segment, adjusting the curve segment corresponding to the first target gray range in the reference gamma curve corresponding to the display device to obtain a second gamma curve. Before the step of obtaining the gamma curve corresponding to the to-be-displayed image from the plurality of first gamma curves corresponding to the display device as the target gamma curve based on the average gray value, the method further comprises: based on the gray histogram corresponding to the to-be-displayed image, obtaining a gray mean value corresponding to each gray range, wherein the each gray range is a pre-divided gray range; The method comprises: based on the gray mean value corresponding to each gray range, obtaining a gray range with a gray mean value greater than the average gray value as a second target gray range; Based on a preset mapping relationship between a gray scale range and a gamma curve, a gamma curve corresponding to the second target gray scale range is obtained from a plurality of first gamma curves corresponding to the display device as a target gamma curve.
6. The method of claim 5, wherein, The adjusting the reference gamma curve based on the target gamma curve to obtain a second gamma curve comprises: a curve segment corresponding to the second target gray scale range is obtained from the target gamma curve as a second curve segment; the reference gamma curve corresponding to the display device is adjusted based on the second curve segment to obtain a second gamma curve.
7. The method according to any one of claims 1 to 6, characterized in that, The adjusting the reference gamma curve based on the target gamma curve to obtain a second gamma curve comprises: an offset value between an output luminance and an input luminance corresponding to the target gamma curve is obtained; an initial output luminance in the reference gamma curve is updated to a sum value between the initial output luminance and the offset value to obtain a second gamma curve.
8. The method according to any one of claims 1 to 6, characterized in that, Before the obtaining the target gamma curve from the plurality of first gamma curves corresponding to the display device based on the average gray scale value, the method further comprises: displaying a plurality of test images; obtaining gamma curves of different gamma values based on a maximum luminance when the display device displays the test images to obtain the plurality of first gamma curves.
9. An image display device, characterized by comprising: Applied to a display device, the apparatus comprises a gray scale obtaining module, a curve obtaining module, a curve adjusting module and a content displaying module, wherein, the gray scale obtaining module is configured to obtain an average gray scale value corresponding to a to-be-displayed image; the curve obtaining module is configured to obtain a gamma curve corresponding to the to-be-displayed image from a plurality of first gamma curves corresponding to the display device based on the average gray scale value as a target gamma curve, wherein the plurality of first gamma curves are gamma curves of different gamma values corresponding to the display device; the curve adjusting module is configured to adjust a reference gamma curve corresponding to the display device based on the target gamma curve to obtain a second gamma curve; the content displaying module is configured to display the to-be-displayed image based on the second gamma curve.
10. A display device, characterized by comprising: comprise: one or more processors; a memory; one or more programs, wherein the one or more programs are stored in the memory and configured to be executed by the one or more processors, and the one or more programs are configured to perform the method of any one of claims 1-8.
11. A computer readable storage medium, characterized in that, The computer readable storage medium stores program codes, and the program codes can be invoked and executed by a processor to perform the method of any one of claims 1-8.
Citation Information
Patent Citations
Gamma adjusting device and its method
CN101071536A
Method for driving liquid crystal display device
KR1020080067843A