Parameter adjustment, display method and device of display device, storage medium and related device
Patent Information
- Application Number
- CN202380009720.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-01-17
- Publication Date
- 2026-09-08
- Estimated Expiration
- 2043-01-17
AI Technical Summary
[0004]本申请实施例提供了一种显示设备的调参、显示方法、装置、存储介质及相关设备,可以解决目前的伽马曲线算法的低灰阶区域变化较小,显示设备在显示图像时低灰阶部分显示细节较差的问题
[0026] In this embodiment, by adjusting the low grayscale value area of the gamma curve in the display device, the rate of change of grayscale value in the low grayscale value area is increased, thereby enabling the display device to increase the grayscale value difference in the low grayscale value area when displaying an image using the adjusted gamma curve, and thus improve the detail representation of the low grayscale value area when the display device displays the image.
Smart Images

Figure CN118679516B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of image display, and more particularly to parameter tuning of a display device, display method, apparatus, storage medium and related equipment. Background Technology
[0002] With the development of display technology, users have increasingly higher requirements for parameters such as color and contrast in display devices. A gamma curve is a special tone curve used to characterize the mapping relationship between color values and grayscale values. Therefore, the grayscale of an image displayed by a display device can be adjusted based on the gamma curve, that is, the shade of each pixel in the image. When displaying an image, a display device typically needs to adjust the grayscale of the displayed image using the gamma curve to make the grayscale of the displayed image closer to the actual color of the image.
[0003] However, current gamma curve algorithms suffer from limited variation in low grayscale areas, resulting in poor detail display in these areas when images are displayed on screen. Summary of the Invention
[0004] This application provides a parameter tuning method, apparatus, storage medium, and related devices for a display device, which can solve the problem that current gamma curve algorithms have small variations in low grayscale areas, resulting in poor detail display in low grayscale regions when displaying images. The technical solution is as follows:
[0005] In a first aspect, embodiments of this application provide a parameter tuning method for a display device, including:
[0006] Receive a parameter adjustment instruction for the display device, the parameter adjustment instruction being used to instruct the adjustment of the target gamma curve of the display device; the target gamma curve being used to characterize the mapping relationship between the color value corresponding to the target color parameter of the image supported by the display device and the gray value corresponding to the target gray level parameter of the display device.
[0007] Obtain the target gamma curve, and the first adjustment point in the target gamma curve;
[0008] Based on the first adjustment point, the target gamma curve is adjusted to obtain the adjusted target gamma curve. The rate of change of the curve segment below the first adjustment point in the adjusted target gamma curve is greater than the rate of change of the curve before adjustment.
[0009] Secondly, embodiments of this application provide a display method, including:
[0010] Get the image to be displayed;
[0011] Based on the target color parameters of the image and the target grayscale parameters of the target display device, an adjusted target gamma curve obtained using the method described in any one of the first aspects is acquired.
[0012] Using the adjusted target gamma curve, the grayscale value of each pixel in the image is obtained;
[0013] The image is displayed based on the grayscale values of each pixel in the image.
[0014] Thirdly, embodiments of this application provide a parameter adjustment device for a display device, comprising:
[0015] The receiving module is configured to receive a parameter adjustment instruction for the display device, the parameter adjustment instruction being used to instruct the adjustment of the target gamma curve of the display device; the target gamma curve being used to characterize the mapping relationship between the color value corresponding to the target color parameter of the image supported by the display device and the grayscale value corresponding to the target grayscale parameter of the display device.
[0016] The acquisition module is used to acquire the target gamma curve and the first adjustment point in the target gamma curve;
[0017] A processing module is configured to adjust the target gamma curve according to the first adjustment point to obtain an adjusted target gamma curve, wherein the rate of change of the curve segment below the first adjustment point in the adjusted target gamma curve is greater than the rate of change of the curve before adjustment. In a seventh aspect, embodiments of this application provide a computer storage medium storing a plurality of instructions adapted for loading and executing the above-described method steps by a processor.
[0018] Fourthly, embodiments of this application provide a display device, the device comprising:
[0019] The first acquisition module is used to acquire the image to be displayed.
[0020] The second acquisition module is used to acquire, based on the target color parameters of the image and the target grayscale parameters of the target display device, an adjusted target gamma curve obtained by the method described in any one of the first aspects.
[0021] The third acquisition module is used to acquire the grayscale value of each pixel in the image using the adjusted target gamma curve.
[0022] The display module is used to display the image based on the grayscale values of each pixel in the image.
[0023] Fifthly, a computer storage medium storing a plurality of instructions adapted for loading by a processor and executing method steps as described in either the first or second aspect.
[0024] In a sixth aspect, embodiments of this application provide an electronic device that may include: a processor and a memory; wherein the memory stores a computer program adapted to be loaded by the processor and executed as any of the method steps in the first aspect.
[0025] In a seventh aspect, embodiments of this application provide a display device, including: a processor, a memory, and a display screen; wherein the display screen is used to display images, the memory stores a computer program, and the computer program is adapted to be loaded by the processor and executed as the method steps in the second aspect.
[0026] In this embodiment, by adjusting the low grayscale value area of the gamma curve in the display device, the rate of change of grayscale value in the low grayscale value area is increased, thereby enabling the display device to increase the grayscale value difference in the low grayscale value area when displaying an image using the adjusted gamma curve, and thus improve the detail representation of the low grayscale value area when the display device displays the image. Attached Figure Description
[0027] To more clearly illustrate the technical solutions in the embodiments of this application 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 only some embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0028] Figure 1 This is a schematic diagram of a target gamma curve provided in an embodiment of this application;
[0029] Figure 2 This is a flowchart illustrating a parameter tuning method for a display device provided in an embodiment of this application;
[0030] Figure 3 This is a comparison diagram of the adjustment of the low grayscale value portion corresponding to the parameter adjustment method of a display device provided in the embodiments of this application;
[0031] Figure 4 This is a flowchart illustrating another parameter tuning method for a display device provided in an embodiment of this application;
[0032] Figure 5 This is a schematic diagram of a first curve segment provided in an embodiment of this application;
[0033] Figure 6This is a schematic diagram of an interface for querying information provided in an embodiment of this application;
[0034] Figure 7 This is a flowchart illustrating a display method provided in an embodiment of this application;
[0035] Figure 8 This is a schematic diagram illustrating an image processing comparison provided in an embodiment of this application;
[0036] Figure 9 This is a schematic diagram of the structure of a parameter adjustment device for a display device provided in an embodiment of this application;
[0037] Figure 10 This is a schematic diagram of the structure of a display device provided in an embodiment of this application;
[0038] Figure 11 This is a schematic diagram of the structure of an electronic device provided in an embodiment of this application. Detailed Implementation
[0039] To make the objectives, technical solutions, and advantages of this application clearer, the embodiments of this application will be described in further detail below with reference to the accompanying drawings.
[0040] It should be understood that the described embodiments are merely some, not all, of the embodiments in this application. All other embodiments obtained by those skilled in the art based on the embodiments in this application without inventive effort are within the scope of protection of this application.
[0041] In the following description, when referring to the accompanying drawings, the same numbers in different drawings denote the same or similar elements unless otherwise indicated. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with this application. Rather, they are merely examples of apparatuses and methods consistent with some aspects of this application as detailed in the appended claims.
[0042] In the description of this application, it should be understood that the terms "first," "second," "third," etc., are used only to distinguish similar objects and are not necessarily used to describe a specific order or sequence, nor should they be construed as indicating or implying relative importance. Those skilled in the art can understand the specific meaning of the above terms in this application according to the specific circumstances. Furthermore, in the description of this application, unless otherwise stated, "multiple" refers to two or more. "And / or" describes 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, or B existing alone. The character " / " generally indicates that the preceding and following related objects have an "or" relationship.
[0043] The display devices involved in this application may be, for example, the aforementioned light-emitting diode (LED) display devices, liquid crystal display (LCD) display devices, etc.
[0044] For example, the display device may be a television, smartphone, laptop, tablet, camera / camcorder, projector, smart interactive flat panel, or other display device that uses gamma curves to adjust the grayscale of an image.
[0045] The hardware of the smart interactive flat panel consists of a touch display module, an intelligent processing system (including a controller), and other components. These components are integrated into a single structure and supported by a dedicated software system. The touch display module includes a display screen, a touch component, and a backlight component. The backlight component provides backlight for the display screen, which typically uses an LCD display for image display. The touch component is located on or in front of the display screen and is used to collect user touch operation data and send the collected touch operation data to the intelligent processing system for processing.
[0046] In practical use, the display screen of the smart interactive flat panel shows screen data. When the user taps the content displayed on the screen with a finger or stylus, such as clicking a graphic button on the screen, the touch component of the smart interactive flat panel will collect the touch data. The touch component then converts the touch data into the coordinate data of the touch point and sends it to the intelligent processing system, or sends it to the intelligent processing system for conversion into the coordinate data of the touch point. After obtaining the coordinate data of the touch point, the intelligent processing system performs corresponding control operations according to the pre-set program, driving the content displayed on the screen to change, and achieving diverse display and operation effects.
[0047] Based on their technical principles, touch components can be categorized into five basic types: vector pressure sensing touch components, resistive touch components, capacitive touch components, electromagnetic touch components, infrared touch components, and surface acoustic wave (SAW) touch components. According to their working principle and the medium through which information is transmitted, touch components can be classified into four types: resistive, capacitive, electromagnetic, infrared, and SAW.
[0048] When a user touches the display screen with their finger or a stylus, the touch component can collect data from the touch point and send it to the intelligent processing system. Then, with the software built into the intelligent processing system, different functional applications are implemented, thereby enabling touch control of the intelligent processing system.
[0049] The grayscale parameter of a display device characterizes the range of grayscale values that the device can display when displaying an image. This grayscale parameter can be, for example, 16-bit or 24-bit. Taking RGB color mode as an example, the grayscale values of the display parameter can be represented as (gray_R, gray_G, gray_B). The correspondence between this grayscale parameter and the range of grayscale values can be shown in Table 1 below:
[0050] Table 1
[0051] 16-bit [0-65535] 24-bit [0-1677215]
[0052] The grayscale parameters are determined based on the display capabilities of the display device. A display device may support only one grayscale parameter or multiple grayscale parameters, and can switch between them as needed. This application does not impose any restrictions on this. For example, if the target display device supports a maximum of 24-bit grayscale parameters, it may also be backward compatible with 16-bit grayscale parameters or 8-bit grayscale parameters, etc. That is, under the highest supported grayscale parameters, the target display device can be backward compatible with any lower grayscale parameter it supports. However, the specific grayscale parameters that the target display device can support depend on the gamma curve included in the target display device.
[0053] The image involved in this application is a digitized visual image, i.e., a digital image. An image is formed by using pixels as the basic unit, with each pixel displaying a different color. The color parameters of the image refer to the parameters of the color displayed by the pixels in the image. These color parameters are determined by the image's color mode. For example, when the image is in RGB color mode, the color parameters of each pixel can be represented as (In_R, In_G, In_B). The correspondence between these color parameters and the range of color values can be shown in Table 2 below.
[0054] Table 2
[0055] 8-bit [0-255] 10-bit [0-1024] 12-bit [0-4096]
[0056] A gamma curve is used to characterize the mapping relationship between the color value corresponding to a color parameter and the grayscale value corresponding to a grayscale parameter. As mentioned earlier, a display device may support only one grayscale parameter or multiple grayscale parameters. When a display device supports one grayscale parameter, it can have a built-in gamma curve representing the mapping relationship between the grayscale value corresponding to that grayscale parameter and the color value corresponding to each color parameter. When a display device supports multiple grayscale parameters, it can have a built-in gamma curve representing the mapping relationship between the grayscale value corresponding to each grayscale parameter and the color value corresponding to each color parameter.
[0057] For example, if a display device supports a 16-bit grayscale parameter, the display device can have the following built-in gamma curves: a gamma curve showing the mapping relationship between the grayscale value corresponding to 16 bits and the color value corresponding to 8 bits, a gamma curve showing the mapping relationship between the grayscale value corresponding to 16 bits and the color value corresponding to 10 bits, and a gamma curve showing the mapping relationship between the grayscale value corresponding to 16 bits and the color value corresponding to 12 bits.
[0058] For example, taking a display device that supports 16-bit and 24-bit grayscale parameters as an example, in addition to the aforementioned 16-bit related gamma curve, the display device can also have the following built-in gamma curves: a gamma curve mapping the grayscale value corresponding to 24-bit to the color value corresponding to 8-bit, a gamma curve mapping the grayscale value corresponding to 24-bit to the color value corresponding to 10-bit, and a gamma curve mapping the grayscale value corresponding to 24-bit to the color value corresponding to 12-bit.
[0059] Taking the display device using target grayscale parameters and the image's color parameters as target color parameters as an example, currently, when displaying an image, the display device will obtain the grayscale value of each pixel in the image to be displayed based on the target gamma curve representing the mapping relationship between the color value corresponding to the target color parameter and the grayscale value corresponding to the target grayscale parameter, as well as the color value of each pixel corresponding to the target color parameter of the image to be displayed, and then display the image based on the grayscale value.
[0060] The following section explains how to generate a target gamma curve in the prior art, using 8-bit color parameters and 16-bit grayscale parameters.
[0061] Currently, the function expression y = x is used. N Obtain the target gamma curve. Here, N is the gamma value of the target gamma curve, typically ranging from 1.0 to 4.0; this application uses a gamma value of 2.8 as an example. x is the color value after normalization of the target color parameters, and y is the normalized grayscale value corresponding to the value of x.
[0062] The above uses the function expression y = x N For example, the method to obtain the target gamma curve is:
[0063] First, the color value of this color parameter is normalized to the range [0-1] to obtain x, for example, In_R / 255.
[0064] Secondly, substitute the values of x into the function expression y = x N This yields the value of y corresponding to the value of x, which is the normalized grayscale value corresponding to the normalized color value.
[0065] Then, using the range of grayscale values corresponding to the 16-bit grayscale parameter, i.e. [0, 65535], the normalized grayscale value is converted back to the range of grayscale values corresponding to the 16-bit grayscale parameter, i.e., 65535y.
[0066] Finally, based on the unnormalized x (i.e., color values ranging from [0, 255]) and the transformed grayscale values (i.e., grayscale values ranging from [0, 65535]), the target gamma curve can be obtained. This target gamma curve can be, for example, as shown below. Figure 1 As shown.
[0067] Through this Figure 1 It can be seen that the grayscale value difference in the low grayscale value area (frame area) of the target gamma curve is small, that is, the difference between the grayscale values corresponding to adjacent color values is small, resulting in poor detail representation.
[0068] For example, the mapping relationship between In_R and gray_R in the low grayscale region is shown in Table 3 below:
[0069] Table 3
[0070] 0 0 1 0 2 0 3 0 4 1 5 1 6 2 7 3 8 4
[0071] As shown in Table 3 above, the first four values of gray_R are all 0, meaning that the gray_R value is the same for different In_R values. The last five values of gray_R have small differences, meaning that the gray_R value changes little for different In_R values. Therefore, when using this target gamma curve for image display, it will result in small differences in grayscale values in low grayscale areas of the image, leading to poor detail representation.
[0072] In view of this, this application proposes a display method and a parameter adjustment method for a display device. By adjusting the low grayscale value area of the gamma curve in the display device, the rate of change of grayscale values in the low grayscale value area is increased. This enables the display device to increase the grayscale value difference in the low grayscale value area when displaying an image using the adjusted gamma curve, thereby improving the detail representation of the low grayscale value area when the display device displays the image.
[0073] Below, we will combine the appendix Figure 2 -Appendix Figure 5 This application provides a detailed description of the parameter adjustment method for the display device provided in this application.
[0074] The execution entity of this display device parameter tuning method can be a computing device, a cloud platform, or the display device itself. When the execution entity is a computing device, the computing device can be, for example, a computer, a smartphone, or other device with computing capabilities. Software that runs the display device parameter tuning method can be deployed on this computing device. This software adjusts the parameters of the display device to obtain the adjusted gamma curve, and then sends the gamma curve to the display device. When the execution entity is a cloud platform, the display device parameter tuning method can be provided to the target display device as a cloud service. When the execution entity is the display device itself, the display device possesses the functionality of the display device parameter tuning method to adjust its own parameters.
[0075] The parameter adjustment of the aforementioned display device can be performed before the display device leaves the factory or during the use of the display device. This application does not impose any restrictions on this.
[0076] Please see Figure 2 This is a flowchart illustrating a parameter tuning method for a display device disclosed in an embodiment of this application. Figure 2 Taking a computing device as the executing entity as an example, such as Figure 2 As shown, the parameter tuning method for this display device may include the following steps:
[0077] S201, Receive parameter adjustment instructions for the display device.
[0078] The parameter adjustment command is used to instruct the adjustment of the target gamma curve of the display device. The target gamma curve is used to characterize the mapping relationship between the color value corresponding to the target color parameter of the image supported by the display device and the gray value corresponding to the target gray level parameter of the display device.
[0079] The target gamma curve can be, for example, the functional expression y = x used in the aforementioned prior art. N The obtained target gamma curve. Currently, when using this target gamma curve for image display, there is a problem that the grayscale value difference in low grayscale areas of the image is small, resulting in poor detail representation.
[0080] Depending on the display device's capabilities, multiple gamma curves can exist within it, each corresponding to a different type of color parameter and grayscale parameter mapping, as well as mapping relationships for different gamma values N. Examples include the mapping between 8-bit color parameters and 16-bit grayscale parameters at a gamma value N equal to 2.8, the mapping between 8-bit color parameters and 24-bit grayscale parameters at a gamma value N equal to 2.8, and the mapping between 8-bit color parameters and 16-bit grayscale parameters at a gamma value N equal to 2.9. The computing device can determine the target gamma curve to be adjusted based on actual needs.
[0081] For example, when the gamma value N is a preset fixed value, the computing device can determine the target gamma curve based on the color parameters of the image and the grayscale parameters selected by the display device; when the gamma value N can be adjusted according to actual needs, the computing device first obtains the current gamma value of the display device, and then determines the target gamma curve corresponding to the gamma value based on the color parameters of the image and the grayscale parameters selected by the display device.
[0082] As for how the computing device receives the parameter tuning instruction, for example, the display device may actively send the parameter tuning instruction to the computing device; or the computing device may send a parameter tuning request to the display device, and the display device may respond to the parameter tuning request by sending a parameter tuning instruction to the computing device; or the user of the computing device may trigger the receipt of the parameter tuning instruction on the computing device.
[0083] S202. Obtain the target gamma curve and the first adjustment point in the target gamma curve.
[0084] The first adjustment point is used to indicate the low grayscale value area in the target gamma curve. That is, the first adjustment point represents the dividing point between the low grayscale value area and the non-low grayscale value area in the target gamma curve. For example, the part located below the ordinate axis of the first adjustment point is the low grayscale value area.
[0085] The methods for obtaining the target gamma curve can include the following:
[0086] Implementation method A1: If the parameter tuning instruction includes a target gamma curve, then the target gamma curve is obtained from the parameter tuning instruction.
[0087] Implementation Method A2: If the parameter tuning instruction includes a target grayscale parameter and a target color parameter, then a target gamma curve is obtained from a gamma curve set based on the target grayscale parameter and the target color parameter. This gamma curve set includes at least one gamma curve. The gamma curve set can be obtained in various ways, such as the computing device acquiring all gamma curves in the display device as the gamma curve set, the computing device determining all gamma curves in the display device that match the current gamma value based on the gamma value as the gamma curve set, or obtaining the gamma curve set from pre-stored gamma curves stored within the computing device itself.
[0088] Implementation Method A3: Use the gamma curves corresponding to all grayscale parameters and color parameters supported by the display device as the target gamma curve. In this implementation method, the computing device needs to adjust the gamma curves corresponding to all grayscale parameters and color parameters supported by the display device.
[0089] The methods for obtaining the first adjustment point in the target gamma curve can include the following:
[0090] Implementation method B1: If the parameter tuning instruction includes a first adjustment point, then the first adjustment point is obtained from the parameter tuning instruction.
[0091] Implementation Method B2: Obtain the first adjustment point in the preset target gamma curve. In this implementation method, the target gamma curve is a preset gamma curve in the computing device, for example, it can be a gamma curve in a set of gamma curves. These gamma curves are the same as the gamma curves mentioned in Implementation Method A2, and will not be repeated here. For these gamma curves, the computing device presets a first adjustment point corresponding to each gamma curve, or each gamma curve carries information about the preset first adjustment point.
[0092] Implementation Method B3: Obtain the first adjustment point based on the curve change of the target gamma curve. In this implementation method, after obtaining the target gamma curve, the computing device can autonomously identify the curve change rate of the target gamma curve, and when the curve change rate is equal to a preset threshold, the point corresponding to the current curve change rate is taken as the first adjustment point.
[0093] The coordinates of the first adjustment point can be obtained directly from the target gamma curve. That is, the target gamma curve stores the correspondence between the color value and grayscale value of each pixel, allowing direct acquisition of the x and y coordinates of the first adjustment point. Alternatively, the coordinates of the first adjustment point can be obtained by calculating another coordinate based on the target gamma curve and either the x or y coordinate of the first adjustment point. For example, the x coordinate of the first adjustment point can be substituted into the function expression of the target gamma curve to calculate the x coordinate of the first adjustment point, thus obtaining the coordinates of the first adjustment point based on its x and y coordinates.
[0094] The above are just some examples of how to obtain the target gamma curve and the first adjustment point in the target gamma curve. The methods for obtaining the first adjustment point and the target gamma curve can be arbitrarily combined according to the above implementation methods.
[0095] S203. Adjust the target gamma curve according to the first adjustment point to obtain the adjusted target gamma curve.
[0096] Specifically, the rate of change of the first curve segment in the adjusted target gamma curve is greater than the rate of change of the first curve segment in the unadjusted target gamma curve. This first curve segment includes the curve segments in the target gamma curve located below the first adjustment point.
[0097] One possible implementation involves drawing a straight line segment with the origin of the target gamma curve (i.e., the coordinate point (0, 0)) and the first adjustment point as endpoints. This straight line segment is then used as the first curve segment after adjustment. The first curve segment is then spliced with the curve segment of the target gamma curve whose grayscale value is greater than that of the first adjustment point. The spliced curve segment is then used as the target gamma curve after adjustment.
[0098] Since the target gamma curve is a power function curve, the rate of change of the straight line segment drawn with the origin of the target gamma curve and the first adjustment point as endpoints is greater than the rate of change of the target gamma curve. This increases the rate of change of the curve segment below the first adjustment point in the adjusted target gamma curve, which in turn increases the difference in gray levels in the low gray level area of the image and improves the effect of detail representation in the low gray level area when the image is displayed.
[0099] Another possible implementation involves using the tangent line at the first adjustment point in the target gamma curve as a basis, taking the line segment between the point on the horizontal axis of the target gamma curve where the tangent line is located and the first adjustment point as a first curve segment, then splicing the first curve segment with the curve segment in the target gamma curve whose grayscale value is greater than the grayscale value of the first adjustment point, and then horizontally stretching the horizontal axis of the spliced curve to obtain the curve segment as the adjusted target gamma curve.
[0100] The adjusted target gamma curve obtained through this implementation method has a smooth curve change rate at the first adjustment point (i.e., the splicing point). That is, the first curve segment and the curve segment of the target gamma curve whose gray level value is greater than the gray level value of the first adjustment point are spliced in a smooth manner. This increases the difference in gray level values in the low gray level area of the image, improves the effect of detail expression in the low gray level area when the image is displayed, and also prevents the problem of poor image performance caused by gray level value jump at the splicing point when the image is displayed.
[0101] Figure 3 This is a comparison diagram of the adjustment of the low grayscale value portion corresponding to the parameter adjustment method of the display device provided in this application embodiment. For example... Figure 3 As shown in the embodiments of this application, the parameter tuning method for the display device increases the difference between different gray levels in the low gray level region of the image by adjusting the target gamma curve, thereby improving the detail representation of the low gray level region when the image is displayed. However, when the image is displayed according to the target gamma curve before adjustment, the difference between different gray levels in the low gray level region is smaller, lower than the gray level change rate of the adjusted target gamma curve. Therefore, the detail representation of the low gray level region is weaker when the image is displayed than when displayed according to the adjusted target gamma curve.
[0102] The following section uses the tangent line at the first adjustment point in the target gamma curve as an example to illustrate how to adjust the target gamma curve based on the first adjustment point to obtain the adjusted target gamma curve.
[0103] Figure 4 This is a flowchart illustrating another parameter tuning method for a display device provided in an embodiment of this application. Figure 4 As shown, step S203 above may include:
[0104] S401. Obtain the tangent line at the first adjustment point in the target gamma curve.
[0105] For example, based on the function y = x of the target gamma curve N Differentiating this function yields the derivative y′=N×x of the function representing the target gamma curve. N-1 Wherein, the slope k of the tangent line at the first adjustment point is N×x N-1 .
[0106] Assume the tangent function at the first adjustment point is y1 = kx1 + a, where a is the intercept of the tangent at the first adjustment point. Substituting the coordinates of the first adjustment point into the tangent function, we obtain the intercept a. Since the slope k in the tangent function at the first adjustment point is y′, and the intercept a can also be obtained through the above calculation, we can obtain the functional expression of the tangent at the first adjustment point.
[0107] S402. Based on the tangent, obtain the line segment between the point on the horizontal axis of the target gamma curve where the tangent is located and the first adjustment point as the first curve segment.
[0108] Figure 5 When the ordinate of the first adjustment point (i.e., the converted grayscale value corresponding to the grayscale parameter, i.e., the grayscale value range is [0, 65535]) is 22, a schematic diagram of the first curve segment is obtained. For example... Figure 5 As shown, point m is the first adjustment point, point n is the point on the x-axis of the target gamma curve where the tangent line lies, and line segment mn is the first curve segment, the slope of which is the slope N×x of the tangent line at the first adjustment point. N-1 Point q is the point where the maximum grayscale value corresponding to the target gamma curve is located (i.e., the endpoint of the target gamma curve), and its coordinates are (255, 65535). Figure 5 It is not specified in the text.
[0109] S403. Based on the first curve segment, adjust the target gamma curve to obtain the adjusted target gamma curve.
[0110] Implementation method 1:
[0111] The first curve segment is spliced with the second curve segment of the target gamma curve that is above the first adjustment point to obtain the third curve segment.
[0112] Continue to refer to Figure 5 The curve mq to the right of point m is the second curve segment, which is part of the target gamma curve. Connecting line segment mn with the second curve segment mq yields the third curve segment nmq. At this point, the corresponding color value ranges from the x-coordinate of point n to the x-coordinate of point q (255).
[0113] Because the currently stitched third curve segment does not cover the entire range of color values corresponding to the target color parameters, for example... Figure 5 The color values from 0 to n are not covered. Therefore, after obtaining the third curve segment nmq, it can be stretched according to the range of color values corresponding to the target color parameter, so that the stretched third curve segment nmq can cover the entire range of color values corresponding to the target color parameter (i.e., [0, 255]). This stretched third curve segment is the adjusted target gamma curve.
[0114] For example, the third curve segment can be stretched in the following way:
[0115] First, the color values and grayscale values in the third curve segment are normalized. Specifically, based on the normalized color values and grayscale values of the first curve segment, the normalized intercept 'a' of the first curve segment is obtained, for example, as shown in the following formula (1):
[0116]
[0117] Next, substitute the intercept a into the tangent function expression y1=kx1+a of the first adjustment point, and set the value of y in the formula to 0, to obtain the value of x1 as shown in the following formula (2):
[0118]
[0119] The value of x1 is the color value corresponding to point n (the coordinates of the intersection of the third curve segment and the x-axis).
[0120] Then, based on the color value corresponding to point n and the slope k, determine the stretching ratio c used to stretch the normalized color value of the third curve segment nmq to the interval [0-1], as shown in the following formula (3):
[0121]
[0122] The third curve segment is horizontally stretched according to the stretching ratio c to obtain the stretched third curve segment. The starting point of the stretched third curve segment is located at the origin of the coordinate axis, and the ending coordinate is (255, 65535). Among them, the correspondence between the normalized color value and the original color value on the horizontal axis of the stretched third curve segment can be determined by the stretching ratio c, the normalized color value before stretching, and the color value corresponding to point n. The calculation method is shown in formula (4):
[0123]
[0124] Based on the normalized color values on the x-axis of the stretched third curve segment, substitute them into the function expressions of the first curve segment and the second curve segment (i.e., the original target gamma curve), respectively, to obtain the grayscale values corresponding to the aforementioned color values in the stretched first curve segment and the stretched second curve segment. Whether to substitute into the function expression of the first or second curve segment depends on the color value of the stretched first adjustment point. That is, when the color value is less than the color value of the stretched first adjustment point, substitute into the function expression of the first curve segment; when the color value is greater than the color value of the stretched first adjustment point, substitute into the function expression of the second curve segment; when the color value is equal to the color value of the stretched first adjustment point, either the function expression of the first or second curve segment can be substituted. After obtaining all color values (i.e. [0, 255]) and their corresponding adjusted grayscale values, the mapping relationship between the color values and the adjusted grayscale values can be represented by the stretched third curve segment. That is, the function expression corresponding to this mapping relationship is the adjusted target gamma curve.
[0125] For example, Table 4 below shows the gamma curve y = x mentioned above. N After adjustment, when N is 2.8, the obtained color parameters are 8-bit (i.e., In_R value range is 0-255), and the grayscale parameters of the display device are 16-bit (i.e., gray_R value range is 0-65532), the mapping relationship between In_R and gray_R of the adjusted target gamma curve in the low grayscale value part is as follows.
[0126] Table 4
[0127] 0 0 0 1 3 0 2 6 0 3 8 0 4 11 1 5 14 1 6 17 2 7 21 3 8 25 4
[0128] As shown in Table 4 above, the first four values of gray_R1 (after adjustment) in the low grayscale portion are 0, 3, 6, and 8, respectively. Compared to the first four values of gray_R (before adjustment), which were all 0, the adjusted gamma curve shows differences in the low grayscale values, indicating it is not entirely consistent. For the last five rows of data, the difference in grayscale values for gray_R1 is significantly greater than that for gray_R. Therefore, the adjusted gamma curve can significantly improve the grayscale value difference in the low grayscale region of the image and enhance the detail representation when the display device shows the image.
[0129] By using this implementation method, since the tangent of the first adjustment point is used as the extension direction of the first curve segment, the slope of the first curve segment and the second curve segment is the same at the splicing point (first adjustment point) when they are spliced. This makes the smoothness of the third curve segment better, thereby making the adjusted gamma curve smoother, preventing the problem of grayscale value jumps in the adjusted gamma curve, and improving the stability of image display.
[0130] Implementation Method 2:
[0131] Based on the starting point and the first adjustment point of the target gamma curve, the first curve segment is translated and stretched to obtain the adjusted first curve segment. The starting point of the adjusted first curve segment is the same as the starting point of the target gamma curve. The translation and stretching transformation of the first curve segment is performed as follows: first, the starting point of the first curve segment is translated to the origin of the coordinate system (0, 0); then, the ending point of the first curve segment is stretched along its slope until the adjusted first curve segment intersects the target gamma curve.
[0132] Determine the point of coincidence between the target gamma curve and the endpoint of the adjusted first curve segment. The intersection of the adjusted first curve segment and the target gamma curve is taken as the point of coincidence between the target gamma curve and the endpoint of the adjusted first curve segment. The coordinates of the intersection point of the function of the stretched first curve segment and the function of the target gamma curve are used as the coordinates of the point of coincidence.
[0133] The curve segment after the coincidence point in the target gamma curve is taken as the second curve segment and spliced with the adjusted first curve segment to obtain the adjusted target gamma curve.
[0134] The parameter adjustment method for the display device provided in this embodiment obtains the tangent line at the first adjustment point in the target gamma curve through a computing device. Based on the tangent line, the line segment between the point on the horizontal axis of the target gamma curve and the first adjustment point is obtained as the first curve segment. Then, the first curve segment is spliced and stretched with the target gamma curve to obtain the adjusted target gamma curve, thereby increasing the difference in gray levels in the low gray level area of the image and improving the effect of detail representation in the low gray level area when displaying the image.
[0135] Based on any of the aforementioned optional implementation methods, or any combination of optional implementation methods, after obtaining the adjusted target gamma curve in step S103, this application may further include:
[0136] When a display device displays an image with target color parameters using a target gamma curve, an inquiry message is output.
[0137] The query message inquires whether the target gamma curve has been configured and adjusted for the display device. This query message can be displayed on the interface of software installed on the computing device that uses the parameter tuning method for the display device, or it can be displayed on the display device itself. This application does not limit the output method of the query message; for example, it can be output as a pop-up window.
[0138] Figure 6 As a possible interface reference for this query, it should be understood that Figure 6 This is only one possible implementation of the query information window. This application is not limited to this implementation. Any method that can output query information is acceptable.
[0139] Interaction 1: In response to the query information, if a configuration instruction is received, the target gamma curve after adjustment is configured for the display device.
[0140] This response to the query can be triggered by the user or the person configuring the display device, or it can be an automatic response from the computing device, display device, or terminal device after a preset waiting time. (Continue to refer to...) Figure 6 Taking manual triggering as an example, the user needs to click the "Confirm Configuration" button in the query message window to respond to the query message. This "Confirm Configuration" is used to indicate that the configuration command should be sent.
[0141] Interaction 2: In response to the query information, if a readjustment instruction is received, the second adjustment point in the target gamma curve is obtained, and the adjusted target gamma curve is obtained again based on the second adjustment point.
[0142] The response message is sent in the same manner as in Interaction 1, and will not be repeated here. See also... Figure 6Taking manual triggering as an example, the user clicks the "Readjust" button in the query information window to respond to the query, causing the computing device to switch the adjustment point to the second adjustment point and reconfigure the adjusted target gamma curve. The second adjustment point can be obtained according to preset rules. For example, when a readjustment command is received, the second adjustment point is obtained by increasing or decreasing a preset interval based on the first adjustment point according to preset rules. It should be understood that the above is only an example of one preset rule, and this application does not limit the preset rules. The second adjustment point can also be obtained by randomly adjusting the grayscale value of the first adjustment point, or by the second adjustment point input by the user according to actual needs, etc.
[0143] After the target gamma curve is readjusted, the query message can be sent repeatedly and the corresponding interaction can be performed until the adjusted target gamma curve meets the actual needs of the user or the display device configuration personnel.
[0144] The method provided in this application embodiment enables users or display device configuration personnel to continuously obtain the adjusted target gamma curve and the adjusted image according to actual needs through various interactive methods, thereby obtaining a display effect that meets actual needs.
[0145] The following section details how to display images on a display device configured with a target gamma curve adjusted in the manner described above.
[0146] The execution subject of this display method is a display device that displays images using gamma curves, such as the aforementioned LED display device or LCD display device, which will not be elaborated further here. This application does not limit the specific form of the display device.
[0147] Please see Figure 7 This is a flowchart illustrating a display method disclosed in an embodiment of this application. Figure 7 As shown, the display method may include the following steps:
[0148] S701. Obtain the image to be displayed.
[0149] The image to be displayed can be acquired by the target display device from an external source, or it can be stored in the target display device's memory. When the image to be displayed is acquired from an external source, it can be obtained from a network, from a storage device via a Universal Serial Bus (USB) interface, or from another device via a High Definition Multimedia Interface (HDMI), etc. When the image to be displayed is stored in the target display device's memory, the target display device can obtain the image to be displayed by directly reading its memory.
[0150] S702. Based on the target color parameters of the image and the target grayscale parameters of the target display device, obtain the adjusted target gamma curve.
[0151] The target color parameters of the image are determined based on the image's own attributes, and the target display device can determine these target color parameters according to the image's data format. These target color parameters are the color parameters mentioned earlier, and will not be elaborated upon here.
[0152] When the parameter tuning method of the display device is executed by the display device itself, the target display device obtains the adjusted target gamma curve based on the target gamma curve and stores it in the display device. When the parameter tuning method of the display device is executed by the computing device or cloud platform, the adjusted target gamma curve is input to the target display device through the computing device or cloud platform. The target display device can have multiple adjusted gamma curves built-in, depending on its display capabilities. For example, adjusted gamma curve 1 corresponds to an image with 8-bit color parameters and a display device grayscale parameter of 16-bit; adjusted gamma curve 2 corresponds to an image with 10-bit color parameters and a display device grayscale parameter of 16-bit; adjusted gamma curve 3 corresponds to an image with 10-bit color parameters and a display device grayscale parameter of 24-bit, and so on.
[0153] As described in the parameter tuning method for the aforementioned display device, the adjusted gamma curve has a higher rate of change in the low grayscale value portion compared to the gamma curve used in the prior art. This allows the image to exhibit a greater difference in grayscale values in the low grayscale portion when displayed on the target display device, resulting in stronger image detail representation in the low grayscale area.
[0154] The target display device determines the adjusted target gamma curve from multiple adjusted gamma curves based on the target color parameters of the image and the target grayscale parameters of the target display device.
[0155] S703. Using the adjusted target gamma curve, obtain the grayscale value of each pixel in the image.
[0156] S704. Display the image based on the grayscale values of each pixel in the image.
[0157] The method by which the target display device obtains the grayscale value of each pixel in the image using the adjusted target gamma curve, and the method by which the image is displayed based on the grayscale value of each pixel, are the same as the corresponding methods described in the aforementioned prior art, and will not be repeated here.
[0158] Figure 8 This is a schematic diagram illustrating an image processing comparison provided in an embodiment of this application. For example... Figure 7 The image before adjustment shows the effect of displaying the image using the target gamma curve, while the image after adjustment shows the effect of displaying the image using the adjusted target gamma curve. For low grayscale areas in the image (taking the area within the white box as an example), because the target gamma curve before adjustment had little or no difference between low grayscale values, the brightness difference between colors in these areas was very small, resulting in poor detail display. The adjusted target gamma curve, however, increases the difference between low grayscale values. Therefore, when displaying the image using this adjusted target gamma curve, the grayscale value difference between different colors in the low grayscale areas is greater, thus enabling the display of more detail in these areas.
[0159] In this embodiment, an adjusted target gamma curve is obtained using the target color parameters of the image and the target grayscale parameters of the target display device. Then, the grayscale value of each pixel in the image is obtained based on the adjusted target gamma curve, and the image is displayed based on the grayscale values of each pixel. Because the adjusted target gamma curve increases the rate of change of the low grayscale value portion, the problem described in the background art—where the grayscale value difference in the low grayscale value area of the image is small, resulting in poor detail—is avoided. In this embodiment, because the adjusted target gamma curve increases the rate of change of the low grayscale value portion, it achieves the effect of increasing the grayscale value difference in the low grayscale value area of the image when the target display device displays the image, thereby improving the detail representation of the low grayscale value area during image display.
[0160] Regarding the embodiments mentioned above, it should be understood that the image mentioned above can also be a frame in a video. By adjusting the display effect of some or all frames in the video, the effect of adjusting the video display can be achieved.
[0161] It should be noted that, due to space limitations, this application does not exhaustively list all possible implementation methods. As long as the features are not contradictory, they can be freely combined to form optional implementation methods of this application.
[0162] The following are embodiments of the apparatus described in this application, which can be used to execute the embodiments of the method described in this application. For details not disclosed in the apparatus embodiments of this application, please refer to the embodiments of the method described in this application.
[0163] Please see Figure 9 This illustration shows a schematic diagram of a parameter tuning device for a display device provided in an exemplary embodiment of this application. This parameter tuning device can be implemented through software, hardware, or a combination of both, becoming all or part of a computing device, a display device, or a cloud platform. The device includes a receiving module 11, an acquiring module 12, and a processing module 13. In one possible implementation, it also includes an interaction module 14.
[0164] The receiving module 11 is used to receive parameter adjustment instructions for the display device. The parameter adjustment instructions are used to instruct the adjustment of the target gamma curve of the display device. The target gamma curve is used to characterize the mapping relationship between the color value corresponding to the target color parameter of the image supported by the display device and the gray value corresponding to the target gray level parameter of the display device.
[0165] The acquisition module 12 is used to acquire the target gamma curve and the first adjustment point in the target gamma curve.
[0166] Processing module 13 is used to adjust the target gamma curve according to the first adjustment point to obtain the adjusted target gamma curve. The rate of change of the curve segment below the first adjustment point in the adjusted target gamma curve is greater than the rate of change of the curve before adjustment.
[0167] Optionally, the image can be a frame from a video.
[0168] Optionally, processing module 13 is specifically used to obtain the tangent line in the target gamma curve located at the first adjustment point. Based on the tangent line, the line segment between the point on the horizontal axis of the target gamma curve where the tangent line is located and the first adjustment point is obtained as the first curve segment. Based on the first curve segment, the target gamma curve is adjusted to obtain the adjusted target gamma curve.
[0169] In this implementation, one possible approach is for the processing module 13 to specifically splice the first curve segment with the second curve segment of the target gamma curve located above the first adjustment point to obtain a third curve segment. Based on the range of color values corresponding to the target color parameters, the third curve segment is stretched to obtain the adjusted target gamma curve.
[0170] Another possible implementation involves processing module 13, which specifically performs a translation and stretching transformation on the first curve segment based on the starting point and the first adjustment point of the target gamma curve to obtain the adjusted first curve segment; the starting point of the adjusted first curve segment is the starting point of the target gamma curve. The module then determines the point of overlap between the target gamma curve and the endpoint of the adjusted first curve segment. Finally, the module takes the curve segment located after the overlap point in the target gamma curve as the second curve segment and splices it with the adjusted first curve segment to obtain the adjusted target gamma curve.
[0171] In any of the above implementations, the acquisition module 12 is specifically used to: If the parameter tuning instruction includes a target gamma curve, then acquire the target gamma curve from the parameter tuning instruction. Alternatively, if the parameter tuning instruction includes target grayscale parameters and target color parameters, then acquire the target gamma curve from the gamma curve set based on the target grayscale parameters and the target color parameters. Alternatively, the target gamma curve can be selected from all gamma curves corresponding to grayscale parameters and color parameters supported by the display device.
[0172] Optionally, the acquisition module 12 is specifically used to acquire the first adjustment point from the parameter tuning instruction if the parameter tuning instruction includes a first adjustment point. Alternatively, it can acquire the first adjustment point in a preset target gamma curve. Or, it can acquire the first adjustment point based on the curve changes of the target gamma curve.
[0173] In any of the above implementations, after the processing module 13 obtains the adjusted target gamma curve, the interaction module 14 outputs a query message when the display device displays an image with target color parameters using the target gamma curve. The query message inquires whether to configure the adjusted target gamma curve for the display device. In response to the query message, if a configuration command is received, the processing module 13 further configures the adjusted target gamma curve for the display device. Alternatively, in response to the query message, if a readjustment command is received, the processing module 13 further obtains a second adjustment point in the target gamma curve and re-obtains the adjusted target gamma curve based on the second adjustment point.
[0174] It should be noted that the parameter tuning device for the display device provided in the above embodiments is only illustrated by the division of the above functional modules when executing the parameter tuning method for the display device. In actual applications, the above functions can be assigned to different functional modules as needed, that is, the internal structure of the device can be divided into different functional modules to complete all or part of the functions described above. In addition, the parameter tuning device for the display device provided in the above embodiments and the parameter tuning method embodiments for the display device belong to the same concept, and the implementation process is detailed in the method embodiments, which will not be repeated here.
[0175] Please see Figure 10The diagram illustrates a schematic representation of a display device provided in an exemplary embodiment of this application. The device includes a first acquisition module 21, a second acquisition module 22, a third acquisition module 23, and a display module 24.
[0176] The first acquisition module 21 is used to acquire the image to be displayed.
[0177] The second acquisition module 22 is used to acquire the adjusted target gamma curve obtained by any one of the parameter tuning methods of the display device, based on the target color parameters of the image and the target grayscale parameters of the target display device.
[0178] The third acquisition module 23 is used to acquire the grayscale value of each pixel in the image using the adjusted target gamma curve.
[0179] Display module 24 is used to display the image based on the grayscale values of each pixel in the image.
[0180] It should be noted that the display device provided in the above embodiments is only illustrated by the division of the above functional modules when executing the display method. In actual applications, the above functions can be assigned to different functional modules as needed, that is, the internal structure of the device can be divided into different functional modules to complete all or part of the functions described above. In addition, the display device and the display method embodiments provided in the above embodiments belong to the same concept, and the implementation process can be found in the method embodiments, which will not be repeated here.
[0181] This application also provides a computer storage medium that can store multiple instructions, which are adapted to be loaded and executed by a processor as described above. Figures 1-8 The method steps of the illustrated embodiment can be found in the following documentation for detailed execution. Figures 1-8 The specific details of the illustrated embodiments will not be elaborated here.
[0182] The storage medium can be located on a computing device, a display device, or a cloud platform.
[0183] Please see Figure 11 This document provides a schematic diagram of the structure of an electronic device, which may be a computing device or a display device, as an embodiment of this application. Figure 11 As shown, the electronic device 1100 may include: at least one processor 1101, at least one memory 1103, at least one communication bus 1104, and a communication interface 1102.
[0184] The communication bus 1104 is used to realize the connection and communication between these components.
[0185] The communication interface 1102 may optionally include a standard wired interface or a wireless interface (such as a Wi-Fi interface).
[0186] The processor 1101 may include one or more processing cores. The processor 1101 connects to various parts within the electronic device 1100 using various interfaces and lines. It executes various functions and processes data by running or executing instructions, programs, code sets, or instruction sets stored in the memory 1105, and by calling data stored in the memory 1105. Optionally, the processor 1101 may be implemented using at least one hardware form selected from Digital Signal Processing (DSP), Field-Programmable Gate Array (FPGA), and Programmable Logic Array (PLA). The processor 1101 may integrate one or a combination of several of the following: Central Processing Unit (CPU), Graphics Processing Unit (GPU), and modem. The CPU primarily handles the operating system, user interface, and applications; the GPU is responsible for rendering and drawing the content to be displayed on the screen; and the modem handles wireless communication. It is understood that the modem may also be implemented as a separate chip without being integrated into the processor 1101.
[0187] The memory 1103 may include random access memory (RAM) or read-only memory. Optionally, the memory 1103 may include a non-transitory computer-readable storage medium. The memory 1103 may be used to store instructions, programs, code, code sets, or instruction sets. The memory 1105 may include a program storage area and a data storage area. The program storage area may store instructions for implementing an operating system, instructions for at least one function (such as touch functionality, sound playback functionality, image playback functionality, etc.), instructions for implementing the various method embodiments described above, etc.; the data storage area may store data involved in the various method embodiments described above, etc. Optionally, the memory 1103 may also be at least one storage device located remotely from the aforementioned processor 1101.
[0188] Optionally, when the electronic device can be a display device, the electronic device 1100 further includes at least one display screen 1105 for displaying images from the various method embodiments described above.
[0189] Those skilled in the art will understand that embodiments of this application can be provided as methods, systems, or computer program products. Therefore, this application can take the form of a completely hardware embodiment, a completely software embodiment, or an embodiment combining software and hardware aspects. Furthermore, this application can take the form of a computer program product embodied on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.
[0190] This application is described with reference to flowchart illustrations and / or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of this application. It will be understood that each block of the flowchart illustrations and / or block diagrams, and combinations of blocks in the flowchart illustrations and / or block diagrams, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, special-purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, generate instructions for implementing the flowchart... Figure 1 One or more processes and / or boxes Figure 1 A device that provides the functions specified in one or more boxes.
[0191] These computer program instructions may also be stored in a computer-readable storage medium that can direct a computer or other programmable data processing device to function in a particular manner, such that the instructions stored in the computer-readable storage medium produce an article of manufacture including instruction means, which are implemented in a process Figure 1 One or more processes and / or boxes Figure 1 The function specified in one or more boxes.
[0192] These computer program instructions may also be loaded onto a computer or other programmable data processing equipment to cause a series of operational steps to be performed on the computer or other programmable equipment to produce a computer-implemented process, thereby providing instructions that execute on the computer or other programmable equipment for implementing the process. Figure 1 One or more processes and / or boxes Figure 1 The steps of the function specified in one or more boxes.
[0193] In a typical configuration, a computing device includes one or more processors (CPU), input / output interfaces, network interfaces, and memory.
[0194] Memory may include non-persistent memory in computer-readable media, such as random access memory (RAM) and / or non-volatile memory, such as read-only memory (ROM) or flash RAM. Memory is an example of computer-readable media.
[0195] Computer-readable media includes both permanent and non-permanent, removable and non-removable media that can store information using any method or technology. Information can be computer-readable instructions, data structures, modules of programs, or other data. Examples of computer storage media include, but are not limited to, phase-change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technologies, CD-ROM, digital versatile optical disc (DVD) or other optical storage, magnetic tape, magnetic magnetic disk storage or other magnetic storage devices, or any other non-transferable medium that can be used to store information accessible by a computing device. As defined herein, computer-readable media does not include transient computer-readable media, such as modulated data signals and carrier waves.
[0196] It should also be noted that the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such process, method, article, or apparatus. Unless otherwise specified, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or apparatus that includes that element.
[0197] The above are merely embodiments of this application and are not intended to limit the scope of this application. Various modifications and variations can be made to this application by those skilled in the art. Any modifications, equivalent substitutions, improvements, etc., made within the spirit and principles of this application should be included within the scope of the claims of this application.
Claims
1. A method for adjusting parameters of a display device, characterized in that, The method includes: Receive a parameter adjustment instruction for the display device, the parameter adjustment instruction being used to instruct the adjustment of the target gamma curve of the display device; the target gamma curve being used to characterize the mapping relationship between the color value corresponding to the target color parameter of the image supported by the display device and the gray value corresponding to the target gray level parameter of the display device. Obtain the target gamma curve, and the first adjustment point in the target gamma curve; Based on the first adjustment point, the target gamma curve is adjusted to obtain the adjusted target gamma curve. The rate of change of the curve segment below the first adjustment point in the adjusted target gamma curve is greater than the rate of change of the curve before adjustment. The step of adjusting the target gamma curve based on the first adjustment point to obtain the adjusted target gamma curve includes: Obtain the tangent line at the first adjustment point in the target gamma curve; Based on the tangent, the line segment between the point on the horizontal axis of the target gamma curve where the tangent is located and the first adjustment point is obtained as the first curve segment; Based on the first curve segment, the target gamma curve is adjusted to obtain the adjusted target gamma curve; The step of adjusting the target gamma curve based on the first curve segment to obtain the adjusted target gamma curve includes: The first curve segment is spliced with the second curve segment of the target gamma curve that is above the first adjustment point to obtain the third curve segment; Based on the range of color values corresponding to the target color parameters, the third curve segment is stretched to obtain the adjusted target gamma curve; Or include: Based on the starting point of the target gamma curve and the first adjustment point, the first curve segment is translated and stretched to obtain the adjusted first curve segment; the starting point of the adjusted first curve segment is the starting point of the target gamma curve. Determine the point in the target gamma curve that coincides with the endpoint of the adjusted first curve segment; The curve segment located after the coincidence point in the target gamma curve is taken as the second curve segment and spliced with the adjusted first curve segment to obtain the adjusted target gamma curve.
2. The method according to claim 1, characterized in that, The process of obtaining the target gamma curve includes: If the parameter tuning instruction includes the target gamma curve, then the target gamma curve is obtained from the parameter tuning instruction; Alternatively, if the parameter tuning instruction includes the target grayscale parameter and the target color parameter, then the target gamma curve is obtained from the gamma curve set based on the target grayscale parameter and the target color parameter. Alternatively, the gamma curves corresponding to all grayscale parameters and color parameters supported by the display device can be used as the target gamma curve.
3. The method according to claim 1, characterized in that, Obtaining the first adjustment point in the target gamma curve includes: If the parameter tuning instruction includes the first adjustment point, then the first adjustment point is obtained from the parameter tuning instruction; Alternatively, obtain the first adjustment point in the preset target gamma curve; Alternatively, the first adjustment point can be obtained based on the curve change of the target gamma curve.
4. The method according to claim 1, characterized in that, After obtaining the adjusted target gamma curve, the process also includes: When the display device displays an image with the target color parameters using the target gamma curve, an inquiry message is output; the inquiry message is used to ask whether the display device should be configured with the adjusted target gamma curve. In response to the query information, if a configuration instruction is received, the adjusted target gamma curve is configured for the display device; Alternatively, in response to the query information, if a readjustment instruction is received, the second adjustment point in the target gamma curve is obtained, and the adjusted target gamma curve is obtained again based on the second adjustment point.
5. The method according to claim 1, characterized in that, The image is a frame from a video.
6. A display method, characterized in that, The method includes: Get the image to be displayed; Based on the target color parameters of the image and the target grayscale parameters of the target display device, obtain the adjusted target gamma curve obtained by the method described in any one of claims 1-5; Using the adjusted target gamma curve, the grayscale value of each pixel in the image is obtained; The image is displayed based on the grayscale values of each pixel in the image.
7. A parameter adjustment device for a display device, characterized in that, The device includes: The receiving module is configured to receive a parameter adjustment instruction for the display device, the parameter adjustment instruction being used to instruct the adjustment of the target gamma curve of the display device; the target gamma curve being used to characterize the mapping relationship between the color value corresponding to the target color parameter of the image supported by the display device and the grayscale value corresponding to the target grayscale parameter of the display device. The acquisition module is used to acquire the target gamma curve and the first adjustment point in the target gamma curve; The processing module is used to adjust the target gamma curve according to the first adjustment point to obtain the adjusted target gamma curve, wherein the rate of change of the curve segment below the first adjustment point in the adjusted target gamma curve is greater than the rate of change of the curve before adjustment. The processing module is used to obtain the tangent line in the target gamma curve located at the first adjustment point; based on the tangent line, obtain the line segment between the point on the horizontal axis of the target gamma curve where the tangent line is located and the first adjustment point as the first curve segment; and adjust the target gamma curve based on the first curve segment to obtain the adjusted target gamma curve. The processing module is configured to: splice the first curve segment with the second curve segment of the target gamma curve located above the first adjustment point to obtain a third curve segment; stretch the third curve segment according to the value range of the color value corresponding to the target color parameter to obtain the adjusted target gamma curve; or... The method is used to perform a translation and stretching transformation on the first curve segment based on the starting point of the target gamma curve and the first adjustment point to obtain the adjusted first curve segment; the starting point of the adjusted first curve segment is the starting point of the target gamma curve; the coincidence point between the target gamma curve and the end point of the adjusted first curve segment is determined; the curve segment of the target gamma curve located after the coincidence point is taken as the second curve segment and spliced with the adjusted first curve segment to obtain the adjusted target gamma curve.
8. A display device, characterized in that, The device includes: The first acquisition module is used to acquire the image to be displayed. The second acquisition module is used to acquire, based on the target color parameters of the image and the target grayscale parameters of the target display device, the adjusted target gamma curve obtained by the method described in any one of claims 1-5. The third acquisition module is used to acquire the grayscale value of each pixel in the image using the adjusted target gamma curve. The display module is used to display the image based on the grayscale values of each pixel in the image.
9. A computer storage medium, characterized in that, The computer storage medium stores a plurality of instructions adapted for loading by a processor and executing the method steps as claimed in any one of claims 1-6.
10. An electronic device, characterized in that, include: A processor and a memory; wherein the memory stores a computer program adapted to be loaded by the processor and executed the method steps as claimed in any one of claims 1-5.
11. A display device, characterized in that, include: A processor, a memory, and a display screen; wherein the display screen is used to display images, the memory stores a computer program adapted to be loaded by the processor and to execute the method steps of claim 6.
Citation Information
Patent Citations
Gamma debugging method, gamma debugging device and display device
CN115206236A