Image display methods, devices, electronic devices, and readable storage media
By acquiring and adjusting image parameters to match the display parameters of the target display, the problem of inconsistent display effects between different displays is solved, and high-quality display of HDR images on multiple displays is achieved.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- VIVO MOBILE COMM CO LTD
- Filing Date
- 2023-06-09
- Publication Date
- 2026-05-26
AI Technical Summary
Due to parameter differences between different displays, HDR images captured on one device may display inconsistently on other devices, resulting in a decrease in image quality.
By acquiring the first parameter of the target image and the display parameters of the target monitor, the second parameter of the image is adjusted to match the display scene of the target monitor, ensuring the consistency of the display effect on different monitors.
It achieves high-quality display of HDR images on different monitors, ensuring consistency in image display and a unified visual experience.
Smart Images

Figure CN116704934B_ABST
Abstract
Description
Technical Field
[0001] This application belongs to the field of electronic technology, and specifically relates to an image display method, apparatus, electronic device, and readable storage medium. Background Technology
[0002] High Dynamic Range (HDR) is a technique that improves image quality by increasing the range of brightness and color vibrancy. Images with HDR effects can display richer colors and more realistic visual effects compared to ordinary images, and have received widespread attention and application.
[0003] In existing technologies, due to the different parameters between different displays, the display effect of an HDR image captured by device A on devices B and C is different from that on device A, resulting in a decrease in the quality of the HDR image. Summary of the Invention
[0004] The purpose of this application is to provide an image display method that can ensure high-quality display of HDR images on different devices.
[0005] In a first aspect, embodiments of this application provide an image display method, the method comprising: acquiring a first parameter of a target image, and acquiring display parameters of a target display; acquiring a second parameter of the target image based on the display parameters of the target display and the first parameter of the target image; and displaying the target image through the target display based on the second parameter; wherein the first parameter is derived from the display parameters of the display of an electronic device that captures the target image.
[0006] Secondly, embodiments of this application provide an image display device, which includes: a first acquisition module, configured to acquire first parameters of a target image and acquire display parameters of a target display; a second acquisition module, configured to acquire second parameters of the target image based on the display parameters of the target display and the first parameters of the target image; and a display module, configured to display the target image through the target display based on the second parameters; wherein the first parameters are derived from the display parameters of the display of the electronic device that captured the target image.
[0007] Thirdly, embodiments of this application provide an electronic device including a processor and a memory, wherein the memory stores programs or instructions executable on the processor, and the programs or instructions, when executed by the processor, implement the steps of the method described in the first aspect.
[0008] Fourthly, embodiments of this application provide a readable storage medium on which a program or instructions are stored, which, when executed by a processor, implement the steps of the method described in the first aspect.
[0009] Fifthly, embodiments of this application provide a chip, the chip including a processor and a communication interface, the communication interface being coupled to the processor, the processor being used to run programs or instructions to implement the method as described in the first aspect.
[0010] In a sixth aspect, embodiments of this application provide a computer program product stored in a storage medium, which is executed by at least one processor to implement the method described in the first aspect.
[0011] Thus, in the embodiments of this application, when capturing a target image, a first parameter of the target image is obtained. This first parameter is based on the display parameters of the display of the capturing device. When the target image is displayed on a display of a device other than the capturing device (i.e., the target display in this application), the first parameter of the target image is adjusted in conjunction with the display parameters of the target display to obtain a second parameter of the target image, so that the second parameter matches the application scenario of displaying the target image on the target display. The first parameter is the image parameter set to achieve a better display effect when displaying the target image on the display of the capturing device. Therefore, in the embodiments of this application, for the same image, when displayed on displays with different display parameters, the image parameters can be adjusted to ensure that the effect of displaying the same image on each display is consistent, that is, the high-quality display effect of the image displayed on the captured image's display can be achieved. Especially when the target image is an HDR image, the same image display effect can be achieved by displaying the HDR image on different displays. Attached Figure Description
[0012] Figure 1 This is a flowchart of an image display method according to an embodiment of this application;
[0013] Figure 2 This is one of the illustrative diagrams illustrating the image display method according to an embodiment of this application;
[0014] Figure 3 This is a second illustrative diagram illustrating the image display method according to an embodiment of this application;
[0015] Figure 4 This is the third illustrative diagram illustrating the image display method according to an embodiment of this application;
[0016] Figure 5 This is a block diagram of an image display device according to an embodiment of this application;
[0017] Figure 6 This is one of the hardware structure diagrams of the electronic device according to an embodiment of this application;
[0018] Figure 7 This is the second schematic diagram of the hardware structure of the electronic device according to an embodiment of this application. Detailed Implementation
[0019] The technical solutions of the embodiments of this application will be clearly described below with reference to the accompanying drawings. Obviously, the described embodiments are only some, not all, of the embodiments of this application. All other embodiments obtained by those skilled in the art based on the embodiments of this application are within the scope of protection of this application.
[0020] The terms "first," "second," etc., used in the specification and claims of this application are used to distinguish similar objects and not to describe a specific order or sequence. It should be understood that such use of data can be interchanged where appropriate so that embodiments of this application can be implemented in orders other than those illustrated or described herein, and the objects distinguished by "first," "second," etc., are generally of the same class and the number of objects is not limited; for example, a first object can be one or more. Furthermore, in the specification and claims, "and / or" indicates at least one of the connected objects, and the character " / " generally indicates that the preceding and following objects are in an "or" relationship.
[0021] The image display method provided in this application embodiment can be executed by the image display device provided in this application embodiment, or by an electronic device integrating the image display device, wherein the image display device can be implemented in hardware or software.
[0022] The image display method provided in this application will be described in detail below with reference to the accompanying drawings, through specific embodiments and application scenarios.
[0023] Figure 1 A flowchart of an image display method according to an embodiment of this application is shown, with an example of the method being applied to a first electronic device. The method includes:
[0024] Step 110: Obtain the first parameters of the target image and the display parameters of the target display.
[0025] Optionally, the target image is an HDR image.
[0026] Optionally, when capturing an HDR image, a Standard Dynamic Range (SDR) image and a corresponding gain map are generated simultaneously. When displaying an HDR image, the SDR image and the gain map need to be synthesized, and the display's brightness margin is used to improve the dynamic range, ultimately achieving the HDR visual effect. This allows for optimization of file size by minimizing the amount of redundant data stored.
[0027] Therefore, the first parameter includes the metadata of the gain map. For example, the metadata of the gain map includes the highlighting factor, etc.
[0028] In this embodiment, a first electronic device is used as an example for explanation. Correspondingly, the display of the first electronic device is the target display.
[0029] The first parameter is derived from the display parameters of the display of the electronic device that captures the target image.
[0030] For ease of distinction, an electronic device used to capture a target image can be defined as a second electronic device.
[0031] Step 120: Obtain the second parameter of the target image based on the display parameters of the target display and the first parameter of the target image.
[0032] In this step, both the first parameter and the second parameter are used to describe some features of the target image. The difference is that the first parameter is applicable to the scenario where the target image is displayed through the display of the second electronic device, while the second parameter is applicable to the scenario where the target image is displayed through the target display of the first electronic device.
[0033] Optionally, the first parameter includes metadata of the gain map, and the second parameter includes metadata of the adjusted gain map.
[0034] In this embodiment, an application scenario is as follows: when an HDR image is captured and displayed by a second electronic device, a high brightening factor is usually set to achieve the HDR visual effect. However, since the display parameters of the display of the first electronic device are different from those of the display of the second electronic device, when the HDR image is displayed by the first electronic device, the previously set high brightening factor may not be achieved, which will lead to a decrease in the quality of the displayed image. Therefore, it is necessary to adjust the brightening factor accordingly to ensure that the effect of displaying the target image by the first electronic device is the same as that of displaying the target image by the second electronic device.
[0035] Step 130: Display the target image on the target display according to the second parameter.
[0036] Optionally, the target image is an HDR image. After combining its corresponding SDR image and the second parameter, it is sent to the target display for display to achieve the HDR visual effect.
[0037] Thus, in the embodiments of this application, when capturing a target image, a first parameter of the target image is obtained. This first parameter is based on the display parameters of the display of the capturing device. When the target image is displayed on a display of a device other than the capturing device (i.e., the target display in this application), the first parameter of the target image is adjusted in conjunction with the display parameters of the target display to obtain a second parameter of the target image, so that the second parameter matches the application scenario of displaying the target image on the target display. The first parameter is the image parameter set to achieve a better display effect when displaying the target image on the display of the capturing device. Therefore, in the embodiments of this application, for the same image, when displayed on displays with different display parameters, the image parameters can be adjusted to ensure that the effect of displaying the same image on each display is consistent, that is, the high-quality display effect of the image displayed on the captured image's display can be achieved. Especially when the target image is an HDR image, the same image display effect can be achieved by displaying the HDR image on different displays.
[0038] In another embodiment of the image display method of this application, the first parameter includes a first peak brightness and a first brightening factor, and the display parameters of the target display include a second peak brightness and a first display brightness.
[0039] Wherein, the first peak brightness is used to represent the peak brightness of the display of the second electronic device, and the second peak brightness is used to represent the peak brightness of the target display.
[0040] Optionally, the following can be added to the metadata of the gain map: the peak brightness of the display corresponding to the generation of the gain map, i.e., the first peak brightness; and the first brightening factor set according to the first peak brightness.
[0041] In this embodiment, when there is a significant difference between the first peak brightness and the second peak brightness, in order to ensure the same HDR visual effect, the brightness factor, i.e., the second brightness factor, can be reset based on the peak brightness of the target display currently used to display the target image, i.e., the second peak brightness. Alternatively, the same brightness factor can be maintained by reducing the current display brightness.
[0042] In the process of this embodiment, step 120 includes:
[0043] Sub-step A1: Obtain the smaller value between the first peak brightness and the second peak brightness.
[0044] Sub-step A2: Calculate the target value based on the smaller value and the first display brightness.
[0045] Sub-step A3: If the first brightening factor is greater than the target value, determine the second brightening factor.
[0046] Wherein, the second brightening factor is less than or equal to the target value, and the second parameter includes the second brightening factor.
[0047] In this embodiment, the second brightening factor must meet the following requirements:
[0048] Formula 3: A≤Min(Lpeak, N) / L0
[0049] In Formula 3, A represents the second brightness factor, Min(Lpeak, N) represents the smaller value, N can be a value such as "0, 1" to represent different displays, and L0 represents the first display brightness, that is, the current display brightness of the target display.
[0050] For example, see Figure 2 The current screen brightness (first display brightness) is "100 nits", the peak brightness of monitor one (first peak brightness) is "1000 nits", and the peak brightness of monitor two (second peak brightness) is "500 nits". In order to ensure that the target image is displayed on both monitors with the same HDR visual effect, the brightness enhancement factor needs to be set to within "5" times. Otherwise, when the brightness enhancement factor is greater than "5", monitor one can achieve a larger dynamic range, but the dynamic range of monitor two will be relatively reduced, resulting in a worse HDR display effect.
[0051] In this embodiment, the peak brightness of the two displays is obtained to set a brightness factor suitable for the target display, so as to ensure that the same HDR visual effect can be achieved when the target image is displayed on the two displays, that is, the HDR display effect will not deteriorate when the target image is displayed on the target display.
[0052] In another embodiment of the image display method of this application, the first parameter includes a first color bit depth; the display parameters of the target display include a second color bit depth, the maximum brightness of the standard dynamic range area, a second display brightness, and a third peak brightness.
[0053] In the process of this embodiment, step 120 includes:
[0054] Sub-step B1: When the second color bit depth is less than the first color bit depth, determine the third brightening factor using formulas one and two. The second parameter includes the third brightening factor.
[0055] Formula 1:
[0056] Formula 2:
[0057] Where A represents the third brightening factor, and L... sdrmax The maximum brightness of the standard dynamic range area is represented by N, the second color bit depth is represented by L0, and the second display brightness is represented by L. max Used to indicate the third peak brightness.
[0058] The second display brightness is the current display brightness of the target monitor.
[0059] In this embodiment, the two displays have different color bit depths. If the target image is displayed based on the same brightening factor, an abnormal transition band phenomenon may occur when the target image is displayed on the display with the lower color bit depth.
[0060] For example, see Figure 3 On a 10-bit monitor, if the brightness is increased by 8 times, there are still about 230 gray levels below 30 nits. However, on an 8-bit monitor, the same 8-fold increase leaves less than 60 gray levels below 30 nits. In a display environment with a gamma of 2.2, with less than 60 gray levels allocated below 30 nits brightness, the minimum difference in brightness between adjacent gray levels is 3.7%, exceeding the 2% threshold specified in the Schreiber Limit function, potentially leading to abnormal gray-scale transitions. Therefore, when displaying a target image on a monitor with a lower color bit depth, the brightness increase needs to be reset, and the increase should be lower when displaying the target image on a monitor with a lower color bit depth compared to displaying it on a monitor with a higher color bit depth.
[0061] Furthermore, the percentage difference in brightness between adjacent gray levels when gamma is "2.2" shows that, regardless of whether the display has an "8-bit" or "10-bit" color depth, the percentage difference in brightness between adjacent gray levels below "108" gray is greater than "2%". Therefore, when generating a gain map or brightening the image, it is necessary to count the proportion of gray levels at or below "108" gray in the image. The larger this proportion is, the smaller the brightening factor should be; otherwise, it will be easier for abnormal transition band phenomena to occur.
[0062] Optionally, the color bit depth of the display (i.e., the display of the second electronic device) when the target image is generated can be added to the metadata of the gain map, i.e., the first color bit depth.
[0063] Therefore, in this embodiment, the third brightening factor must satisfy Formula 1 and Formula 2.
[0064] In this embodiment, if the second color bit depth of the target display is greater than or equal to the first color bit depth, the brightening factor can remain unchanged; if the second color bit depth of the target display is less than the first color bit depth, the brightening factor needs to be reset according to Formula 1 and Formula 2, i.e., the third brightening factor, otherwise abnormal phenomena such as color banding and color deviation are likely to occur.
[0065] For example, when the color bit depth (i.e., the first color bit depth) of the target image is "10-bit", the current display brightness of the target monitor is "100 nits", the maximum brightness of the SDR area is "75 nits", the gamma of the target monitor is "2.2", and the maximum brightness of the target monitor is "10,000 nits". In this case, if the color bit depth (i.e., the second color bit depth) of the target monitor is "10-bit", the brightening factor can reach "100" times. However, if the color bit depth of the target monitor is "8-bit", the brightening factor needs to be set to "4.8" times, otherwise abnormal phenomena such as color banding and color shift will occur.
[0066] In this embodiment, by acquiring and comparing the color bit depth of the two displays, a brightness factor suitable for the target display is set to avoid abnormal phenomena such as color banding and color shift when displaying the target image on the target display due to the difference in color bit depth between the two displays.
[0067] In another embodiment of the image display method of this application, the first parameter includes a first color gamut, and the display parameters of the target display include a second color gamut.
[0068] In the process of this embodiment, step 120 includes:
[0069] Sub-step C1: If the first color gamut and the second color gamut are not the same, obtain the second color gamut, and the second parameter includes the second color gamut.
[0070] Correspondingly, step 130 includes:
[0071] Sub-step C2: Combine the target image and the gain image to obtain the first image;
[0072] Sub-step C3: Convert the first color gamut of the first image to the second color gamut to obtain the target image after color gamut conversion;
[0073] Sub-step C4: Display the color gamut converted target image on the target display.
[0074] Step 130, or may include:
[0075] Sub-step C5: Convert the first color gamut of the target image to the second color gamut to obtain the second image;
[0076] Sub-step C6: Combine the second image with the gain image to obtain the target image after color gamut conversion;
[0077] Sub-step C7: Display the converted target image on the target display.
[0078] Different displays may have different color gamuts. For example, some displays only support standard red, green, and blue (sRGB), while others support both sRGB and P3 (a color gamut standard). Therefore, this embodiment proposes comparing the color gamut of the target display of the first electronic device with the color gamut of the display of the second electronic device. When the two are different, the target image is displayed according to the color gamut of the target display to ensure that the effect of displaying the target image on both displays is consistent.
[0079] In this embodiment, the first color gamut and the second color gamut are different color gamuts.
[0080] Optionally, the International Color Consortium (ICC) header file of the metadata in the gain map is read to obtain the first color gamut.
[0081] In this embodiment, when the first color gamut and the second color gamut are not the same, the first color gamut of the target image is converted to the second color gamut suitable for the current display scenario.
[0082] Optionally, in Scheme 1, the SDR image and gain map are first synthesized, and then the color gamut is converted according to the second color gamut in the second parameter.
[0083] Alternatively, in Scheme 2, the SDR image is first converted to the second color gamut based on the second color gamut in the second parameter, and then the converted SDR image is combined with the gain map.
[0084] Option 1 and Option 2 can be selected based on the actual display effect.
[0085] Furthermore, based on Scheme 1 or Scheme 2, the target image is sent to the target display so that the target image can be displayed on the target display.
[0086] In this embodiment, when the color gamuts of the two displays are different, the color gamut of the target image is converted based on the color gamut of the target display, and then the target image after color gamut conversion is displayed on the target display to ensure that the same color visual effect can be achieved when the target image is displayed on different displays.
[0087] In another embodiment of the image display method of this application, the first parameter includes first scene information.
[0088] In the process of this embodiment, step 120 includes:
[0089] Sub-step D1: Based on the first scene information, obtain the fourth brightening factor corresponding to the first scene information through the synthesis algorithm corresponding to the first scene information. The second parameter includes the fourth brightening factor.
[0090] The synthesis algorithm is used to obtain the brightness factor corresponding to the scene information.
[0091] Optionally, first scene information can be added to the metadata of the gain map.
[0092] For example, see Figure 4 The first scene information can be any of the following: portrait, night scene, shopping mall, indoor, outdoor, etc.
[0093] Specifically, for the target display, different scene information needs to be pre-recorded, and corresponding synthesis algorithms need to be matched for different scene information. This allows the corresponding synthesis algorithm to obtain the brightening factor corresponding to the scene information. Then, based on the scene information in different images, the brightening factor can be adjusted differently to achieve different degrees of brightening for different shooting scenarios.
[0094] Optionally, for different displays, a correspondence is pre-established between various scene information, various compositing algorithms, and various brightening factors. Each correspondence includes a scene information, a compositing algorithm, and a brightening factor.
[0095] The correspondence can be used as part of the display parameters of the monitor.
[0096] For example, see Figure 4 The first parameter includes portrait scene information, and the corresponding synthesis algorithm "1" is used to set the brightening factor "1".
[0097] This embodiment identifies scene information in the target image and then uses that scene information to make personalized adjustments to the brightening factor, so that when the target image is displayed on the target display, it has a better HDR visual effect.
[0098] In summary, this application proposes an adaptation method for applying parameters of the same HDR image across different displays. First, different displays have significant differences in peak brightness, leading to variations in the brightness of the same HDR image on different displays. Therefore, providing the peak brightness of different displays helps determine the appropriate brightness factor for consistent display performance. Second, different displays have varying color bit depths. A brightness factor that works correctly on a high bit depth display may result in an unsmooth transition on a low bit depth display. Therefore, a bit depth parameter is needed to adjust the brightness factor accordingly. Third, different displays have different color gamuts; some only support sRGB, while others support both sRGB and P3. The need for color gamut conversion to achieve consistent performance can be determined based on the current display's color gamut. Fourth, scene information, such as portraits or night scenes, can be added to the HDR image parameters, allowing different displays to adjust for differentiated effects. These points can be combined or applied individually to ensure consistent display performance of HDR images across different displays.
[0099] The image display method provided in this application can be executed by an image display device. This application uses an image display device executing the image display method as an example to illustrate the image display device provided in this application.
[0100] Figure 5 A block diagram of an image display apparatus according to an embodiment of this application is shown. The apparatus includes:
[0101] The first acquisition module 10 is used to acquire the first parameters of the target image and the display parameters of the target display.
[0102] The second acquisition module 20 is used to acquire the second parameters of the target image based on the display parameters of the target display and the first parameters of the target image;
[0103] Display module 30 is used to display a target image on a target display according to the second parameter;
[0104] The first parameter is derived from the display parameters of the display of the electronic device that captures the target image.
[0105] Thus, in the embodiments of this application, when capturing a target image, a first parameter of the target image is obtained. This first parameter is based on the display parameters of the display of the capturing device. When the target image is displayed on a display of a device other than the capturing device (i.e., the target display in this application), the first parameter of the target image is adjusted in conjunction with the display parameters of the target display to obtain a second parameter of the target image, so that the second parameter matches the application scenario of displaying the target image on the target display. The first parameter is the image parameter set to achieve a better display effect when displaying the target image on the display of the capturing device. Therefore, in the embodiments of this application, for the same image, when displayed on displays with different display parameters, the image parameters can be adjusted to ensure that the effect of displaying the same image on each display is consistent, that is, the high-quality display effect of the image displayed on the captured image's display can be achieved. Especially when the target image is an HDR image, the same image display effect can be achieved by displaying the HDR image on different displays.
[0106] Optionally, the first parameter includes a first peak brightness and a first brightening factor, and the display parameters of the target display include a second peak brightness and a first display brightness;
[0107] The second acquisition module 20 includes:
[0108] The first acquisition unit is used to acquire the smaller value between the first peak brightness and the second peak brightness;
[0109] A calculation unit is used to calculate the target value based on the smaller value and the first display brightness;
[0110] The first determining unit is used to determine the second brightening factor when the first brightening factor is greater than the target value;
[0111] Wherein, the second brightening factor is less than or equal to the target value, and the second parameter includes the second brightening factor.
[0112] Optionally, the first parameter includes a first color bit depth; the display parameters of the target display include a second color bit depth, the maximum brightness of the standard dynamic range area, a second display brightness, and a third peak brightness.
[0113] The second acquisition module 20 includes:
[0114] The second determining unit is used to determine the third brightening factor by formula one and formula two when the second color bit depth is less than the first color bit depth. The second parameter includes the third brightening factor.
[0115] Formula 1:
[0116] Formula 2:
[0117] Where A represents the third brightening factor, and L... sdrmax The maximum brightness of the standard dynamic range area is represented by N, the second color bit depth is represented by L0, and the second display brightness is represented by L. max Used to indicate the third peak brightness.
[0118] Optionally, the first parameter includes a first color gamut, and the display parameters of the target display include a second color gamut;
[0119] The second acquisition module 20 includes:
[0120] The second acquisition unit is used to acquire the second color gamut when the first color gamut and the second color gamut are not the same, and the second parameter includes the second color gamut;
[0121] Display module 30 includes:
[0122] A synthesis unit is used to synthesize the target image and the gain image to obtain a first image;
[0123] A conversion unit is used to convert the first color gamut of the first image into the second color gamut to obtain a target image after color gamut conversion;
[0124] The display unit is used to display the target image after color gamut conversion through the target display.
[0125] Optionally, the conversion unit is further configured to convert the first color gamut of the target image into the second color gamut to obtain a second image;
[0126] The synthesis unit is also used to synthesize the second image with the gain image to obtain the target image after color gamut conversion;
[0127] The display unit is also used to display the converted target image through the target display.
[0128] Optionally, the first parameter includes first scene information;
[0129] The second acquisition module 20 includes:
[0130] The third acquisition unit is used to acquire the fourth brightening factor corresponding to the first scene information by using a synthesis algorithm corresponding to the first scene information, and the second parameter includes the fourth brightening factor.
[0131] The synthesis algorithm is used to obtain the brightness factor corresponding to the scene information.
[0132] The image display device in this application embodiment can be an electronic device or a component within an electronic device, such as an integrated circuit or a chip. The electronic device can be a terminal or other devices besides a terminal. For example, the electronic device can be a mobile phone, tablet computer, laptop computer, PDA, in-vehicle electronic device, mobile internet device (MID), augmented reality (AR) / virtual reality (VR) device, robot, wearable device, ultra-mobile personal computer (UMPC), netbook, or personal digital assistant (PDA), etc. It can also be a server, network attached storage (NAS), personal computer (PC), television set (TV), ATM, or self-service machine, etc. This application embodiment does not specifically limit the device.
[0133] The image display device in this application embodiment can be a device with a motion system. The motion system can be an Android motion system, an iOS motion system, or other possible motion systems, and this application embodiment does not specifically limit it.
[0134] The image display device provided in this application embodiment can implement the various processes implemented in the above method embodiments, and will not be described again here to avoid repetition.
[0135] Optionally, such as Figure 6 As shown, this application embodiment also provides an electronic device 100, including a processor 101, a memory 102, and a program or instructions stored in the memory 102 and executable on the processor 101. When the program or instructions are executed by the processor 101, they implement the various steps of any of the above-described image display method embodiments and achieve the same technical effect. To avoid repetition, they will not be described again here.
[0136] It should be noted that the electronic devices in the embodiments of this application include the mobile electronic devices and non-mobile electronic devices described above.
[0137] Figure 7 A schematic diagram of the hardware structure of an electronic device to implement an embodiment of this application.
[0138] The electronic device 1000 includes, but is not limited to, the following components: radio frequency unit 1001, network module 1002, audio output unit 1003, input unit 1004, sensor 1005, display unit 1006, user input unit 1007, interface unit 1008, memory 1009, processor 1010, camera 1011, etc.
[0139] Those skilled in the art will understand that the electronic device 1000 may also include a power supply (such as a battery) for supplying power to various components. The power supply may be logically connected to the processor 1010 through a power management system, thereby enabling functions such as managing charging, discharging, and power consumption through the power management system. Figure 7 The electronic device structure shown does not constitute a limitation on the electronic device. The electronic device may include more or fewer components than shown, or combine certain components, or have different component arrangements, which will not be elaborated here.
[0140] The processor 1010 is configured to acquire first parameters of the target image and display parameters of the target display; and acquire second parameters of the target image based on the display parameters of the target display and the first parameters of the target image; the display unit 1006 is configured to display the target image through the target display based on the second parameters; wherein the first parameters are derived from the display parameters of the display of the electronic device that captured the target image.
[0141] Thus, in the embodiments of this application, when capturing a target image, a first parameter of the target image is obtained. This first parameter is based on the display parameters of the display of the capturing device. When the target image is displayed on a display of a device other than the capturing device (i.e., the target display in this application), the first parameter of the target image is adjusted in conjunction with the display parameters of the target display to obtain a second parameter of the target image, so that the second parameter matches the application scenario of displaying the target image on the target display. The first parameter is the image parameter set to achieve a better display effect when displaying the target image on the display of the capturing device. Therefore, in the embodiments of this application, for the same image, when displayed on displays with different display parameters, the image parameters can be adjusted to ensure that the effect of displaying the same image on each display is consistent, that is, the high-quality display effect of the image displayed on the captured image's display can be achieved. Especially when the target image is an HDR image, the same image display effect can be achieved by displaying the HDR image on different displays.
[0142] Optionally, the first parameter includes a first peak brightness and a first brightening factor, and the display parameters of the target display include a second peak brightness and a first display brightness; the processor 1010 is further configured to obtain the smaller value between the first peak brightness and the second peak brightness; calculate a target value based on the smaller value and the first display brightness; and determine a second brightening factor if the first brightening factor is greater than the target value; wherein the second brightening factor is less than or equal to the target value, and the second parameter includes the second brightening factor.
[0143] Optionally, the first parameter includes a first color bit depth; the display parameters of the target display include a second color bit depth, a maximum brightness in the standard dynamic range area, a second display brightness, and a third peak brightness; the processor 1010 is further configured to determine a third brightening factor using formulas one and two when the second color bit depth is less than the first color bit depth, wherein the second parameter includes the third brightening factor; wherein, formula one: Formula 2: Where A represents the third brightening factor, L sdrmax The maximum brightness of the standard dynamic range region is represented by N, the second color bit depth is represented by L0, and the second display brightness is represented by L. max Used to represent the third peak brightness.
[0144] Optionally, the first parameter includes a first color gamut, and the display parameters of the target display include a second color gamut; the processor 1010 is further configured to acquire the second color gamut when the first color gamut and the second color gamut are not the same, wherein the second parameter includes the second color gamut; synthesize the target image and the gain image to obtain a first image; convert the first color gamut of the first image to the second color gamut to obtain a color gamut-converted target image; and the display unit 1006 is further configured to display the color gamut-converted target image through the target display.
[0145] Optionally, the first parameter includes a first color gamut, and the display parameters of the target display include a second color gamut; the processor 1010 is further configured to acquire the second color gamut when the first color gamut and the second color gamut are not the same, the second parameter including the second color gamut; convert the first color gamut of the target image to the second color gamut to obtain a second image; combine the second image with a gain image to obtain a target image after color gamut conversion; the display unit 1006 is further configured to display the target image after color gamut conversion through the target display.
[0146] Optionally, the first parameter includes first scene information; the processor 1010 is further configured to obtain a fourth brightening factor corresponding to the first scene information by means of a synthesis algorithm corresponding to the first scene information, and the second parameter includes the fourth brightening factor; wherein, the synthesis algorithm is used to obtain the brightening factor corresponding to the scene information.
[0147] In summary, this application proposes an adaptation method for applying parameters of the same HDR image across different displays. First, different displays have significant differences in peak brightness, leading to variations in the brightness of the same HDR image on different displays. Therefore, providing the peak brightness of different displays helps determine the appropriate brightness factor for consistent display performance. Second, different displays have varying color bit depths. A brightness factor that works correctly on a high bit depth display may result in an unsmooth transition on a low bit depth display. Therefore, a bit depth parameter is needed to adjust the brightness factor accordingly. Third, different displays have different color gamuts; some only support sRGB, while others support both sRGB and P3. The need for color gamut conversion to achieve consistent performance can be determined based on the current display's color gamut. Fourth, scene information, such as portraits or night scenes, can be added to the HDR image parameters, allowing different displays to adjust for differentiated effects. These points can be combined or applied individually to ensure consistent display performance of HDR images across different displays.
[0148] It should be understood that, in this embodiment, the input unit 1004 may include a graphics processing unit (GPU) 10041 and a microphone 10042. The GPU 10041 processes image data of still images or video images obtained by an image capture device (such as a camera) in video image capture mode or image capture mode. The display unit 1006 may include a display panel 10061, which may be configured in the form of a liquid crystal display, an organic light-emitting diode, etc. The user input unit 1007 includes at least one of a touch panel 10071 and other input devices 10072. The touch panel 10071 is also called a touch screen. The touch panel 10071 may include a touch detection device and a touch controller. Other input devices 10072 may include, but are not limited to, physical keyboards, function keys (such as volume control buttons, power buttons, etc.), trackballs, mice, and joysticks, which will not be described in detail here. The memory 1009 can be used to store software programs and various data, including but not limited to applications and motion systems. Processor 1010 may integrate an application processor and a modem processor. The application processor mainly handles the action system, user page, and applications, while the modem processor mainly handles wireless communication. It is understood that the modem processor may also not be integrated into processor 1010.
[0149] The memory 1009 can be used to store software programs and various data. The memory 1009 may primarily include a first storage area for storing programs or instructions and a second storage area for storing data. The first storage area may store the operating system, application programs or instructions required for at least one function (such as sound playback, image playback, etc.). Furthermore, the memory 1009 may include volatile memory or non-volatile memory, or both. The non-volatile memory may be read-only memory (ROM), programmable read-only memory (PROM), erasable programmable read-only memory (EPROM), electrically erasable programmable read-only memory (EEPROM), or flash memory. Volatile memory can be random access memory (RAM), static random access memory (SRAM), dynamic random access memory (DRAM), synchronous dynamic random access memory (SDRAM), double data rate synchronous dynamic random access memory (DDRSDRAM), enhanced synchronous dynamic random access memory (ESDRAM), synchronous link dynamic random access memory (SLDRAM), and direct memory bus RAM (DRRAM). The memory 1009 in this embodiment includes, but is not limited to, these and any other suitable types of memory.
[0150] The processor 1010 may include one or more processing units; optionally, the processor 1010 integrates an application processor and a modem processor, wherein the application processor mainly handles operations involving the operating system, user interface, and applications, and the modem processor mainly handles wireless communication signals, such as a baseband processor. It is understood that the aforementioned modem processor may also not be integrated into the processor 1010.
[0151] This application also provides a readable storage medium storing a program or instructions. When the program or instructions are executed by a processor, they implement the various processes of the above-described image display method embodiments and achieve the same technical effect. To avoid repetition, they will not be described again here.
[0152] The processor is the processor in the electronic device described in the above embodiments. The readable storage medium includes computer-readable storage media, such as computer read-only memory (ROM), random access memory (RAM), magnetic disk, or optical disk.
[0153] This application also provides a chip, which includes a processor and a communication interface. The communication interface and the processor are coupled. The processor is used to run programs or instructions to implement the various processes of the above-described image display method embodiments and can achieve the same technical effect. To avoid repetition, it will not be described again here.
[0154] It should be understood that the chip mentioned in the embodiments of this application may also be referred to as a system-on-a-chip, system chip, chip system, or system-on-a-chip, etc.
[0155] This application provides a computer program product, which is stored in a storage medium and executed by at least one processor to implement the various processes of the above-described image display method embodiments, and can achieve the same technical effect. To avoid repetition, it will not be described again here.
[0156] It should be noted that, in this document, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or apparatus. Without further limitations, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or apparatus that includes that element. Furthermore, it should be noted that the scope of the methods and apparatuses in the embodiments of this application is not limited to performing functions in the order shown or discussed, but may also include performing functions substantially simultaneously or in the reverse order, depending on the functions involved. For example, the described methods may be performed in a different order than described, and various steps may be added, omitted, or combined. Additionally, features described with reference to certain examples may be combined in other examples.
[0157] Through the above description of the embodiments, those skilled in the art can clearly understand that the methods of the above embodiments can be implemented by means of software plus necessary general-purpose hardware platforms. Of course, they can also be implemented by hardware, but in many cases the former is a better implementation method. Based on this understanding, the technical solution of this application, in essence, or the part that contributes to the prior art, can be embodied in the form of a computer software product. This computer software product is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk) and includes several instructions to cause a terminal (which may be a mobile phone, computer, server, or network device, etc.) to execute the methods of the various embodiments of this application.
[0158] The embodiments of this application have been described above with reference to the accompanying drawings. However, this application is not limited to the specific embodiments described above. The specific embodiments described above are merely illustrative and not restrictive. Those skilled in the art can make many other forms under the guidance of this application without departing from the spirit and scope of the claims, and all of these forms are within the protection scope of this application.
Claims
1. An image display method characterized by, The method includes: Obtain the first parameter of the target image, and obtain the display parameters of the target display; Based on the display parameters of the target display and the first parameters of the target image, obtain the second parameters of the target image; The target image is displayed on the target display according to the second parameter; The first parameter is obtained based on the display parameters of the display of the electronic device that captures the target image, and the first parameter includes a first color gamut, while the display parameters of the target display include a second color gamut. The step of obtaining the second parameter of the target image based on the display parameters of the target display and the first parameter of the target image includes: When the first color gamut and the second color gamut are not the same, the second color gamut is obtained, and the second parameter includes the second color gamut; The step of displaying the target image on the target display according to the second parameter includes: The target image and the gain image are combined to obtain a first image; the first color gamut of the first image is converted to the second color gamut to obtain a color gamut-converted target image; the color gamut-converted target image is displayed through the target display. Alternatively, displaying the target image on the target display according to the second parameter includes: The first color gamut of the target image is converted to the second color gamut to obtain a second image; the second image is combined with a gain image to obtain a target image after color gamut conversion; the converted target image is displayed through the target display.
2. The method of claim 1, wherein, The first parameter also includes a first peak brightness and a first brightening factor, and the display parameters of the target display include a second peak brightness and a first display brightness; The step of obtaining the second parameter of the target image based on the display parameters of the target display and the first parameter of the target image includes: Obtain the smaller value between the first peak brightness and the second peak brightness; Calculate the target value based on the smaller value and the first display brightness; If the first brightening factor is greater than the target value, a second brightening factor is determined; Wherein, the second brightening factor is less than or equal to the target value, and the second parameter includes the second brightening factor.
3. The method of claim 1, wherein, The first parameter also includes a first color bit depth; the display parameters of the target display also include a second color bit depth, a maximum brightness in the standard dynamic range area, a second display brightness, and a third peak brightness; The step of obtaining the second parameter of the target image based on the display parameters of the target display and the first parameter of the target image further includes: When the second color bit depth is less than the first color bit depth, the third brightening factor is determined by formulas one and two, and the second parameter includes the third brightening factor. In the formula one: ; Equation Two: ; wherein A is used to represent the third lift factor, L sdrmax to represent the maximum luminance of the standard dynamic range region, N is used to represent the second color bit depth, L0 is used to represent the second display luminance, L max to represent the third peak luminance.
4. The method of claim 1, wherein, The first parameter also includes first scene information; The step of obtaining the second parameter of the target image based on the display parameters of the target display and the first parameter of the target image includes: Based on the first scene information, a fourth brightening factor corresponding to the first scene information is obtained through a synthesis algorithm corresponding to the first scene information, and the second parameter includes the fourth brightening factor; The synthesis algorithm is used to obtain the brightening factor corresponding to the scene information.
5. An image display device, characterized by comprising: The device includes: The first acquisition module is used to acquire the first parameters of the target image and the display parameters of the target display. The second acquisition module is used to acquire the second parameters of the target image based on the display parameters of the target display and the first parameters of the target image; The display module is configured to display the target image through the target display according to the second parameter; The first parameter is obtained based on the display parameters of the display of the electronic device that captures the target image, and the first parameter includes a first color gamut, while the display parameters of the target display include a second color gamut. The second acquisition module includes: The second acquisition unit is used to acquire the second color gamut when the first color gamut and the second color gamut are not the same, wherein the second parameter includes the second color gamut; The display module is specifically used to synthesize the target image and the gain image to obtain a first image; convert the first color gamut of the first image to the second color gamut to obtain a color gamut-converted target image; and display the color gamut-converted target image through the target display. Alternatively, the display module is specifically configured to convert the first color gamut of the target image to the second color gamut to obtain a second image; combine the second image with a gain image to obtain a target image after color gamut conversion; and display the converted target image through the target display.
6. The apparatus of claim 5, wherein, The first parameter also includes a first color bit depth; the display parameters of the target display also include a second color bit depth, a maximum brightness in the standard dynamic range area, a second display brightness, and a third peak brightness; The second acquisition module further includes: The second determining unit is used to determine the third brightening factor by formula one and formula two when the second color bit depth is less than the first color bit depth, wherein the second parameter includes the third brightening factor. In the formula one: ; Equation Two: ; wherein A is used to represent the third lift factor, L sdrmax to represent the maximum luminance of the standard dynamic range region, N is used to represent the second color bit depth, L0 is used to represent the second display luminance, L max to represent the third peak luminance.
7. The apparatus of claim 5, wherein, The first parameter also includes first scene information; The second acquisition module includes: The third acquisition unit is used to acquire a fourth brightening factor corresponding to the first scene information by using a synthesis algorithm corresponding to the first scene information, and the second parameter includes the fourth brightening factor. The synthesis algorithm is used to obtain the brightening factor corresponding to the scene information.
8. An electronic device, comprising: It includes a processor and a memory, the memory storing a program or instructions that can run on the processor, the program or instructions being executed by the processor to implement the steps of the image display method as described in any one of claims 1 to 4.
9. A readable storage medium, characterized by, The readable storage medium stores a program or instructions that, when executed by a processor, implement the steps of the image display method as described in any one of claims 1 to 4.