| CPC G06T 5/92 (2024.01) [G06V 10/60 (2022.01); G09G 3/3406 (2013.01); G09G 2320/0626 (2013.01)] | 17 Claims |

|
1. A dynamic range mapping method, comprising:
obtaining a display parameter of a terminal device;
obtaining feature information of image data;
obtaining a first parameter of a first tone mapping curve of the image data, wherein the first parameter comprises a second linear spline curve parameter, the second linear spline curve parameter comprises a slope MB_mid[0][0] of a second linear spline on the first tone mapping curve and/or a maximum value TH3_mid[0] of a luminance value of a range pixel of the second linear spline, the display parameter comprises maximum display luminance MaxDisplay of the terminal device, and the feature information comprises a maximum luminance correction value max_lum of the image data;
when a preset condition is met, obtaining a second parameter of a second tone mapping curve based on the first parameter, the display parameter of the terminal device, and the feature information of the image data, the obtaining the second parameter of the second tone mapping curve based on the first parameter, the display parameter, and the feature information further comprising:
adjusting the curve parameters MB_mid[0][0] and TH3_mid[0] based on the maximum display luminance MaxDisplay and the maximum luminance correction value max_lum to obtain the curve parameters MB[0][0] and TH3[0]; and
performing dynamic range mapping on the image data based on the second parameter of the second tone mapping curve.
|