WO2021218924A1 - 动态范围映射的方法和装置 - Google Patents
动态范围映射的方法和装置 Download PDFInfo
- Publication number
- WO2021218924A1 WO2021218924A1 PCT/CN2021/089981 CN2021089981W WO2021218924A1 WO 2021218924 A1 WO2021218924 A1 WO 2021218924A1 CN 2021089981 W CN2021089981 W CN 2021089981W WO 2021218924 A1 WO2021218924 A1 WO 2021218924A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- parameter
- curve
- value
- brightness
- tone mapping
- Prior art date
Links
- 238000013507 mapping Methods 0.000 title claims abstract description 407
- 238000000034 method Methods 0.000 title claims abstract description 149
- 101710127406 Glycoprotein 5 Proteins 0.000 claims description 41
- 238000012545 processing Methods 0.000 claims description 31
- 238000012937 correction Methods 0.000 claims description 24
- 238000004364 calculation method Methods 0.000 claims description 8
- 230000007704 transition Effects 0.000 claims description 7
- 230000002547 anomalous effect Effects 0.000 abstract 1
- 230000006870 function Effects 0.000 description 75
- 230000008569 process Effects 0.000 description 36
- 238000012546 transfer Methods 0.000 description 33
- 238000005516 engineering process Methods 0.000 description 21
- 238000010586 diagram Methods 0.000 description 12
- 238000004891 communication Methods 0.000 description 11
- 230000003287 optical effect Effects 0.000 description 11
- 238000003860 storage Methods 0.000 description 11
- 239000000047 product Substances 0.000 description 9
- 238000006243 chemical reaction Methods 0.000 description 8
- 238000005286 illumination Methods 0.000 description 8
- 238000004422 calculation algorithm Methods 0.000 description 6
- 230000003068 static effect Effects 0.000 description 6
- 230000006978 adaptation Effects 0.000 description 5
- 230000002159 abnormal effect Effects 0.000 description 4
- 238000003384 imaging method Methods 0.000 description 4
- 238000010606 normalization Methods 0.000 description 4
- 230000008859 change Effects 0.000 description 3
- 230000008878 coupling Effects 0.000 description 3
- 238000010168 coupling process Methods 0.000 description 3
- 238000005859 coupling reaction Methods 0.000 description 3
- 230000009286 beneficial effect Effects 0.000 description 2
- 230000008901 benefit Effects 0.000 description 2
- 238000004590 computer program Methods 0.000 description 2
- 238000000354 decomposition reaction Methods 0.000 description 2
- 238000013461 design Methods 0.000 description 2
- 238000009826 distribution Methods 0.000 description 2
- 230000004310 photopic vision Effects 0.000 description 2
- 230000005855 radiation Effects 0.000 description 2
- 230000004296 scotopic vision Effects 0.000 description 2
- 230000000007 visual effect Effects 0.000 description 2
- NAWXUBYGYWOOIX-SFHVURJKSA-N (2s)-2-[[4-[2-(2,4-diaminoquinazolin-6-yl)ethyl]benzoyl]amino]-4-methylidenepentanedioic acid Chemical compound C1=CC2=NC(N)=NC(N)=C2C=C1CCC1=CC=C(C(=O)N[C@@H](CC(=C)C(O)=O)C(O)=O)C=C1 NAWXUBYGYWOOIX-SFHVURJKSA-N 0.000 description 1
- 230000001186 cumulative effect Effects 0.000 description 1
- 230000000694 effects Effects 0.000 description 1
- 238000007667 floating Methods 0.000 description 1
- 238000004519 manufacturing process Methods 0.000 description 1
- 230000008447 perception Effects 0.000 description 1
- 238000003672 processing method Methods 0.000 description 1
- 238000006467 substitution reaction Methods 0.000 description 1
- 239000013589 supplement Substances 0.000 description 1
- 230000009466 transformation Effects 0.000 description 1
- 230000016776 visual perception Effects 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T5/00—Image enhancement or restoration
- G06T5/90—Dynamic range modification of images or parts thereof
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T5/00—Image enhancement or restoration
- G06T5/90—Dynamic range modification of images or parts thereof
- G06T5/92—Dynamic range modification of images or parts thereof based on global image properties
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06V—IMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
- G06V10/00—Arrangements for image or video recognition or understanding
- G06V10/40—Extraction of image or video features
- G06V10/60—Extraction of image or video features relating to illumination properties, e.g. using a reflectance or lighting model
-
- G—PHYSICS
- G09—EDUCATION; CRYPTOGRAPHY; DISPLAY; ADVERTISING; SEALS
- G09G—ARRANGEMENTS OR CIRCUITS FOR CONTROL OF INDICATING DEVICES USING STATIC MEANS TO PRESENT VARIABLE INFORMATION
- G09G3/00—Control arrangements or circuits, of interest only in connection with visual indicators other than cathode-ray tubes
- G09G3/20—Control arrangements or circuits, of interest only in connection with visual indicators other than cathode-ray tubes for presentation of an assembly of a number of characters, e.g. a page, by composing the assembly by combination of individual elements arranged in a matrix no fixed position being assigned to or needed to be assigned to the individual characters or partial characters
- G09G3/34—Control arrangements or circuits, of interest only in connection with visual indicators other than cathode-ray tubes for presentation of an assembly of a number of characters, e.g. a page, by composing the assembly by combination of individual elements arranged in a matrix no fixed position being assigned to or needed to be assigned to the individual characters or partial characters by control of light from an independent source
- G09G3/3406—Control of illumination source
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N9/00—Details of colour television systems
- H04N9/77—Circuits for processing the brightness signal and the chrominance signal relative to each other, e.g. adjusting the phase of the brightness signal relative to the colour signal, correcting differential gain or differential phase
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T2207/00—Indexing scheme for image analysis or image enhancement
- G06T2207/10—Image acquisition modality
- G06T2207/10024—Color image
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T2207/00—Indexing scheme for image analysis or image enhancement
- G06T2207/20—Special algorithmic details
- G06T2207/20172—Image enhancement details
- G06T2207/20208—High dynamic range [HDR] image processing
-
- G—PHYSICS
- G09—EDUCATION; CRYPTOGRAPHY; DISPLAY; ADVERTISING; SEALS
- G09G—ARRANGEMENTS OR CIRCUITS FOR CONTROL OF INDICATING DEVICES USING STATIC MEANS TO PRESENT VARIABLE INFORMATION
- G09G2320/00—Control of display operating conditions
- G09G2320/06—Adjustment of display parameters
- G09G2320/0626—Adjustment of display parameters for control of overall brightness
Definitions
- the present application relates to the field of display technology, and more specifically, to a method and device for dynamic range mapping.
- Dynamic range is used in many fields to express the ratio of the maximum value and the minimum value of a variable.
- the dynamic range represents the ratio between the maximum brightness and the minimum brightness within the displayable range of the image, that is, the number of grayscale divisions of the image from "brightest” to “darkest", and its unit Candela per square meter (cd/m2), can also be expressed as nits (nits).
- the greater the dynamic range of an image the richer the brightness levels it can represent, and the more realistic the visual effect of the image. Because of the dynamic range in the real world of natural scenes between 10-3 to 106, the dynamic range is very large, so called high dynamic range (high dynamic range, HDR).
- the dynamic range of an ordinary image is a standard dynamic range (standard dynamic range, SDR) or a low dynamic range (low dynamic range, SDR).
- Display devices at the current stage generally call SDR display devices with a dynamic range of less than 0.1 to 400 nits; and HDR display devices with a dynamic range of more than 0.01 to 540 nits.
- Different high dynamic range display devices have different display dynamic ranges, such as 0.01 to 540nits HDR display devices, 0.005 to 1000nits HDR display devices, and so on.
- the dynamic range mapping method is mainly applied in the adaptation process of the front-end HDR signal and the back-end HDR display device, including a high-to-low tone-mapping process and a low-to-high tone mapping process.
- the front end is the collected 4000nit illumination signal, while the HDR display capability of the back-end display device is only 500nit.
- mapping the 4000nit illumination signal to the 500nit display device is a high-to-low mapping process.
- the front end is the 100nit SDR illumination signal collected, and the HDR display capability of the back-end display device is 2000nit. Therefore, mapping the 100nit illumination signal to the 2000nit display device is a mapping process from low to high.
- a dynamic range mapping algorithm based on the "S" curve can be used to adjust the high dynamic range image to the dynamic range that the display device can display. Display within the range.
- the maximum brightness of the image is close to the maximum display brightness of the display device, if the above scheme is still used, it will cause the abnormal phenomenon that the brightness of the pixels of the display device after the mapping is brighter than the original image, which affects the user Experience.
- This application provides a method and device for dynamic range mapping, which helps to prevent the pixel brightness of the terminal device after mapping from being brighter than the original image when the maximum display brightness of the image is close to the maximum display brightness of the display device. The anomaly.
- a dynamic range mapping method including:
- the second parameter of the second tone mapping curve is obtained according to the first parameter, the display parameter of the terminal device, and the feature information of the image data, wherein the second tone mapping curve
- the output brightness at the first point above is not higher than the input brightness at the first point on the second tone mapping curve
- the parameters of the first tone mapping curve are further adjusted, so that the adjusted curve parameter (ie, the second parameter) corresponds to a certain point on the tone mapping curve (ie, the second tone mapping curve).
- the output brightness is not higher than the input brightness corresponding to this point, which helps to avoid the pixel brightness of the terminal device after the mapping is brighter than the original image when the maximum display brightness of the image is close to the maximum display brightness of the display device. The anomaly.
- the embodiments of the present application may be applied to a terminal device, and the terminal device is, for example, a display terminal device.
- the product form of the display device can be set-top boxes, TV display devices, mobile phone display devices, and electronic devices such as webcasting and video application conversion devices.
- the solution provided by the embodiment of the application can be implemented in the form of a hardware chip.
- the solution provided by the embodiment of the application is mainly a software program
- the form of the code is realized, but the embodiment of the present application is not limited to this.
- the image data may be an HDR source or an SDR source, for example, such as pixel data in the image, such as brightness and color data of each pixel.
- the feature information of the image data may be obtained from the metadata M of the image data
- the metadata M may include the curve parameter M curve corresponding to the image data, the target system display actual peak brightness M TPL (targeted system display actual peak luminance), the maximum value of the brightness of the content of the image data MaxSource (the maximum value of the Y component of all pixels, or the maximum value of the maximum value of the RGB component of all pixels), the minimum value MinSource (the minimum of the Y component of all pixels, or all The minimum value of the maximum value of the pixel RGB component), the average value (the average value of the Y component of all pixels, or the average value of the maximum value of all the pixel RGB components), the variation range of the display content, etc., this embodiment of the application does not make this limited.
- the feature information of the image data can also be obtained from the pixel information of the image data V; or the feature information value of the image data with a preset value is used, which is not limited in the embodiment of the present application.
- the display parameter M TPL of the terminal device may include the maximum display brightness MaxDisplay and/or the minimum display brightness MinDisplay of the terminal device, or other parameters, which are not limited in the embodiment of the present application.
- the preset condition when any one of the following conditions is met, the preset condition is established:
- the output brightness at the second point on the first tone mapping curve is higher than the input brightness at the second point on the first tone mapping curve
- the parameter p P1 in the first parameter is greater than a first value Tp, where the first value Tp is obtained according to a P1 in the first parameter and a preset correspondence between a P1 and p P1 , Where Tp represents the threshold of the curve parameter p.
- Tp represents the threshold of the curve parameter p.
- the parameter a P1 in the first parameter is greater than the second value Ta, where the second value Ta is obtained according to the p P1 in the first parameter and the preset correspondence between a P1 and p P1 Among them, Ta represents the threshold of the curve parameter a, when the first parameter a P1 exceeds Ta, it is possible that the output brightness at a certain point on the second tone mapping curve is higher than the input brightness; or
- the product of parameters a P1 parameter p P1 of the first parameter is greater than a third value Tap, wherein the third value is a preset rational number Tap, when the first parameter is a P1 parameter of the parameter p P1 When the product exceeds the Tap, it is possible that the output brightness at a certain point on the second tone mapping curve is higher than the input brightness.
- the third value Tap may be a rational number between 3 and 4, such as 3.2 or 3.4, which is not limited in the embodiment of the present application.
- the embodiment of the present application can satisfy the above-mentioned preset condition, that is, performing tone mapping on the image data according to the first tone mapping curve, which will cause the output brightness of a certain point on the first tone mapping curve to be higher than that of the first tone mapping curve.
- the process of generating the second parameter of the second tone mapping curve described above is performed.
- the second parameter includes a first-order spline parameter
- the first-order spline parameter includes the second tone mapping curve.
- the slope MB[0][0] of the first primary spline and/or the maximum value of the brightness value of the pixel points in the first primary spline TH3[0] and/or the first primary spline The base_offset of the intersection of the spline and the ordinate axis.
- the straight line portion (that is, the first spline) can be used for tone mapping in the dark area of the image data, so that the brightness gain can be controlled.
- it is more convenient to control the second parameter to gradually change from a straight line to a straight line with y x.
- the content is not easy to cause flickering.
- the first parameter includes a second-order spline curve parameter
- the second-order spline curve parameter includes the first tone mapping curve.
- the display parameter includes the terminal
- the feature information includes the maximum brightness correction value max_lum of the image data
- the acquiring the second parameter of the second tone mapping curve according to the first parameter, the display parameter, and the characteristic information includes:
- the curve parameters MB_mid[0][0] and TH3_mid[0] are adjusted to obtain the curve parameters MB[0][0] and TH3 [0].
- the embodiment of the present application can be based on the slope MB_mid[0][0] of the second primary spline in the first tone mapping curve and the maximum value of the brightness value TH3_mid[ 0], and the maximum display brightness MaxDisplay of the terminal device and the maximum brightness correction value max_lum of the image data to obtain the slope MB[0][0] and the first time of the first spline of the second tone mapping curve The maximum value of the brightness value of the pixel point in the interval of the spline TH3[0].
- the curve parameters MB_mid[0][0] and TH3_mid[0] Satisfies the following formula:
- L is the input signal
- G(L) is the inverse function of the function H(L) corresponding to the tone mapping curve
- m_a, m_b, m_m, m_n, k1, k2, k3 are the curve parameters
- G(L, m_a_T) represents
- M_a of G(L) takes the value of m_a_T
- the G(L) values N1 and N2 corresponding to the input variable L are rational numbers
- max(a, b) means to find the larger value of a and b
- min(a, b) means finding the smaller of a and b
- H(L) is
- the first parameter includes a second-order spline curve parameter
- the second-order spline curve parameter includes the first tone mapping curve.
- the display parameter includes the maximum display brightness MaxDisplay of the terminal device
- the characteristic information includes the maximum brightness correction value max_lum of the image data
- the acquiring the second parameter of the second tone mapping curve according to the first parameter, the display parameter, and the characteristic information includes:
- the curve parameters MB_mid[0][0], TH3_mid[0] and/or base_offset_mid are adjusted to obtain the curve parameters MB[0][ 0], TH3[0] and/or base_offset.
- the curve parameters MB_mid[0][0], TH3_mid[0] and/or base_offset_mid, and the curve parameters MB[0][0], TH3[0] and/or base_offset satisfy the following formula:
- L is the input signal
- G(L) is the inverse function of the function H(L) corresponding to the tone mapping curve
- m_a, m_b, m_m, m_n, k1, k2, k3 are the curve parameters
- G(L, m_a_T) represents
- M_a of G(L) takes the value of m_a_T
- the G(L) values N1, N2, and N3 corresponding to the input variable L are rational numbers
- max(a,b) means to find the larger value of a and b
- min( a, b) means finding the smaller of a and b
- H(L) is
- the second parameter includes a cubic spline parameter
- the cubic spline parameter includes an interpolation of a cubic spline on the second tone mapping curve.
- TH3[1] represents the value of the pixel point in the second interval of the cubic spline
- the interpolation point values TH1[1], TH2[1], and TH3[1] of the cubic spline are based on the second one in the first parameter.
- the sub-spline curve parameter TH3[0] and the cubic spline interpolation value TH1[1], TH2[1], TH3[1] are calculated from the preset offset values of the relevant values, as shown below:
- TH3[1] TH2[1]+C*TH2[1]-D*TH1[1];
- B, C, and D are the interpolation points TH1[1], TH2[1], TH3[1] of the cubic spline, and the preset value for calculating the correlation value
- B is the brightness value of the pixel point in the dark transition area
- C and D are preset weighting coefficients corresponding to the brightness values of pixels in the bright area.
- the second degree spline curve parameter and the cubic spline interpolation point value TH1[1], TH2[1], TH3[1] of the first parameter are preset for calculating related values. Offset value, the interpolation point values TH1[1], TH2[1], TH3[1] of the cubic spline in the second parameter can be obtained.
- the interpolation point values TH1[1], TH2[1], and TH3[1] of the cubic spline are based on the second one in the first parameter.
- the sub-spline curve parameters TH3[0] and the cubic spline interpolation point values TH1[1], TH2[1], TH3[1] are calculated from the relevant values, as shown below:
- TH1[1] 3Spline_TH[i][0][w];
- TH2[1] 3Spline_TH[i][0][w]+3Spline_TH_Delta1[i][1][w];
- TH3[1] 3Spline_TH[i][0][w]+3Spline_TH_Delta1[i][1][w]+3Spline_TH_Delta1[i][2][w];
- 3Spline_TH_Delta1[i][1][w] 3Spline_TH_Delta1[i][2][w] are the interpolation points TH1[ 1], TH2[1], TH3[1] calculate the relevant value.
- the interpolation point value TH1[1], TH2[1], TH3[1] of the cubic spline extracted from the metadata and the second cubic spline curve parameter in the first parameter is used.
- the interpolation point values TH1[1], TH2[1], TH3[1] of the cubic spline in the second parameter can be obtained.
- the Y coordinate of the first spline in the second tone mapping curve at TH3[0] is the same as the cubic spline in the second tone mapping curve
- the Y coordinate at TH1[1] is the same
- the first derivative of the first-order spline at TH3[0] is the same as the first-order derivative of the cubic spline at TH1[1].
- the Y coordinate of the first cubic spline in the second tone mapping curve at TH2[1] is the same as that in the second tone mapping curve.
- the Y coordinate of the second cubic spline at TH2[1] is the same, and the first derivative of the first cubic spline at TH2[1] is the same as the second cubic spline at TH2[1]
- the first derivative at is the same.
- the first cubic spline curve and the second cubic spline curve in the second tone mapping curve can be continuous at TH[2].
- the Y coordinate of the second cubic spline in the second tone mapping curve at TH3[1] is the same as that of the second cubic spline in the second tone mapping curve.
- the Y coordinate of the third tone mapping function at TH3[1] is the same, and the first derivative of the second cubic spline at TH3[1] is the same as that of the third tone mapping function at TH3[1] The first derivative is the same.
- the second cubic spline curve in the second tone mapping curve and the curve of the third tone mapping function can be continuous at TH[3].
- the acquiring the first parameter of the first tone mapping curve of the image data includes:
- the display terminal device may use the average value average_maxrgb of the brightness of the content of the image data V in the metadata M, and/or the maximum brightness MaxSource, and/or the minimum brightness MinSource, and/or the maximum brightness of the display device.
- the display brightness MaxDisplay, and/or the minimum display brightness MinDisplay of the display device, and/or the curve parameter M curve ( p1 ,p2,...), and/or other data, to obtain the first parameter of the first tone mapping curve the The first parameter can be expressed as P1 curve (X, p1, p2,...), for example.
- X is the input brightness value
- p1, p2,... are the curve parameter values.
- the second parameter further includes a first-order spline parameter, and the first-order spline parameter includes the first first order in the second tone mapping curve.
- the straight line portion (that is, the first spline) can be used for tone mapping in the dark area of the image data, so that the brightness gain can be controlled.
- it is more convenient to control the second parameter to gradually change from a straight line to a straight line with y x.
- some implementations of the first aspect further include:
- the slope Dark is determined.
- the obtaining the maximum value TH3C0 of the brightness value of the pixel point in the initial interval of the first primary spline includes:
- the preset value is for example the decomposition of scotopic vision and photopic vision, that is, the brightness of human eye cone cells and rod cells that change in intensity. , Such as 1nit; or
- the maximum value TH3C0 of the brightness value of the pixels in the initial interval is determined, wherein the metadata includes characteristic data of the number of pixels in the dark area of the histogram.
- the acquiring the initial slope Dark0 of the first primary spline includes:
- the initial slope Dark0 is determined according to the slope value of the preset input value of the first tone mapping curve between 0 and the maximum value TH3C of the brightness value of the pixel point in the interval.
- the maximum value TH3C0 of the brightness value of the pixel point in the initial interval, the maximum value TH3C of the brightness value of the pixel point in the interval, the initial slope Dark0, and the slope Dark satisfies the following formula:
- TH3C TH3C0+(MaxSource-TH3C0)*(WA) N2 ,
- TH3C is greater than TH3C0 and less than MaxSource
- TH3C0 is less than MaxSource
- N1 and N2 are rational numbers greater than 0
- H(L) is the tone mapping curve
- G(L) is the inverse function of H(L).
- the maximum value TH3C0 of the brightness value of the pixel point in the initial interval, the maximum value TH3C of the brightness value of the pixel point in the interval, the initial slope Dark0, and the slope Dark satisfies the following formula:
- TH3C TH3C0+(MaxLum-TH3C0)*(WA) N2 ,
- MaxLum is the adjustment value of the maximum brightness of the image data
- TH3C is greater than TH3C0 and less than MaxSource
- TH3C0 is less than MaxSource
- N1 and N2 are rational numbers greater than 0
- H(L) is the tone mapping curve function
- G(L) is said The inverse function of H(L).
- the second parameter further includes a cubic spline curve parameter, and the cubic spline curve parameter includes the first cubic spline curve of the second tone mapping curve.
- the method also includes:
- the second parameter further includes a cubic spline curve parameter, and the cubic spline curve parameter includes the first cubic spline curve of the second tone mapping curve.
- the method also includes:
- the maximum value TH2D of the brightness value of the pixel point in the first interval is determined.
- the maximum value TH2D of the brightness value of the pixel point in the first interval is determined according to the minimum value TH1D of the brightness value of the pixel point in the first interval, include:
- the maximum value of the brightness value TH2D of the pixel point in the first interval is determined.
- the minimum value of the brightness value TH1D of the pixel point in the first interval of the first cubic spline of the second tone mapping curve is The maximum value TH3C of the brightness value of the pixel points in the interval of the spline is the same, the output value of the first spline in the second tone mapping curve and the first cubic spline at TH1D are the same, and the second tone The first-order spline in the curve and the first-order derivative of the first cubic spline at TH1D are the same.
- the cubic spline curve parameter further includes the maximum brightness value of the pixel point in the second interval of the second cubic spline of the second tone mapping curve. Value TH3D;
- the method also includes:
- the maximum value TH3D of the brightness value of the pixel point in the second interval is determined according to the minimum value TH1D of the brightness value of the pixel point in the first interval and the maximum value TH2D of the brightness value of the pixel point in the first interval.
- the determination is made according to the minimum value TH1D of the brightness value of the pixel point in the first interval and the maximum value TH2D of the brightness value of the pixel point in the first interval
- the maximum value TH3D of the brightness value of the pixel point in the second interval includes:
- the third maximum input brightness TH3D is determined according to the minimum value TH1D of the brightness value of the pixel point in the first interval, the maximum value TH2D of the brightness value of the pixel point in the first interval, and the metadata of the image data.
- the minimum value of the brightness value of the pixel point in the second interval of the second cubic spline is the same as the pixel in the first interval of the first cubic spline.
- the maximum value TH2D of the brightness value of the points is the same, the output value of the first cubic spline and the second cubic spline at the maximum value TH2D of the brightness value of the interval pixel point is the same, and the first cubic spline and the second cubic spline have the same output value at the maximum value TH2D of the brightness value of the pixel
- the first derivative of the first cubic spline and the second cubic spline at the maximum value TH2D of the brightness value of the pixel point in the interval is the same.
- the first cubic spline curve and the second cubic spline curve in the second tone mapping curve can be continuous at TH2D.
- the second parameter further includes a curve parameter of a tone mapping sub-function of the second tone mapping curve, and a third interval pixel of the tone mapping sub-function
- the minimum value of the brightness value of a point is the same as the maximum value TH3D of the pixel point in the second interval, and the second cubic spline and the tone mapping sub-function have the brightness value of the pixel point in the second interval
- the output value at the maximum value TH3D of is the same, and the first derivative of the second cubic spline and the tone mapping sub-function at the maximum value of the brightness value TH3D of the pixel point in the second interval is the same.
- the second cubic spline curve in the second tone mapping curve and the curve of the tone mapping sub-function can be made continuous at TH3D.
- the first parameter includes a P1 and p P1 , and the first parameter is obtained according to the first parameter, the display parameter, and the characteristic information.
- the second parameter of the two tone mapping curve includes:
- the first parameter includes a P1 and p P1 , and the first parameter is obtained according to the first parameter, the display parameter, and the characteristic information.
- the second parameter of the two tone mapping curve includes:
- the first parameter includes a P1 and p P1 , and the first parameter is obtained according to the first parameter, the display parameter, and the characteristic information.
- the second parameter of the two tone mapping curve includes:
- the first parameter p P1 replace Tap / a P1, or replaced with the Tap / p P1 of the first parameter is a P1;
- p P1 of the first parameter by replacing a Tap / a P1, or to replace the first parameter is a P1 Tap / p P1
- the first parameter and the second parameter after the replacement is capable of It helps to make the output brightness at the first point on the second tone mapping curve not higher than the input brightness at the first point on the second tone mapping curve.
- a device for dynamic range mapping which includes an acquisition unit, a processing unit, and a mapping unit.
- the acquiring unit is used to acquire the display parameters of the terminal device
- the acquiring unit is also used to acquire characteristic information of the image data
- the acquiring unit is further configured to acquire the first parameter of the first tone mapping curve of the image data
- the processing unit is configured to obtain the second parameter of the second tone mapping curve according to the first parameter, the display parameter of the terminal device, and the characteristic information of the image data when the preset condition is established, wherein the The output brightness at the first point on the second tone mapping curve is not higher than the input brightness at the first point on the second tone mapping curve;
- the mapping unit is configured to perform dynamic range mapping on the image data according to the second parameter of the second tone mapping curve.
- the preset condition when any one of the following conditions is met, the preset condition is established:
- the output brightness at the second point on the first tone mapping curve is higher than the input brightness at the second point on the first tone mapping curve
- the parameter p P1 in the first parameter is greater than a first value Tp, where the first value Tp is obtained according to a P1 in the first parameter and a preset correspondence between a P1 and p P1 ;or
- the parameter a P1 in the first parameter is greater than the second value Ta, where the second value Ta is obtained according to the p P1 in the first parameter and the preset correspondence between a P1 and p P1 ;or
- the product of the parameter a P1 and the parameter p P1 in the first parameter is greater than a third value Tap, where the third value Tap is a preset rational number.
- the second parameter includes a first-order spline curve parameter
- the first-order spline curve parameter includes the second tone mapping curve.
- the slope MB[0][0] of the first primary spline and/or the maximum value of the brightness value of the pixel points in the first primary spline TH3[0] and/or the first primary spline The base_offset of the intersection of the spline and the ordinate axis.
- the first parameter includes a second-order spline curve parameter
- the second-order spline curve parameter includes the first tone mapping curve.
- the display parameter includes the terminal
- the feature information includes the maximum brightness correction value max_lum of the image data
- the processing unit is specifically used for:
- the curve parameters MB_mid[0][0] and TH3_mid[0] are adjusted to obtain the curve parameters MB[0][0] and TH3 [0].
- the curve parameters MB_mid[0][0] and TH3_mid[0] Satisfies the following formula:
- L is the input signal
- G(L) is the inverse function of the function H(L) corresponding to the tone mapping curve
- m_a, m_b, m_m, m_n, k1, k2, k3 are the curve parameters
- G(L, m_a_T) represents
- M_a of G(L) takes the value of m_a_T
- the G(L) values N1 and N2 corresponding to the input variable L are rational numbers
- max(a, b) means to find the larger value of a and b
- min(a, b) means finding the smaller of a and b
- H(L) is
- the first parameter includes a second-order spline parameter
- the second-order spline parameter includes the first tone mapping curve.
- the display parameter includes the maximum display brightness MaxDisplay of the terminal device
- the characteristic information includes the maximum brightness correction value max_lum of the image data
- the processing unit is specifically used for:
- the curve parameters MB_mid[0][0], TH3_mid[0] and/or base_offset_mid are adjusted to obtain the curve parameters MB[0][ 0], TH3[0] and/or base_offset.
- the curve parameters MB_mid[0][0], TH3_mid[0] and/or base_offset_mid, and the curve parameters MB[0][0], TH3[0] and/or base_offset satisfy the following formula:
- L is the input signal
- G(L) is the inverse function of the function H(L) corresponding to the tone mapping curve
- m_a, m_b, m_m, m_n, k1, k2, k3 are the curve parameters
- G(L, m_a_T) represents
- M_a of G(L) takes the value of m_a_T
- the G(L) values N1, N2, and N3 corresponding to the input variable L are rational numbers
- max(a,b) means to find the larger value of a and b
- min( a, b) means finding the smaller of a and b
- H(L) is
- the second parameter includes a cubic spline parameter
- the cubic spline parameter includes an interpolation of a cubic spline on the second tone mapping curve.
- TH3[1] represents the value of the pixel point in the second interval of the cubic spline
- the interpolation point values TH1[1], TH2[1], and TH3[1] of the cubic spline are based on the second one in the first parameter.
- the sub-spline curve parameter TH3[0], the interpolation point values TH1[1], TH2[1], TH3[1] are obtained from the preset offset values, as shown below:
- TH3[1] TH2[1]+C*TH2[1]-D*TH1[1];
- B, C, and D are the interpolation points TH1[1], TH2[1], TH3[1] of the cubic spline, and the preset value for calculating the correlation value
- B is the brightness value of the pixel point in the dark transition area
- C and D are preset weighting coefficients corresponding to the brightness values of pixels in the bright area.
- the interpolation point values TH1[1], TH2[1], and TH3[1] of the cubic spline are based on the second one in the first parameter.
- the sub-spline curve parameter TH3[0], the interpolation point values TH1[1], TH2[1], TH3[1] are calculated by calculating the relevant values, as shown below:
- TH1[1] 3Spline_TH[i][0][w];
- TH2[1] 3Spline_TH[i][0][w]+3Spline_TH_Delta1[i][1][w];
- TH3[1] 3Spline_TH[i][0][w]+3Spline_TH_Delta1[i][1][w]+3Spline_TH_Delta1[i][2][w];
- 3Spline_TH_Delta1[i][1][w] are the interpolation point values TH1[1] extracted from the metadata , TH2[1], TH3[1] calculation related values.
- the Y coordinate of the first spline in the second tone mapping curve at TH3[0] is the same as the cubic spline in the second tone mapping curve
- the Y coordinate at TH1[1] is the same
- the first derivative of the first-order spline at TH3[0] is the same as the first-order derivative of the cubic spline at TH1[1].
- the Y coordinate of the first cubic spline in the second tone mapping curve at TH2[1] is the same as that in the second tone mapping curve.
- the Y coordinate of the second cubic spline at TH2[1] is the same, and the first derivative of the first cubic spline at TH2[1] is the same as the second cubic spline at TH2[1]
- the first derivative at is the same.
- the Y coordinate of the second cubic spline in the second tone mapping curve at TH3[1] is the same as that in the second tone mapping curve.
- the Y coordinate of the third tone mapping function at TH3[1] is the same, and the first derivative of the second cubic spline at TH3[1] is the same as that of the third tone mapping function at TH3[1]
- the first derivative is the same.
- the acquiring unit is specifically configured to:
- a computer-readable storage medium is provided, and instructions are stored in the computer-readable storage medium, which when run on a computer, cause the computer to execute the method described in the first aspect.
- a computer program product containing instructions which when run on a computer, causes the computer to execute the method described in the first aspect.
- an electronic device including the apparatus for processing media data described in the second aspect.
- beneficial effects achieved by the second to fifth aspects of the application and the corresponding implementation manners can refer to the beneficial effects achieved by the first aspect of the application and the corresponding implementation manners, and will not be repeated here.
- Figure 1 is an image of the PQ photoelectric transfer function.
- Figure 2 is an image of the HLG photoelectric transfer function.
- Figure 3 is an image of the SLF photoelectric transfer function.
- FIG. 4 is a schematic diagram of a dynamic range adjustment curve of a high dynamic range image provided by an embodiment of the application.
- Figure 5 shows a schematic diagram of the sigmoid curve.
- Fig. 6 shows a schematic diagram of a Bezier curve.
- FIG. 7 is an example of a mapping curve when the maximum brightness of the image is the same as the maximum display brightness of the display device.
- Fig. 8 shows a schematic diagram of a system architecture provided by an embodiment of the present application.
- FIG. 9 shows a schematic flowchart of a method for dynamic range mapping provided by an embodiment of the present application.
- FIG. 10 shows a schematic block diagram of a device for dynamic range mapping provided by an embodiment of the present application.
- FIG. 11 shows a schematic block diagram of another device for dynamic range mapping provided by an embodiment of the present application.
- Dynamic range is used in many fields to express the ratio of the maximum value to the minimum value of a variable.
- the dynamic range represents the ratio between the maximum brightness value and the minimum brightness value within the displayable range of the image.
- the dynamic range of nature is very large. For example, the brightness of the night scene under the starry sky is about 0.001 cd/m 2 , and the brightness of the sun itself is as high as 1000,000,000 cd/m 2 .
- cd/m 2 candela per square meter
- FIG. 1 shows an example of mapping from the high dynamic range of the real world to the low dynamic range of the display device.
- optical digital imaging for example, the imaging process of a digital camera
- the process of optical digital imaging is to convert the light radiation of a real scene into an electrical signal through an image sensor, and save it as a digital image.
- image display is to reproduce the real scene described by a digital image through the display device. The ultimate goal of both is to enable users to obtain the same visual perception as they directly observe the real scene.
- the light radiation can display the brightness level in the real scene is almost linear, so the light signal is also called a linear signal.
- the light signal is also called a linear signal.
- the electrical signal is also called a non-linear signal.
- the optical electro transfer function represents the conversion relationship between the linear signal of the image pixel and the nonlinear signal.
- the image quantized into 8 bits through the above conversion is a traditional SDR image.
- the SDR image and the transfer function in the above formula (1) perform well on traditional display devices (illuminance is about 100cd/m 2 ).
- the dynamic range that can be displayed by display devices at this stage is continuously increasing.
- Existing consumer-grade HDR displays can reach 600cd/m 2
- high-end HDR displays can reach 2000cd/m 2 , far beyond the display range of traditional SDR display devices. Therefore, in the ITU-R BT.1886 standard protocol, the photoelectric transfer function that is compatible with traditional SDR display devices can no longer well express the display performance of HDR display devices at this stage. Therefore, the photoelectric transfer function needs to be improved to adapt to the upgrade of HDR display devices.
- HDR photoelectric transfer function OETF mainly has the following three types: perceptual quantizer (PQ) photoelectric transfer function, hybrid log-Gamma (HLG) photoelectric transfer function, and scene luminance fidelity (SLF) ) Photoelectric transfer function. These three types of photoelectric transfer functions are the photoelectric transfer functions specified by the audio video coding standard (AVS) standard.
- PQ perceptual quantizer
- HLG hybrid log-Gamma
- SMF scene luminance fidelity
- the PQ photoelectric transfer function is a perceptually quantified photoelectric transfer function proposed based on the brightness perception model of the human eye. See Figure 2, which is an image of the PQ photoelectric transfer function.
- the PQ photoelectric transfer function represents the conversion relationship from the linear signal value of the image pixel to the non-linear signal value of the PQ domain.
- the PQ photoelectric transfer function can be expressed as formula (2):
- L represents the linear signal value, and its value is normalized to [0, 1]
- L' represents the non-linear signal value, and its value range is [0, 1], m 1 , m 2 , c 1 , c 2.
- c 3 is the PQ photoelectric transfer coefficient
- the HLG photoelectric transfer function is improved on the basis of the traditional Gamma curve. See Figure 3, which is an image of the HLG photoelectric transfer function.
- the HLG photoelectric transfer function uses the traditional Gamma curve in the low section and supplements the log curve in the high section.
- the HLG photoelectric transfer function represents the conversion relationship from the linear signal value of the image pixel to the non-linear signal value of the HLG domain.
- the HLG photoelectric transfer function can be expressed as formula (3):
- the SLF photoelectric transfer function is an optimal curve obtained according to the brightness distribution of an HDR scene under the premise of satisfying the optical characteristics of the human eye. See Figure 4, which is an image of the SLF photoelectric transfer function.
- the SLF photoelectric transfer curve represents the conversion relationship from the linear signal value of the image pixel to the non-linear signal value of the SLF domain.
- the conversion relationship from the linear signal value of the image pixel to the non-linear signal value of the SLF domain is shown in formula (4):
- the SLF photoelectric transfer function can be expressed as formula (5):
- the dynamic range mapping method is mainly used in the adaptation process of front-end HDR signals and back-end HDR display devices, including tone-mapping from high to low, and tone-mapping from low to high process.
- the front end is the collected 4000nit illumination signal, while the HDR display capability of the back-end display device (such as TV series, tablet computer, etc.) is only 500nit. Therefore, mapping the 4000nit illumination signal to the 500nit display device is a high To the low tone-mapping process.
- the front end is the collected 100nit SDR illumination signal, and the HDR display capability of the back-end display device is 2000nit. Therefore, mapping the 100nit illumination signal to the 2000nit display device is a kind of tone-mapping from low to high. process.
- Dynamic range mapping methods can be divided into static dynamic range mapping and dynamic dynamic range mapping.
- the static dynamic range mapping method is based on the same video content or the same hard disk content, and the overall tone mapping process is performed from a single data, that is, the processing curve of the same video content or hard disk content is usually the same.
- the advantage of this method is that it carries less information and the processing flow is relatively simple.
- the disadvantage of this method is that each scene uses the same curve for tone mapping, which may cause loss of information in some scenes. For example, if the curve focuses on protecting the bright area, some details will be lost in some extremely dark scenes, or it will be invisible at all, which will affect the user experience.
- the dynamic mapping method is dynamically adjusted according to a specific area, each scene or according to the content of each frame.
- the advantage of this method is that different curve processing can be performed according to a specific area, each scene or each frame, so that the processed image display result will be better.
- the disadvantage is that each frame or each scene needs to carry relevant scene information, and the amount of information carried is relatively large.
- the five tone-mapping technologies are described below.
- the first technique is the tone-mapping process based on the sigmoid curve proposed by Dolby.
- Figure 5 shows a schematic diagram of the sigmoid curve.
- the abscissa represents the input brightness, that is, the brightness of the HDR image before the dynamic range adjustment
- the ordinate represents the output brightness, that is, the brightness of the image after the dynamic range adjustment.
- the shape of the sigmoid curve is "S", and the slope of the curve first rises and then falls.
- a source adaptation level with a brightness of about 300 cd/m 2 can be mapped to a target adjustment level with a brightness of about 30 cd/m 2 ( target adaptation level).
- the second technique is the tone-mapping process based on Bezier curves.
- Fig. 6 shows a schematic diagram of a Bezier curve.
- the abscissa in FIG. 6 represents the input brightness, that is, the brightness of the HDR image before the dynamic range adjustment
- the ordinate represents the output brightness, that is, the brightness of the image after the dynamic range adjustment.
- the Bezier curve is a linear mapping process in the range of input brightness from 0 to K s
- the range of input brightness from K s to 1 is an "S" curve, and the slope of the curve first rises and then falls.
- the third technique is a tone-mapping process based on the S-curve perceived by the human eye.
- the form of the curve is shown in the following formula (6):
- L and L′ represent normalized electrical or optical signals, the value of a ranges from 0.0 to 1.0, the value of b ranges from 0.0 to 1.0, and the values of p, n, and m
- the range is between 0.1 and N, N is a rational number greater than 0.1, L'is a rational number in the range of 0.0 to 1.0, L is a rational number in the range of 0.0 to 1.0, and k1, k2, and k3 are rational numbers. .
- the fourth technique is a tone-mapping process that combines cubic splines and straight S-shaped curves. Among them, the form of part of the curve is shown in the following formula (7):
- L and L' are normalized electrical or optical signals.
- the value of a ranges from 0.0 to 1.0
- the value of b ranges from 0.0 to 1.0
- the value of p, n, and m ranges from 0.1 to N
- N is a rational number greater than 0.1.
- L' is a rational number in the range of 0.0 to 1.0
- L is a rational number in the range of 0.0 to 1.0
- k1, k2, and k3 are rational numbers
- k1 and k2 are not 0 at the same time
- K3 is not 0.
- TH1[i], TH2[i], and TH3[i] are rational numbers ranging from 0.0 to 1.0.
- Technique 5 is another tone-mapping process that combines cubic splines and straight S-shaped curves. Among them, the form of part of the curve is shown in the following formula (8):
- L and L' are normalized electrical or optical signals.
- the value of a ranges from 0.0 to 1.0
- the value of b ranges from 0.0 to 1.0
- the value of p, n, and m ranges from 0.1 to N
- N is a rational number greater than 0.1.
- L' is a rational number in the range of 0.0 to 1.0
- L is a rational number in the range of 0.0 to 1.0
- k1, k2, and k3 are rational numbers.
- LT is the default rational number, and the range is 0.0 ⁇ 1.0.
- TH1[i], TH2[i], and TH3[i] are rational numbers ranging from 0.0 to 1.0.
- Metadata related to curve parameters will be sent in the dynamic metadata.
- the dynamic metadata definition related to St2094-40 includes histogram information (distribution MaxRGB), and also includes Bezier curve parameters (Bezier curve anchors) for direct curve generation.
- the metadata includes the target system display actual peak luminance.
- Metadata can transmit information such as maximum, minimum, and average values, as well as curve parameters such as p, m, a, b, n, K1, K2, and K3.
- the dynamic range mapping algorithm of the above technique 1 to technique 5 can be used to adjust the high dynamic range image to be displayed within the dynamic range that the display device can display.
- the maximum brightness of the image is close to the maximum display brightness of the display device, if the dynamic range mapping algorithm of the above techniques 1 to 5 is still used, the brightness of the pixels of the display device after the mapping will be higher than that of the original image. An abnormal phenomenon that is still bright.
- FIG. 7 shows an example of a tone-mapping curve when the maximum brightness of the image is the same as the maximum display brightness of the display device (for example, both are 500 cd/m 2 ).
- this application provides a dynamic range mapping method.
- the parameters of the original tone mapping curve are adjusted so that the adjusted parameters correspond to
- the output brightness of the tone mapping curve is not higher than its input brightness, which helps to avoid the abnormal phenomenon that the brightness of the pixels of the display device after the mapping is brighter than the original image.
- the original tone mapping curve may be a fixed curve that is adjusted to display the actual peak brightness according to the target system in the metadata of the image data, for example, the tone mapping curve of the above-mentioned technique one to the five techniques.
- FIG. 8 shows a schematic diagram of a system architecture of a method for dynamic range mapping provided by an embodiment of the present application.
- the front end can obtain HDR content through collection and production, and send the HDR content and the metadata of the HDR content to the display end via the transport layer.
- the display end may include an HDR display device and then an SDR display device.
- the display terminal includes an HDR display device
- the HDR content can be mapped to the HDR display device
- the display terminal includes an SDR display device
- the HDR content can be mapped to the SDR display device.
- the product form of the display terminal may be a set-top box, a TV display device, a mobile phone display device, and electronic devices such as webcasting and video application conversion devices.
- the solution provided by the embodiment of the application can be implemented in the form of a hardware chip.
- the solution provided by the embodiment of the application is mainly a software program The form of the code is realized, but the embodiment of the present application is not limited to this.
- the embodiment of the present application only uses the application scenario in FIG. 7 as an example for description, but the system architecture applied to the embodiment of the present application is not limited to this.
- the front end can also obtain SDR content.
- the display end includes an HDR display device
- the SDR content can be mapped to the HDR display device.
- FIG. 9 is a schematic flowchart of a method 900 for dynamic range mapping provided by an embodiment of the application.
- the method 900 is suitable for the application scenario provided in FIG. 8, for example, executed by the display terminal shown in FIG. 8.
- the method 900 includes the following steps 910 to 940.
- the image data (which can be expressed as V) may be HDR image data or SDR image data, which is not limited in the embodiment of the present application.
- the display terminal device may receive a video source from the front end, which mainly contains image data V, such as pixel data.
- image data V such as pixel data.
- a 4K video source it may include the brightness and color data of 3840*2160 pixels.
- the embodiment of the present application does not limit the format of the image data V.
- the image data V may be image data in Y (luminance) UV (chrominance) space, or image data in RGB pixel space.
- the image data V may have a bit width of 8 bits, or 10 bits, or 12 bits.
- the characteristic information of the image data can also be acquired, for example, from metadata M.
- the metadata M of the image data V is used to represent the data characteristics of the image data, for example, it may include the format of the image data, or the curve parameter M curve corresponding to the image data V, and the target system display actual peak brightness M TPL (targeted system display actual peak luminance), the maximum value of the brightness of the content of the image data MaxSource (the maximum value of the Y component of all pixels, or the maximum value of the maximum value of the RGB component of all pixels), the minimum value MinSource (the minimum value of the Y component of all pixels, Or the minimum value of the maximum value of the RGB components of all pixels), the average value (the average value of the Y components of all pixels, or the average value of the maximum value of all pixels RGB components), the variation range of the display content, etc., the embodiments of the present application There is no restriction on this.
- the feature information of the image data can also be obtained from the pixel information of the image data V; or the feature information value of the image data with a preset value is used, which is not limited in the embodiment of the present application.
- the embodiment of the present application does not limit the format of the curve parameter M curve.
- the curve parameter M curve included in the metadata may be p, m, a, b, n, K1, K2, K3, and so on.
- the metadata includes dynamic metadata and static metadata.
- dynamic metadata for color volume transform or related standards for static metadata (static metadata).
- static metadata static metadata
- the metadata can be packaged together with the image, for example, it contains SEI packages of different file formats and different encoding standards, including some package structures related to the HDMI of the hardware.
- the display terminal device may also obtain the display parameter M TPL (also referred to as the display brightness parameter) of the display terminal device (that is, the actual terminal device P, or the local display device).
- the display parameter M TPL may include the maximum display brightness MaxDisplay of the display terminal device and the minimum display brightness MinDisplay of the display terminal device, or other parameters, which are not limited in the embodiment of the present application.
- the display terminal device may obtain the first parameter of the first tone mapping curve of the image data V according to the metadata M of the image data V and the display parameter M TPL of the display terminal device.
- the display parameter M TPL the display terminal device may obtain the first parameter of the first tone mapping curve of the image data V according to the metadata M of the image data V and the display parameter M TPL of the display terminal device.
- the average brightness average_maxrgb of the content of the image data V in the metadata M and/or the maximum brightness MaxSource, and/or the minimum brightness MinSource, and/or the maximum display brightness MaxDisplay of the display terminal device
- And/or the minimum display brightness MinDisplay of the display device, and/or the curve parameter M curve (p1,p2,...) and/or other data to obtain the first parameter of the first tone mapping curve, which can be expressed as P1 curve ( X, p1, p2,).
- X is the input brightness value
- p1, p2,... are the curve parameter values.
- the form of the first parameter P1 curve of the first tone mapping curve is not limited in the embodiment of the present application.
- examples of the data used in generating the first parameter P1 curve embodiment of the present application, or to generate the first algorithm is not limited in parameter P1 curve.
- the data for generating the first parameter P1 curve may be metadata, and/or display parameters of the display terminal device, or other preset data.
- the curve parameter M curve includes parameter values (p, m, a, b, n, K1, K2, K3) and (TH1[i], TH2[i ], TH3[i], MB0),
- the first parameter P1 curve of the first tone mapping curve can be obtained according to the curve parameter M curve , for example (p P1 , m P1 , a P1 , b P1 , n P1 , K1 P1 , K2 P1 , K3 P1 , TH1[i], TH2[i], TH3[i], MD1[i], MC1[i], MB1[i], MA1[i], MD2[i], MC2[i ], MB2[i], MA2[i], MB3).
- the curve parameter M curve includes parameter values (p, m, a, b, n, K1, K2, K3) and (TH1[i], TH2[ i], TH3 [i], MB0), a first tone mapping curve may be obtained based on the first parameter m curve curve parameters P1 curve, for example, (p P1, m P1, a P1, b P1, n P1, K1 P1 , K2 P1 , K3 P1 , TH1[i], TH2[i], TH3[i], MD1[i], MC1[i], MB1[i], MA1[i], MD2[i], MC2[ i], MB2[i], MA2[i]).
- the first tone mapping curve in the embodiment of the present application is an example of the above-mentioned original tone mapping curve, including but not limited to the tone mapping curve used in technique 1, technique 2, technique 3, technique 4, and technique 5.
- the first parameter of the first mapping curve in this application includes but is not limited to the parameters related to the tone mapping curve used in technique one, technique two, technique three, technique four, and technique five.
- the output brightness at the first point on the second tone mapping curve is not higher than the input brightness at the first point on the second tone mapping curve. That is, within the input brightness range of the second tone mapping curve, the output brightness obtained by mapping any input brightness according to the second tone mapping curve is not higher than the input brightness.
- the second parameter is used to perform dynamic range mapping on the image data, and can be expressed as R curve .
- the input brightness of the tone mapping curve can be linear light, it can also be a non-linear value, and it may also be a value after the linear relationship is normalized (for example, 10000 is regarded as 1, or the maximum luminance of the content is regarded as 1).
- This application The embodiment does not limit this.
- the second parameter R curve of the second tone mapping curve can be based on the first parameter P1 curve , and the average value average_maxrgb of the brightness of the content of the image data V, and/or the maximum value of the brightness MaxSource, and/or the minimum value of the brightness MinSource, and/or the value of the display device.
- the maximum display brightness MaxDisplay, and/or the minimum display brightness MinDisplay of the display terminal device, and/or other data are used to obtain the second parameter R curve of the second tone mapping curve.
- the second parameter R curve may have the form shown in the following formula (9):
- L and L' are normalized electrical or optical signals, and Dark, TH3C, TH2D, TH3D, MD1D, MC1D, MB1D, MA1D, MD2D, MC2D, MB2D, and MA2D are rational numbers.
- the preset condition such as performing tone mapping on the image data according to the first tone mapping curve, will cause the output brightness of a certain point on the first tone mapping curve to be higher than that on the first tone mapping curve. The input brightness at this point.
- the output brightness of the tone mapping curve differs from the input brightness within the first range, it can be considered that the output brightness and the input brightness are basically the same.
- the part of the tone mapping curve where the output brightness is higher than the input brightness is within the first range, it can be considered that the two are basically the same.
- the part of the tone mapping curve where the output brightness is higher than the input brightness exceeds the first range, it can be considered that the output brightness is higher than the input brightness.
- the tone mapping of the image data according to the first parameter will cause the output brightness of the first tone mapping curve to be higher than the input brightness of the first tone mapping curve
- the first step of generating the second tone mapping curve is executed. The process of two-parameter R curve.
- the foregoing preset condition may be that the parameter p P1 in the first parameter is greater than the first value Tp, where the first value Tp is based on a P1 in the first parameter and the preset condition Suppose the corresponding relationship between a P1 and p P1 is obtained.
- Tp represents the threshold value of the curve parameter p in technology three or technology four or technology five.
- the first parameter P1 curve includes parameters such as a P1 and p P1 .
- a P1 can be taken as Ta, and the corresponding first value Tp can be obtained by looking up the table Tpa(Tp, Ta).
- the table Tpa(Tp, Ta) is an example of the preset correspondence between a P1 and p P1.
- Ta represents the threshold value of the curve parameter a in technology three or technology four or technology five.
- p P1 in the first parameter P1 curve can be replaced with the first value Tp obtained by looking up the table.
- the replaced first parameter P1 curve can be the aforementioned second parameter R curve .
- the foregoing preset condition may be that the parameter a P1 in the first parameter is greater than the second value Ta, where the second value Ta is based on the p P1 in the first parameter, and The preset correspondence between a P1 and p P1 is obtained.
- the first parameter a P1 exceeds Ta, it is possible that the output brightness at a certain point on the second tone mapping curve is higher than the input brightness.
- the first parameter P1 curve includes parameters such as a P1 and p P1 .
- p P1 can be used as Tp
- the corresponding second value Ta can be obtained by looking up the table Tpa(Tp, Ta).
- the table Tpa(Tp, Ta) is an example of the preset correspondence between a P1 and p P1.
- a P1 in the first parameter P1 curve can be replaced with the second value Ta obtained by looking up the table.
- the above-mentioned second parameter R curve can be regarded as the first parameter after replacement.
- the table Tpa(Tp, Ta) is a preset combination of rational numbers, such as (3.5, 0.879), (4.5, 0.777), etc. It should be noted that for values that do not appear in the table, the value can be generated using linear difference, adjacent values, or weighted average values of adjacent values.
- the embodiment of the present application does not limit the specific form of the table Tpa(Tp, Ta).
- the table Tpa(Tp, Ta) can also be expressed as a functional relationship between Tp and Ta.
- the foregoing preset condition is that the product of the parameter a P1 and the parameter p P1 in the first parameter is greater than the third value Tap, where the third value Tap is a preset rational number.
- the third value Tap may be a rational number between 3 and 4, such as 3.2 or 3.4, which is not limited in the embodiment of the present application.
- the first parameter P1 curve includes parameters such as a P1 and p P1 .
- the parameter may determine whether the product of a P1 parameter p P1 of a P1 * p P1 greater than a predetermined value Tap.
- a P1 *p P1 is greater than Tap
- the preset condition is satisfied.
- it may be a first parameter p P1 P1 curve is replaced Tap / a P1, or replacing the first parameter is a P1 Tap / p P1.
- the above-mentioned second parameter R curve can be regarded as the first parameter after replacement.
- the first parameter P1 curve corresponding to the first tone mapping curve can also be converted to absolute brightness space, such as linear space, or non-linear space such as PQ and HLG.
- absolute brightness space such as linear space, or non-linear space such as PQ and HLG.
- the parameters of the first tone mapping curve are further adjusted, so that the adjusted curve parameter (ie, the second parameter) corresponds to a certain point on the tone mapping curve (ie, the second tone mapping curve).
- the output brightness is not higher than the input brightness corresponding to this point, which helps to avoid the pixel brightness of the terminal device after the mapping is brighter than the original image when the maximum display brightness of the image is close to the maximum display brightness of the display device. The anomaly.
- the above-mentioned second parameter further includes a first-order spline parameter
- the first-order spline parameter includes a first-order spline in the second tone mapping curve (may be recorded as a first-order spline)
- the maximum value TH3C of the brightness value of the pixel point in the interval also referred to as the first maximum input brightness TH3C
- the slope of the first primary spline Dark is, for example, a tone mapping curve in which the input brightness in the above formula (9) is less than TH3C, that is, Dark ⁇ L, L ⁇ TH3C.
- L ⁇ TH3C is the interval pixel point of the first spline.
- the display terminal device may obtain the maximum value TH3C0 (also referred to as the initial first maximum input brightness TH3C0) of the brightness value of the pixel point in the initial interval of the first spline, and the initial slope Dark0, and then according to this
- the initial first maximum input brightness TH3C0, the above-mentioned first maximum input brightness TH3C is determined, and the slope Dark is determined according to the initial slope Dark0.
- the display terminal device may determine the aforementioned initial first maximum input brightness TH3C0 according to the first parameter P1 curve.
- a first-order spline in the first tone mapping curve which can be recorded as a second-order spline, such as the above technique two, technique four or technique five
- it can be determined that the initial first maximum input brightness TH3C0 is The maximum value of the brightness value of the pixel point in the interval of the second spline.
- the display terminal device determines the initial first maximum input brightness TH3C0 according to the preset value.
- the preset value may be the decomposition of scotopic vision and photopic vision, that is, the brightness of the human eye cone cells and rod cells corresponding to the corresponding strength, such as 1 nit.
- the display terminal device determines the initial first maximum input brightness TH3C0 according to the metadata M of the image data V.
- the metadata M includes characteristic data of the number of pixels in the dark area of the histogram, such as the characteristic brightness position of the number of pixels in the dark area of the histogram, or the brightness of the dark area pixels from dark to bright pixels/accumulated pixels, or from The cumulative number of pixels from 0 to characteristic brightness accounts for more than a preset ratio of total pixels.
- the display terminal device may determine the initial slope Dark0 according to the first parameter P1 curve.
- the initial slope Dark0 can be determined to be the slope of the second-order spline, such as MB0 in technique four or technique five. .
- the display terminal device may determine the initial slope Dark0 according to the ratio of the fourth value to the first maximum input brightness TH3C, where the fourth value is the value of the first tone mapping curve at the first maximum input brightness TH3C.
- the display terminal device may determine the initial slope Dark0 according to the slope value of the preset input value of the first tone mapping curve between 0 and the first maximum input brightness TH3C. For example, it may be the average value, the maximum value, or the intermediate value of the slope values between 0 and the first maximum input brightness TH3C, which is not limited in this application.
- the above method of obtaining the initial maximum input brightness TH3C0, or the initial slope Dark0 is only an example, and does not limit the embodiment of the present application, for example, in a manner similar to the above method, or through conventional means of the above method.
- the method of replacing the obtained initial maximum input brightness TH3C0 or the initial slope Dark0 is also within the protection scope of the embodiments of the present application.
- the above-mentioned first maximum input brightness TH3C and slope Dark can be determined according to the following formulas (10) and (11), that is, the first initial maximum input brightness TH3C0, the first maximum input brightness TH3C, the initial slope Dark0 and the slope Dark satisfy the following formula ( 10) and (11).
- TH3C TH3C0+(MaxSource-TH3C0)*(WA) N2 (10)
- N1 and N2 are rational numbers greater than 0
- H(L) is the tone mapping curve
- G(L) is the inverse function of H(L).
- the first maximum input brightness TH3C and the slope Dark can be determined according to the following formulas (12) and (13), that is, the first initial maximum input brightness TH3C0, the first maximum input brightness TH3C, the initial slope Dark0 and the slope Dark satisfy the following formula (12 ) And (13).
- TH3C TH3C0+(MaxLum-TH3C0)*(WA) N2 (12)
- MaxLum is the adjustment value of the maximum brightness MaxSource of the image data
- H(L) is the tone mapping curve function
- G(L) is the inverse function of the H(L). It should be noted that the embodiment of the application does not limit the adjustment method from MaxSource to MaxLum.
- the straight line portion when the image data is subjected to dynamic range mapping according to the second parameter, the straight line portion can be used for tone mapping in the dark area of the image data, so that the brightness gain can be controlled, and it is more convenient to control the second parameter from
- the above-mentioned second tone mapping curve further includes a cubic spline curve
- the second parameter R curve further includes the first interval of pixel points of the first cubic spline of the second tone mapping curve.
- the display terminal device can determine the first cubic spline of the first cubic spline according to the maximum value TH3C of the brightness value of the pixel point in the first spline interval in the second tone mapping curve, that is, the first maximum input brightness TH3C.
- the tone mapping curve corresponding to the first cubic spline may be the tone mapping curve whose input brightness range is greater than or equal to TH3C and less than TH2D in the above formula (9), that is, MD1D ⁇ (L-TH1D) 3 +MC1D ⁇ (L-TH1D) 2 +MB1D ⁇ (L-TH1D)+MA1D, TH1D ⁇ L ⁇ TH2D, where TH1D ⁇ L ⁇ TH2D are the pixels in the first interval.
- the second parameter R curve also includes the maximum value TH2D of the brightness value of the pixel point in the first interval of the first cubic spline, which may also be referred to as the second maximum input brightness TH2D.
- the second maximum input brightness TH2D may be determined according to the maximum value TH1D of the brightness value of the pixel point in the first interval above.
- the second parameter R curve further includes the maximum value TH3D of the brightness value of the pixel point in the second interval of the second cubic spline of the second tone mapping curve, which may also be referred to as the third maximum value.
- Input brightness TH3D the minimum value of the brightness value of the pixel point in the second interval may be the foregoing TH2D.
- the tone mapping curve corresponding to the second cubic spline can be a tone mapping curve whose brightness range is greater than or equal to TH2D and less than TH3D in the above formula (9), that is, MD2D ⁇ (L-TH2D) 3 +MC2D ⁇ (L-TH2D) 2 +MB2D ⁇ (L-TH2D)+MA2D, TH2D ⁇ L ⁇ TH3D, where TH2D ⁇ L ⁇ TH3D are pixels in the second interval.
- the display terminal device may determine the third maximum input brightness TH3D according to the maximum value TH1D of the brightness values of the pixel points in the first interval and the second maximum input brightness TH2D.
- the display device may use the maximum value TH1D of the brightness value of the pixel in the first interval and the TH1[0], TH2[0], and TH3[0] in the first parameter (or the parameter contained in the metadata M).
- TH1[0], TH2[0], TH3[0]) determine the second maximum input brightness TH2D.
- TH2D and TH3D may satisfy the following formula (16-1) and formula (17-1), respectively:
- TH2D TH1D+TH2[0]-TH1[0] (16-1)
- TH3D TH2D+TH3[0]-TH2[0] (17-1)
- the display-end device may use the maximum value TH1D of the brightness value of the pixel point in the first interval and the deltaTH2[0], deltaTH3[0] in the first parameter (or the parameter deltaTH2[0], deltaTH3[0]) to determine the second maximum input brightness TH2D.
- TH2D and TH3D may satisfy the following formula (16-2) and formula (17-2), respectively:
- TH2D TH1D+deltaTH2[0] (16-2)
- TH3D TH2D+deltaTH3[0] (17-2)
- the display device can determine TH2D and TH3D according to TH1D and preset values.
- TH2D and TH3D may satisfy the following formula (18) and formula (19), respectively:
- TH3D TH2D+C*TH2D-D*TH1D (19)
- B is a rational number greater than 0, for example, it can be the offset value corresponding to the brightness value of the pixel in the dark transition zone, the default value can be 0.15; C and D are rational numbers greater than 0, for example, the brightness of the pixel in the bright zone The weighting coefficient corresponding to the value, the default value can be 0.5.
- MD1D, MC1D, MB1D, MA1D, MD2D, MC2D, MB2D, MA2D and other parameters in the second parameter R curve can be determined.
- these parameters can be determined according to the following formulas (14) to (19).
- the minimum value TH1D of the brightness of the pixel points in the first interval of the first cubic spline of the second tone mapping curve and the first maximum input brightness TH3C (that is, the interval pixel of the first order spline)
- the maximum value of the brightness value of the dots (TH3C) is the same.
- the pixel points in the first interval of the first cubic spline of the second tone mapping curve can be made continuous.
- the output values of the first degree spline and the first cubic spline in the second tone mapping curve are the same at TH1D, and the first degree spline and the first cubic spline in the second tone curve have the same output value at TH1D.
- the first derivative of the bars at TH1D is the same, that is, the second tone mapping curve is continuous at TH1D.
- the maximum value of the brightness value of the pixel point in the second interval of the second cubic spline and the maximum value TH2D of the brightness value of the pixel point in the first interval of the first cubic spline that is, the second maximum
- the input brightness TH2D is the same, and the output values of the second cubic spline and the first cubic spline at TH2D are the same.
- the pixel points of the first interval of the first cubic spline of the second tone mapping curve can be made continuous with the pixel points of the second interval of the second cubic spline.
- the first derivative of the second cubic spline and the first cubic spline at TH2D is the same, that is, the second tone mapping curve is continuous at TH2D.
- the second parameter further includes a curve parameter of a tone mapping sub-function of the second tone mapping curve.
- the maximum value TH3D of the brightness value of the pixel points in the second interval that is, the third maximum input brightness TH3D is the same.
- the second interval pixel points of the second cubic spline of the second tone mapping curve can be made continuous with the second interval pixel points corresponding to the tone mapping sub-function.
- the second cubic spline and the tone mapping sub-function have the same output value at TH3D
- the second cubic spline and the tone mapping sub-function have the same first derivative at TH3D, that is, the second hue The mapping curve is continuous at TH3D.
- the values at TH2D of the above two segments of cubic splines can be obtained according to a preset strategy.
- the value of the two cubic splines at TH2D may be the value of the middle point of the line connecting the two points of TH1D and TH3D on the second tone mapping curve with the input brightness.
- the cubic spline curve in the second tone mapping curve can smoothly connect the primary spline curve and the base curve on the one hand, and on the other hand can help to facilitate the control of the gain of the portion adjacent to the straight portion.
- the second tone mapping curve may be acquired, which is used to perform dynamic range mapping on the image data.
- the mapping relationship from the normalized HDR/SDR source data to the normalized HDR/SDR display data can be obtained.
- the mapping value L' can be reversely normalized to between the maximum display capacity and the minimum display capacity of the display terminal device.
- the above reverse normalization calculation can be a non-linear space of PQ, or a linear space of normalization 0 to 1.
- the reverse normalization can be 0-10000nit, or 0.0001-10000nit, and so on.
- the embodiment of the present application does not limit the scope and process of the reverse normalization of the HDR/SDR mapping data L′.
- the subsequent display adaptation process not only includes tone-mapping, but it can also be further adjusted to adjust its saturation and/or color before display. Domain transformation processing, and/or denoising processing, and/or sharpening processing, etc., are not limited in the embodiment of the present application.
- the maximum display capability of the display device can be obtained according to the parameters of the device or the information of the manufacturer.
- the minimum display capability of the display device is usually 0nit, or 1nit, which is not limited in the embodiment of the present application.
- the embodiment of the present application further adjusts the parameters of the tone mapping curve, so that the output brightness of the tone mapping curve corresponding to the adjusted curve parameter is not higher than the input brightness of the tone mapping curve, thereby helping to improve the image quality.
- the maximum display brightness is close to the maximum display brightness of the display device, the abnormal phenomenon that the brightness of the pixels of the display device after the mapping is brighter than the original image is avoided. Therefore, the embodiments of the present application can provide greater flexibility for terminal display devices of different brightness, so as to achieve a better presentation effect under the condition of reasonably adjusting the parameters.
- the first-order spline parameter in the second parameter may include the first-order spline parameter in the second tone mapping curve.
- the slope of the spline for example, it can be expressed as MB[0][0]
- the maximum value of the brightness value of the pixel point in the interval of the first spline for example, it can be expressed as TH3[0]).
- the first-order spline parameter in the second parameter may include the first-order spline parameter in the second tone mapping curve.
- the slope of the spline for example, it can be expressed as MB[0][0]
- the maximum value of the brightness value of the pixel point in the interval of the first spline for example, it can be expressed as TH3[0]
- the first one The base_offset of the intersection of the secondary spline and the ordinate axis.
- the first-order spline parameter (which can be recorded as the second-order spline parameter) included in the above-mentioned first parameter may include the second-order spline parameter in the first tone mapping curve.
- the slope for example, it can be expressed as MB_mid[0][0]
- the maximum value of the brightness value of the pixel points in the interval of the second primary spline for example, it can be expressed as TH3_mid[0]).
- an implementation manner of obtaining the second parameter of the second tone mapping curve may be: according to the maximum display brightness MaxDisplay , The maximum brightness correction value max_lum, adjust the curve parameters MB_mid[0][0] and TH3_mid[0] to obtain the curve parameters MB[0][0] and TH3[0].
- Tm_ap can be obtained according to the preset mapping relationship between m_p_T and m_a_T, for example, obtained by looking up the table (m_p_T, m_a_T), m_p corresponds to the tone mapping curve parameter p, and the preset value Tm_ap(m_p) of m_a obtained according to m_p is m_a_T .
- the input may be the highest display brightness MaxDisplay (the value of the PQ domain) of the display brightness range of the display device, and the value of the frame to be processed Maximum brightness correction value max_lum, targeted_system_display_maximum_luminance in metadata (if targeted_system_display_maximum_luminance does not exist in metadata, targeted_system_display_maximum_luminance is equal to MaxDisplay); the original primary spline curve (i.e., the primary spline curve in the first tone mapping curve) parameter, MB[0 ][0], TH3[0]; color signal mapping curve parameter Ptone_mapping, including m_p, m_m, m_n, m_a, m_b, k1, k2, k3.
- the output can be the primary spline curve (that is, the primary spline of the second tone mapping curve) parameters,
- the curve parameters MB_mid[0][0] and TH3_mid[0] satisfy the following formulas (26) and (27):
- TH3[0] TH3_mid[0]+(MaxSource-TH3_mid[0])*(WA) N2 (26)
- N1 and N2 are rational numbers greater than 0, and G(L) is the inverse function of the mapping curve parameter T curve.
- the curve parameters MB_mid[0][0] and TH3_mid[0] satisfy the following formulas (28) and (29) :
- MaxLum is the maximum brightness correction value (adjustment value of MaxSource)
- G(L) is the inverse function of the mapping curve parameter T curve.
- the curve parameters MB_mid[0][0] and TH3_mid[0] satisfy the following formulas (30) and (31) :
- L is the input signal
- G(L) is the inverse function of the function H(L) corresponding to the tone mapping curve
- m_a, m_b, m_m, m_n, k1, k2, k3 are the curve parameters
- G(L, m_a_T) represents When the parameter M_a of G(L) takes the value of m_a_T, the value of G(L) corresponding to variable L is input.
- H(L, m_a_T) is the same.
- N1 and N2 are rational numbers. For example, the default value of N1 and N2 can be 0.
- max(a,b) means finding the larger value of a and b
- min(a,b) means finding the smaller value of a and b.
- k1 and k2 are not 0 at the same time, and K3 is not 0.
- H(L) is the following examples:
- the above-mentioned first parameter may include a second-order spline parameter
- the second-order spline parameter includes a second-order spline in the first tone mapping curve.
- the display parameter includes the maximum display brightness MaxDisplay of the terminal device
- the characteristic information includes the maximum brightness correction value max_lum of the image data.
- obtaining the second parameter of the second tone mapping curve according to the first parameter, the display parameter, and the characteristic information includes: according to the maximum display brightness MaxDisplay and the maximum brightness correction value max_lum,
- the curve parameters MB_mid[0][0], TH3_mid[0] and/or base_offset_mid are adjusted to obtain the curve parameters MB[0][0], TH3[0] and/or base_offset.
- curve parameters MB_mid[0][0], TH3_mid[0] and/or base_offset_mid, and curve parameters MB[0][0], TH3[0] and/or base_offset satisfy the following formula :
- L is the input signal
- G(L) is the inverse function of the function H(L) corresponding to the tone mapping curve
- m_a, m_b, m_m, m_n, k1, k2, k3 are the curve parameters
- G(L, m_a_T) represents
- M_a of G(L) takes the value of m_a_T
- the G(L) values N1, N2, and N3 corresponding to the input variable L are rational numbers
- max(a,b) means to find the larger value of a and b
- min( a, b) means finding the smaller of a and b
- H(L) is
- the second parameter includes a cubic spline curve parameter
- the cubic spline curve parameter includes an interpolation point value TH1 of a cubic spline on the second tone mapping curve [1], TH2[1], TH3[1], where TH1[1] represents the minimum brightness value of the pixel points in the first interval of the cubic spline, and TH2[1] represents the pixels in the first interval of the cubic spline
- the maximum value of the brightness value of the point and the minimum value of the brightness value of the pixel point in the second interval of the cubic spline, TH3[1] represents the maximum value of the brightness value of the pixel point in the second interval of the cubic spline.
- TH1[1] may be an example of TH1D
- TH2[1] may be an example of TH2D
- TH3[1] may be an example of TH3D.
- the interpolation point values TH1[1], TH2[1], and TH3[1] of the cubic spline can be based on the second cubic spline curve parameter TH3[0] in the first parameter.
- the interpolation point values TH1[1], TH2[1], TH3[1] of the cubic spline are calculated as the preset offset values of the relevant values.
- TH1[1], TH2[1], and TH3[1] satisfy the following formulas (32) to (34):
- B, C, and D are the interpolation points TH1[1], TH2[1], TH3[1] of the cubic spline, and the preset value for calculating the correlation value
- B is the brightness value of the pixel point in the dark transition area
- C and D are preset weighting coefficients corresponding to the brightness values of pixels in the bright area.
- the default value of B may be 0.15
- the default value of C and D may be 0.5.
- the interpolation point values TH1[1], TH2[1], and TH3[1] of the cubic spline can be based on the second cubic spline curve parameter TH3[0 ] And the calculated correlation values of the interpolation point values TH1[1], TH2[1], and TH3[1] of the cubic spline.
- TH1[1], TH2[1], and TH3[1] satisfy the following formulas (35) to (37):
- TH3[1] 3Spline_TH[i][0][w]+3Spline_TH_Delta1[i][1][w]+3Spline_TH_Delta1[i][2][w]
- 3Spline_TH_Delta1[i][1][w] 3Spline_TH_Delta1[i][2][w] are the interpolation points TH1[ 1], TH2[1], TH3[1] calculate the relevant value.
- the coordinates (such as Y coordinates) corresponding to TH1[1], TH2[1], and TH3[1] in the second tone mapping curve may be obtained, for example, they may be expressed as VA1, VA2, and VA2, respectively.
- VA3 the Y coordinate of the primary spline in the second tone mapping curve at TH3[0] is the same as the Y coordinate of the cubic spline in the second tone mapping curve at TH1[1]
- the The first derivative of the primary spline at TH3[0] is the same as the first derivative of the cubic spline at TH1[1].
- the Y coordinate of the first cubic spline in the second tone mapping curve at TH2[1] is the same as that of the second cubic spline in the second tone mapping curve.
- the Y coordinate at TH2[1] is the same, and the first derivative of the first cubic spline at TH2[1] is the same as the first derivative of the second cubic spline at TH2[1].
- the Y coordinate of the second cubic spline in the second tone mapping curve at TH3[1] is the same as the third tone in the second tone mapping curve.
- the Y coordinate of the mapping function at TH3[1] is the same, and the first derivative of the second cubic spline at TH3[1] is the same as the first derivative of the third tone mapping function at TH3[1] same.
- the formula (38) can be obtained according to the first-order spline in the above-mentioned second tone mapping curve:
- GD3 m_a ⁇ m_m ⁇ m_p ⁇ K3 ⁇ m_n ⁇ TH3[1] m_m-1 ⁇ DGD3(L) (43)
- DTH2 (TH2[1]-TH1[1])
- DTH3 (TH3[1]-TH2[1]).
- the MC[0][1], MD[0][1], MB[1][1], MC[1][1], MD[1] in the second parameter can be obtained [1] and other parameters.
- the parameters of the first tone mapping curve are further adjusted, so that the adjusted curve parameter (ie, the second parameter) corresponds to a certain point on the tone mapping curve (ie, the second tone mapping curve).
- the output brightness is not higher than the input brightness corresponding to this point, which helps to avoid the pixel brightness of the terminal device after the mapping is brighter than the original image when the maximum display brightness of the image is close to the maximum display brightness of the display device. The anomaly.
- the dynamic range mapping method of the embodiment of the present application is described in detail above with reference to FIG. 9.
- the following describes the dynamic range mapping apparatus of the embodiment of the present application with reference to FIG. 10 and FIG. 11.
- the described device for dynamic range mapping can execute the steps of the method for dynamic range mapping shown in FIG. 9.
- the above definition of each step in FIG. 9 also applies to the devices shown in FIG. 10 and FIG.
- repeated descriptions are appropriately omitted for the sake of brevity.
- FIG. 10 is a schematic block diagram of an apparatus 1000 for dynamic range mapping according to an embodiment of the present application.
- the device 1000 includes an acquisition unit 1010, a processing unit 1020, and a mapping unit 1030.
- the obtaining unit 1010 is used to obtain display parameters of the terminal device.
- the acquiring unit 1010 is also used to acquire characteristic information of the image data.
- the acquiring unit 1010 is further configured to acquire the first parameter of the first tone mapping curve of the image data.
- the processing unit 1020 is configured to obtain the second parameter of the second tone mapping curve according to the first parameter, the display parameter of the terminal device, and the characteristic information of the image data when the preset condition is established.
- the output brightness at the first point on the second tone mapping curve is not higher than the input brightness at the first point on the second tone mapping curve.
- the mapping unit 1030 is configured to perform dynamic range mapping on the image data according to the second parameter of the second tone mapping curve.
- the preset condition is established:
- the output brightness at the second point on the first tone mapping curve is higher than the input brightness at the second point on the first tone mapping curve
- the parameter pP1 in the first parameter is greater than the first value Tp, where the first value Tp is obtained according to the aP1 in the first parameter and the preset correspondence between aP1 and pP1; or
- the parameter aP1 in the first parameter is greater than the second value Ta, wherein the second value Ta is obtained according to the pP1 in the first parameter and the preset correspondence between aP1 and pP1; or
- the product of the parameter aP1 and the parameter pP1 in the first parameter is greater than a third value Tap, where the third value Tap is a preset rational number.
- the second parameter includes a first-order spline parameter
- the first-order spline parameter includes a first-order spline in the second tone mapping curve.
- the first parameter includes a second-order spline parameter
- the second-order spline parameter includes a second-order spline in the first tone mapping curve
- the display parameter includes the maximum display brightness MaxDisplay of the terminal device
- the feature information includes the maximum brightness correction value max_lum of the image data
- the processing unit 1020 is specifically used for:
- the curve parameters MB_mid[0][0] and TH3_mid[0] are adjusted to obtain the curve parameters MB[0][0] and TH3 [0].
- the curve parameters MB_mid[0][0] and TH3_mid[0] satisfy the following formula:
- L is the input signal
- G(L) is the inverse function of the function H(L) corresponding to the tone mapping curve
- m_a, m_b, m_m, m_n, k1, k2, k3 are the curve parameters
- G(L, m_a_T) represents
- M_a of G(L) takes the value of m_a_T
- the value of G(L) corresponding to the input variable L is the same as H(L, m_a_T)
- N1 and N2 are rational numbers
- max(a, b) means the calculation of a and b
- min(a,b) means to find the smaller value of a and b
- H(L) is
- the second parameter includes a cubic spline curve parameter
- the cubic spline curve parameter includes an interpolation point value TH1 of a cubic spline on the second tone mapping curve [1], TH2[1], TH3[1], where TH1[1] represents the minimum brightness value of the pixel points in the first interval of the cubic spline, and TH2[1] represents the pixels in the first interval of the cubic spline
- the maximum value of the brightness value of the point and the minimum value of the brightness value of the pixel point in the second interval of the cubic spline, TH3[1] represents the maximum value of the brightness value of the pixel point in the second interval of the cubic spline.
- the interpolation point values TH1[1], TH2[1], and TH3[1] of the cubic spline are based on the second cubic spline curve parameter TH3[ 0], the interpolation point values TH1[1], TH2[1], TH3[1] are obtained from the preset offset values, as shown below:
- TH3[1] TH2[1]+C*TH2[1]-D*TH1[1];
- B, C, and D are the interpolation points TH1[1], TH2[1], TH3[1] of the cubic spline, and the preset value for calculating the correlation value
- B is the brightness value of the pixel point in the dark transition area
- C and D are preset weighting coefficients corresponding to the brightness values of pixels in the bright area.
- the interpolation point values TH1[1], TH2[1], and TH3[1] of the cubic spline are based on the second cubic spline curve parameter TH3[ 0], the interpolation point values TH1[1], TH2[1], TH3[1] are calculated by calculating the relevant values, as shown below:
- TH1[1] 3Spline_TH[i][0][w];
- TH2[1] 3Spline_TH[i][0][w]+3Spline_TH_Delta1[i][1][w];
- TH3[1] 3Spline_TH[i][0][w]+3Spline_TH_Delta1[i][1][w]+3Spline_TH_Delta1[i][2][w];
- 3Spline_TH_Delta1[i][1][w] are the interpolation point values TH1[1] extracted from the metadata , TH2[1], TH3[1] calculation related values.
- the Y coordinate of the first-order spline in the second tone mapping curve at TH3[0] and the Y-coordinate of the third-order spline in the second tone mapping curve at TH1[1] are The Y coordinate is the same, and the first derivative of the first-order spline at TH3[0] is the same as the first-order derivative of the cubic spline at TH1[1].
- the Y coordinate of the first cubic spline in the second tone mapping curve at TH2[1] and the second cubic spline in the second tone mapping curve are at The Y coordinate at TH2[1] is the same, and the first derivative of the first cubic spline at TH2[1] is the same as the first derivative of the second cubic spline at TH2[1].
- the Y coordinate of the second cubic spline in the second tone mapping curve at TH3[1] and the third tone mapping function in the second tone mapping curve at TH3 The Y coordinate at [1] is the same, and the first derivative of the second cubic spline at TH3[1] is the same as the first derivative of the third tone mapping function at TH3[1].
- the acquiring unit 1010 is specifically configured to:
- FIG. 11 is a schematic diagram of the hardware structure of an apparatus 1100 for dynamic range mapping according to an embodiment of the present application.
- the apparatus 1100 shown in FIG. 11 can be regarded as a kind of computer equipment.
- the apparatus 1100 can be used as an implementation of the dynamic range mapping apparatus in the embodiment of the present application, and can also be used as the dynamic range mapping method in the embodiment of the present application.
- the device 1100 includes a processor 1101, a memory 1102, an input/output interface 1103, and a bus 1105, and may also include a communication interface 1104.
- the processor 1101, the memory 1102, the input/output interface 1103, and the communication interface 1104 realize the communication connection between each other through the bus 1105.
- the processor 1101 may adopt a general central processing unit (CPU), a microprocessor, an application specific integrated circuit (ASIC), or one or more integrated circuits for executing related programs to Realize the functions required by the modules in the media data processing apparatus of the embodiment of the present application, or execute the media data processing method of the method embodiment of the present application.
- the processor 1101 may be an integrated circuit chip with signal processing capabilities. In the implementation process, the steps of the foregoing method can be completed by an integrated logic circuit of hardware in the processor 701 or instructions in the form of software.
- the above-mentioned processor 1101 may be a general-purpose processor, a digital signal processing (digital signal processing, DSP), an application specific integrated circuit (ASIC), an off-the-shelf programmable gate array (field programmable gate array, FPGA) or other programmable logic devices, Discrete gates or transistor logic devices, discrete hardware components.
- DSP digital signal processing
- ASIC application specific integrated circuit
- FPGA field programmable gate array
- the general-purpose processor may be a microprocessor or the processor may also be any conventional processor or the like.
- the steps of the method disclosed in the embodiments of the present application may be directly embodied as being executed and completed by a hardware decoding processor, or executed and completed by a combination of hardware and software modules in the decoding processor.
- the software module can be located in a mature storage medium in the field, such as random access memory, flash memory, read-only memory, programmable read-only memory, or electrically erasable programmable memory, registers.
- the storage medium is located in the memory 1102, and the processor 1101 reads the information in the memory 1102, and combines its hardware to complete the functions required by the modules included in the apparatus for processing media data in the embodiments of the present application, or perform the functions of the method embodiments of the present application. The method of processing media data.
- the memory 1102 may be a read only memory (ROM), a static storage device, a dynamic storage device, or a random access memory (RAM).
- the memory 1102 may store an operating system and other application programs.
- software or firmware is used to implement the functions required by the modules included in the device for processing media data in the embodiments of the present application, or to execute the method for processing media data in the method embodiments of the present application, it is used to implement the methods provided in the embodiments of the present application.
- the program code of the technical solution is stored in the memory 1102, and the processor 1101 executes operations required by the modules included in the apparatus for processing media data, or executes the method for processing media data provided by the method embodiment of the present application.
- the input/output interface 1103 is used to receive input data and information, and output data such as operation results.
- the communication interface 1104 uses a transceiver device such as but not limited to a transceiver to implement communication between the device 1100 and other devices or a communication network. It can be used as an acquisition module or a sending module in the processing device.
- a transceiver device such as but not limited to a transceiver to implement communication between the device 1100 and other devices or a communication network. It can be used as an acquisition module or a sending module in the processing device.
- the bus 1105 may include a path for transferring information between various components of the device 1100 (for example, the processor 1101, the memory 1102, the input/output interface 1103, and the communication interface 1104).
- the device 1100 shown in FIG. 11 only shows the processor 1101, the memory 1102, the input/output interface 1103, the communication interface 1104, and the bus 1105, those skilled in the art should understand that in the specific implementation process, The device 1100 also includes other devices necessary for normal operation, for example, it may also include a display for displaying the video data to be played. At the same time, according to specific needs, those skilled in the art should understand that the device 1100 may also include hardware devices that implement other additional functions. In addition, those skilled in the art should understand that the device 1100 may also only include the components necessary to implement the embodiments of the present application, and not necessarily include all the components shown in FIG. 11.
- An embodiment of the present application also provides a computer-readable storage medium that stores instructions in the computer-readable storage medium, which when run on a computer, causes the computer to execute the above-mentioned dynamic range mapping method.
- the embodiment of the present application also provides a computer program product containing instructions, which when running on a computer, causes the computer to execute the above-mentioned dynamic range mapping method.
- the disclosed system, device, and method can be implemented in other ways.
- the device embodiments described above are merely illustrative.
- the division of the units is only a logical function division, and there may be other divisions in actual implementation, for example, multiple units or components may be combined or It can be integrated into another system, or some features can be ignored or not implemented.
- the displayed or discussed mutual coupling or direct coupling or communication connection may be indirect coupling or communication connection through some interfaces, devices or units, and may be in electrical, mechanical or other forms.
- the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the objectives of the solutions of the embodiments.
- the functional units in the various embodiments of the present application may be integrated into one processing unit, or each unit may exist alone physically, or two or more units may be integrated into one unit.
- the function is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer readable storage medium.
- the technical solution of the present application essentially or the part that contributes to the existing technology or the part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including Several instructions are used to make a computer device (which may be a personal computer, a server, or a network device, etc.) execute all or part of the steps of the methods described in the various embodiments of the present application.
- the aforementioned storage media include: U disk, mobile hard disk, read-only memory (read-only memory, ROM), random access memory (random access memory, RAM), magnetic disks or optical disks and other media that can store program codes. .
Landscapes
- Engineering & Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Theoretical Computer Science (AREA)
- Multimedia (AREA)
- Signal Processing (AREA)
- Computer Hardware Design (AREA)
- Software Systems (AREA)
- Image Processing (AREA)
- Facsimile Image Signal Circuits (AREA)
- Analysing Materials By The Use Of Radiation (AREA)
Abstract
Description
Claims (28)
- 一种动态范围映射的方法,其特征在于,包括:获取终端设备的显示参数;获取图像数据的特征信息;获取所述图像数据的第一色调映射曲线的第一参数;在预设条件成立时,根据所述第一参数、所述终端设备的显示参数和所述图像数据的特征信息,得到第二色调映射曲线的第二参数,其中,所述第二色调映射曲线上第一点处的输出亮度不高于所述第二色调映射曲线上的所述第一点的输入亮度;根据所述第二色调映射曲线的第二参数对所述图像数据进行动态范围映射。
- 根据权利要求1所述的方法,其特征在于,符合下列任意之一的条件时,则所述预设条件成立:根据所述第一参数对于图像数据进行色调映射时,所述第一色调映射曲线上第二点处的输出亮度高于所述第一色调映射曲线上的所述第二点处的输入亮度;或者所述第一参数中的参数p P1大于第一值Tp,其中,所述第一值Tp是根据所述第一参数中的a P1,以及预设的a P1与p P1的对应关系获得的;或者所述第一参数中的参数a P1大于第二值Ta,其中,所述第二值Ta是根据所述第一参数中的p P1,以及预设的a P1与p P1的对应关系获得的;或者所述第一参数中的参数a P1与参数p P1的乘积大于第三值Tap,其中,所述第三值Tap为预设的有理数。
- 根据权利要求1或2所述的方法,其特征在于,所述第二参数包括第一一次样条曲线参数,所述第一一次样条曲线参数包括所述第二色调映射曲线中的第一一次样条的斜率MB[0][0]和/或所述第一一次样条的区间像素点的亮度值的最大值TH3[0]和/或所述第一一次样条与纵坐标轴交点base_offset。
- 根据权利要求1-3任意之一所述的方法,其特征在于,所述第一参数包括第二一次样条曲线参数,所述第二一次样条曲线参数包括所述第一色调映射曲线中的第二一次样条的斜率MB_mid[0][0]和/或所述第二一次样条的区间像素点的亮度值的最大值TH3_mid[0],所述显示参数包括所述终端设备的最大显示亮度MaxDisplay,所述特征信息包括所述图像数据的最大亮度校正值max_lum;其中,所述根据所述第一参数、所述显示参数和所述特征信息,获取第二色调映射曲线的第二参数,包括:根据所述最大显示亮度MaxDisplay、所述最大亮度校正值max_lum,对所述曲线参数MB_mid[0][0]和TH3_mid[0]进行调整,获取所述曲线参数MB[0][0]和TH3[0]。
- 根据权利要求1-5任意之一所述的方法,其特征在于,所述第二参数包括三次样条曲线参数,所述三次样条曲线参数包括所述第二色调映射曲线上的三次样条的插点值TH1[1]、TH2[1]、TH3[1],其中,TH1[1]表示所述三次样条的第一区间像素点的亮度值的最小值,TH2[1]表示所述三次样条的第一区间像素点的亮度值的最大值和所述三次样条的第二区间像素点的亮度值的最小值,TH3[1]表示所述三次样条的第二区间像素点的亮度值的最大值。
- 根据权利要求6所述的方法,其特征在于,所述三次样条的插点值TH1[1]、TH2[1]、TH3[1]是根据所述第一参数中第二一次样条曲线参数TH3[0]、所述插点值TH1[1]、TH2[1]、TH3[1]的预设偏移值得到的,如下所示:TH1[1]=TH3[0];TH2[1]=TH1[1]+B;TH3[1]=TH2[1]+C*TH2[1]-D*TH1[1];其中,B,C和D为所述三次样条的插点值TH1[1]、TH2[1]、TH3[1]计算相关值的预设值,B为暗区过渡区像素点的亮度值对应的预设偏移值,C和D为亮区像素点的亮度值对应的预设加权系数。
- 根据权利要求6所述的方法,其特征在于,所述三次样条的插点值TH1[1]、TH2[1]、TH3[1]是根据所述第一参数中第二一次样条曲线参数TH3[0]、所述插点值TH1[1]、TH2[1]、TH3[1]的计算相关值计算得到的,如下所示:TH1[1]=3Spline_TH[i][0][w];TH2[1]=3Spline_TH[i][0][w]+3Spline_TH_Delta1[i][1][w];TH3[1]=3Spline_TH[i][0][w]+3Spline_TH_Delta1[i][1][w]+3Spline_TH_Delta1[i][2][w];其中,3Spline_TH[i][0][w]、3Spline_TH_Delta1[i][1][w]、3Spline_TH_Delta1[i][2][w]为从元数据中提取的所述插点值TH1[1]、TH2[1]、TH3[1]的计算相关值。
- 根据权利要求8所述的方法,其特征在于,所述第二色调映射曲线中的一次样条在TH3[0]处的Y坐标与所述第二色调映射曲线中的三次样条在TH1[1]处的Y坐标相同,且所述一次样条在TH3[0]处的一阶导数与所述三次样条在TH1[1]处的一阶导数相同。
- 根据权利要求8或9所述的方法,其特征在于,所述第二色调映射曲线中的第一三次样条在TH2[1]处的Y坐标与所述第二色调映射曲线中的第二三次样条在TH2[1]处的Y坐标相同,且所述第一三次样条在TH2[1]处的一阶导数与所述第二三次样条在TH2[1]处的一阶导数相同。
- 根据权利要求8-10任意之一所述的方法,其特征在于,所述第二色调映射曲线中的第二三次样条在TH3[1]处的Y坐标与所述第二色调映射曲线中的第三色调映射函数在TH3[1]处的Y坐标相同,且所述第二三次样条在TH3[1]处的一阶导数与所述第三色调映射函数在TH3[1]处的一阶导数相同。
- 根据权利要求1-11任意之一所述的方法,其特征在于,所述获取所述图像数据的第一色调映射曲线的第一参数,包括:获取所述图像数据的元数据;根据所述元数据以及所述显示参数,确定所述第一色调映射曲线的第一参数。
- 根据权利要求1-12任意之一所述的方法,其特征在于,所述第一参数包括第二一次样条曲线参数,所述第二一次样条曲线参数包括所述第一色调映射曲线中的第二一次样条的斜率MB_mid[0][0]和/或所述第二一次样条的区间像素点的亮度值的最大值TH3_mid[0]和/或所述第一一次样条与纵坐标轴交点base_offset_mid,所述显示参数包括所述终端设备的最大显示亮度MaxDisplay,所述特征信息包括所述图像数据的最大亮度校正值max_lum;其中,所述根据所述第一参数、所述显示参数和所述特征信息,获取第二色调映射曲线的第二参数,包括:根据所述最大显示亮度MaxDisplay、所述最大亮度校正值max_lum,对所述曲线参数MB_mid[0][0]、TH3_mid[0]和/或base_offset_mid进行调整,获取所述曲线参数MB[0][0]、TH3[0]和/或base_offset。
- 一种动态范围映射的装置,其特征在于,包括:获取单元,用于获取终端设备的显示参数;所述获取单元还用于获取图像数据的特征信息;所述获取单元还用于获取所述图像数据的第一色调映射曲线的第一参数;处理单元,用于在预设条件成立时,根据所述第一参数、所述终端设备的显示参数和所述图像数据的特征信息,得到第二色调映射曲线的第二参数,其中,所述第二色调映射曲线上第一点处的输出亮度不高于所述第二色调映射曲线上的所述第一点的输入亮度;映射单元,用于根据所述第二色调映射曲线的第二参数对所述图像数据进行动态范围映射。
- 根据权利要求15所述的装置,其特征在于,符合下列任意之一的条件时,则所述预设条件成立:根据所述第一参数对于图像数据进行色调映射时,所述第一色调映射曲线上第二点处的输出亮度高于所述第一色调映射曲线上的所述第二点处的输入亮度;或者所述第一参数中的参数p P1大于第一值Tp,其中,所述第一值Tp是根据所述第一参数中的a P1,以及预设的a P1与p P1的对应关系获得的;或者所述第一参数中的参数a P1大于第二值Ta,其中,所述第二值Ta是根据所述第一参数中的p P1,以及预设的a P1与p P1的对应关系获得的;或者所述第一参数中的参数a P1与参数p P1的乘积大于第三值Tap,其中,所述第三值Tap为预设的有理数。
- 根据权利要求15或16所述的装置,其特征在于,所述第二参数包括第一一次样条曲线参数,所述第一一次样条曲线参数包括所述第二色调映射曲线中的第一一次样条的斜率MB[0][0]和/或所述第一一次样条的区间像素点的亮度值的最大值TH3[0]和/或所述第一一次样条与纵坐标轴交点base_offset。
- 根据权利要求15-17任意之一所述的装置,其特征在于,所述第一参数包括第二一次样条曲线参数,所述第二一次样条曲线参数包括所述第一色调映射曲线中的第二一次样条的斜率MB_mid[0][0]和/或所述第二一次样条的区间像素点的亮度值的最大值TH3_mid[0],所述显示参数包括所述终端设备的最大显示亮度MaxDisplay,所述特征信息包括所述图像数据的最大亮度校正值max_lum;其中,处理单元具体用于:根据所述最大显示亮度MaxDisplay、所述最大亮度校正值max_lum,对所述曲线参数MB_mid[0][0]和TH3_mid[0]进行调整,获取所述曲线参数MB[0][0]和TH3[0]。
- 根据权利要求15-19任意之一所述的装置,其特征在于,所述第二参数包括三次样条曲线参数,所述三次样条曲线参数包括所述第二色调映射曲线上的三次样条的插点值TH1[1]、TH2[1]、TH3[1],其中,TH1[1]表示所述三次样条的第一区间像素点的亮度值的最小值,TH2[1]表示所述三次样条的第一区间像素点的亮度值的最大值和所述三次样条的第二区间像素点的亮度值的最小值,TH3[1]表示所述三次样条的第二区间像素点的亮度值的最大值。
- 根据权利要求20所述的装置,其特征在于,所述三次样条的插点值TH1[1]、TH2[1]、TH3[1]是根据所述第一参数中第二一次样条曲线参数TH3[0]、所述插点值TH1[1]、TH2[1]、TH3[1]的预设偏移值得到的,如下所示:TH1[1]=TH3[0];TH2[1]=TH1[1]+B;TH3[1]=TH2[1]+C*TH2[1]-D*TH1[1];其中,B,C和D为所述三次样条的插点值TH1[1]、TH2[1]、TH3[1]计算相关值的预设值,B为暗区过渡区像素点的亮度值对应的预设偏移值,C和D为亮区像素点的亮度值对应的预设加权系数。
- 根据权利要求20所述的装置,其特征在于,所述三次样条的插点值TH1[1]、TH2[1]、TH3[1]是根据所述第一参数中第二一次样条曲线参数TH3[0]、所述插点值TH1[1]、TH2[1]、TH3[1]的计算相关值计算得到的,如下所示:TH1[1]=3Spline_TH[i][0][w];TH2[1]=3Spline_TH[i][0][w]+3Spline_TH_Delta1[i][1][w];TH3[1]=3Spline_TH[i][0][w]+3Spline_TH_Delta1[i][1][w]+3Spline_TH_Delta1[i][2][w];其中,3Spline_TH[i][0][w]、3Spline_TH_Delta1[i][1][w]、3Spline_TH_Delta1[i][2][w]为从元数据中提取的所述插点值TH1[1]、TH2[1]、TH3[1]的计算相关值。
- 根据权利要求22所述的装置,其特征在于,所述第二色调映射曲线中的一次样条在TH3[0]处的Y坐标与所述第二色调映射曲线中的三次样条在TH1[1]处的Y坐标相同,且所述一次样条在TH3[0]处的一阶导数与所述三次样条在TH1[1]处的一阶导数相同。
- 根据权利要求22或23所述的装置,其特征在于,所述第二色调映射曲线中的第一三次样条在TH2[1]处的Y坐标与所述第二色调映射曲线中的第二三次样条在TH2[1]处的Y坐标相同,且所述第一三次样条在TH2[1]处的一阶导数与所述第二三次样条在TH2[1]处的一阶导数相同。
- 根据权利要求22-24任意之一所述的装置,其特征在于,所述第二色调映射曲线中的第二三次样条在TH3[1]处的Y坐标与所述第二色调映射曲线中的第三色调映射函数在TH3[1]处的Y坐标相同,且所述第二三次样条在TH3[1]处的一阶导数与所述第三色调映射函数在TH3[1]处的一阶导数相同。
- 根据权利要求15-25任意之一所述的装置,其特征在于,所述获取单元具体用于:获取所述图像数据的元数据;根据所述元数据以及所述显示参数,确定所述第一色调映射曲线的第一参数。
- 根据权利要求15-26任意之一所述的装置,其特征在于,所述第一参数包括第二一次样条曲线参数,所述第二一次样条曲线参数包括所述第一色调映射曲线中的第二一次样条的斜率MB_mid[0][0]和/或所述第二一次样条的区间像素点的亮度值的最大值TH3_mid[0]和/或所述第一一次样条与纵坐标轴交点base_offset_mid,所述显示参数包括所述终端设备的最大显示亮度MaxDisplay,所述特征信息包括所述图像数据的最大亮度校正值max_lum;其中,处理单元具体用于:根据所述最大显示亮度MaxDisplay、所述最大亮度校正值max_lum,对所述曲线参数MB_mid[0][0]、TH3_mid[0]和/或base_offset_mid进行调整,获取所述曲线参数MB[0][0]、TH3[0]和/或base_offset。
Priority Applications (4)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
EP21796388.3A EP4135316A4 (en) | 2020-04-30 | 2021-04-26 | METHOD AND DEVICE FOR DYNAMIC RANGE IMAGING |
JP2022566031A JP7462072B2 (ja) | 2020-04-30 | 2021-04-26 | ダイナミックレンジのマッピング方法及び機器 |
KR1020227041352A KR102701013B1 (ko) | 2020-04-30 | 2021-04-26 | 동적 범위 맵핑 방법 및 장치 |
US17/975,893 US20230054046A1 (en) | 2020-04-30 | 2022-10-28 | Dynamic range mapping method and apparatus |
Applications Claiming Priority (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010365696.3A CN113596424B (zh) | 2020-04-30 | 2020-04-30 | 动态范围映射的方法和装置 |
CN202010365696.3 | 2020-04-30 |
Related Child Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
US17/975,893 Continuation US20230054046A1 (en) | 2020-04-30 | 2022-10-28 | Dynamic range mapping method and apparatus |
Publications (1)
Publication Number | Publication Date |
---|---|
WO2021218924A1 true WO2021218924A1 (zh) | 2021-11-04 |
Family
ID=78237389
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
PCT/CN2021/089981 WO2021218924A1 (zh) | 2020-04-30 | 2021-04-26 | 动态范围映射的方法和装置 |
Country Status (7)
Country | Link |
---|---|
US (1) | US20230054046A1 (zh) |
EP (1) | EP4135316A4 (zh) |
JP (1) | JP7462072B2 (zh) |
KR (1) | KR102701013B1 (zh) |
CN (2) | CN116132648A (zh) |
TW (1) | TWI790596B (zh) |
WO (1) | WO2021218924A1 (zh) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113850743A (zh) * | 2021-11-30 | 2021-12-28 | 江苏游隼微电子有限公司 | 一种基于自适应参数的视频全局色调映射方法 |
CN114359083A (zh) * | 2021-12-24 | 2022-04-15 | 北京航空航天大学 | 一种面向干扰环境的高动态热红外图像自适应预处理方法 |
Families Citing this family (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US11734806B2 (en) * | 2021-11-24 | 2023-08-22 | Roku, Inc. | Dynamic tone mapping |
CN115761015A (zh) * | 2022-11-16 | 2023-03-07 | 北京奇艺世纪科技有限公司 | 色调映射方法、装置及相关设备 |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1645942A (zh) * | 2004-01-22 | 2005-07-27 | 柯尼卡美能达影像株式会社 | 图像处理装置、摄影装置、图像处理方法及图像处理程序 |
WO2008136629A1 (en) * | 2007-05-03 | 2008-11-13 | Mtekvision Co., Ltd. | Image brightness controlling apparatus and method thereof |
US20170034520A1 (en) * | 2015-07-28 | 2017-02-02 | Canon Kabushiki Kaisha | Method, apparatus and system for encoding video data for selected viewing conditions |
CN107211182A (zh) * | 2015-05-26 | 2017-09-26 | 松下电器(美国)知识产权公司 | 显示方法和显示装置 |
CN109155844A (zh) * | 2016-05-16 | 2019-01-04 | Lg 电子株式会社 | 图像处理设备和使用该图像处理设备的图像处理方法 |
Family Cites Families (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104364820B (zh) * | 2012-10-08 | 2018-04-10 | 皇家飞利浦有限公司 | 具有颜色约束的亮度改变图像处理 |
US10708564B2 (en) * | 2015-05-11 | 2020-07-07 | Samsung Electronics Co., Ltd. | Image processing apparatus and image processing method based on metadata |
US20180152686A1 (en) * | 2016-11-28 | 2018-05-31 | Microsoft Technology Licensing, Llc | Tone mapping functions for rendering high dynamic range video on enhanced dynamic range display devices |
KR102122165B1 (ko) * | 2017-02-15 | 2020-06-11 | 돌비 레버러토리즈 라이쎈싱 코오포레이션 | 하이 다이내믹 레인지 이미지들에 대한 톤 곡선 매핑 |
US10403214B2 (en) * | 2017-05-12 | 2019-09-03 | Apple Inc. | Electronic devices with tone mapping to accommodate simultaneous display of standard dynamic range and high dynamic range content |
JP7184544B2 (ja) * | 2018-06-08 | 2022-12-06 | シャープ株式会社 | 表示制御装置、表示装置、テレビジョン、及び表示制御方法 |
US10863157B2 (en) * | 2018-07-06 | 2020-12-08 | Samsung Electronics Co., Ltd. | Guided tone mapping of high dynamic range video based on a Bezier curve for presentation on a display device |
JP2020017079A (ja) | 2018-07-25 | 2020-01-30 | 株式会社朋栄 | トーンマッピング処理及びトーンマッピングパラメータの自動調整更新によるhdr映像変換方法及びその装置 |
CN110867172B (zh) * | 2019-11-19 | 2021-02-26 | 苹果公司 | 动态控制标准动态范围和高动态范围内容的电子设备 |
-
2020
- 2020-04-30 CN CN202211463661.9A patent/CN116132648A/zh active Pending
- 2020-04-30 CN CN202010365696.3A patent/CN113596424B/zh active Active
-
2021
- 2021-04-16 TW TW110113789A patent/TWI790596B/zh active
- 2021-04-26 KR KR1020227041352A patent/KR102701013B1/ko active IP Right Grant
- 2021-04-26 JP JP2022566031A patent/JP7462072B2/ja active Active
- 2021-04-26 EP EP21796388.3A patent/EP4135316A4/en active Pending
- 2021-04-26 WO PCT/CN2021/089981 patent/WO2021218924A1/zh unknown
-
2022
- 2022-10-28 US US17/975,893 patent/US20230054046A1/en active Pending
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1645942A (zh) * | 2004-01-22 | 2005-07-27 | 柯尼卡美能达影像株式会社 | 图像处理装置、摄影装置、图像处理方法及图像处理程序 |
WO2008136629A1 (en) * | 2007-05-03 | 2008-11-13 | Mtekvision Co., Ltd. | Image brightness controlling apparatus and method thereof |
CN107211182A (zh) * | 2015-05-26 | 2017-09-26 | 松下电器(美国)知识产权公司 | 显示方法和显示装置 |
US20170034520A1 (en) * | 2015-07-28 | 2017-02-02 | Canon Kabushiki Kaisha | Method, apparatus and system for encoding video data for selected viewing conditions |
CN109155844A (zh) * | 2016-05-16 | 2019-01-04 | Lg 电子株式会社 | 图像处理设备和使用该图像处理设备的图像处理方法 |
Non-Patent Citations (1)
Title |
---|
See also references of EP4135316A4 |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113850743A (zh) * | 2021-11-30 | 2021-12-28 | 江苏游隼微电子有限公司 | 一种基于自适应参数的视频全局色调映射方法 |
CN114359083A (zh) * | 2021-12-24 | 2022-04-15 | 北京航空航天大学 | 一种面向干扰环境的高动态热红外图像自适应预处理方法 |
CN114359083B (zh) * | 2021-12-24 | 2022-11-29 | 北京航空航天大学 | 一种面向干扰环境的高动态热红外图像自适应预处理方法 |
Also Published As
Publication number | Publication date |
---|---|
CN116132648A (zh) | 2023-05-16 |
JP7462072B2 (ja) | 2024-04-04 |
KR102701013B1 (ko) | 2024-08-29 |
TWI790596B (zh) | 2023-01-21 |
EP4135316A4 (en) | 2023-09-13 |
JP2023523775A (ja) | 2023-06-07 |
US20230054046A1 (en) | 2023-02-23 |
EP4135316A1 (en) | 2023-02-15 |
TW202143693A (zh) | 2021-11-16 |
CN113596424B (zh) | 2022-12-06 |
KR20230003066A (ko) | 2023-01-05 |
CN113596424A (zh) | 2021-11-02 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
WO2021218924A1 (zh) | 动态范围映射的方法和装置 | |
RU2711102C1 (ru) | Устройство и способ улучшения обмена данными изображения на основе нелинейности восприятия яркости между разными возможностями отображения | |
US10692465B2 (en) | Transitioning between video priority and graphics priority | |
US9076224B1 (en) | Image processing for HDR images | |
JP6891882B2 (ja) | 画像処理装置、および画像処理方法、並びにプログラム | |
CN111885312B (zh) | Hdr图像的成像方法、系统、电子设备及存储介质 | |
US11030729B2 (en) | Image processing method and apparatus for adjusting a dynamic range of an image | |
CN107888943B (zh) | 图像处理 | |
US10332481B2 (en) | Adaptive display management using 3D look-up table interpolation | |
CN114866809B (zh) | 视频转换方法、装置、设备、存储介质及程序产品 | |
WO2021073304A1 (zh) | 一种图像处理的方法及装置 | |
US20230140259A1 (en) | Image dynamic range processing method and apparatus | |
CN111724316B (zh) | 处理高动态范围图像的方法和装置 | |
CN112689138B (zh) | 一种图像信号转换处理方法、装置及终端设备 | |
CN116167950B (zh) | 图像处理方法、装置、电子设备及存储介质 | |
WO2021073209A1 (zh) | 处理高动态范围图像的方法和装置 | |
CN118197192A (zh) | 图像显示方法及装置、计算机可读介质和电子设备 | |
TW202404342A (zh) | 產生高動態範圍影像的方法及影像處理系統 |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
121 | Ep: the epo has been informed by wipo that ep was designated in this application |
Ref document number: 21796388 Country of ref document: EP Kind code of ref document: A1 |
|
ENP | Entry into the national phase |
Ref document number: 2022566031 Country of ref document: JP Kind code of ref document: A |
|
ENP | Entry into the national phase |
Ref document number: 2021796388 Country of ref document: EP Effective date: 20221107 |
|
ENP | Entry into the national phase |
Ref document number: 20227041352 Country of ref document: KR Kind code of ref document: A |
|
NENP | Non-entry into the national phase |
Ref country code: DE |