Image display method and device, terminal equipment and storage medium

By adjusting the pixel input node value of the OLED display screen and using 3DLUT to convert the color space, the color gap problem caused by the large color gamut of the OLED display screen is solved, and the contrast and detail display quality of the image are improved.

CN119105682APending Publication Date: 2024-12-10BEIJING XIAOMI MOBILE SOFTWARE CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202310673578.2
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-06-07
Publication Date
2024-12-10

AI Technical Summary

Technical Problem

The display color gamut of the OLED display screen is large, resulting in a gap between the displayed color and the real color in the image to be displayed, affecting the contrast and detail display quality of the image.

Method used

By obtaining the image to be displayed and the preset mapping relationship, adjusting the node value of the pixel input node to match the pixel value in the image, and using 3DLUT to perform color space conversion and color tuning to ensure the accuracy and detailed display of the output pixel value.

Benefits of technology

Improve image contrast and detail display, reduce output inaccuracy caused by fixed node values, and improve display effect.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119105682A_ABST
    Figure CN119105682A_ABST
Patent Text Reader

Abstract

The invention relates to an image display method and device, terminal equipment and a storage medium. The image display method comprises the steps that a to-be-displayed image and a preset mapping relation are acquired; wherein the preset mapping relation has a pixel input node and a pixel output node; adjusting a node value of the pixel input node according to a preset pixel value of each pixel in the to-be-displayed image; wherein the node value is used for representing a pixel value input by the pixel input node on the same color component; inputting the preset pixel value through the pixel input node after the node value is adjusted, and outputting a target pixel value corresponding to the preset pixel value through the output node; and displaying the to-be-displayed image according to the target pixel value. The contrast ratio of the image displayed through the method is higher, more details can be displayed, and the display effect of the to-be-displayed image is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to the field of image processing technology, and in particular to an image display method, apparatus, terminal device and storage medium. Background Art

[0002] With the development of display technology, more and more electronic devices have display functions. Electronic devices with display functions usually have display modules, such as display screens, through which images can be displayed. The display screen may include an organic light-emitting diode (OLED), i.e., an OLED display screen. The color gamut displayed by the display screen is large, and the displayed colors are relatively bright. There may be a certain gap between the actual colors of the objects to be displayed contained in the image to be displayed, and the colors are usually adjusted before display. Summary of the invention

[0003] The present disclosure provides an image display method, an apparatus, a terminal device and a storage medium.

[0004] According to a first aspect of an embodiment of the present disclosure, there is provided an image display method, comprising: obtaining an image to be displayed and a preset mapping relationship; wherein the preset mapping relationship has a pixel input node and a pixel output node; adjusting the node value of the pixel input node according to the preset pixel value of each pixel in the image to be displayed; wherein the node value is used to represent the pixel value input by the pixel input node on the same color component; inputting the preset pixel value through the pixel input node after adjusting the node value, and outputting a target pixel value corresponding to the preset pixel value through the pixel output node; and displaying the image to be displayed according to the target pixel value.

[0005] In one embodiment, adjusting the node value of the pixel input node according to the preset pixel value of each pixel in the image to be displayed includes: determining the sub-pixel value of the preset pixel value of each pixel on each color component; determining the target range of the sub-pixel value on each color component according to the distribution state of the sub-pixel value on each color component; and adjusting the node value according to the target range.

[0006] In one embodiment, determining the target range of the sub-pixel values ​​on each color component based on the distribution status of the sub-pixel values ​​on each color component includes: on the same color component, determining the range of the sub-pixel values ​​whose number is greater than a reference number as the target range of the sub-pixel values ​​on the color component.

[0007] In one embodiment, adjusting the node value according to the target range includes: adjusting the node values ​​of a preset number of the pixel input nodes to within the target range of the sub-pixel values ​​on each color component; wherein the target ranges of the sub-pixel values ​​on different color components correspond to their respective preset numbers.

[0008] In one embodiment, the pixel input nodes include: N pixel input nodes corresponding to an R color component, a G color component, and a B color component, respectively; the adjusting the node values ​​of a preset number of the pixel input nodes to the target range includes at least one of the following: adjusting the node values ​​of a first preset number of the N pixel input nodes of the R color component to the first target range according to the first target range of the sub-pixel value on the R color component; adjusting the node values ​​of a second preset number of the N pixel input nodes of the G color component to the second target range according to the second target range of the sub-pixel value on the G color component; adjusting the node values ​​of a third preset number of the N pixel input nodes of the B color component to the third target range according to the target range of the sub-pixel value on the B color component.

[0009] In one embodiment, before adjusting the node value according to the target range, the method further includes: converting the maximum sub-pixel value and the minimum sub-pixel value in the target range according to a preset conversion relationship; wherein the preset conversion relationship is used to increase the color depth of the sub-pixel value; adjusting the node value according to the target range includes: adjusting the node value according to the converted target range.

[0010] In one embodiment, the preset mapping relationship includes: a display lookup table.

[0011] According to a second aspect of an embodiment of the present disclosure, there is provided an image display device, comprising: an acquisition module, for acquiring an image to be displayed and a preset mapping relationship; wherein the preset mapping relationship has a pixel input node and a pixel output node; an adjustment module, for adjusting the node value of the pixel input node according to the preset pixel value of each pixel in the image to be displayed; wherein the node value is used to represent the pixel value input by the pixel input node on the same color component; a conversion module, for inputting the preset pixel value through the pixel input node after adjusting the node value, and outputting a target pixel value corresponding to the preset pixel value through the pixel output node; and a display module, for displaying the image to be displayed according to the target pixel value.

[0012] According to a third aspect of the embodiments of the present disclosure, a terminal device is provided, including:

[0013] A processor and a memory for storing executable instructions that can be run on the processor, wherein: when the processor is used to run the executable instructions, the executable instructions execute the method described in any one of the above embodiments.

[0014] According to a fourth aspect of the embodiments of the present disclosure, a non-temporary computer-readable storage medium is provided, wherein the computer-readable storage medium stores computer-executable instructions, and when the computer-executable instructions are executed by a processor, the method described in any of the above embodiments is implemented.

[0015] The technical solution provided by the embodiments of the present disclosure may have the following beneficial effects:

[0016] The solution provided by the embodiment of the present disclosure adjusts the node value of the pixel input node in the preset mapping relationship according to the preset pixel value of each pixel in the image to be displayed, and the node value is used to represent the pixel value input by the pixel input node on the same color component. In this way, the node value of the pixel input node can be matched with the pixel value of each pixel in the image to be displayed, and the situation that the pixel value output by the pixel output node is inaccurate due to the large difference between the pixel value and the node value of each pixel in the image to be displayed when the node value of the pixel input node is a fixed node value is reduced. The image displayed by this method has a higher contrast, can display more details, and improves the display effect of the image to be displayed.

[0017] It is to be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present disclosure. BRIEF DESCRIPTION OF THE DRAWINGS

[0018] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present disclosure and, together with the description, serve to explain the principles of the present disclosure.

[0019] Figure 1 is a schematic diagram of a 3DLUT according to an exemplary embodiment;

[0020] Figure 2 is a schematic diagram showing an image display method according to an exemplary embodiment;

[0021] Figure 3 is a schematic diagram showing a method of adjusting a node value according to an exemplary embodiment;

[0022] Figure 4 is a schematic diagram showing a distribution state of sub-pixel values ​​of each pixel on a color component in an image to be displayed according to an exemplary embodiment;

[0023] Figure 5is a schematic diagram showing a distribution state of sub-pixel values ​​of each pixel on another color component in an image to be displayed according to an exemplary embodiment;

[0024] Figure 6 is a schematic diagram showing a distribution state of sub-pixel values ​​of each pixel on another color component in an image to be displayed according to an exemplary embodiment;

[0025] Figure 7 is a schematic diagram showing a method of adjusting a node value according to an exemplary embodiment;

[0026] Figure 8 is a schematic diagram of an image display device according to an exemplary embodiment;

[0027] Fig. 9 The present invention is a block diagram of a terminal device according to an exemplary embodiment. DETAILED DESCRIPTION

[0028] Exemplary embodiments will be described in detail herein, examples of which are shown in the accompanying drawings. When the following description refers to the drawings, the same numbers in different drawings represent the same or similar elements unless otherwise indicated. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present disclosure. Instead, they are merely examples of devices consistent with some aspects of the present disclosure as detailed in the appended claims.

[0029] Generally, the display color gamut of OLED display is large, and the displayed colors are relatively bright, which is somewhat different from the real color of the object to be displayed. Therefore, terminal devices such as mobile phones or tablets will use the display look-up table (LUT) for color gamut mapping or color adjustment. LUT can include 1DLUT and 3DLUT. Here, 3DLUT is used to map the large color gamut of the display to the standard P3 or sRGB color gamut, and perform some adjustments such as skin color protection and color adjustment.

[0030] refer to Figure 1 , is a schematic diagram of a 3DLUT, Figure 1Part of the information of 3DLUT is shown. The 3DLUT used by the terminal device can have 17*17*17 nodes, a total of 4913 nodes. There are six columns of nodes in 3DLUT. The three columns on the left are input nodes. The node values ​​of the input nodes are linearly and equidistantly distributed according to the RGB values ​​of the pixels in the image to be displayed. Each column represents the node value of the input node of a color component. The three columns on the right are output nodes. The RGB values ​​of the actual display content are obtained according to the position in the 3DLUT using cubic interpolation to obtain the corresponding RGB values, and the pixel values ​​obtained by 3DLUT processing are output through the output nodes. The image can be displayed according to the pixel values ​​processed by 3DLUT.

[0031] Usually, 3DLUT is generated based on the relationship between the screen hardware characteristics and the target color gamut. After 3DLUT is generated, the terminal device will call the current 3DLUT when displaying any content, and the node value of the LUT input node will not change according to the change of the displayed content, that is, the node value of the LUT input node will not be adjusted according to the displayed content.

[0032] For example, the processing accuracy of 3DLUT is 12 bits, the node values ​​of the input nodes are linearly distributed, and the node values ​​of each node are evenly and equidistantly distributed, such as Figure 1 The node values ​​of the leftmost column of input nodes are 0, 256, 512, 768, 1024, 1280, 1536...4095, and a total of 4913 input nodes are formed according to the RGB color arrangement and combination. In the leftmost column of input nodes, the difference between the node values ​​of any two adjacent input nodes is 256. Since the number of input nodes of 3DLUT is limited, the difference is also matched with the processing accuracy. When the input nodes of 3DLUT remain unchanged and the accuracy is different, the difference may also be different.

[0033] Since the display color gamut of OLED displays is large, generally greater than 100% of the P3 color gamut, it cannot achieve standard color gamut display. Figure 1 The 3DLUT shown allocates pixel values ​​with similar colors in the image to the same interval of the 3DLUT, and cannot achieve high contrast and detail display in areas with relatively close pixel values, resulting in poor image display quality and affecting the user experience.

[0034] For example, when the pixel value of a pixel is (300, 0, 0), the two pixel values ​​adjacent to 300 are 256 or 512, and the pixel value is input through the two input nodes 256 or 512. Since the difference between the pixel value and 256 and 512 is large, the accuracy of the result output by 3DLUT is low.

[0035] refer to Figure 2, is a schematic diagram of an image display method, which can be applied to a terminal device having multiple image acquisition units, and the method includes:

[0036] S100: Acquire an image to be displayed and a preset mapping relationship; wherein the preset mapping relationship has a pixel input node and a pixel output node.

[0037] S200: adjusting the node value of the pixel input node according to the preset pixel value of each pixel in the image to be displayed; wherein the node value is used to represent the pixel value input to the pixel input node on the same color component.

[0038] S300: inputting a preset pixel value through the pixel input node after adjusting the node value, and outputting a target pixel value corresponding to the preset pixel value through the pixel output node.

[0039] S400: Displaying the image to be displayed according to the target pixel value.

[0040] The method can be executed at least in a terminal device with a display screen, and the terminal device can include a mobile terminal device and a fixed terminal device, that is, the execution subject of the method can at least include a mobile terminal device and a fixed terminal device. Mobile terminal devices can include mobile phones, tablet computers, vehicle-mounted central control devices, wearable devices, smart devices, etc., and smart devices can include smart office equipment, smart home equipment, robots, etc.

[0041] For S100, the terminal device can obtain the image to be displayed when displaying the image to be displayed. The image to be displayed can be determined according to actual usage requirements, and can be an image captured by an image acquisition module in the terminal device, or an image sent by an external device and received by the terminal device.

[0042] Exemplarily, the image to be displayed may be a color image.

[0043] The terminal device can also obtain a preset mapping relationship. The terminal device can obtain the preset mapping relationship from an external device, create and generate the preset mapping relationship, and call it from an application. The preset mapping relationship has a pixel input node and a pixel output node. The preset mapping relationship is used to convert the color space or pixel value of the input pixel. When a pixel value is input to the preset mapping relationship, the preset mapping relationship can output a corresponding pixel value.

[0044] The preset mapping relationship has a pixel input node and a pixel output node. The pixel input node is used to input a pixel value of a pixel, and the pixel output node is used to output a pixel value generated by the preset mapping relationship according to the pixel value input by the pixel input node.

[0045] The number of pixel input nodes and pixel output nodes can be determined according to actual usage requirements, and the number of pixel input nodes and pixel output nodes can be the same. The pixel input nodes may include pixel input nodes corresponding to different color components, and the pixel output nodes may also include pixel output nodes corresponding to different color components.

[0046] The pixel input node has a node value, which indicates the value of a pixel that can be input through the pixel input node. For example, in a color component, the pixel input node has a node value of 512, and the pixel value of the color component input through the pixel input node is 512.

[0047] Exemplarily, the preset mapping relationship may include a preset display lookup table, and the preset display lookup table includes 1DLUT and 3DLUT.

[0048] Inputting the input information is a preset mapping relationship, and the preset mapping relationship can output the output information corresponding to the input information. The mapping relationship between the input information and the output information can be determined according to the actual usage requirements. For example, the input information can be input into a preset display lookup table (3DLUT), and inputting a signal is to input an address for table lookup. The display lookup table (3DLUT) can determine the content corresponding to the address and output it. For the display, it can play a role in color space conversion. The pixel value of the image to be displayed is input into the preset display lookup table (3DLUT), and the corresponding converted pixel value can be output.

[0049] The preset display lookup table (3DLUT) may be an initial display lookup table (3DLUT), which may be as follows: Figure 1 shown.

[0050] In one embodiment, the preset display lookup table (3DLUT) may also be as shown in Table 1 below:

[0051] Table 1:

[0052]

[0053] The preset display lookup table (3DLUT) shown in the above table has a precision of 12 bits, and can also be 8 bits, 10 bits, 14 bits, etc. When the precision is different, the number of colors displayed by the pixel is also different, corresponding to the number of grayscale levels. The preset display lookup table (3DLUT) includes three columns of input nodes and three columns of output nodes. The three columns of input nodes represent the input nodes of three different color components, respectively, and each color component corresponds to a column of input nodes. The corresponding column of R_in represents the input node of the red component, the corresponding column of G_in represents the input node of the green component, and the corresponding column of B_in represents the input node of the blue component. The corresponding numerical value represents the node value input by the input node of each color component, that is, the pixel value.

[0054] For example, 256 in the R_in column indicates that the pixel value of the input red component is 256, 0 in the G_in column indicates that the pixel value of the input green component is 0, and 0 in the B_in column indicates that the pixel value of the input blue component is 0. The corresponding pixel values ​​of the input pixels are (256, 0, 0). Similarly, the three columns on the right are output nodes.

[0055] In the preset display lookup table (3DLUT), the difference of the pixel values ​​inputted by adjacent input nodes of the same color component is equal, which is 256, that is, the pixel values ​​inputted by the input nodes are uniformly distributed linearly. The output value of the output node is the same as the input value of the output node.

[0056] In an embodiment, the preset mapping relationship may also be other mapping relationships having a pixel value conversion function or a color space conversion function.

[0057] For S200, after the image to be displayed and the preset mapping relationship are obtained, since the image to be displayed is composed of pixels, the pixel value of each pixel in the image to be displayed can be obtained. For the convenience of description, the pixel value of each pixel in the image to be displayed is recorded as the preset pixel value. Then, the node value of the pixel input node is adjusted according to the preset pixel value of each pixel in the image to be displayed. The node value of the pixel input node is used to represent the pixel value input by the pixel input node on the same color component.

[0058] The manner of adjusting the node value of the pixel input node according to the preset pixel value of each pixel in the image to be displayed is not limited. For example, the node value of the pixel input node can be adjusted according to the distribution of the preset pixel value of each pixel in the image to be displayed. The node value of the pixel input node is adjusted according to the pixel value of the preset pixel value of each pixel in the image to be displayed where the distribution is relatively dense, so as to reduce the difference in the node value of the adjacent pixel input node corresponding to the interval where the pixel value of the relatively dense distribution is located on at least one color component.

[0059] S300: Input a preset pixel value through the pixel input node after adjusting the node value, and output a target pixel value corresponding to the preset pixel value through the output node. After the preset pixel value of the image to be displayed is input into the preset mapping relationship, the preset mapping relationship can output the corresponding target pixel value. The mapping relationship between input and output can be determined according to actual needs and is not limited here.

[0060] S400: Displaying the image to be displayed according to the target pixel value.

[0061] Since the pixel values ​​of pixels in different images to be displayed are different, by adjusting the node value of the pixel input node according to the pixel value of the pixel in the image to be displayed, the pixel value of the pixel in the image to be displayed can be input to the pixel input node with the smallest difference with the pixel value of the pixel in the image to be displayed. Since the difference between the pixel value of the pixel in the image to be displayed and the node value of the input pixel input node is reduced, the situation that the pixel value output through the preset mapping relationship is inaccurate due to the large difference between the input pixel value and the node value of the input pixel input node is reduced, thereby improving the accuracy of the pixel value output by the preset mapping relationship, thereby improving the display quality of the image to be displayed.

[0062] In this way, the node value of the pixel input node can be matched with the pixel value of each pixel in the image to be displayed, reducing the situation where the pixel value of each pixel in the image to be displayed is inaccurate due to the large difference between the pixel value and the node value of the pixel input node when the node value is a fixed node value. The image displayed by this method has a higher contrast, can display more details, and improves the display effect of the image to be displayed.

[0063] In one embodiment, reference Figure 3 , is a schematic diagram of adjusting a node value, S200, adjusting the node value of a pixel input node according to a preset pixel value of each pixel in an image to be displayed, including:

[0064] S201: Determine the sub-pixel value of the preset pixel value of each pixel on each color component;

[0065] S202: determining a target range of sub-pixel values ​​on each color component according to a distribution state of sub-pixel values ​​on each color component;

[0066] S203: Adjust the node value according to the target range.

[0067] For S201, after obtaining the image to be displayed, the pixel value of each pixel in the image to be displayed can be obtained. The display screen display image of terminal devices such as mobile phones and tablet computers is based on RGB color display. Since a single pixel includes three sub-pixels, i.e., R sub-pixel, G sub-pixel and B sub-pixel, the pixel value of each pixel in the image to be displayed includes the sub-pixel value of different color components, i.e., the sub-pixel value of the R color component, the sub-pixel value of the G color component and the sub-pixel value of the B color component. The sub-pixel values ​​of different color components can be recorded as R sub-pixel value, G sub-pixel value and B sub-pixel value. Each pixel will correspond to an R sub-pixel value, a G sub-pixel value and a B sub-pixel value.

[0068] For example, it is determined that the pixel value of pixel 1 is (100, 100, 0), then the R sub-pixel value of pixel 1 is 100, the G sub-pixel value is 100, and the B sub-pixel value is 0.

[0069] The process of determining the pixel value of a pixel and determining the values ​​of three sub-pixels included in the pixel is not limited and can be determined by a corresponding determination algorithm.

[0070] For S202, after obtaining the sub-pixel values ​​of each pixel, the target range of the sub-pixel values ​​on each color component can be determined according to the distribution state of the sub-pixel values ​​of each pixel. The distribution state of the sub-pixel values ​​of each pixel can be determined first, and the distribution state of the sub-pixel values ​​of each pixel can be determined according to the number of sub-pixel values ​​of each pixel, that is, the distribution state of the sub-pixel values ​​of each pixel is determined according to the number of occurrences of the sub-pixel values ​​of each pixel.

[0071] Exemplarily, on the same color component, a range of sub-pixel values ​​whose number is greater than a reference number is determined as the target range of sub-pixel values ​​on the color component.

[0072] like Figure 4 As shown in FIG. 1 , it is a schematic diagram of the distribution of sub-pixel values ​​of each pixel in a color component of the image to be displayed. The color component may be the R component. The horizontal axis represents the sub-pixel value of the color component, and the vertical axis represents the number of sub-pixel values ​​of the color component, that is, the number of occurrences. Figure 4 It can be concluded that the distribution state of sub-pixel values ​​on the R component is relatively concentrated in the range of sub-pixel values ​​from 100 to 200. Therefore, the range from 100 to 200 is determined as the target range of sub-pixel values ​​on the R component, which is recorded as the first target range.

[0073] The target range can be determined based on a reference number. Each color component has a corresponding reference number, which is used to determine the target range corresponding to the number of sub-pixel values ​​on the color component. Figure 4As shown, 10,000, 15,000 or 20,000 can be used as a reference number, recorded as the first reference number.

[0074] like Figure 5 As shown in FIG. 1 , it is a schematic diagram of the distribution of sub-pixel values ​​of each pixel in the image to be displayed on another color component. The color component may be the G component. The horizontal axis represents the sub-pixel value on the color component, and the vertical axis represents the number of sub-pixel values ​​on the color component, that is, the number of occurrences. Figure 5 It can be concluded that the distribution state of the sub-pixel values ​​on the G component is relatively concentrated in the range of sub-pixel values ​​from 30 to 80. Therefore, the range from 30 to 80 is determined as the target range of the sub-pixel values ​​on the G component, which is recorded as the second target range.

[0075] The target range can be determined based on a reference number. Each color component has a corresponding reference number, which is used to determine the target range corresponding to the number of sub-pixel values ​​on the color component. Figure 5 As shown, 10000 can be used as a reference number and recorded as the second reference number.

[0076] like Figure 6 As shown in FIG. 1 , it is a schematic diagram of the distribution of sub-pixel values ​​of each pixel in the image to be displayed on another color component. The color component may be the B component. The horizontal axis represents the sub-pixel value on the color component, and the vertical axis represents the number of sub-pixel values ​​on the color component, that is, the number of occurrences. Figure 6 It can be concluded that the distribution state of sub-pixel values ​​on the B component is relatively concentrated in the range of sub-pixel values ​​200 to 240. Therefore, the range of 200 to 240 is determined as the target range of sub-pixel values ​​on the B component, which is recorded as the third target range.

[0077] The target range can be determined based on a reference number. Each color component has a corresponding reference number, which is used to determine the target range corresponding to the number of sub-pixel values ​​on the color component. Figure 6 As shown, 10,000 or 15,000 can be used as a reference number and recorded as the third reference number.

[0078] In another embodiment, Figure 4 , Figure 5 and Figure 6 The area of ​​the shaded portion shown in can also represent the distribution of the corresponding sub-pixel values ​​in each interval. The target range of the sub-pixel values ​​on the corresponding color component is determined according to the area of ​​the shaded portion. When the shaded area of ​​a certain interval is the largest, it means that the number of sub-pixel values ​​in this interval is the largest and the distribution is the most dense.

[0079] For S203, after determining the target range of the sub-pixel value on each color component, the node value of the pixel input node is adjusted according to the target range of the sub-pixel value on each color component.

[0080] The node value of the pixel input node and the target range of the sub-pixel value on each color component have an intersection, and the node values ​​of some pixel input nodes are within the target range. For example, on the R color component, the target range is (100, 200), and the node values ​​of some pixel input nodes in the preset mapping relationship are within the target range. Then, the node values ​​of the pixel input nodes whose node values ​​in the preset mapping relationship are outside the target range can be adjusted to be within the target range.

[0081] In this way, the number and distribution density of the node values ​​of the pixel input nodes within the target range can be increased, so that when the pixel values ​​within the target range are input through the pixel input nodes, the difference between the pixel values ​​within the target range and the node values ​​of the pixel input nodes is reduced, thereby improving the accuracy of the input and reducing the situation where the pixel values ​​output by the pixel output nodes are inaccurate due to the large difference between the input pixel values ​​and the node values. The image displayed by this method has a higher contrast, can display more details, and improves the display effect of the image to be displayed.

[0082] In one embodiment, adjusting the node value according to the target range includes:

[0083] The node values ​​of a preset number of pixel input nodes are adjusted to be within the target range of sub-pixel values ​​on each color component, wherein the target range of sub-pixel values ​​on different color components corresponds to a respective preset number.

[0084] When adjusting the node value according to the target range, for the target range of sub-pixel values ​​on different color components, the node values ​​of the corresponding preset number of pixel input nodes can be adjusted to the target range of sub-pixel values ​​on the corresponding color component. For example, for the target range of sub-pixel values ​​on the R color component, the node values ​​of the first preset number of pixel input nodes can be adjusted to the target range of sub-pixel values ​​on the R color component. For the target range of sub-pixel values ​​on the G color component, the node values ​​of the second preset number of pixel input nodes can be adjusted to the target range of sub-pixel values ​​on the G color component. For the target range of sub-pixel values ​​on the B color component, the node values ​​of the third preset number of pixel input nodes can be adjusted to the target range of sub-pixel values ​​on the B color component.

[0085] The first preset number, the second preset number and the third preset number can be determined according to actual usage requirements.

[0086] In one embodiment, the pixel input nodes include: N pixel input nodes corresponding to the R color component, the G color component, and the B color component, respectively. The pixel input nodes include: N pixel input nodes for the R color component, N pixel input nodes for the G color component, and N pixel input nodes for the B color component. N is a positive integer, such as 9 or 17.

[0087] The number of pixel input nodes corresponding to different color components is the same.

[0088] Adjusting the node values ​​of a preset number of the pixel input nodes to within the target range includes at least one of the following:

[0089] According to a first target range of sub-pixel values ​​on the R color component, node values ​​of a first preset number of pixel input nodes among the N pixel input nodes of the R color component are adjusted to be within the first target range.

[0090] According to a second target range of sub-pixel values ​​on the G color component, node values ​​of a second preset number of pixel input nodes among the N pixel input nodes of the G color component are adjusted to be within the second target range.

[0091] According to the target range of the sub-pixel value on the B color component, the node values ​​of a third preset number of pixel input nodes among the N pixel input nodes of the B color component are adjusted to be within a third target range.

[0092] The first preset number, the second preset number and the third preset number can be determined according to actual usage requirements, and the three can be the same or different.

[0093] In one embodiment, the node values ​​of a preset number of pixel input nodes adjusted to be within the target range are the node values ​​of the pixel input nodes with a preset mapping relationship that are adjacent to the maximum value and the minimum value of the target range.

[0094] refer to Figure 7 , which is a schematic diagram of adjusting node values.

[0095] Take the R color component as an example. Figure 7 The dots shown in the first row represent the node values ​​of the pixel input nodes. The distance between any two adjacent dots is the same, indicating that the difference between the node values ​​of any two adjacent pixel input nodes is the same.

[0096] The dots in the second row represent the node values ​​of the pixel input nodes adjusted on the basis of the first row. The spacing of the eight dots with smaller spacing in the middle is smaller than the spacing between the first and second dots in the second row, and also smaller than the spacing between the last five dots. The node values ​​of the pixel input nodes represented by the eight dots in the middle are located within the target range (100, 200) corresponding to the sub-pixel values ​​on the R color component. Within the target range, the number of node values ​​of the adjusted pixel input nodes is greater than that shown in the first row, and the difference between two adjacent node values ​​is smaller. According to the target range of pixel values, the uniform distribution of the first row is adjusted to a non-uniform distribution.

[0097] The density of node values ​​of pixel input nodes within the target range is greater than the density of node values ​​of pixel input nodes outside the target range. The density can also represent the difference between node values ​​of adjacent pixel input nodes. The smaller the difference, the greater the density, and the greater the difference, the smaller the density.

[0098] The adjustment principles of the corresponding G color component and B color component are the same.

[0099] In one embodiment, after the node values ​​are adjusted, the number of pixel input nodes remains unchanged, and the difference between the node values ​​of adjacent pixel input nodes outside the target range becomes larger.

[0100] In another embodiment, before adjusting the node value according to the target range, the method further includes:

[0101] The maximum sub-pixel value and the minimum sub-pixel value in the target range are converted according to a preset conversion relationship; wherein the preset conversion relationship is used to increase the color depth of the sub-pixel value.

[0102] Adjust node values ​​based on target ranges, including:

[0103] Adjust the node value according to the converted target range.

[0104] The pixel value of the pixel in the image to be displayed is an 8-bit pixel value, and the range of each sub-pixel value is (0, 255). The pixel value can be converted to a 12-bit pixel value, and the range of the converted sub-pixel value is (0, 4095). This can increase the number of colors represented by the pixel, which helps to improve the saturation and detail display effect of the image to be displayed, thereby facilitating the improvement of the display effect of the image to be displayed.

[0105] The color conversion relationship can be determined according to actual usage requirements, for example, as expressed by the following formula (1):

[0106] Point = (Pixel / 255) 2.2 *4095 (1)

[0107] Among them, pexel represents the maximum sub-pixel value or the minimum sub-pixel value of the corresponding target range in a color component, and point represents the maximum sub-pixel value or the minimum sub-pixel value of the target range after conversion.

[0108] For example, if the target range of a color component is (100, 200), then the following formulas (2) and (3) can be obtained by formula (1):

[0109] Point = (100 / 255) 2.2 *4095=522 (2)

[0110] Point = (200 / 255) 2.2 *4095=2400 (3)

[0111] The target range after conversion is (522, 2400), and the node value of the pixel input node is adjusted according to the target range after conversion.

[0112] For example, before adjusting the node values ​​of the pixel input nodes, there are eight node values ​​between 522 and 2400, namely, 512, 768, 1024, 1280, 1536, 1792, 2048, and 2303. The node values ​​of the pixel input nodes other than (522, 2400) are adjusted to (522, 2400), and more node values ​​are inserted into these eight node values, so that the pixel values ​​with RGB values ​​between (100, 200) have more input nodes. The number of node values ​​actually inserted is determined according to the distribution of RGB values ​​in each target interval. For example, the node values ​​other than (522, 2400) can be adjusted to node values ​​between 512 and 768, such as 600. The node values ​​other than (522, 2400) are adjusted to node values ​​between 768 and 1024, such as 800. The adjusted node values ​​between 522 and 2400 are 512, 600, 768, 800, 1024, 1100, 1280, 1400, 1536, 1600, 1792, 1900, 2048, 2200 and 2303.

[0113] In one embodiment, after adjusting the node value of the pixel input node, the establishment of the 3DLUT nonlinear node is completed, and the nonlinear node 3DLUT still has 17*17*17=4913 rows of data.

[0114] Use the nonlinear node 3DLUT to perform color gamut mapping and color adjustment functions to generate the final image adaptive LUT

[0115] When displaying the image to be displayed, the generated nonlinear node 3DLUT is applied to a mobile phone or other terminal device, and the image can be adaptively displayed according to the current display screen content. In areas with dense pixel distribution, there is more adjustment accuracy, which can ensure that the image display transition is delicate and detailed, and achieve more accurate image detail reproduction.

[0116] The present disclosure proposes a scheme for constructing a nonlinear node 3DLUT file, which continuously generates a new image-adaptive nonlinear node 3DLUT file according to the display content, realizes the functions of color gamut mapping and color adjustment, and completes standard display. This scheme changes the way of 3DLUT nodes according to the image display content, sets more 3DLUT nodes in the part where the image pixel points are densely distributed, and the nonlinear 3DLUT can complete more refined debugging according to the display content, enrich the image details, and achieve better detail reproduction. The 3DLUT nodes here include pixel input nodes, and the distribution of nodes also represents the distribution of node values ​​of pixel input nodes.

[0117] In one embodiment, reference Figure 8 , is a schematic diagram of an image display device, the device comprising:

[0118] An acquisition module 1 is used to acquire an image to be displayed and a preset mapping relationship; wherein the preset mapping relationship has a pixel input node and a pixel output node;

[0119] An adjustment module 2, used for adjusting the node value of the pixel input node according to the preset pixel value of each pixel in the image to be displayed; wherein the node value is used to represent the pixel value input by the pixel input node on the same color component;

[0120] A conversion module 3, configured to input the preset pixel value through the pixel input node after adjusting the node value, and output a target pixel value corresponding to the preset pixel value through the pixel output node;

[0121] The display module 4 is used to display the image to be displayed through the target pixel value.

[0122] In one embodiment, the adjustment module 2 includes:

[0123] A sub-pixel value determination unit, used to determine the sub-pixel value of the preset pixel value of each pixel on each color component;

[0124] a target range determination unit, configured to determine a target range of the sub-pixel values ​​on each color component according to a distribution state of the sub-pixel values ​​on each color component;

[0125] An adjusting unit is used to adjust the node value according to the target range.

[0126] In one embodiment, the target range determination unit is further configured to:

[0127] On the same color component, a range of sub-pixel values ​​whose number is greater than a reference number is determined as the target range of the sub-pixel values ​​on the color component.

[0128] In one embodiment, the adjusting unit is further configured to:

[0129] Adjusting node values ​​of a preset number of the pixel input nodes to within the target range of the sub-pixel values ​​on each color component;

[0130] The target ranges of the sub-pixel values ​​on different color components correspond to their respective preset numbers.

[0131] In one embodiment, the pixel input nodes include: N pixel input nodes corresponding to the R color component, the G color component and the B color component respectively;

[0132] The adjustment unit includes at least one of the following:

[0133] A first adjustment subunit, configured to adjust node values ​​of a first preset number of pixel input nodes among the N pixel input nodes of the R color component to within the first target range according to a first target range of the sub-pixel value on the R color component;

[0134] A second adjustment subunit, configured to adjust node values ​​of a second preset number of pixel input nodes among the N pixel input nodes of the G color component to within a second target range according to a second target range of the sub-pixel value on the G color component;

[0135] The third adjustment subunit is used to adjust the node values ​​of a third preset number of pixel input nodes among the N pixel input nodes of the B color component to within the third target range according to the target range of the sub-pixel value on the B color component.

[0136] In one embodiment, the apparatus further comprises:

[0137] A conversion module, used for converting the maximum sub-pixel value and the minimum sub-pixel value in the target range according to a preset conversion relationship before adjusting the node value according to the target range; wherein the preset conversion relationship is used to increase the color depth of the sub-pixel value;

[0138] The adjustment unit is also used for:

[0139] The node value is adjusted according to the converted target range.

[0140] In one embodiment, the preset mapping relationship includes: a display lookup table.

[0141] In another embodiment, a terminal device is provided, including:

[0142] A processor and a memory for storing executable instructions capable of running on the processor, wherein:

[0143] When the processor is used to run the executable instructions, the executable instructions execute the method described in any one of the above embodiments.

[0144] In another embodiment, a non-transitory computer-readable storage medium is provided, wherein the computer-readable storage medium stores computer-executable instructions, and when the computer-executable instructions are executed by a processor, the method described in any of the above embodiments is implemented.

[0145] It should be noted that the “first” and “second” in the embodiments of the present disclosure are only for the convenience of description and distinction and have no other specific meanings.

[0146] Fig. 9 1 is a block diagram of a terminal device according to an exemplary embodiment. For example, the terminal device may be a mobile phone, a computer, a digital broadcast terminal, a messaging device, a game console, a tablet device, a medical device, a fitness device, a personal digital assistant, etc.

[0147] Reference Fig. 9 The terminal device may include one or more of the following components: a processing component 802 , a memory 804 , a power component 806 , a multimedia component 808 , an audio component 810 , an input / output (I / O) interface 812 , a sensor component 814 , and a communication component 816 .

[0148] The processing component 802 generally controls the overall operation of the terminal device, such as operations associated with display, phone calls, data communications, camera operations, and recording operations. The processing component 802 may include one or more processors 820 to execute instructions to complete all or part of the steps of the above method. In addition, the processing component 802 may include one or more modules to facilitate the interaction between the processing component 802 and other components. For example, the processing component 802 may include a multimedia module to facilitate the interaction between the multimedia component 808 and the processing component 802.

[0149] The memory 804 is configured to store various types of data to support operations on the terminal device. Examples of such data include instructions for any application or method operating on the terminal device, contact data, phone book data, messages, pictures, videos, etc. The memory 804 can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic disk or optical disk.

[0150] The power component 806 provides power to various components of the terminal device. The power component 806 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power to the terminal device.

[0151] The multimedia component 808 includes a screen that provides an output interface between the terminal device and the user. In some embodiments, the screen may include a liquid crystal display (LCD) and a touch panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive input signals from the user. The touch panel includes one or more touch sensors to sense touch, slide, and gestures on the touch panel. The touch sensor may not only sense the boundaries of the touch or slide action, but also detect the duration and pressure associated with the touch or slide operation. In some embodiments, the multimedia component 808 includes a front camera and / or a rear camera. When the terminal device is in an operating mode, such as a shooting mode or a video mode, the front camera and / or the rear camera may receive external multimedia data. Each front camera and rear camera may be a fixed optical lens system or have a focal length and optical zoom capability.

[0152] The audio component 810 is configured to output and / or input audio signals. For example, the audio component 810 includes a microphone (MIC), and when the terminal device is in an operation mode, such as a call mode, a recording mode, and a speech recognition mode, the microphone is configured to receive an external audio signal. The received audio signal can be further stored in the memory 804 or sent via the communication component 816. In some embodiments, the audio component 810 also includes a speaker for outputting audio signals.

[0153] I / O interface 812 provides an interface between processing component 802 and peripheral interface modules, such as keyboards, click wheels, buttons, etc. These buttons may include but are not limited to: home button, volume button, start button, and lock button.

[0154] The sensor assembly 814 includes one or more sensors for providing various aspects of status assessment for the terminal device. For example, the sensor assembly 814 can detect the open / closed state of the terminal device, the relative positioning of components, such as the display and keypad of the terminal device, and the sensor assembly 814 can also detect the position change of the terminal device or a component of the terminal device, the presence or absence of user contact with the terminal device, the orientation or acceleration / deceleration of the terminal device, and the temperature change of the terminal device. The sensor assembly 814 may include a proximity sensor configured to detect the presence of nearby objects without any physical contact. The sensor assembly 814 may also include an optical sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor assembly 814 may also include an accelerometer, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.

[0155] The communication component 816 is configured to facilitate wired or wireless communication between the terminal device and other devices. The terminal device can access a wireless network based on a communication standard, such as Wi-Fi, 4G or 5G, or a combination thereof. In an exemplary embodiment, the communication component 816 receives a broadcast signal or broadcast-related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 816 also includes a near field communication (NFC) module to facilitate short-range communication. For example, the NFC module can be implemented based on radio frequency identification (RFID) technology, infrared data association (IrDA) technology, ultra-wideband (UWB) technology, Bluetooth (BT) technology and other technologies.

[0156] In an exemplary embodiment, the terminal device may be implemented by one or more application-specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing devices (DSPDs), programmable logic devices (PLDs), field programmable gate arrays (FPGAs), controllers, microcontrollers, microprocessors, or other electronic components to perform the above method.

[0157] Those skilled in the art will readily appreciate other embodiments of the present disclosure after considering the specification and practicing the invention disclosed herein. The present disclosure is intended to cover any variations, uses or adaptations of the present disclosure that follow the general principles of the present disclosure and include common knowledge or customary techniques in the art that are not disclosed in the present disclosure. The description and examples are to be considered exemplary only, and the true scope and spirit of the present disclosure are indicated by the following claims.

[0158] It should be understood that the present disclosure is not limited to the exact structures that have been described above and shown in the drawings, and that various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.

Claims

1. An image display method, characterized in that: include: Acquire an image to be displayed and a preset mapping relationship; wherein the preset mapping relationship has a pixel input node and a pixel output node; According to the preset pixel value of each pixel in the image to be displayed, the node value of the pixel input node is adjusted; wherein the node value is used to represent the pixel value input by the pixel input node on the same color component; Input the preset pixel value through the pixel input node after adjusting the node value, and output the target pixel value corresponding to the preset pixel value through the pixel output node; The image to be displayed is displayed according to the target pixel value.

2. The method according to claim 1, characterized in that The step of adjusting the node value of the pixel input node according to the preset pixel value of each pixel in the image to be displayed comprises: Determine the sub-pixel value of the preset pixel value of each of the pixels on each color component; Determining a target range of the sub-pixel values ​​on each color component according to a distribution state of the sub-pixel values ​​on each color component; The node value is adjusted according to the target range.

3. The method according to claim 2, characterized in that Determining the target range of the sub-pixel value on each color component according to the distribution state of the sub-pixel value on each color component includes: On the same color component, a range of sub-pixel values ​​whose number is greater than a reference number is determined as the target range of the sub-pixel values ​​on the color component.

4. The method according to claim 2, characterized in that: The adjusting the node value according to the target range includes: Adjusting node values ​​of a preset number of the pixel input nodes to within the target range of the sub-pixel values ​​on each color component; The target ranges of the sub-pixel values ​​on different color components correspond to their respective preset numbers.

5. The method according to claim 4, characterized in that The pixel input nodes include: N pixel input nodes corresponding to the R color component, the G color component and the B color component respectively; The step of adjusting the node values ​​of the preset number of pixel input nodes to within the target range of the sub-pixel values ​​on each color component comprises at least one of the following: According to a first target range of the sub-pixel value on the R color component, adjusting node values ​​of a first preset number of pixel input nodes among the N pixel input nodes of the R color component to be within the first target range; According to a second target range of the sub-pixel value on the G color component, adjusting node values ​​of a second preset number of pixel input nodes among the N pixel input nodes of the G color component to within the second target range; According to the target range of the sub-pixel value on the B color component, node values ​​of a third preset number of pixel input nodes among the N pixel input nodes of the B color component are adjusted to be within a third target range.

6. The method according to any one of claims 2 to 5, characterized in that: Before adjusting the node value according to the target range, the method further includes: Converting the maximum sub-pixel value and the minimum sub-pixel value in the target range according to a preset conversion relationship; wherein the preset conversion relationship is used to increase the color depth of the sub-pixel value; The adjusting the node value according to the target range includes: The node value is adjusted according to the converted target range.

7. The method according to claim 1, characterized in that The preset mapping relationship includes: a display lookup table.

8. An image display device, characterized in that: include: An acquisition module, used to acquire an image to be displayed and a preset mapping relationship; wherein the preset mapping relationship has a pixel input node and a pixel output node; An adjustment module, used for adjusting the node value of the pixel input node according to the preset pixel value of each pixel in the image to be displayed; wherein the node value is used to represent the pixel value input by the pixel input node on the same color component; A conversion module, configured to input the preset pixel value through the pixel input node after adjusting the node value, and output a target pixel value corresponding to the preset pixel value through the pixel output node; A display module is used to display the image to be displayed according to the target pixel value.

9. A terminal device, characterized in that: include: A processor and a memory for storing executable instructions capable of running on the processor, wherein: When the processor is used to run the executable instructions, the executable instructions execute the method described in any one of claims 1 to 7.

10. A non-transitory computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer-executable instructions, which, when executed by a processor, implement the method described in any one of claims 1 to 7.