TECHNICAL FIELD
[0001] The present disclosure relates to the technical field of electronic devices, and
in particular, to a television terminal, a method for converting an HDR image into
an SDR image and a computer readable storage medium.
BACKGROUND
[0002] High-Dynamic Range (HDR) TV technology, such as HDR10, Dolby Vison, HLG, etc., refers
to a complete set of processing technologies including filming, editing, and post-processing,
transmitting, receiving, and displaying.
[0003] The aforementioned HDR technologies all adopt BT2020 color space, for significantly
expanding the color gamut range. HDR10 uses Perceptual Quantizer (PQ) with a bit depth
of 10-bits developed by the SMPTE ST 2084, and SMTPE ST2086 static metadata. Dolby
Vision uses PQ with a bit depth of 12-bits developed by the SMPTE ST 2084. HLG uses
Hybrid Log-Gamma (HLG) with a bit depth of 10bits.
[0004] Standard-Dynamic Range (SDR) technology or Low-Dynamic Range (LDR) technology which
is widely used in television broadcasting systems, is corresponding with HDR technology.
SDR adopts BT709 (High Definition) or BT601 (Standard Definition) color space, and
uses 8-bit BT1886 (Gamma). The dynamic range of color or luminance of SDR is much
smaller than that of HDR.
[0005] Nowadays, none of the above HDR technologies are compatible with SDR contents. The
TV broadcast receiver which cannot receive HDR contents is not be able to reproduce
the HDR effect and the SDR effect. That is, the HDR contents displayed on non-HDR
TVs present a pale effect and lose the contrast. Only the content made on the basis
of HDR can be displayed on the TV designed on the basis of HDR with the high dynamic
feature of HDR. Therefore, the current non-HDR receiver cannot show the HDR effect,
resulting in a poor image display effect.
[0006] The above contents are only used to assist in understanding the technical solutions
of the present disclosure, and do not constitute the prior arts.
SUMMARY
[0007] The main objective of the present disclosure is to provide a television terminal,
a method for converting an HDR image into an SDR image and a computer readable storage
medium, aiming at solving the problem of a poor image display effect which is caused
by that non-HDR receiver cannot show the HDR effect.
[0008] In order to achieve the above objective, the present disclosure provides a method
for converting an HDR image into an SDR image, the method includes the following operations:
[0009] acquiring, by a television terminal, input HDR image data, and processing, by the
television terminal, the acquired HDR image data through a first normalization;
[0010] linearizing, by the television terminal, the HDR image data processed through the
first normalization;
processing, by the television terminal, the linearized HDR image data through a second
normalization; and
converting, by the television terminal, the HDR image data processed through the second
normalization into SDR image data with a supported format.
[0011] Preferably, the operation of "processing, by the television terminal, the acquired
HDR image data through a first normalization" includes:
determining, by the television terminal, a maximum coded value in the acquired HDR
image data; and
processing, by the television terminal, all coded values in the acquired HDR image
data through the first normalization and the maximum coded value, a value of the HDR
image data processed through the first normalization has a range of [0, 1], an equation
for the first normalization is:
N=SHDR/(2n-1), N is the value of the HDR image data processed through the first normalization,
n is a bit depth of an image data signal, and SHDR is an input HDR signal quantization coded by PQ.
[0012] Preferably, the operation of "linearizing, by the television terminal, the HDR image
data processed through the first normalization" includes
restoring, by the television terminal, the HDR image data processed through the first
normalization to linear data before being coded, an equation for the restoring operation
is:
L=(max[(N
1/m2)-c1, 0]/(c2-c3N
1/m2))
1/m1, c1, c2, c3, m1 and m2 are constants.
[0013] Preferably, the operation of "converting, by the television terminal, the HDR image
data processed through the second normalization into SDR image data with a supported
format" includes:
acquiring, by the television terminal, a peak luminance value of a display; and
converting, by the television terminal, the HDR image data processed through the second
normalization into the SDR image data with a format supported by the display based
on the peak luminance value of the display, an equation for the second normalization
is:
LN=L/cm, cm is a coded value of maximum luminance of the signal, and L is the linear data before
being coded.
[0014] Preferably, the second normalization is configured to normalize the coded value of
maximum luminance of the signal, for normalizing the obtained value in a range of
0 to 1, and a minimum value is 0 and a maximum value is 1.
[0015] Preferably, the method further includes:
converting linear data in an HDR format into linear data in an SDR format based on
a maximum peak luminance value of the display, and outputting SDR signal data, an
equation for the converting operation is:
SSDR=(2m-1)∗M∗Lγ/2, γ=1+aLog10(Yp/1000), Yp is the peak luminance value of the display (cd/m2), a is a constant, m is a bit depth of an SDR signal, usually the SDR signal is 8
bits, i.e., m = 8, and M has a range of 0 to 1 which is presented as an adjusting
curve.
[0016] Preferably, after the operation of "converting, by the television terminal, the HDR
image data processed through the second normalization into SDR image data with a supported
format", the method further includes:
[0017] outputting, by the television terminal, the converted SDR image data based on the
format supported by the display.
[0018] In addition, in order to achieve the above objective, the present disclosure further
provides a television terminal, the television terminal includes a memory, a processor,
a program for converting an HDR image into an SDR image stored on the memory and executable
on the processor, the program, when executed by the processor, implements the following
operations:
acquiring input HDR image data, and processing the acquired HDR image data through
a first normalization;
linearizing the HDR image data processed through the first normalization;
processing the linearized HDR image data through a second normalization; and
converting the HDR image data processed through the second normalization into SDR
image data with a supported format.
[0019] Preferably, the program, when executed by the processor, implements the following
operations:
determining a maximum coded value in the acquired HDR image data; and
processing all coded values in the acquired HDR image data through the first normalization
and the maximum coded value, a value of the HDR image data processed through the first
normalization has a range of [0, 1], an equation for the first normalization is:
N=SHDR/(2n-1), N is the value of the HDR image data processed through the first normalization,
n is a bit depth of an image data signal, and SHDR is an input HDR signal quantization coded by PQ.
[0020] Preferably, the program, when executed by the processor, implements the following
operations:
restoring the HDR image data processed through the first normalization to linear data
before being coded, an equation for the restoring operation is:
L=(max[(CN1/m2)-c1, 0]/(c2-c3N1/m2))1/m1, c1, c2, c3, m1 and m2 are constants.
[0021] Preferably, the program, when executed by the processor, implements the following
operations:
acquiring a peak luminance value of a display; and
converting the HDR image data processed through the second normalization into the
SDR image data with a format supported by the display based on the peak luminance
value of the display, an equation for the second normalization is:
LN=L/cm, cm is a coded value of maximum luminance of the signal, and L is the linear data before
being coded.
[0022] Preferably, the second normalization is configured to normalize the coded value of
maximum luminance of the signal, for normalizing the obtained value in a range of
0 to 1, and a minimum value is 0 and a maximum value is 1.
[0023] Preferably, the program, when executed by the processor, implements the following
operations:
converting linear data in an HDR format into linear data in an SDR format based on
a maximum peak luminance value of the display, and outputting SDR signal data, an
equation for the converting operation is:
SSDR=(2m-1)∗M∗Lγ/2, γ=1+aLog10(Yp/1000), Yp is the peak luminance value of the display (cd/m2), a is a constant, m is a bit depth of an SDR signal, usually the SDR signal is 8
bits, i.e., m = 8, and M has a range of 0 to 1 which is presented as an adjusting
curve.
[0024] Preferably, the program, when executed by the processor, implements the following
operations:
outputting the converted SDR image data based on the format supported by the display.
Besides, in order to achieve the above objective, the present disclosure further provides
a computer readable storage medium, the computer readable storage medium stores a
program for converting an HDR image into an SDR image, the program, when executed
by a processor, implements operations of a method for converting the HDR image into
the SDR image.
[0025] In the solution of the present disclosure, the HDR input signal is converted into
the SDR signal by normalizing, linearizing, normalizing, and converting the input
HDR image data, such that the HDR image data can be displayed on the non-HDR television
terminal, such as an SDR television terminal, with a better display effect. The technical
problem of a poor image display effect which is caused by that non-HDR receiver cannot
show the HDR effect is solved. The non-HDR receiver of the present disclosure can
show the HDR effect and improve the image display effect.
BRIEF DESCRIPTION OF THE DRAWINGS
[0026]
FIG. 1 is a schematic structural diagram of a terminal/device in a hardware operating
environment according to an embodiment of the present disclosure;
FIG. 2 is a schematic flowchart of a method for converting an HDR image into an SDR
image according to an embodiment of the present disclosure;
FIG. 3 is a schematic flowchart of processing, by the television terminal, the acquired
HDR image data through a first normalization according to an embodiment of the present
disclosure;
FIG. 4 is a schematic flowchart of converting, by the television terminal, the HDR
image data processed through the second normalization into SDR image data with a supported
format according to an embodiment of the present disclosure;
FIG. 5 is a schematic frame diagram of converting the HDR image data into the SDR
image data according to an embodiment of the present disclosure; and
FIG. 6 is a schematic flowchart of converting the HDR image data into the SDR image
data according to an embodiment of the present disclosure.
The realization of the objective, functional characteristics, advantages of the present
disclosure are further described with reference to the accompanying drawings.
DETAILED DESCRIPTION OF THE EMBODIMENTS
[0027] It should be understood that the specific embodiments described herein are merely
illustrative of the disclosure and are not intended to limit the disclosure.
[0028] The main solution of the embodiment of the present disclosure includes: acquiring,
by a television terminal, input HDR image data, and processing, by the television
terminal, the acquired HDR image data through a first normalization; linearizing,
by the television terminal, the HDR image data processed through the first normalization;
processing, by the television terminal, the linearized HDR image data through a second
normalization; and converting, by the television terminal, the HDR image data processed
through the second normalization into SDR image data with a supported format.
[0029] As to the technical problem of a poor image display effect which is caused by that
non-HDR receiver cannot show the HDR effect, in the solution of the present disclosure,
the HDR input signal is converted into the SDR signal by normalizing, linearizing,
normalizing, and converting the input HDR image data, so that the HDR image data can
be displayed on the non-HDR television terminal, such as an SDR television terminal,
with a better display effect. The technical problem of a poor image display effect
which is caused by that non-HDR receiver cannot show the HDR effect is solved. The
non-HDR receiver of the present disclosure can show the HDR effect and improve the
image display effect.
[0030] As shown in FIG. 1, FIG. 1 is a schematic structural diagram of a terminal in a hardware
operating environment according to an embodiment of the present disclosure.
[0031] In embodiments of the present disclosure, the television terminal is configured to
convert the HDR image data into the SDR image data, and implement compatible playback,
such that other signal source image data can be displayed on each of the terminals
with the best display effect.
[0032] As shown in FIG. 1, the television terminal may include a processor 1001, such as
a CPU, a network interface 1004, a user interface 1003, a memory 1005, and a communication
bus 1002. The communication bus 1002 is configured to implement the connection communication
between these components. The user interface 1003 may include a display, an input
unit such as a keyboard, optionally, the user interface 1003 may also include a standard
wired interface, a wireless interface (such as a WI-FI interface). Optionally, the
network interface 1004 may include a standard wired interface, a wireless interface
(such as a WI-FI interface). The memory 1005 may be a high speed RAM memory or a non-volatile
memory such as a disk memory. Optionally, the memory 1005 may also be a storage device
independent of the foregoing processor 1001.
[0033] Optionally, the terminal may further include a camera, a Radio Frequency (RF) circuitry,
a sensor, an audio circuitry, a WiFi module, etc. The sensor may include a light sensor,
a motion sensor, and the like. Specifically, the light sensor may include an ambient
light sensor and a proximity sensor. The ambient light sensor may adjust the brightness
of the display screen according to the brightness of ambient light, and the proximity
sensor may turn off the display screen and/or backlight when the mobile terminal moves
to the ear. The gravity acceleration sensor, which is regarded as a kind of motion
sensor, can detect the magnitudes of accelerations in all directions (generally including
X axis, Y axis, and Z axis). The gravity acceleration sensor can also detect the magnitude
and direction of gravity when the terminal is still. As such the gravity acceleration
sensor can be applied to application for identifying attitude of mobile terminal (such
as an application for switching the screen between horizontal orientation and vertical
orientation, an application related to game, an application for calibrating attitude
of magnetometer), can also be applied to application for identifying vibration (such
as pedometer, tapping), etc. Of course, the mobile terminal can also be equipped with
a gyroscope, a barometer, a hygrometer, a thermometer, an infrared sensor, and the
like, which is not described repeatedly herein.
[0034] Those skilled in the art can understand that the structure as shown in FIG. 1 does
not constitute a limitation on the terminal, and the terminal may include more or
fewer components than shown, or a combination of some components, or different components.
[0035] As shown in FIG. 1, the memory 1005 as a computer storage medium may include an operating
system, a network communication module, a user interface module, and an application
program for converting an HDR image into an SDR image.
[0036] In the terminal shown in FIG. 1, the network interface 1004 is mainly configured
to connect with the background server and perform data communication with the background
server; the user interface 1003 is mainly configured to connect with a client (user
end) and perform data communication with the client; the processor 1001 may call the
application program for converting the HDR image into the SDR image stored on the
memory 1005, and perform the following operations:
acquiring input HDR image data, and processing the acquired HDR image data through
a first normalization;
linearizing the HDR image data processed through the first normalization;
processing the linearized HDR image data through a second normalization; and
converting the HDR image data processed through the second normalization into SDR
image data with a supported format.
[0037] Further, the processor 1001 may call the application program for converting the HDR
image into the SDR image stored on the memory 1005, and perform the following operations:
determining a maximum coded value in the acquired HDR image data; and
processing all coded values in the acquired HDR image data through the first normalization
and the maximum coded value, a value of the HDR image data processed through the first
normalization has a range of [0, 1], an equation for the first normalization is:
N=SHDR/(2n-1), N is the value of the HDR image data processed through the first normalization,
n is a bit depth of an image data signal, and SHDR is an input HDR signal quantization coded by PQ.
[0038] Further, the processor 1001 may call the application program for converting the HDR
image into the SDR image stored on the memory 1005, and perform the following operations:
restoring the HDR image data processed through the first normalization to linear data
before being coded, an equation for the restoring operation is:
L=(max[(N1/m2)-c1, 0]/(c2-c3N1/m2))1/m1, c1, c2, c3, m1 and m2 are constants.
[0039] Further, the processor 1001 may call the application program for converting the HDR
image into the SDR image stored on the memory 1005, and perform the following operations:
acquiring a peak luminance value of a display; and
converting the HDR image data processed through the second normalization into the
SDR image data with a format supported by the display based on the peak luminance
value of the display, an equation for the second normalization is:
LN=L/cm, cm is a coded value of maximum luminance of the signal, and L is the linear data before
being coded.
[0040] Further, the processor 1001 may call the application program for converting the HDR
image into the SDR image stored on the memory 1005, and perform the following operations:
outputting the converted SDR image data based on the format supported by the display.
[0041] Referring to FIG. 2, a first embodiment of the present disclosure provides a method
for converting an HDR image into an SDR image, which includes the following operations:
[0042] Step S10, acquiring, by a television terminal, input HDR image data, and processing,
by the television terminal, the acquired HDR image data through a first normalization;
[0043] In an embodiment of the present disclosure, the television terminal is a non-HDR
television, for example, an SDR television, which cannot directly play image data
in an HDR format. The television terminal receives the input image data signal which
is an HDR signal. A value of the HDR image input data which is quantization coded
by PQ has a range of 0 to (2
n-1). The acquired HDR image data is processed through a first normalization, i.e.,
the quantization coded HDR image input data is processed through the first normalization.
[0044] Specifically, referring to FIG. 3, the operation of "processing, by the television
terminal, the acquired HDR image data through a first normalization" includes the
following operations:
[0045] Step S11, determining, by the television terminal, a maximum coded value in the acquired
HDR image data; step S12, processing, by the television terminal, all coded values
in the acquired HDR image data through the first normalization and the maximum coded
value, a value of the HDR image data processed through the first normalization has
a range of [0, 1]. After normalizing the maximum coded value (2
n-1), the HDR image data N processed through the first normalization is obtained. An
equation for the first normalization is: N=S
HDR/(2
n-1), n is a bit depth of the HDR image data signal, usually the HDR signal is 10 bits
or 12 bits, i.e., n=10 or 12, and S
HDR is an input HDR signal quantization coded by PQ. The raw HDR data has a range of
0 to 1023 (n=10) which can be normalized to 0 to 1.
[0046] Step S20, linearizing, by the television terminal, the HDR image data processed through
the first normalization;
[0047] After normalizing the acquired HDR image data, the television terminal linearizes
the HDR image data processed through the first normalization. The linearization process
is to restore linear data of the HDR signal before being coded by PQ, and the television
terminal restores the HDR image data processed through the first normalization to
the linear data before being coded. An equation for the restoring operation through
SMTPE ST2084 is: L=(max[(N
1/m2)-c1, 0]/(c2-c3N
1/m2))
1/m1, c1, c2, c3, m1 and m2 are constants.
[0048] Step S30, processing, by the television terminal, the linearized HDR image data through
a second normalization;
[0049] After linearizing the HDR image data, the television terminal processes the linearized
HDR image data through the second normalization, the second normalization is to further
normalize a coded value of maximum luminance of the signal, for ensuring the obtained
value in a range of 0 to 1, and a minimum value is 0 and a maximum value is 1. An
equation for the second normalization is: L
N=L/c
m, c
m is the coded value of maximum luminance of the signal, the information of the coded
value is derived from the metadata of the HDR signal.
[0050] Step S40, converting, by the television terminal, the HDR image data processed through
the second normalization into SDR image data with a supported format.
[0051] The supported format is a non-HDR format such as an SDR format. The television terminal
can play an image data having a signal source of HDR by converting the HDR format
into the SDR format. Specifically, referring to FIG. 4, the operation of "converting,
by the television terminal, the HDR image data processed through the second normalization
into SDR image data with a supported format" includes the following operations:
[0052] Step S41, acquiring, by the television terminal, a peak luminance value of a display;
[0053] Step S42, converting, by the television terminal, the HDR image data processed through
the second normalization into the SDR image data with a format supported by the display
based on the peak luminance value of the display.
[0054] Format conversion is to convert linear data in an HDR format into linear data in
an SDR format based on the display capability (maximum peak luminance) of the display,
and SDR signal data (which has a range of 0 to 255 when the bit depth is 8 bits) is
output. An equation for the converting operation is:
[0055] S
SDR=(2
m-1)
∗M
∗L
γ/2, γ=1+aLog10(Y
p/1000), Y
p is the peak luminance value of the display (cd/m
2), a is a constant, m is a bit depth of SDR signal, usually SDR signal is 8 bits,
i.e., m = 8, and M has a range of 0 to 1 which is presented as an adjusting curve,
the curve is a readjustment of linear signal, and is also a customized adjustment
of SDR signal. This process is to re-MAPPING the raw linear data. It can be seen that,
different displays have different display capabilities and different maximum peak
luminance values. After the HDR signal is processed through the above process, the
data S
SDR obtained from different display screens is not the same, such that the different
display screens can all show the best SDR display effect.
[0056] In the television terminal of the present embodiment, the HDR input signal is converted
into the SDR signal by normalizing, linearizing, normalizing, and converting the input
HDR image data, such that the HDR image data can be displayed on the non-HDR television
terminal, such as an SDR television terminal, with a better display effect. The technical
problem of a poor image display effect which is caused by that non-HDR receiver cannot
show the HDR effect is solved. The non-HDR receiver of the present disclosure can
show the HDR effect and improve the image display effect.
[0057] Further, for a better description of the embodiments of the present disclosure, referring
to FIG. 5 and FIG. 6, the method for converting the HDR image into the SDR image of
the present embodiment includes the following operations, for ensuring that the non-HDR
receiver can display the HDR signal: processing normalization A on input HDR data
S
HDR to obtain the normalized data N; processing linearization on N to obtain the linearized
data L; processing normalization B on the linearized data L and a maximum coded value
of signal to obtain data L
N; and adjusting L
N through HDR2SDR and outputting S
SDR signal.
[0058] In an embodiment, the present disclosure further provides a television terminal,
the television terminal includes a memory, a processor, a program for converting an
HDR image into an SDR image stored on the memory and executable on the processor,
the program, when executed by the processor, implements the following operations:
acquiring input HDR image data, and processing the acquired HDR image data through
a first normalization;
[0059] In an embodiment of the present disclosure, the television terminal is a non-HDR
television, for example, an SDR television, which cannot directly play image data
in an HDR format. The television terminal receives the input image data signal which
is an HDR signal. A value of the HDR image input data which is quantization coded
by PQ has a range of 0 to (2
n-1). The acquired HDR image data is processed through a first normalization, i.e.,
the quantization coded HDR image input data is processed through the first normalization.
[0060] Specifically, the operation of "processing the acquired HDR image data through a
first normalization" includes the following operations:
determining a maximum coded value in the acquired HDR image data; processing, by the
television terminal, all coded values in the acquired HDR image data through the first
normalization and the maximum coded value, a value of the HDR image data processed
through the first normalization has a range of [0, 1]. After normalizing the maximum
coded value (2n-1), the HDR image data N processed through the first normalization is obtained. An
equation for the first normalization is: N=SHDR/(2n-1), n is a bit depth of the HDR image data signal, usually the HDR signal is 10 bits
or 12 bits, i.e., n=10 or 12, and SHDR is an input HDR signal quantization coded by PQ. The raw HDR data has a range of
0 to 1023 (n=10) which can be normalized to 0 to 1.
linearizing the HDR image data processed through the first normalization;
[0061] After normalizing the acquired HDR image data, the television terminal linearizes
the HDR image data processed through the first normalization. The linearization process
is to restore linear data of the HDR signal before being coded by PQ, and the television
terminal restores the HDR image data processed through the first normalization to
the linear data before being coded. An equation for the restoring operation through
SMTPE ST2084 is: L=(max[(N
1/m2)-c1, 0]/(c2-c3N
1/m2))
1/m1, c1, c2, c3, m1 and m2 are constants.
processing the linearized HDR image data through a second normalization;
[0062] After linearizing the HDR image data, the television terminal processes the linearized
HDR image data through a second normalization, the second normalization is to further
normalize a coded value of maximum luminance of the signal, for ensuring the obtained
value in a range of 0 to 1, and a minimum value is 0 and a maximum value is 1. An
equation for the second normalization is: L
N=L/c
m, c
m is the coded value of maximum luminance of the signal, the information of the coded
value is derived from the metadata of the HDR signal.
converting, by the television terminal, the HDR image data processed through the second
normalization into SDR image data with a supported format.
[0063] The supported format is a non-HDR format such as an SDR format. The television terminal
can play an image data having a signal source of HDR by converting the HDR format
into the SDR format.
[0064] Specifically, the operation of "converting the HDR image data processed through the
second normalization into SDR image data with a supported format" includes the following
operations:
acquiring a peak luminance value of a display;
converting the HDR image data processed through the second normalization into the
SDR image data with a format supported by the display based on the peak luminance
value of the display.
[0065] Format conversion is to convert linear data in an HDR format into linear data in
an SDR format based on the display capability (maximum peak luminance) of the display,
and SDR signal data (which has a range of 0 to 255 when the bit depth is 8 bits) is
output. An equation for the converting operation is:
SSDR=(2m-1)∗M∗Lγ/2, γ=1+aLog10(Yp/1000), Yp is the peak luminance value of the display (cd/m2), a is a constant, m is a bit depth of an SDR signal, usually the SDR signal is 8
bits, i.e., m = 8, and M has a range of 0 to 1 which is presented as an adjusting
curve, the curve is a readjustment of linear signal, and is also a customized adjustment
of SDR signal. This process is to re-MAPPING the raw linear data. It can be seen that,
different displays have different display capabilities and different maximum peak
luminance values. After the HDR signal is processed through the above process, the
data SSDR obtained from different display screens is not the same, such that the different
display screens can all show the best SDR display effect.
[0066] In the present embodiment, the HDR input signal is converted into the SDR signal
by normalizing, linearizing, normalizing, and converting the input HDR image data,
such that the HDR image data can be displayed on the non-HDR television terminal,
such as an SDR television terminal, with a better display effect. The technical problem
of a poor image display effect which is caused by that non-HDR receiver cannot show
the HDR effect is solved. The non-HDR receiver of the present disclosure can show
the HDR effect and improve the image display effect.
[0067] Besides, the present disclosure further provides a computer readable storage medium,
the computer readable storage medium stores a program for converting an HDR image
into an SDR image, the program, when executed by a processor, implements the following
operations:
acquiring input HDR image data, and processing the acquired HDR image data through
a first normalization;
linearizing the HDR image data processed through the first normalization;
processing the linearized HDR image data through a second normalization; and
converting the HDR image data processed through the second normalization into SDR
image data with a supported format.
[0068] Further, the program, when executed by the processor, implements the following operations:
determining a maximum coded value in the acquired HDR image data; and
processing all coded values in the acquired HDR image data through the first normalization
and the maximum coded value, a value of the HDR image data processed through the first
normalization has a range of [0, 1], an equation for the first normalization is:
N=SHDR/(2n-1), N is the value of the HDR image data processed through the first normalization,
n is a bit depth of image data signal, and SHDR is an input HDR signal quantization coded by PQ.
[0069] Further, the program, when executed by the processor, implements the following operations:
restoring the HDR image data processed through the first normalization to linear data
before being coded, an equation for the restoring operation is:
L=(max[(N1/m2)-c1, 0]/(c2-c3N1/m2))1/m1, c1, c2, c3, m1 and m2 are constants.
[0070] Further, the program, when executed by the processor, implements the following operations:
acquiring a peak luminance value of a display; and
converting the HDR image data processed through the second normalization into the
SDR image data with a format supported by the display based on the peak luminance
value of the display, an equation for the second normalization is:
LN=L/cm, cm is a coded value of maximum luminance of the signal, and L is the linear data before
being coded.
[0071] Further, the program, when executed by the processor, implements the following operations:
outputting the converted SDR image data based on the format supported by the display.
[0072] It should be noted that in this document, the terms "including", "comprising", or
any other variant thereof are intended to cover a non-exclusive inclusion, thus, a
process, method, article, or system that comprises a plurality of elements includes
not only those elements but also other elements not specifically listed, or elements
that are inherent to such a process, method, article, or system. An element defined
by the phrase "comprising a ..." does not exclude the presence of additional equivalent
elements in a process, method, article, or system that includes the element, without
further limitation.
[0073] The serial numbers of the embodiments of the present disclosure are merely for the
description, and do not represent the advantages and disadvantages of the embodiments.
[0074] Through the description of the above embodiments, it can be clearly understood by
those skilled in the art that the method of the above embodiments can be implemented
by means of software plus a necessary general hardware platform, and can also be implemented
by hardware, but in many cases, the former is a better implementation. Based on such
understanding, the technical solution of the present disclosure, which is essential
or contributes to the prior art, can be embodied in the form of a software product.
The computer software product is stored on a storage medium (e.g., ROM/RAM, disk,
optical disk) as described above, and includes instructions for causing a terminal
device (e.g., a cell phone, computer, server, TV, or network device, etc.) to perform
the methods described in various embodiments of the present disclosure.
[0075] The above are only preferred embodiments of the present disclosure, and thus do not
limit the scope of the present disclosure. The equivalent structure or equivalent
process transformations made by the present specification and the drawings are directly
or indirectly applied to other related technical fields, and are included in the scope
of the present disclosure.
1. A method for converting an HDR image into an SDR image,
characterized in that, the method comprises the following operations:
acquiring, by a television terminal, input HDR image data, and processing, by the
television terminal, the acquired HDR image data through a first normalization;
linearizing, by the television terminal, the HDR image data processed through the
first normalization;
processing, by the television terminal, the linearized HDR image data through a second
normalization; and
converting, by the television terminal, the HDR image data processed through the second
normalization into SDR image data with a supported format.
2. The method of claim 1,
characterized in that, the operation of "processing, by the television terminal, the acquired HDR image
data through a first normalization" comprises:
determining, by the television terminal, a maximum coded value in the acquired HDR
image data; and
processing, by the television terminal, all coded values in the acquired HDR image
data through the first normalization and the maximum coded value, a value of the HDR
image data processed through the first normalization has a range of [0, 1], wherein
an equation for the first normalization is:
N=SHDR/(2n-1), N is the value of the HDR image data processed through the first normalization,
n is a bit depth of an image data signal, and SHDR is an input HDR signal quantization coded by Perceptual Quantizer.
3. The method of claim 1,
characterized in that, the operation of "linearizing, by the television terminal, the HDR image data processed
through the first normalization" comprises:
restoring, by the television terminal, the HDR image data processed through the first
normalization to linear data before being coded, an equation for the restoring operation
is:
L=(max[(N1/m2)-c1, 0]/(c2-c3N1/m2))1/m1, wherein c1, c2, c3, m1 and m2 are constants.
4. The method of claim 3,
characterized in that, the operation of "converting, by the television terminal, the HDR image data processed
through the second normalization into SDR image data with a supported format" comprises:
acquiring, by the television terminal, a peak luminance value of a display; and
converting, by the television terminal, the HDR image data processed through the second
normalization into the SDR image data with a format supported by the display based
on the peak luminance value of the display, wherein an equation for the second normalization
is:
LN=L/cm, wherein cm is a coded value of maximum luminance of the signal, and L is the linear data before
being coded.
5. The method of claim 4, characterized in that, the second normalization is configured to normalize the coded value of maximum luminance
of the signal, for normalizing the obtained value in a range of 0 to 1, and a minimum
value is 0 and a maximum value is 1.
6. The method of claim 4,
characterized in that, the method further comprises:
converting linear data in an HDR format into linear data in an SDR format based on
a maximum peak luminance value of the display, and outputting SDR signal data, an
equation for the converting operation is:
SSDR=(2m-1)∗M∗Lγ/2, wherein γ=1+aLog10(Yp/1000), Yp is the peak luminance value of the display (cd/m2), a is a constant, m is a bit depth of an SDR signal, usually the SDR signal is 8
bits, i.e., m = 8, and M has a range of 0 to 1 which is presented as an adjusting
curve.
7. The method of claim 1,
characterized in that, after the operation of "converting, by the television terminal, the HDR image data
processed through the second normalization into SDR image data with a supported format",
the method further comprises:
outputting, by the television terminal, the converted SDR image data based on the
format supported by the display.
8. The method of claim 2,
characterized in that, after the operation of "converting, by the television terminal, the HDR image data
processed through the second normalization into SDR image data with a supported format",
the method further comprises:
outputting, by the television terminal, the converted SDR image data based on the
format supported by the display.
9. A television terminal,
characterized in that, the television terminal comprises a memory, a processor, and a program for converting
an HDR image into an SDR image stored on the memory and executable on the processor,
the program, when executed by the processor, implements the following operations:
acquiring input HDR image data, and processing the acquired HDR image data through
a first normalization;
linearizing the HDR image data processed through the first normalization;
processing the linearized HDR image data through a second normalization; and
converting the HDR image data processed through the second normalization into SDR
image data with a supported format.
10. The television terminal of claim 9,
characterized in that, the program, when executed by the processor, implements the following operations:
determining a maximum coded value in the acquired HDR image data; and
processing all coded values in the acquired HDR image data through the first normalization
and the maximum coded value, a value of the HDR image data processed through the first
normalization has a range of [0, 1], wherein an equation for the first normalization
is:
N=SHDR/(2n-1), N is the value of the HDR image data processed through the first normalization,
n is a bit depth of an image data signal, and SHDR is an input HDR signal quantization coded by Perceptual Quantizer.
11. The television terminal of claim 9,
characterized in that, the program, when executed by the processor, implements the following operations:
restoring the HDR image data processed through the first normalization to linear data
before being coded, an equation for the restoring operation is:
L=(max[(N1/m2)-c1, 0]/(c2-c3N1/m2))1/m1, wherein c1, c2, c3, m1 and m2 are constants.
12. The television terminal of claim 9,
characterized in that, the program, when executed by the processor, implements the following operations:
acquiring a peak luminance value of a display; and
converting the HDR image data processed through the second normalization into the
SDR image data with a format supported by the display based on the peak luminance
value of the display, wherein an equation for the second normalization is:
LN=L/cm, wherein cm is a coded value of maximum luminance of the signal, and L is the linear data before
being coded.
13. The television terminal of claim 12, characterized in that, the second normalization is configured to normalize the coded value of maximum luminance
of the signal, for normalizing the obtained value in a range of 0 to 1, and a minimum
value is 0 and a maximum value is 1.
14. The television terminal of claim 12,
characterized in that, the program, when executed by the processor, implements the following operations:
converting linear data in an HDR format into linear data in an SDR format based on
a maximum peak luminance value of the display, and outputting SDR signal data, an
equation for the converting operation is:
SSDR=(2m-1)∗M∗Lγ/2, wherein γ=1+aLog10(Yp/1000), Yp is the peak luminance value of the display (cd/m2), a is a constant, m is a bit depth of an SDR signal, usually the SDR signal is 8
bits, i.e., m = 8, and M has a range of 0 to 1 which is presented as an adjusting
curve.
15. The television terminal of claim 9,
characterized in that, the program, when executed by the processor, implements the following operations:
outputting the converted SDR image data based on the format supported by the display.
16.
The television terminal of claim 10, characterized in that, the program, when executed by the processor, implements the following operations:
outputting the converted SDR image data based on the format supported by the display.
16. A computer readable storage medium, characterized in that, the computer readable storage medium stores a program for converting an HDR image
into an SDR image, the program, when executed by a processor, implements operations
of the method for converting the HDR image into the SDR image.