CN114822448B - Image hybrid display method, device, equipment and storage medium - Google Patents
Image hybrid display method, device, equipment and storage medium Download PDFInfo
- Publication number
- CN114822448B CN114822448B CN202110091136.8A CN202110091136A CN114822448B CN 114822448 B CN114822448 B CN 114822448B CN 202110091136 A CN202110091136 A CN 202110091136A CN 114822448 B CN114822448 B CN 114822448B
- Authority
- CN
- China
- Prior art keywords
- value
- display
- image
- gray
- brightness
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
- 238000000034 method Methods 0.000 title claims abstract description 51
- 238000004364 calculation method Methods 0.000 claims abstract description 81
- 238000006243 chemical reaction Methods 0.000 claims abstract description 27
- 230000006870 function Effects 0.000 claims description 74
- 238000002156 mixing Methods 0.000 claims description 38
- 230000007704 transition Effects 0.000 claims description 21
- 238000010276 construction Methods 0.000 claims description 18
- 241001270131 Agaricus moelleri Species 0.000 claims description 8
- 238000012546 transfer Methods 0.000 claims description 3
- 238000013507 mapping Methods 0.000 description 33
- 230000008569 process Effects 0.000 description 6
- 238000010586 diagram Methods 0.000 description 5
- 230000009286 beneficial effect Effects 0.000 description 3
- 238000003745 diagnosis Methods 0.000 description 3
- 230000008859 change Effects 0.000 description 2
- 238000012545 processing Methods 0.000 description 2
- 230000000007 visual effect Effects 0.000 description 2
- 239000003086 colorant Substances 0.000 description 1
- 230000001419 dependent effect Effects 0.000 description 1
- 238000011161 development Methods 0.000 description 1
- 230000000694 effects Effects 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 238000010295 mobile communication Methods 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 230000008707 rearrangement Effects 0.000 description 1
- 238000006467 substitution reaction Methods 0.000 description 1
Classifications
-
- G—PHYSICS
- G09—EDUCATION; CRYPTOGRAPHY; DISPLAY; ADVERTISING; SEALS
- G09G—ARRANGEMENTS OR CIRCUITS FOR CONTROL OF INDICATING DEVICES USING STATIC MEANS TO PRESENT VARIABLE INFORMATION
- G09G5/00—Control arrangements or circuits for visual indicators common to cathode-ray tube indicators and other visual indicators
- G09G5/02—Control arrangements or circuits for visual indicators common to cathode-ray tube indicators and other visual indicators characterised by the way in which colour is displayed
-
- G—PHYSICS
- G09—EDUCATION; CRYPTOGRAPHY; DISPLAY; ADVERTISING; SEALS
- G09G—ARRANGEMENTS OR CIRCUITS FOR CONTROL OF INDICATING DEVICES USING STATIC MEANS TO PRESENT VARIABLE INFORMATION
- G09G5/00—Control arrangements or circuits for visual indicators common to cathode-ray tube indicators and other visual indicators
- G09G5/02—Control arrangements or circuits for visual indicators common to cathode-ray tube indicators and other visual indicators characterised by the way in which colour is displayed
- G09G5/06—Control arrangements or circuits for visual indicators common to cathode-ray tube indicators and other visual indicators characterised by the way in which colour is displayed using colour palettes, e.g. look-up tables
-
- G—PHYSICS
- G09—EDUCATION; CRYPTOGRAPHY; DISPLAY; ADVERTISING; SEALS
- G09G—ARRANGEMENTS OR CIRCUITS FOR CONTROL OF INDICATING DEVICES USING STATIC MEANS TO PRESENT VARIABLE INFORMATION
- G09G5/00—Control arrangements or circuits for visual indicators common to cathode-ray tube indicators and other visual indicators
- G09G5/10—Intensity circuits
Landscapes
- Engineering & Computer Science (AREA)
- Physics & Mathematics (AREA)
- Computer Hardware Design (AREA)
- General Physics & Mathematics (AREA)
- Theoretical Computer Science (AREA)
- Controls And Circuits For Display Device (AREA)
Abstract
The embodiment of the application discloses an image mixed display method, device, equipment and storage medium. The method comprises the following steps: according to the brightness curve of the current display mode, calculating a first brightness value of each gray level of the current brightness curve according to a maximum brightness value and a minimum brightness value; calculating a second brightness value of each gray scale based on a gray scale standard display function brightness calculation formula according to the maximum brightness value and the minimum brightness value; calculating a third brightness value of each gray scale based on an electro-optical conversion function brightness calculation formula according to the maximum brightness value and the minimum brightness value; constructing a display lookup table of a gray-scale image according to the first brightness value, the second brightness value and the first color channel value, wherein the first color channel value is the color channel value of each gray scale under the current brightness curve; and constructing a display lookup table of the color image according to the first brightness value, the third brightness value and the first color channel value, and realizing the display of the image under a proper brightness curve based on the display lookup table so as to solve the problem that the image cannot be accurately displayed.
Description
Technical Field
The embodiment of the application relates to the technical field of image display, in particular to an image mixed display method, an image mixed display device, image mixed display equipment and a storage medium.
Background
Medical displays are high definition and high brightness displays used in the medical industry. With the development of image display technology, in addition to the capability of viewing gray-scale images, applications for viewing color images are gradually increasing. But gray scale images use a luminance curve based on GSDF (Grayscale Standard Display Function ) in DICOM3.0 Part14, whereas color images mainly use EOTF (Electro-Optical Transfer Function ) luminance curves. Therefore, in the process of displaying two images, there is often a deviation of colors when the color image is viewed by using the GSDF brightness curve of the gray-scale image, or a detail loss caused by saturation of some areas of the gray-scale image when the gray-scale image is viewed by using the EOTF brightness curve of the color image.
For the above case, conventional solutions include: 1) The GSDF brightness curve and the EOTF brightness curve are built in the display, and when a user needs to watch a gray-scale image or a color image, the corresponding brightness curve is manually selected for display; 2) An image recognition algorithm is used for judging whether a main picture currently displayed is a gray-scale image or a color image, if the main picture is the gray-scale image, a display curve is automatically set to be a GSDF brightness curve, and if the main picture is the color image, the display curve is automatically set to be an EOTF brightness curve. The first scheme needs to manually select a display mode, so that the working efficiency is affected. Although the second scheme can adaptively adjust the display mode, the inventor finds that the method is seriously dependent on the identification result of the image, and when the gray scale and the color of the image are mixed, the identification result of the image has errors with the actual situation, so that the accurate display of the image is not facilitated. The method can only select one between the GSDF brightness curve and the EOTF brightness curve, and can not simultaneously display gray scale and color mixed images.
Disclosure of Invention
The embodiment of the application provides an image mixed display method, device, equipment and storage medium, which are used for solving the problem that a display image cannot be accurately displayed.
In a first aspect, an embodiment of the present application provides an image blending display method, including:
according to the brightness curve of the current display mode, calculating a first brightness value of each gray level of the current brightness curve according to a maximum brightness value and a minimum brightness value;
calculating a second brightness value of each gray scale based on a gray scale standard display function brightness calculation formula according to the maximum brightness value and the minimum brightness value;
calculating a third brightness value of each gray scale based on an electro-optical conversion function brightness calculation formula according to the maximum brightness value and the minimum brightness value;
constructing a display lookup table of a gray-scale image according to the first brightness value, the second brightness value and the first color channel value of each gray scale, wherein the first color channel value is the color channel value of each gray scale under the current brightness curve;
constructing a display lookup table of the color image according to the first brightness value, the third brightness value and the first color channel value of each gray level;
and converting the color channel value of each pixel of the image to be displayed based on the display lookup tables of the gray-scale image and the color image, and displaying the converted image to be displayed.
In a second aspect, an embodiment of the present application provides an image hybrid display device, including:
the first calculating module is configured to calculate a first brightness value of each gray level of the current brightness curve according to the brightness curve, the maximum brightness value and the minimum brightness value of the current display mode;
a second calculation module configured to calculate a second luminance value for each gray scale based on a gray scale standard display function luminance calculation formula according to the maximum luminance value and the minimum luminance value;
a third calculation module configured to calculate a third luminance value for each gray level based on an electro-optical conversion function luminance calculation formula from the maximum luminance value and the minimum luminance value;
the first construction module is configured to construct a display lookup table of the gray-scale image according to the first brightness value, the second brightness value and the first color channel value of each gray scale, wherein the first color channel value is the color channel value of each gray scale under the current brightness curve;
a second construction module configured to construct a display lookup table of a color image according to the first luminance value, the third luminance value, and the first color channel value of each gray level;
and the display module is configured to convert the color channel value of each pixel of the image to be displayed based on the display lookup tables of the gray-scale image and the color image, and display the converted image to be displayed.
In a third aspect, an embodiment of the present application provides an electronic device, including:
a memory and one or more processors;
the memory is used for storing one or more programs;
the one or more programs, when executed by the one or more processors, cause the one or more processors to implement the image blending display method as described in the first aspect.
In a fourth aspect, embodiments of the present application provide a storage medium containing computer executable instructions, which when executed by a computer processor, are for performing the image blending display method according to the first aspect.
According to the embodiment of the application, the first brightness value of each gray level of the current brightness curve is calculated according to the brightness curve of the current display mode, the maximum brightness value and the minimum brightness value; calculating a second brightness value of each gray scale based on a gray scale standard display function brightness calculation formula according to the maximum brightness value and the minimum brightness value; calculating a third brightness value of each gray scale based on an electro-optical conversion function brightness calculation formula according to the maximum brightness value and the minimum brightness value; constructing a display lookup table of a gray-scale image according to the first brightness value, the second brightness value and the first color channel value of each gray scale, wherein the first color channel value is the color channel value of each gray scale under the current brightness curve; constructing a display lookup table of the color image according to the first brightness value, the third brightness value and the first color channel value of each gray level; and converting the color channel value of each pixel of the image to be displayed based on the display lookup tables of the gray-scale image and the color image, and displaying the converted image to be displayed. According to the technical means, the color channel values of the image to be displayed under the gray scale standard display function brightness curve and the electro-optical conversion function brightness curve are calculated based on the gray scale standard display function brightness calculation formula and the electro-optical conversion function brightness calculation formula, the mapping relation between the color channel values of each pixel of the image to be displayed and the color channel values under the corresponding brightness curve is represented through the display lookup table, so that the display requirements of different pixel contents for different brightness curves are met, and the display of gray scale and color mixed images can be simultaneously considered. The function of simultaneously displaying the gray-scale mode and the color mode is realized under the condition that manual operation is not needed and the image is not required to be displayed in the gray-scale mode and the color mode in a first-choice mode, so that the work efficiency is prevented from being reduced due to the fact that a user selects the mode manually, and the condition that the image display precision is reduced due to the fact that automatic selection of the gray-scale mode and the color mode is not in accordance with the actual condition is avoided.
Drawings
Fig. 1 is a flowchart of an image mixing display method according to an embodiment of the present application;
FIG. 2 is an alternative specific calculation flow diagram of a second luminance value;
FIG. 3 is a flowchart showing an alternative embodiment of a gray scale display look-up table;
FIG. 4 is a flowchart showing an alternative embodiment of a color display look-up table;
FIG. 5 is a flowchart of another image blending display method according to the first embodiment of the present application;
fig. 6 is a schematic structural diagram of an image mixing display device according to a second embodiment of the present application;
fig. 7 is a schematic structural diagram of an electronic device according to a third embodiment of the present application.
Detailed Description
For the purpose of making the objects, technical solutions and advantages of the present application more apparent, the following detailed description of specific embodiments thereof is given with reference to the accompanying drawings. It is to be understood that the specific embodiments described herein are merely illustrative of the application and not limiting thereof. It should be further noted that, for convenience of description, only some, but not all of the matters related to the present application are shown in the accompanying drawings. Before discussing exemplary embodiments in more detail, it should be mentioned that some exemplary embodiments are described as processes or methods depicted as flowcharts. Although a flowchart depicts operations (or steps) as a sequential process, many of the operations can be performed in parallel, concurrently, or at the same time. Furthermore, the order of the operations may be rearranged. The process may be terminated when its operations are completed, but may have additional steps not included in the figures. The processes may correspond to methods, functions, procedures, subroutines, and the like.
The image mixed display method, the device, the equipment and the storage medium aim at calculating a first brightness value of each gray level of a current brightness curve according to the brightness curve, a maximum brightness value and a minimum brightness value of the current display mode; calculating a second brightness value of each gray scale based on a gray scale standard display function brightness calculation formula according to the maximum brightness value and the minimum brightness value; calculating a third brightness value of each gray scale based on an electro-optical conversion function brightness calculation formula according to the maximum brightness value and the minimum brightness value; constructing a display lookup table of a gray-scale image according to the first brightness value, the second brightness value and the first color channel value of each gray scale, wherein the first color channel value is the color channel value of each gray scale under the current brightness curve; constructing a display lookup table of the color image according to the first brightness value, the third brightness value and the first color channel value of each gray level; and converting the color channel value of each pixel of the image to be displayed based on the display lookup tables of the gray-scale image and the color image, and displaying the converted image to be displayed. Compared with the traditional image display method, the method can only select one between the GSDF brightness curve and the EOTF brightness curve, can not simultaneously display gray scale and color mixed images, is easy to generate errors in the image display condition and the actual condition, and is not beneficial to accurately displaying the images. Based on the above, the embodiments of the present application provide an image hybrid display method, apparatus, device, and storage medium, so as to solve the problem that a display image cannot be accurately displayed.
Embodiment one:
fig. 1 is a flowchart of an image mixing display method according to an embodiment of the present application. The image mixing display method provided in the embodiment may be performed by an image mixing display device, which may be implemented in software and/or hardware, and may be configured by two or more physical entities or may be configured by one physical entity. Generally, the image-blending display device is a medical display.
For ease of understanding, the exemplary description is given in the embodiments using the visual diagnosis type display as the image mixing display device.
Specifically, referring to fig. 1, the image mixing display method provided in the embodiment of the present application includes:
s110, calculating a first brightness value of each gray level of the current brightness curve according to the brightness curve of the current display mode, the maximum brightness value and the minimum brightness value.
Specifically, the image diagnosis type display includes a plurality of display modes, such as a gray-scale mode for displaying a gray-scale image in a GSDF (Grayscale Standard Display Function, gray-scale standard display function) luminance curve, and a color mode for displaying a color image in an EOTF (Electro-Optical Transfer Function, electro-optic conversion function) luminance curve, wherein the Gamma luminance curve commonly used for the color image is one of the EOTF luminance curves. It is understood that the visual diagnostic display includes, but is not limited to, a gray scale mode and a color mode. The display modes correspond to different luminance curves, for example, the gray-scale mode corresponds to the GSDF luminance curve, and the color mode corresponds to the EOTF luminance curve. The maximum brightness value and the minimum brightness value displayed by the current display can be obtained according to the current display mode of the image diagnosis type display, wherein the minimum brightness value is the brightness value when the current display displays a pure black picture, and the maximum brightness value is the brightness value when the current display displays 100% of a white field picture.
Further, according to the current brightness curve, a maximum brightness value and a minimum brightness value are calculated to obtain a first brightness value of each gray level. The gray scale refers to dividing the brightness change between the brightest and darkest into a plurality of levels, wherein the gray scales of different levels represent different brightness levels, and 255 gray scales are set in the embodiment of the application, namely, the brightest to darkest brightness is divided into 255 levels. It is understood that the maximum luminance value may represent the brightest luminance, the minimum luminance value may represent the darkest luminance, and the luminance curve may represent the luminance change, so that the luminance value of each gray level under the luminance curve may be calculated based on the luminance curve, the maximum luminance value and the minimum luminance value. For each gray level, the brightness value is determined by the color channel value, wherein the color channel value refers to the values of three color channels of red (R), green (G), and blue (B) in the RGB color mode, and the three color channel values of the gray level are equal. In the current display mode, as the gray level increases, the larger the color channel value, the larger the luminance value. Illustratively, referring to table 1, table 1 shows a first mapping table of gray scale levels and first color channel values and first luminance values.
TABLE 1
As shown in table 1, a first mapping table is constructed according to the association relationship among the gray scale level, the first brightness value and the first color channel value of each gray scale in the current display mode, and the relationship among the gray scale level, the first brightness value and the first color channel value in the current display mode is represented by the numerical values of the same row of the first mapping table. Wherein the first color channel value is the color channel value of each gray level under the current brightness curve, i is the gray level number, R, G, B is the values of the three color channels of red, green and blue under the current display mode, and L i The first luminance value is the i-th gray level.
S120, calculating a second brightness value of each gray scale based on a gray scale standard display function brightness calculation formula according to the maximum brightness value and the minimum brightness value.
Specifically, after the first brightness value of each gray level in the current display mode is determined, the second brightness value of each gray level in the gray level mode is calculated based on the GSDF brightness calculation formula, so that the color channel value of each gray level in the gray level mode is conveniently obtained according to the second brightness value. Illustratively, referring to FIG. 2, FIG. 2 is an alternative specific calculation flow chart of the second luminance value. As shown in fig. 2, the specific calculation flow of the second luminance value includes:
S1201, respectively calculating the minimum perceived difference level of the maximum brightness value and the minimum brightness value according to a maximum brightness value and the minimum brightness value and based on a minimum perceived difference level calculation formula of a gray scale standard display function, and determining the minimum perceived difference total level according to the difference value of the maximum brightness value and the minimum brightness value;
s1202, calculating the minimum perceived difference level of each gray level based on a gray level minimum perceived difference level calculation formula according to the minimum perceived difference total level;
s1203, calculating a second brightness value of each gray level based on a gray level standard display function brightness calculation formula according to the minimum perceived difference level of each gray level.
Specifically, the formula of the minimum perceived difference calculation progression of the gray scale standard display function is as follows:
j(L)=A+C·log 10 (L)+D·(log 10 (L)) 2 +E·(log 10 (L)) 3 +F·(log 10 (L)) 4 +H·(log 10 (L)) 5 +I·(log 10 (L)) 6 +K·(log 10 (L)) 7 +N·(log 10 (L)) 8
the gray-scale minimum perceived difference calculation formula is:
the calculation formula of the gray scale standard display function brightness is as follows:
wherein j is the minimum perceived difference level, L is the luminance value, j max The minimum perceived difference level, j, for the maximum luminance value min A minimum perceived difference progression for minimum luminance value, j max -j min For the minimum perceived difference total level, P is the gray level total level of the display, j i For the smallest perceived difference level of the ith gray level, A, C, D, E, F, H, I, K, N, a, b, c, d, e, f, g, h, k and m are both calculation constants.
Specifically, the minimum perceived difference (Just-Noticeable Difference, JND) is the difference in brightness of a given target under a given viewing condition that a normal observer can perceive, and the minimum perceived difference level is the level value of the minimum perceived difference. And substituting the maximum brightness value and the minimum brightness value in the current display mode into a minimum perceived difference series calculation formula of the gray scale standard display function in sequence to respectively obtain the minimum perceived difference series of the maximum brightness value and the minimum perceived difference series of the minimum brightness value. The minimum perceived difference level of the maximum brightness value, the minimum perceived difference level of the minimum brightness value, the gray level and the gray level total level are substituted into the gray level minimum perceived difference level calculation, so that the minimum perceived difference level corresponding to each gray level can be obtained, and 255 gray level levels are set in the embodiment of the application, so that the gray level total level in the embodiment of the application is 255. And substituting the minimum perceived difference level corresponding to each gray level into a GSDF brightness calculation formula in sequence to obtain a second brightness value of each gray level, namely obtaining the second brightness value of each gray level in a gray level mode. It will be appreciated that the first luminance value has a certain functional relationship with the second luminance value, and the first luminance value has a certain association with the first color channel value, so that the second luminance value also has a certain association with the first color channel value, and referring to table 2, for example, table 2 shows a second mapping table of the first luminance value and the first color channel value, and the second luminance value.
TABLE 2
i | R | G | B | L i | LDM i |
0 | 0 | 0 | 0 | 0.1 | 0.1 |
1 | 4 | 4 | 4 | 0.1 | 0.2 |
2 | 8 | 8 | 8 | 0.2 | 0.3 |
3 | 12 | 12 | 12 | 0.4 | 0.4 |
4 | 16 | 16 | 16 | 0.6 | 0.5 |
5 | 20 | 20 | 20 | 1.0 | 0.6 |
6 | 24 | 24 | 24 | 1.4 | 0.7 |
7 | 28 | 28 | 28 | 1.9 | 0.8 |
8 | 32 | 32 | 32 | 2.5 | 1.0 |
9 | 36 | 36 | 36 | 3.3 | 1.1 |
10 | 40 | 40 | 40 | 4.1 | 1.2 |
11 | 44 | 44 | 44 | 5.0 | 1.4 |
12 | 48 | 48 | 48 | 6.0 | 1.6 |
13 | 52 | 52 | 52 | 7.2 | 1.7 |
14 | 56 | 56 | 56 | 8.4 | 1.9 |
15 | 60 | 60 | 60 | 9.8 | 2.1 |
16 | 64 | 64 | 64 | 11.3 | 2.3 |
… | … | … | … | … | … |
255 | 1023 | 1023 | 1023 | 500 | 500 |
As shown in table 2, a second mapping table is constructed according to the association relationship among the first color channel value, the first luminance value, and the second luminance value. Wherein, LDM i The second luminance value is the i-th gray level.
S130, calculating a third brightness value of each gray scale based on an electro-optical conversion function brightness calculation formula according to the maximum brightness value and the minimum brightness value.
Specifically, the luminance calculation formula of the electro-optical conversion function is as follows
Wherein LEM i A third brightness value L which is the ith gray level W For maximum brightness value, L B And gamma is a gamma parameter, and gamma is a minimum brightness value.
For example, the gray scale number, the gray scale total number, the maximum luminance value and the minimum luminance value are substituted into the EOTF luminance calculation formula in sequence, so that the third luminance value of each gray scale level can be obtained, that is, the third luminance value of each gray scale in the color mode is obtained, and since 255 gray scale levels are set in the embodiment of the present application, the gray scale total number in the embodiment of the present application is 255. Wherein, the gamma value can be 2.0, 2.2, 2.4 and the like, and the value is determined according to the actual situation. It will be appreciated that the first luminance value has a certain functional relationship with the third luminance value, and the first luminance value has a certain association with the first color channel value, so that the third luminance value also has a certain association with the first color channel value, and referring to table 3, for example, table 3 shows a third mapping table of the first luminance value and the first color channel value, and the third luminance value.
TABLE 3 Table 3
As shown in table 3, a third mapping table is constructed according to the association relationship among the first color channel value, the first luminance value, and the third luminance value.
S140, constructing a display lookup table of the gray-scale image according to the first brightness value, the second brightness value and the first color channel value of each gray scale, wherein the first color channel value is the color channel value of each gray scale under the current brightness curve.
According to the second mapping table, a certain association relationship exists among the first brightness value, the second brightness value and the first color channel value, and for this, the second color channel value of each gray scale in the gray scale mode can be obtained according to the values of the three values in the second mapping table. Illustratively, referring to FIG. 3, FIG. 3 is an alternative specific construction flow chart of a gray scale display look-up table. As shown in fig. 3, the specific construction flow of the gray-scale display lookup table includes:
s1401, calculating a second color channel value of each gray level under a gray level standard display function brightness curve according to a first brightness value, a second brightness value and a first color channel value of each gray level;
s1402, a gray-scale display lookup table is constructed according to the first color channel value and the corresponding second color channel value of each gray scale, wherein the first color channel value is the input value of the gray-scale display lookup table, and the second color channel value is the output value of the gray-scale display lookup table.
Illustratively, referring to table 4, table 4 shows a fourth mapping table of first luminance values, second luminance values, first color channel values, and second color channel values.
TABLE 4 Table 4
As shown in table 4, after calculating the second color channel value based on the first luminance value, the second luminance value, and the first color channel value, a fourth mapping table may be established based on the association relationship between the first luminance value, the second luminance value, the first color channel value, and the second color channel value. Wherein R is DM 、G DM 、B DM The values of the three color channels of red, blue and green in the gray scale mode are respectively. Further, based on the principle of RGB 3D LUT (RGB 3D Lookup Table), the list of R, G, B and R DM 、G DM 、B DM Combining the lists of the fourth mapping table into a gray level display lookup table, and combining R, G, B and R of the same row in the fourth mapping table DM 、G DM 、B DM R, G, B and R as the same row in a gray-scale display lookup table DM 、G DM 、B DM . It will be appreciated that when the RGB of the pixels of the image to be displayed is equal to the R, G, B value in the gray scale display look-up table, R in the same row as R, G, B value in the gray scale display look-up table DM 、G DM 、B DM RGB in grayscale mode as pixels of an image to be displayed.
Further, calculating an offset value of the first color channel value and the corresponding second color channel value of each gray level, and constructing a gray level display lookup table according to the offset value. Specifically, R in the same row in the mapping table DM 、G DM 、B DM Subtracting R, G, B, the deviation of the two is obtained. Exemplary, referring to Table 5, table 5 shows a first color channel value, a second color channel value, and a difference between the twoA fifth mapping table of values.
TABLE 5
As shown in table 5, a fifth mapping table may be established based on the first color channel value, the second color channel value, and the difference therebetween. Wherein dR is DM 、dG DM 、dB DM The offset values of the three color channels of red, blue and green in the current display mode and in the gray scale mode are respectively shown. Further, list of R, G, B and dR DM 、dG DM 、dB DM Combining the lists of the fifth mapping table into a gray-scale display lookup table, and combining R, G, B and dR of the same row in the fifth mapping table DM 、dG DM 、dB DM R, G, B and dR as the same row in a gray scale display look-up table DM 、dG DM 、dB DM . It will be appreciated that when the RGB of the image pixel to be displayed is equal to the R, G, B value in the gray scale display look-up table, the dR value in the gray scale display look-up table is the same as the R, G, B value DM 、dG DM 、dB DM And summing the RGB of the image pixels to be displayed to obtain the RGB of the image pixels to be displayed in a gray scale mode. The gray scale display look-up table constructed from the difference of the first color channel value and the second color channel value occupies less memory than a directly constructed gray scale display look-up table.
S150, constructing a display lookup table of the color image according to the first brightness value, the third brightness value and the first color channel value of each gray level.
According to the third mapping table, a certain association relationship exists among the first brightness value, the third brightness value and the first color channel value, and the third color channel value of each gray scale in the color mode can be obtained according to the values of the third mapping table. Illustratively, referring to FIG. 4, FIG. 4 is an alternative specific building flow chart for a color display look-up table. As shown in fig. 4, the specific construction flow of the color display lookup table includes:
s1501, calculating a third color channel value of each gray level under the luminance curve of the electro-optical conversion function according to the first luminance value, the third luminance value and the first color channel value of each gray level;
s1502, a color display lookup table is constructed according to the first color channel value and the corresponding third color channel value, the input of the color display lookup table is the combination of the first color channel values under different gray scales, and the output is the combination of the third color channel values corresponding to the first color channel value.
Illustratively, referring to table 6, table 6 shows a sixth mapping table of first luminance values, third luminance values, first color channel values, and third color channel values.
TABLE 6
R | G | B | L i | LEM i | R EM | G EM | B EM |
0 | 0 | 0 | 0.1 | 0.1 | 0 | 0 | 0 |
4 | 4 | 4 | 0.1 | 0.2 | 8 | 8 | 8 |
8 | 8 | 8 | 0.2 | 0.4 | 12 | 12 | 12 |
12 | 12 | 12 | 0.4 | 0.6 | 16 | 16 | 16 |
16 | 16 | 16 | 0.6 | 0.8 | 18 | 18 | 18 |
20 | 20 | 20 | 1.0 | 1.1 | 21 | 21 | 21 |
24 | 24 | 24 | 1.4 | 1.5 | 25 | 25 | 25 |
28 | 28 | 28 | 1.9 | 2.0 | 29 | 29 | 29 |
32 | 32 | 32 | 2.5 | 2.5 | 32 | 32 | 32 |
36 | 36 | 36 | 3.3 | 3.1 | 35 | 35 | 35 |
40 | 40 | 40 | 4.1 | 3.7 | 38 | 38 | 38 |
44 | 44 | 44 | 5.0 | 4.5 | 42 | 42 | 42 |
48 | 48 | 48 | 6.0 | 5.3 | 45 | 45 | 45 |
52 | 52 | 52 | 7.2 | 6.2 | 49 | 49 | 49 |
56 | 56 | 56 | 8.4 | 7.2 | 52 | 52 | 52 |
60 | 60 | 60 | 9.8 | 8.2 | 55 | 55 | 55 |
64 | 64 | 64 | 11.3 | 9.4 | 59 | 59 | 59 |
As shown in Table 6, the first color is based on the first luminance value, the third luminance value and the first color After the channel value calculates the third color channel value, a sixth mapping table may be established based on the first luminance value, the third luminance value, and an association relationship between the first color channel value and the third color channel value. Wherein R is EM 、G EM 、B EM The values of the three color channels of red, blue and green in the color mode are respectively. Further, based on the principle of RGB 3D LUT (RGB 3D Lookup Table), according to the list of R, G, B and R EM 、G EM 、B EM Is used to construct a color display look-up table. It should be noted that, since the color display lookup table is used to convert RGB of the color image, the RGB of the color image is different, and R, G, B of the same row in the sixth mapping table indicates the color channel value of the gray scale, it cannot directly compare the R, G, B list with R as the gray scale display lookup table DM 、G DM 、B DM And (5) combining. Therefore, the R, G, B values corresponding to the different gray scales are combined to be regarded as RGB of the color image pixels, and R is respectively corresponding to each value in the R, G, B combination EM 、G EM 、B EM Combining can be seen as RGB after color image pixel conversion. Illustratively, referring to table 7, table 7 is a color display look-up table.
TABLE 7
As shown in table 7, after the pixels input RGB, R based on the same row in the RGB 3D LUT is based on the R, G, B value they match EM 、G EM 、B EM RGB of the pixel output is determined.
Further, calculating an offset value of the first color channel value and the corresponding third color channel value of each gray level, and constructing a color display lookup table according to the offset value. Specifically, R in the same row in the mapping table GM 、G GM 、B GM Subtracting R, G, B, the deviation of the two is obtained. Illustratively, referring to table 8, table 8 shows a seventh mapping table of first color channel values, third color channel values, and differences between the two.
TABLE 8
R | G | B | R EM | G EM | B EM | dR EM | dG EM | dB EM |
0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
4 | 4 | 4 | 8 | 8 | 8 | 4 | 4 | 4 |
8 | 8 | 8 | 12 | 12 | 12 | 4 | 4 | 4 |
12 | 12 | 12 | 16 | 16 | 16 | 4 | 4 | 4 |
16 | 16 | 16 | 18 | 18 | 18 | 2 | 2 | 2 |
20 | 20 | 20 | 21 | 21 | 21 | 1 | 1 | 1 |
24 | 24 | 24 | 25 | 25 | 25 | 1 | 1 | 1 |
28 | 28 | 28 | 29 | 29 | 29 | 1 | 1 | 1 |
32 | 32 | 32 | 32 | 32 | 32 | 0 | 0 | 0 |
36 | 36 | 36 | 35 | 35 | 35 | -1 | -1 | -1 |
40 | 40 | 40 | 38 | 38 | 38 | -2 | -2 | -2 |
44 | 44 | 44 | 42 | 42 | 42 | -2 | -2 | -2 |
48 | 48 | 48 | 45 | 45 | 45 | -3 | -3 | -3 |
52 | 52 | 52 | 49 | 49 | 49 | -3 | -3 | -3 |
56 | 56 | 56 | 52 | 52 | 52 | -4 | -4 | -4 |
60 | 60 | 60 | 55 | 55 | 55 | -5 | -5 | -5 |
64 | 64 | 64 | 59 | 59 | 59 | -5 | -5 | -5 |
As shown in table 8, a seventh mapping table may be established based on the first color channel value, the third color channel value, and the difference therebetween. Wherein dR is EM 、dG EM 、dB EM The offset values of the three color channels of red, blue and green in the current display mode and in the color mode are respectively. Combining R, G, B values corresponding to different gray scales, and respectively corresponding dR to each value in R, G, B combinations EM 、dG EM 、dB EM And combining to construct a color display lookup table. When RGB of the image pixel to be displayed is equal to R, G, B value in the color display lookup table, dR in the same row as R, G, B value in the color display lookup table EM 、dG EM 、dB EM And summing the RGB of the image pixels to be displayed to obtain the RGB of the image pixels to be displayed in a color mode.
S160, converting the color channel value of each pixel of the image to be displayed based on the display lookup table of the gray-scale image and the color image, and displaying the converted image to be displayed.
It is understood that whether the pixels of the image to be displayed are gray-scale content or color content, the RGB of the pixels are converted into RGB in the corresponding mode as long as the RGB of the pixels is the same as the R, G, B value of the above-described display lookup table. The link of identifying the image content is omitted, and the situation that the display mode is not in line with the actual situation and the image display precision is reduced due to the image identification deviation is avoided.
It should be noted that, since the fourth mapping table, the fifth mapping table, the sixth mapping table, the color display lookup table, and the seventh mapping table refer to more values, tables 4-8 only show the relevant values of 16 gray scales.
According to the embodiment of the application, aiming at each pixel in the display image, RGB of each pixel is converted into RGB in a proper display mode, the display of the gray scale and the color mixed image can be simultaneously considered, and the image display precision is improved.
On the other hand, fig. 5 is a flowchart of another image mixing display method according to the first embodiment of the present application. Referring to fig. 5, the image mixing display method includes:
s210, calculating a first brightness value of each gray level of the current brightness curve according to the brightness curve of the current display mode, the maximum brightness value and the minimum brightness value.
S220, calculating a second brightness value of each gray scale based on a gray scale standard display function brightness calculation formula according to the maximum brightness value and the minimum brightness value.
S230, calculating a third brightness value of each gray scale based on an electro-optical conversion function brightness calculation formula according to the maximum brightness value and the minimum brightness value.
S240, constructing a display lookup table of the gray-scale image according to the first brightness value, the second brightness value and the first color channel value of each gray scale, wherein the first color channel value is the color channel value of each gray scale under the current brightness curve.
S250, constructing a display lookup table of the color image according to the first brightness value, the third brightness value and the first color channel value of each gray level.
Steps S210 to S250 may refer to steps S110 to S150 for implementation.
S260, using the color display lookup table as a display lookup table of the pure color image.
S270, constructing a display lookup table of the transition image based on interpolation rules according to the gray level display lookup table and the color display lookup table.
Theoretically, any pixel with different RGB may be considered as a color pixel, but some pixels with small difference between RGB may have a color close to gray scale, and if the pixels are displayed in a color mode, the display effect may be affected. In this regard, in the embodiment of the present application, the color image is divided into a transition image and a pure color image, where the difference between any two color channel values of the transition image is smaller than or equal to a preset difference threshold, and the difference between two color channel values of the pure color image is greater than the difference threshold. Specifically, if the RGB values of a pixel are not greater than the difference threshold, the image content of the pixel is defined as transition content, and if the RGB values of the pixel are greater than the difference threshold, the image content of the pixel is defined as pure color content. The difference threshold is set according to actual conditions.
Further, for ease of understanding, for R, G, B values in color display images, R, G, B values are also divided into transition content and pure color content according to the definition of image content described above. R, G, B of the pure color content in the color display image is used as a display lookup table of the pure color image. While for R, G, B values of transition contents in the color display image, R of the transition contents in the color display image is based on interpolation rules EM 、G EM 、B EM Or dR EM 、dG EM 、dB EM R in gray scale display content DM 、G DM 、B DM Or dR DM 、dG DM 、dB DM Obtaining R corresponding to R, G, B value of transition content in color display image EM ’、G EM ’、B EM ' or dR EM ’、dG EM ’、dB EM ' thereby obtaining a display look-up table of the transition image.
S280, combining the display lookup tables of the gray-scale image, the transition image and the pure color image into a mixed display lookup table.
For the convenience of use and storage of the display lookup table, the three types of display lookup tables are combined into one display lookup table, and only the mixed display lookup table is needed to be searched when the color channel value of each pixel of the image to be displayed is converted, so that the image conversion process of the display system is shortened, the image display efficiency is improved, and the storage space of hardware is effectively saved.
S290, converting the color channel value of each pixel of the image to be displayed based on the mixed display lookup table, and displaying the converted image to be displayed.
According to the embodiment of the application, the color image is divided into the transition image and the pure color image, and the display rule of the transition image is reconstructed for the transition image, so that the display precision of the color image is improved. When the image is displayed, the corresponding color channel value is matched based on the mixed display lookup table, so that the converted color channel value is determined, and the display processing efficiency is improved.
In summary, calculating a first brightness value of each gray level of the current brightness curve according to the brightness curve of the current display mode, a maximum brightness value and a minimum brightness value; calculating a second brightness value of each gray scale based on a gray scale standard display function brightness calculation formula according to the maximum brightness value and the minimum brightness value; calculating a third brightness value of each gray scale based on an electro-optical conversion function brightness calculation formula according to the maximum brightness value and the minimum brightness value; constructing a display lookup table of a gray-scale image according to the first brightness value, the second brightness value and the first color channel value of each gray scale, wherein the first color channel value is the color channel value of each gray scale under the current brightness curve; constructing a display lookup table of the color image according to the first brightness value, the third brightness value and the first color channel value of each gray level; and converting the color channel value of each pixel of the image to be displayed based on the display lookup tables of the gray-scale image and the color image, and displaying the converted image to be displayed. According to the technical means, the color channel values of the image to be displayed under the gray scale standard display function brightness curve and the electro-optical conversion function brightness curve are calculated based on the gray scale standard display function brightness calculation formula and the electro-optical conversion function brightness calculation formula, the mapping relation between the color channel values of each pixel of the image to be displayed and the color channel values under the corresponding brightness curve is represented through the display lookup table, so that the display requirements of different pixel contents for different brightness curves are met, and the display of gray scale and color mixed images can be simultaneously considered. The function of simultaneously displaying the gray-scale mode and the color mode is realized under the condition that manual operation is not needed and the image is not required to be displayed in the gray-scale mode and the color mode in a first-choice mode, so that the work efficiency is prevented from being reduced due to the fact that a user selects the mode manually, and the condition that the image display precision is reduced due to the fact that automatic selection of the gray-scale mode and the color mode is not in accordance with the actual condition is avoided.
Example two
Fig. 6 is a schematic structural diagram of an image mixing display device according to a second embodiment of the present application. Referring to fig. 6, the image-mixed display device includes: a first calculation module 31, a second calculation module 32, a third calculation module 33, a first construction module 34, a second construction module 35 and a display module 36.
Wherein, the first calculating module 31 is configured to calculate a first luminance value of each gray scale of the current luminance curve according to the luminance curve, the maximum luminance value and the minimum luminance value of the current display mode;
a second calculation module 32 configured to calculate a second luminance value for each gray scale based on a gray scale standard display function luminance calculation formula from the maximum luminance value and the minimum luminance value;
a third calculation module 33 configured to calculate a third luminance value for each gray level based on an electro-optical conversion function luminance calculation formula from the maximum luminance value and the minimum luminance value;
a first construction module 34 configured to construct a display lookup table of the gray-scale image according to the first luminance value, the second luminance value, and the first color channel value of each gray-scale under the current luminance curve;
a second construction module 35 configured to construct a display lookup table of the color image according to the first luminance value, the third luminance value, and the first color channel value of each gray level;
The display module 36 is configured to convert the color channel value of each pixel of the image to be displayed based on the display lookup tables of the grayscale image and the color image, and display the converted image to be displayed.
On the basis of the above embodiment, the second calculation module includes: the first calculating unit is configured to calculate the minimum perceived difference level of the maximum brightness value and the minimum brightness value respectively according to a maximum brightness value and a minimum brightness value and based on a minimum perceived difference level calculation formula of a gray scale standard display function, and determine the minimum perceived difference total level according to the difference value of the maximum brightness value and the minimum brightness value; the second calculating unit is configured to calculate the minimum perceived difference level of each gray level based on a gray level minimum perceived difference level calculation formula according to the minimum perceived difference total level; a third calculation unit configured to calculate a second luminance value for each gray level based on a gray level standard display function luminance calculation formula according to a minimum perceived difference level for each gray level;
the minimum perceived difference level calculation formula of the gray scale standard display function is as follows:
j(L)=A+C·log 10 (L)+D·(log 10 (L)) 2 +E·(log 10 (L)) 3 +F·(log 10 (L)) 4 +H·(log 10 (L)) 5 +I·(log 10 (L)) 6 +K·(log 10 (L)) 7 +N·(log 10 (L)) 8
the gray-scale minimum perceived difference level number calculation formula is:
the calculation formula of the gray scale standard display function brightness is as follows:
wherein j is the minimum perceived difference level, L is the luminance value, j max The minimum perceived difference level, j, for the maximum luminance value min A minimum perceived difference progression for minimum luminance value, j max -j min The minimum perceived difference total level is P is the gray level total level of the display, i is the gray level, j i For the smallest perceived difference level of the ith gray level, A, C, D, E, F, H, I, K, N, a, b, c, d, e, f, g, h, k and m are both calculation constants.
On the basis of the embodiment, the luminance calculation formula of the electro-optical conversion function is as follows
Wherein i is the number of gray scale levels, LEM i A third brightness value L which is the ith gray level W For maximum brightness value, L B And gamma is a gamma parameter, and gamma is a minimum brightness value.
On the basis of the above embodiment, the first building block includes: a fourth calculation unit configured to calculate a second color channel value for each gray level under the gray level standard display function luminance curve based on the first luminance value, the second luminance value, and the first color channel value for each gray level; the first construction unit is configured to construct a gray-scale display lookup table according to a first color channel value and a corresponding second color channel value of each gray scale, wherein the first color channel value is an input value of the gray-scale display lookup table, and the second color channel value is an output value of the gray-scale display lookup table.
On the basis of the above embodiment, the first building unit includes: and a first construction subunit configured to calculate an offset value of the first color channel value and the corresponding second color channel value for each gray level, and construct a gray level display lookup table according to the offset value.
On the basis of the above embodiment, the second building block includes: a fifth calculation unit configured to calculate a third color channel value for each gray level under the luminance curve of the electro-optical conversion function based on the first luminance value, the third luminance value, and the first color channel value for each gray level; the second construction unit is configured to construct a color display lookup table according to the first color channel value and the corresponding third color channel value, wherein the input of the color display lookup table is a combination of the first color channel values under different gray scales, and the output is a combination of the third color channel values corresponding to the first color channel values.
On the basis of the above embodiment, the second building unit includes: a second construction subunit configured to calculate an offset value of the first color channel value and the corresponding third color channel value, and construct a color display look-up table from the offset value.
On the basis of the above embodiment, the color image includes a transition image and a pure color image, the difference value of any two color channel values of the transition image is smaller than or equal to a preset difference threshold value, and the difference value of the two color channel values of the pure color image is larger than the difference threshold value. Further, the image-mixed display device further includes: a third building block configured to use the color display look-up table as a display look-up table for a pure color image; the fourth construction module is configured to construct a display lookup table of the transition image based on interpolation rules according to the gray-scale display lookup table and the color display lookup table; and a combining module configured to combine the display lookup tables of the gray-scale image, the transition image, and the pure color image into a hybrid display lookup table.
Calculating a first brightness value of each gray level of the current brightness curve according to the brightness curve of the current display mode, the maximum brightness value and the minimum brightness value; calculating a second brightness value of each gray scale based on a gray scale standard display function brightness calculation formula according to the maximum brightness value and the minimum brightness value; calculating a third brightness value of each gray scale based on an electro-optical conversion function brightness calculation formula according to the maximum brightness value and the minimum brightness value; constructing a display lookup table of a gray-scale image according to the first brightness value, the second brightness value and the first color channel value of each gray scale, wherein the first color channel value is the color channel value of each gray scale under the current brightness curve; constructing a display lookup table of the color image according to the first brightness value, the third brightness value and the first color channel value of each gray level; and converting the color channel value of each pixel of the image to be displayed based on the display lookup tables of the gray-scale image and the color image, and displaying the converted image to be displayed. According to the technical means, the color channel values of the image to be displayed under the gray scale standard display function brightness curve and the electro-optical conversion function brightness curve are calculated based on the gray scale standard display function brightness calculation formula and the electro-optical conversion function brightness calculation formula, the mapping relation between the color channel values of each pixel of the image to be displayed and the color channel values under the corresponding brightness curve is represented through the display lookup table, so that the display requirements of different pixel contents for different brightness curves are met, and the display of gray scale and color mixed images can be simultaneously considered. The function of simultaneously displaying the gray-scale mode and the color mode is realized under the condition that manual operation is not needed and the image is not required to be displayed in the gray-scale mode and the color mode in a first-choice mode, so that the work efficiency is prevented from being reduced due to the fact that a user selects the mode manually, and the condition that the image display precision is reduced due to the fact that automatic selection of the gray-scale mode and the color mode is not in accordance with the actual condition is avoided.
The image mixing display device provided by the embodiment of the application is contained in the image mixing display equipment, can be used for executing the image mixing display method provided by any embodiment, and has corresponding functions and beneficial effects.
Example III
Fig. 7 is a schematic structural diagram of an electronic device according to a third embodiment of the present application. As shown in fig. 7, the image-mixing display apparatus includes a processor 40, a memory 41, an input device 42, an output device 43, and a display screen 44; the number of processors 40 in the image-blending display device may be one or more, one processor 40 being exemplified in fig. 7; the number of display screens 44 in the image-blending display device may be one or more, one display screen 44 being taken as an example in fig. 7; the processor 40, the memory 41, the input means 42, the output means 43 and the display screen 44 in the image-mixing display device may be connected by a bus or other means, in fig. 7 by way of example.
The memory 41 is a computer-readable storage medium that can be used to store software programs, computer-executable programs, and modules, such as program instructions/modules corresponding to the image blending display method in the embodiment of the present application (for example, the first calculation module 31, the second calculation module 32, the third calculation module 33, the first construction module 34, the second construction module 35, and the display module 36 in the image blending display device). The processor 40 performs various functional applications of the image-blending display apparatus and data processing, that is, implements the above-described image-blending display method, by running software programs, instructions, and modules stored in the memory 41.
The memory 41 may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, at least one application program required for functions; the storage data area may store data created according to the use of the image-blending display apparatus, and the like. In addition, memory 41 may include high-speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other non-volatile solid-state storage device. In some examples, memory 41 may further include memory remotely located relative to processor 40, which may be connected to the image-blending display device via a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
The input means 42 may be used to receive input numeric or character information and to generate key signal inputs related to user settings and function control of the image-blending display device. The output means 43 may comprise an audio output device such as a speaker. The display screen 44 is a touch-enabled display screen, which may be a capacitive screen, an electromagnetic screen, or an infrared screen. Optionally, when the display screen 44 is an infrared screen, it further includes an infrared touch frame disposed around the display screen 44, which may also be used to receive infrared signals and transmit the infrared signals to the processor 40 or other device. The display screen 44 is for displaying the converted display image. Meanwhile, other contents can be displayed according to instructions of the processor.
The image mixing display device comprises an image mixing display device, can be used for executing any image mixing display method, and has corresponding functions and beneficial effects.
Example IV
The present embodiments also provide a storage medium containing computer-executable instructions, which when executed by a computer processor, are for performing an image blending display method, the method comprising:
according to the brightness curve of the current display mode, calculating a first brightness value of each gray level of the current brightness curve according to a maximum brightness value and a minimum brightness value;
calculating a second brightness value of each gray scale based on a gray scale standard display function brightness calculation formula according to the maximum brightness value and the minimum brightness value;
calculating a third brightness value of each gray scale based on an electro-optical conversion function brightness calculation formula according to the maximum brightness value and the minimum brightness value;
constructing a display lookup table of a gray-scale image according to the first brightness value, the second brightness value and the first color channel value of each gray scale, wherein the first color channel value is the color channel value of each gray scale under the current brightness curve;
constructing a display lookup table of the color image according to the first brightness value, the third brightness value and the first color channel value of each gray level;
And converting the color channel value of each pixel of the image to be displayed based on the display lookup tables of the gray-scale image and the color image, and displaying the converted image to be displayed.
Of course, the storage medium containing the computer executable instructions provided in the embodiments of the present application is not limited to the method operations described above, and may also perform the related operations in the image blending display method provided in any embodiment of the present invention.
From the above description of embodiments, it will be clear to a person skilled in the art that the present invention may be implemented by means of software and necessary general purpose hardware, but of course also by means of hardware, although in many cases the former is a preferred embodiment. Based on such understanding, the technical solution of the present invention may be embodied essentially or in a part contributing to the prior art in the form of a software product, which may be stored in a computer readable storage medium, such as a floppy disk, a Read-Only Memory (ROM), a random access Memory (Random Access Memory, RAM), a FLASH Memory (FLASH), a hard disk or an optical disk of a computer, etc., and include several instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to execute the method according to the embodiments of the present invention.
It should be noted that, in the above embodiment of the image hybrid display device, each unit and module included are only divided according to the functional logic, but not limited to the above division, so long as the corresponding functions can be implemented; in addition, the specific names of the functional units are also only for distinguishing from each other, and are not used to limit the protection scope of the present invention.
Note that the above is only a preferred embodiment of the present invention and the technical principle applied. It will be understood by those skilled in the art that the present invention is not limited to the particular embodiments described herein, but is capable of various obvious changes, rearrangements and substitutions as will now become apparent to those skilled in the art without departing from the scope of the invention. Therefore, while the invention has been described in connection with the above embodiments, the invention is not limited to the embodiments, but may be embodied in many other equivalent forms without departing from the spirit or scope of the invention, which is set forth in the following claims.
Claims (11)
1. An image mixing display method, characterized by comprising:
according to the brightness curve of the current display mode, calculating a first brightness value of each gray level of the current brightness curve according to a maximum brightness value and a minimum brightness value;
Calculating a second brightness value of each gray scale based on a gray scale standard display function brightness calculation formula according to the maximum brightness value and the minimum brightness value;
calculating a third brightness value of each gray scale based on an electro-optical conversion function brightness calculation formula according to the maximum brightness value and the minimum brightness value;
constructing a display lookup table of a gray-scale image according to the first brightness value, the second brightness value and the first color channel value of each gray scale, wherein the first color channel value is the color channel value of each gray scale under the current brightness curve;
constructing a display lookup table of the color image according to the first brightness value, the third brightness value and the first color channel value of each gray level;
and converting the color channel value of each pixel of the image to be displayed based on the display lookup tables of the gray-scale image and the color image, and displaying the converted image to be displayed.
2. The method of claim 1, wherein calculating a second luminance value for each gray level based on a gray level standard display function luminance calculation formula from the maximum luminance value and the minimum luminance value comprises:
according to the maximum brightness value and the minimum brightness value, calculating the minimum perceived difference level of the maximum brightness value and the minimum brightness value based on a minimum perceived difference level calculation formula of a gray scale standard display function, and determining the minimum perceived difference total level according to the difference value of the maximum brightness value and the minimum brightness value;
Calculating the minimum perceived difference level of each gray level based on a gray level minimum perceived difference level calculation formula according to the minimum perceived difference total level;
calculating a second brightness value of each gray level based on the gray level standard display function brightness calculation formula according to the minimum perceived difference level of each gray level;
the minimum perceived difference level calculation formula of the gray scale standard display function is as follows:
j(L)=A+C·log 10 (L)+D·(log 10 (L)) 2 +E·(log 10 (L)) 3 +F·(log 10 (L)) 4 +H·(log 10 (L)) 5 +I·(log 10 (L)) 6 +K·(log 10 (L)) 7 +N·(log 10 (L)) 8
the gray-scale minimum perceived difference series calculation formula is as follows:
the gray scale standard display function brightness calculation formula is as follows:
wherein j is the minimum perceived difference level, L is the luminance value, j max The minimum perceived difference level, j, for the maximum luminance value min A minimum perceived difference progression for minimum luminance value, j max -j min For the minimum perceived difference total number of steps, P is the total number of gray scale steps of the displayI is the gray level number, j i For the smallest perceived difference level of the ith gray level, A, C, D, E, F, H, I, K, N, a, b, c, d, e, f, g, h, k and m are both calculation constants.
3. The method of claim 1, wherein the electro-optic transfer function luminance calculation formula is
Wherein i is the number of gray scale levels, LEM i A third brightness value L which is the ith gray level W For the maximum brightness value, L B And for the minimum brightness value, gamma is a gamma parameter, and P is the total gray scale number of the display.
4. The method of claim 2, wherein constructing a display look-up table for a grayscale image based on the first luminance value, the second luminance value, and the first color channel value for each grayscale comprises:
calculating a second color channel value of each gray level under a gray level standard display function brightness curve according to the first brightness value, the second brightness value and the first color channel value of each gray level;
and constructing a gray scale display lookup table according to the first color channel value and the corresponding second color channel value of each gray scale, wherein the first color channel value is an input value of the gray scale display lookup table, and the second color channel value is an output value of the gray scale display lookup table.
5. The method of claim 4, wherein constructing a gray-scale display look-up table from the color channel values and corresponding second color channel values for each gray-scale further comprises:
calculating the offset value of the first color channel value and the corresponding second color channel value of each gray scale, and constructing the gray scale display lookup table according to the offset value.
6. A method according to claim 3, wherein constructing a display look-up table of a color image based on the first luminance value, the third luminance value, and the first color channel value for each gray level comprises:
calculating a third color channel value of each gray level under the luminance curve of the electro-optical conversion function according to the first luminance value, the third luminance value and the first color channel value of each gray level;
and constructing a color display lookup table according to the first color channel value and the corresponding third color channel value, wherein the input of the color display lookup table is a combination of the first color channel values under different gray scales, and the output is a combination of the third color channel values corresponding to the first color channel value.
7. The method of claim 6, wherein among said constructing a color display look-up table from said first color channel value and a corresponding third color channel value, further comprising:
and calculating an offset value of the first color channel value and the corresponding third color channel value, and constructing the color display lookup table according to the offset value.
8. The method of claim 1, wherein the color image comprises a transition image and a pure color image, a difference between any two color channel values of the transition image being less than or equal to a preset difference threshold, the difference between the two color channel values of the pure color image being greater than the difference threshold;
Correspondingly, after the color image display lookup table is constructed, the method further comprises:
taking the display lookup table of the color image as the display lookup table of the pure color image;
constructing a display lookup table of a transition image based on interpolation rules according to the display lookup table of the gray-scale image and the display lookup table of the color image;
and combining the display lookup tables of the gray-scale image, the transition image and the pure color image into a mixed display lookup table.
9. An image-blending display device, characterized by comprising:
the first calculating module is configured to calculate a first brightness value of each gray level of the current brightness curve according to the brightness curve, the maximum brightness value and the minimum brightness value of the current display mode;
a second calculation module configured to calculate a second luminance value for each gray scale based on a gray scale standard display function luminance calculation formula according to the maximum luminance value and the minimum luminance value;
a third calculation module configured to calculate a third luminance value for each gray level based on an electro-optical conversion function luminance calculation formula from the maximum luminance value and the minimum luminance value;
the first construction module is configured to construct a display lookup table of the gray-scale image according to the first brightness value, the second brightness value and the first color channel value of each gray scale, wherein the first color channel value is the color channel value of each gray scale under the current brightness curve;
A second construction module configured to construct a display lookup table of a color image according to the first luminance value, the third luminance value, and the first color channel value of each gray level;
and the display module is configured to convert the color channel value of each pixel of the image to be displayed based on the display lookup tables of the gray-scale image and the color image, and display the converted image to be displayed.
10. An electronic device, comprising:
a memory and one or more processors;
the memory is used for storing one or more programs;
the one or more programs, when executed by the one or more processors, cause the one or more processors to implement the image blending display method of any of claims 1-8.
11. A storage medium containing computer executable instructions which, when executed by a computer processor, are for performing the image blending display method of any of claims 1-8.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110091136.8A CN114822448B (en) | 2021-01-22 | 2021-01-22 | Image hybrid display method, device, equipment and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110091136.8A CN114822448B (en) | 2021-01-22 | 2021-01-22 | Image hybrid display method, device, equipment and storage medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN114822448A CN114822448A (en) | 2022-07-29 |
CN114822448B true CN114822448B (en) | 2024-04-05 |
Family
ID=82525255
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202110091136.8A Active CN114822448B (en) | 2021-01-22 | 2021-01-22 | Image hybrid display method, device, equipment and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN114822448B (en) |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2024044957A1 (en) * | 2022-08-30 | 2024-03-07 | 京东方科技集团股份有限公司 | Display apparatus and brightness adjustment method therefor |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106095351A (en) * | 2011-12-06 | 2016-11-09 | 杜比实验室特许公司 | Improve apparatus and method based on the exchange of perceived illumination intensity nonlinear view data between different display capabilities |
CN106971695A (en) * | 2017-03-27 | 2017-07-21 | 武汉华星光电技术有限公司 | The brightness adjusting method and device of RGBW liquid crystal display devices |
CN108141508A (en) * | 2015-09-21 | 2018-06-08 | 杜比实验室特许公司 | For operating the technology of display in code space is perceived |
CN109448644A (en) * | 2018-10-11 | 2019-03-08 | 广州视源电子科技股份有限公司 | Method for correcting gray scale display curve of display device, electronic device and computer readable storage medium |
Family Cites Families (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US10242650B2 (en) * | 2011-12-06 | 2019-03-26 | Dolby Laboratories Licensing Corporation | Perceptual luminance nonlinearity-based image data exchange across different display capabilities |
JP6289425B2 (en) * | 2015-09-25 | 2018-03-07 | キヤノン株式会社 | IMAGING ELEMENT AND MANUFACTURING METHOD THEREOF, IMAGING DEVICE, IMAGING METHOD, AND PROGRAM |
KR102554379B1 (en) * | 2016-10-31 | 2023-07-11 | 엘지디스플레이 주식회사 | Image processing method and module for high dynamic range (hdr) and display device using the same |
-
2021
- 2021-01-22 CN CN202110091136.8A patent/CN114822448B/en active Active
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106095351A (en) * | 2011-12-06 | 2016-11-09 | 杜比实验室特许公司 | Improve apparatus and method based on the exchange of perceived illumination intensity nonlinear view data between different display capabilities |
CN108141508A (en) * | 2015-09-21 | 2018-06-08 | 杜比实验室特许公司 | For operating the technology of display in code space is perceived |
CN106971695A (en) * | 2017-03-27 | 2017-07-21 | 武汉华星光电技术有限公司 | The brightness adjusting method and device of RGBW liquid crystal display devices |
CN109448644A (en) * | 2018-10-11 | 2019-03-08 | 广州视源电子科技股份有限公司 | Method for correcting gray scale display curve of display device, electronic device and computer readable storage medium |
Also Published As
Publication number | Publication date |
---|---|
CN114822448A (en) | 2022-07-29 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US10839759B2 (en) | Signal processing method and display device | |
US11900852B2 (en) | Method and device for obtaining display compensation information, and display compensation method and device | |
US8325198B2 (en) | Color gamut mapping and brightness enhancement for mobile displays | |
US10008148B2 (en) | Image processing apparatus, image processing method, display device, computer program and computer-readable medium | |
US9886882B2 (en) | Grayscale compensation method | |
US10347198B2 (en) | Image displaying methods and display devices | |
CN109996054B (en) | White balance adjusting method and device | |
CN110992898B (en) | Multi-partition backlight control method and equipment | |
CN111429827A (en) | Display screen color calibration method and device, electronic equipment and readable storage medium | |
CN107564493B (en) | Color gamut compression method and device and display equipment | |
CN110349097B (en) | Color enhancement method for image significance and image processing device | |
EP2284830A1 (en) | Method and system for extending color gamut | |
JP2014229999A (en) | Video display device | |
CN101729913A (en) | Method and system for adjusting image saturation | |
JP2014140160A (en) | Image processor and image processing method | |
CN114822448B (en) | Image hybrid display method, device, equipment and storage medium | |
KR20070011830A (en) | Apparatus and method for driving liquid crystal display device | |
US11195482B2 (en) | Display device and driving method thereof | |
CN116382540A (en) | Display method and device for electronic paper, electronic equipment and storage medium | |
CN116860143A (en) | Image display processing method and device | |
US20240161452A1 (en) | Image enhancement method, device, and computer program | |
US20240046836A1 (en) | Image processing methods and apparatuses, electronic devices and storage media | |
US20140314317A1 (en) | Method and apparatus for converting gray level of color image | |
CN112884661A (en) | Image processing apparatus, display apparatus, computer-readable storage medium, and image processing method | |
US20230214963A1 (en) | Data processing method and apparatus, and electronic device |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
TA01 | Transfer of patent application right | ||
TA01 | Transfer of patent application right |
Effective date of registration: 20220803 Address after: Room 409, No. 192, Kezhu Road, Huangpu District, Guangzhou, Guangdong 510530 Applicant after: Guangzhou Shichuang Display Technology Co.,Ltd. Address before: 510530 No. 6, Yun Po four road, Whampoa District, Guangzhou, Guangdong. Applicant before: Guangzhou Shiyuan Electronic Technology Company Limited |
|
GR01 | Patent grant | ||
GR01 | Patent grant |