WO2015097124A1 - Method and device for encoding a high-dynamic range image and/or decoding a bitstream - Google Patents

Method and device for encoding a high-dynamic range image and/or decoding a bitstream Download PDF

Info

Publication number
WO2015097124A1
WO2015097124A1 PCT/EP2014/078948 EP2014078948W WO2015097124A1 WO 2015097124 A1 WO2015097124 A1 WO 2015097124A1 EP 2014078948 W EP2014078948 W EP 2014078948W WO 2015097124 A1 WO2015097124 A1 WO 2015097124A1
Authority
WO
WIPO (PCT)
Prior art keywords
image
backlight
residual image
encoding
decoded
Prior art date
Application number
PCT/EP2014/078948
Other languages
French (fr)
Inventor
Sebastien Lasserre
Yannick Olivier
Fabrice Leleannec
David Touze
Original Assignee
Thomson Licensing
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Thomson Licensing filed Critical Thomson Licensing
Publication of WO2015097124A1 publication Critical patent/WO2015097124A1/en

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/30Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using hierarchical techniques, e.g. scalability

Definitions

  • the present invention generally relates to image/video encoding and decoding.
  • the technical field of the present invention is related to encoding/decoding of an image whose pixels values belong to a high- dynamic range.
  • LDR images are images whose luminance values are represented with a limited number of bits (most often 8 or 10). This limited representation does not allow correct rendering of small signal variations, in particular in dark and bright luminance ranges.
  • HDR images high- dynamic range images
  • pixel values are usually represented in floating-point format (either 32-bit or 16-bit for each component, namely float or half-float), the most popular format being openEXR half-float format (16-bit per RGB component, i.e. 48 bits per pixel) or in integers with a long representation, typically at least 16 bits.
  • a typical approach for encoding an HDR image is to reduce the dynamic range of the image in order to encode the image by means of a traditional encoding scheme (initially configured to encode LDR images).
  • a tone-mapping operator is applied to the input HDR image and the tone-mapped image is then encoded by means of a traditional 8-10 bit depth encoding scheme such as JPEG/JPEG200 or MPEG-2, H.264/AVC for video 'Advanced video coding for generic audiovisual Services", SERIES H: AUDIOVISUAL AND MULTIMEDIA SYSTEMS, Recommendation ITU-T H.264, Telecommunication Standardization Sector of ITU, January 2012).
  • an inverse tone- mapping operator is applied to the decoded image and a residual image is calculated between the input image and the decoded and inverse-tone- mapped image.
  • the residual image is encoded by means of a second traditional 8-10 bit-depth encoder scheme.
  • This first approach is backward compatible in the sense that a low dynamic range image may be decoded and displayed by means of a traditional apparatus.
  • this first approach uses two encoding schemes and limits the dynamic range of the input image to be twice the dynamic range of a traditional encoding scheme (16-20 bits). Moreover, such approach leads sometimes to a low dynamic range image with a weaker correlation with the input HDR image. This leads to low coding performance of the image.
  • a backlight image is determined from the luminance component of the input HDR image.
  • a residual image is then obtained by dividing the input HDR image by the backlight image and both the backlight image and the residual image are directly encoded.
  • This provides a viewable residual image, i.e. a residual image in the sense that resulting residual image renders artistically the tone-mapped scene reasonably well and consistently compared to the original scene in the image.
  • This method is thus backward compatible because the viewable residual image may be decoded and/or displayed by a traditional apparatus which is not able to handle high dynamic range.
  • encoding a high dynamic range image by means of such method leads to an efficient encoding scheme because the tone-mapped residual image (low dynamic range image), which is highly spatially correlated (and temporally correlated with other images of a same sequence of images), and the backlight image are encoded separately.
  • a coding gain is thus reached because of the high compression rate of the tone-mapped residual image and of the little amount of data to encode the backlight image.
  • tone-mapping the residual image comprises either a gamma correction or a SLog correction according to the pixel values of the residual image.
  • obtaining the backlight image from the image comprises:
  • Modulating the backlight image with a mean luminance value of the image improves the global luminance coherence between the image and the residual image, e.g. a bright region in the image appears bright in the residual image and a dark region in the image appears dark in the residual image.
  • obtaining the backlight image from the image further comprises:
  • the method further comprises scaling of the residual image before encoding.
  • the method further comprises clipping the residual image before encoding.
  • the invention relates to a method for decoding an image from a bitstream comprising:
  • the decoded residual image is inverse-tone- mapped before multiplying the decoded residual image by the backlight image.
  • the invention relates to a device for encoding an image and a device for decoding a bitstream which implements the above methods.
  • FIG. 1 shows a block diagram of the steps of a method for encoding an image I in accordance with an embodiment of the invention
  • FIG. 2 shows a block diagram of a step of the method in accordance with an embodiment of the invention
  • FIG. 3 shows a block diagram of a step of the method in accordance with an embodiment of the invention
  • FIG. 4 shows a block diagram of a step of the method in accordance with an embodiment of the invention
  • FIG. 5 shows a block diagram of the steps of a method, in accordance with an embodiment of the invention, for decoding a bitstream representing a residual image calculated by dividing an image by a backlight image;
  • FIG. 6 shows an example of an architecture of a device in accordance with an embodiment of the invention.
  • FIG. 7 shows two remote devices communicating over a communication network in accordance with an embodiment of the invention
  • each block represents a circuit element, module, or portion of code which comprises one or more executable instructions for implementing the specified logical function(s).
  • the function(s) noted in the blocks may occur out of the order noted. For example, two blocks shown in succession may, in fact, be executed substantially concurrently or the blocks may sometimes be executed in the reverse order, depending on the functionality involved.
  • the invention is described for encoding/decoding an image but extends to the encoding/decoding of a sequence of images (video) because each image of the sequence is sequentially encoded/decoded as described below.
  • Fig. 1 shows a block diagram of the steps of a method for encoding an image I in accordance with an embodiment of the invention.
  • a module IC obtains the luminance component L and potentially at least one color component C(i) of the image I to be encoded.
  • the luminance component L is obtained, for instance in the 709 gamut, by a linear combination which is given by:
  • a module BAM determines a backlight image Bal from the luminance component L of the image I.
  • a module Bl determines a backlight image Ba as being a weighted linear combination of shape functions ⁇ given by:
  • determining a backlight image Ba from a luminance component L consists in finding optimal weighting coefficients (and potentially also toptimal shape functions if not known beforehand) in order that the backlight image Ba fits the luminance component L.
  • weighting coefficients a There are many well-known methods to find the weighting coefficients a,. For example, one may use a least mean square method to minimize the mean square error between the backlight image Ba and the luminance component L.
  • the invention is not limited to any specific method to obtain the backlight image Ba.
  • shape functions may be the true physical response of a display backlight (made of LED's for instance, each shape function then corresponding to the response of one LED) or may be a pure mathematical construction in order to fit the luminance component at best.
  • the backlight image Bal output from step 1 1 , is the backlight image Ba given by equation (1 ).
  • a module BM modulates the backlight image Ba (given by equation (1 )) with a mean luminance value L mean of the image I obtained by the means of a module HL.
  • the backlight image Bal output from step 1 1 , is the modulated backlight image.
  • the module HL is configured to calculate the mean luminance value L mean over the whole luminance component L.
  • the module HL is configured to calculate the mean luminance value L mean by
  • This last embodiment is advantageous because it avoids that the mean luminance value L mean be influenced by a few pixels with extreme high values which usually leads to very annoying temporal mean brightness instability when the image I belongs to a sequence of images.
  • the invention is not limited to a specific embodiment for calculating the mean luminance value L mean .
  • a module N normalizes the backlight image Ba (given by equation (1 )) by its mean value E(Ba) such that one gets a mid-gray-at-one backlight image Ba gray for the image (or for all images if the image I belongs to a sequence of images):
  • the module BM is configured to modulate the mid-gray-at-one backlight image Ba gray with the mean luminance value L mean of the image L, by using the following relation
  • cst mod being a modulation coefficient and a being another modulation coefficient less than 1 , typically 1/3.
  • the backlight image Bal output from step 1 1 , is the modulated backlight image Ba mod given by equation (2).
  • the modulation coefficient cst mod is tuned to get a good looking brightness for the residual image and highly depends on the process to obtain the backlight image. For example, cst m0C i ⁇ 1 .7 for a backlight image obtained by least means squares.
  • step 12 the data needed to determine the backlight image Bal, output from step 1 1 , are encoded by means of an encoder ENC1 and added in a bitstream BF which may be stored on a local or remote memory and/or transmitted through a communication interface (e.g. to a bus or over a communication network or a broadcast network).
  • a communication interface e.g. to a bus or over a communication network or a broadcast network.
  • the data to be encoded are limited to the weighting coefficients a t or a t when known non-adaptive shape functions are used, but the shape functions ⁇ , may also be a priori unknown and then encoded in the bitstream BF, for instance in a case of a somewhat optimal mathematical construction for better fitting. So, all the weighting coefficients a t or a ( (and potentially shape functions ⁇ ,) are encoded in the bitstream BF.
  • the weighting coefficients a t or ( are quantized before encoded in order to reduce the size of the bitstream BF.
  • a residual image Res is calculated by dividing the image by a decoded version Ba of the backlight image.
  • the luminance component L and potentially each colour component C(i) of the image I, obtained from the module IC, is divided by the decoded version Ba of the backlight image. This division is done pixel per pixel.
  • step 14 the decoded version Ba of the backlight image is obtained by decoding at least partially the bitstream BF by means of a decoder DEC1 .
  • step 12 some data needed to obtain the backlight image, output of step 1 1 , have been encoded (step 12) and then obtained by at least partially decoding the bitstream BF.
  • weighting coefficients (and potentially shape functions 3 ⁇ 4) are then obtained as output of step 14.
  • a module BAG generates a decoded version Ba of the backlight image from the weighting coefficients a t and either some known non-adaptive shape functions or the shape functions 3 ⁇ 4 by:
  • a module TMO tone-maps the residual image Res in order to get a viewable residual image Res v .
  • the residual image Res may not be viewable because its dynamic range is too high and because a decoded version of this residual image Res shows too visible artifacts. Tone-mapping the residual image remedies to at least one of these drawbacks.
  • the invention is not limited to any specific tone-mapping operator. This single condition is that the tone-mapping operator shall be reversible.
  • the tone-mapping operator defined by Reinhard may be used ⁇ Reinhard, E., Stark, M., Shirley, P., and Ferwerda, J., ⁇ Photographic tone reproduction for digital images, " ACM Transactions on Graphics 21 (July 2002)), or Boitard, R., Bouatouch, K., Cozot, R., Thoreau, D., & Gruson, A. (2012). Temporal coherency for video tone mapping. In A. M. J. van Eijk, C. C. Davis, S. M. Hammel, & A. K. Majumdar (Eds.), Proc. SPIE 8499, Applications of Digital Image Processing (p. 84990D-84990D-10)).
  • step 19 the viewable residual image Res v is encoded by means of an encoder ENC2 in a bitstream F which may be stored on a local or remote memory and/or transmitted through a communication interface (e.g. on a bus or over a communication network or a broadcast network).
  • a communication interface e.g. on a bus or over a communication network or a broadcast network.
  • tone mapping the residual image comprises either a gamma correction or a SLog correction according to the pixel values of the residual image.
  • the viewable residual image Res v is then given, for example, by:
  • being a coefficient of a gamma curve equal, for example, to 1/2.4.
  • the viewable residual image Res v is given, for example, by:
  • a,b and c are coefficients of a SLog curve determined such that 0 and 1 are invariant, and the derivative of the SLog curve is continuous in 1 when prolonged by a gamma curve below 1 .
  • a,b and c are functions of the parameter y.
  • the parameter ⁇ of the gamma-Slog curve is encoded in the bitstream BF.
  • TMO applies either the gamma correction or the SLog correction according to the pixel values of the residual image Res.
  • the gamma correction is applied and otherwise the SLog correction is applied.
  • the viewable residual image Res v usually has a mean value more or less close to 1 depending on the brightness of the image I, making the use of the above gamma-Slog combination particularly efficient.
  • a module SCA scales the viewable residual image Res v before encoding (step 19) by multiplying each component of the viewable residual image Res v by a scaling factor cstscaiing- The resulting residual image Res s is then given by
  • the scaling factor cst SC aiing is defined to map the values of the viewable residual image Res v between from 0 to the maximum value 2 N -1 , where N is the number of bits allowed as input for the coding by the encoder ENC2.
  • the residual image Res s is encoded by means of an encoder ENC2.
  • a module CLI clips the viewable residual image Res v before encoding to limit its dynamic range to a targeted dynamic range TDR which is defined, for example, according to the capabilities of the encoder ENC2.
  • the resulting residual image Res c is given, for example, by:
  • the invention is not limited to such clipping (max(.)) but extends to any kind of clipping.
  • step 19 the residual image Res c is encoded by means of an encoder ENC2.
  • Ressc max(2 N , cst S caiing*Res v )
  • Ressc max(2 N , cst S caiing*Res s ) according to the embodiments of the method.
  • step 19 the residual image Res sc is encoded by means of an encoder ENC2.
  • the tone-mapping and scaling of the viewable residual image Res v is a parametric process.
  • the parameters may be fixed or not and in the latter case they may be encoded in the bitstream BF by means of the encoder ENC1 .
  • the constant value ⁇ of the gamma correction, the scaling factor cst sca iing may be parameters which are encoded in the bitstream BF.
  • Fig. 5 shows a block diagram of the steps of a method, in accordance with an embodiment of the invention, for decoding a bitstream representing a residual image calculated by dividing an image by a backlight image.
  • a backlight image B a ⁇ is obtained for example by at least partially decoding a bitstream BF by means of the decoder DEC1 .
  • the bitstream BF may have been stored locally or received from a communication network.
  • a decoded residual image ResT is obtained by a at least partial decoding of a bitstream F by means of a decoder DEC2.
  • the bitstream F may have been stored locally or received from a communication network.
  • the decoded residual image Res ⁇ is viewable by a traditional apparatus.
  • step 54 a decoded image / is obtained by multiplying the decoded residual image Res ⁇ by the backlight image ⁇ .
  • the parameters ⁇ and/or cstscaiing are also obtained either from a local memory or by a at least partial decoding of the bitstream BF by means of the decoder DEC1 .
  • a module ISCA applied an inverse scaling to the decoded residual image Res ⁇ by dividing the decoded residual image ResT by the parameter cst ⁇ ing .
  • step 53 a module ITMO applied an inverse-tone-mapping to the decoded residual image ResT , by means of the parameters f.
  • the parameter ⁇ defines a gamma curve and the inverse-tone-mapping is just to find, from the gamma curve, the values which correspond to the pixel values of the decoded residual image Res ⁇ .
  • the decoders DEC1 , respectively DEC2 is configured to decode data which have been encoded by the encoder ENC1 , respectively DEC2.
  • the encoders ENC1 and ENC2 are not limited to a specific encoder (decoder) but when an entropy encoder (decoder) is required, an entropy encoder such as a Huffmann coder, an arithmetic coder or a context adaptive coder like Cabac used in h264/AVC or HEVC is advantageous.
  • the encoders ENC1 and ENC2 are not limited to a specific encoder which may be, for example, an image/video coder with loss like JPEG, JPEG2000, MPEG2, h264/AVC or HEVC.
  • the modules are functional units, which may or not be in relation with distinguishable physical units. For example, these modules or some of them may be brought together in a unique component or circuit, or contribute to functionalities of a software. A contrario, some modules may potentially be composed of separate physical entities.
  • the apparatus which are compatible with the invention are implemented using either pure hardware, for example using dedicated hardware such ASIC or FPGA or VLSI, respectively « Application Specific Integrated Circuit » « Field- Programmable Gate Array » « Very Large Scale Integration » or from several integrated electronic components embedded in a device or from a blend of hardware and software components.
  • Fig. 6 represents an exemplary architecture of a device 60 which may be configured to implement a method described in relation with Fig. 1-5.
  • Device 60 comprises following elements that are linked together by a data and address bus 61 :
  • microprocessor 62 which is, for example, a DSP (or Digital Signal Processor);
  • ROM Read Only Memory
  • RAM or Random Access Memory
  • ROM 63 comprises at least a program and parameters. Algorithm of the methods according to the invention is stored in the ROM 63. When switched on, the CPU 62 uploads the program in the RAM and executes the corresponding instructions.
  • RAM 64 comprises, in a register, the program executed by the CPU 62 and uploaded after switch on of the device 60, input data in a register, intermediate data in different states of the method in a register, and other variables used for the execution of the method in a register.
  • the implementations described herein may be implemented in, for example, a method or a process, an apparatus, a software program, a data stream, or a signal. Even if only discussed in the context of a single form of implementation (for example, discussed only as a method or a device), the implementation of features discussed may also be implemented in other forms (for example a program).
  • An apparatus may be implemented in, for example, appropriate hardware, software, and firmware.
  • the methods may be implemented in, for example, an apparatus such as, for example, a processor, which refers to processing devices in general, including, for example, a computer, a microprocessor, an integrated circuit, or a programmable logic device. Processors also include communication devices, such as, for example, computers, cell phones, portable/personal digital assistants ("PDAs”), and other devices that facilitate communication of information between end-users.
  • PDAs portable/personal digital assistants
  • the image I is obtained from a source.
  • the source belongs to a set comprising: - a local memory (63 or 64), e.g. a video memory or a RAM (or Random Access Memory), a flash memory, a ROM (or Read Only Memory), a hard disk ;
  • a storage interface e.g. an interface with a mass storage, a RAM, a flash memory, a ROM, an optical disc or a magnetic support;
  • a communication interface e.g. a wireline interface (for example a bus interface, a wide area network interface, a local area network interface) or a wireless interface (such as a IEEE 802.1 1 interface or a Bluetooth® interface); and
  • a wireline interface for example a bus interface, a wide area network interface, a local area network interface
  • a wireless interface such as a IEEE 802.1 1 interface or a Bluetooth® interface
  • an image capturing circuit e.g. a sensor such as, for example, a CCD (or Charge-Coupled Device) or CMOS (or Complementary Metal-Oxide-Semiconductor)).
  • a sensor such as, for example, a CCD (or Charge-Coupled Device) or CMOS (or Complementary Metal-Oxide-Semiconductor)
  • the decoded image ⁇ is sent to a destination; specifically, the destination belongs to a set comprising:
  • a local memory e.g. a video memory or a RAM, a flash memory, a hard disk ;
  • a storage interface e.g. an interface with a mass storage, a RAM, a flash memory, a ROM, an optical disc or a magnetic support;
  • a communication interface e.g. a wireline interface (for example a bus interface (e.g. USB (or Universal Serial Bus)), a wide area network interface, a local area network interface, a HDMI (High Definition Multimedia Interface) interface) or a wireless interface (such as a IEEE 802.1 1 interface, WiFi ® or a Bluetooth ® interface); and
  • a wireline interface for example a bus interface (e.g. USB (or Universal Serial Bus)
  • a wide area network interface e.g. USB (or Universal Serial Bus)
  • a wide area network interface e.g. USB (or Universal Serial Bus)
  • a local area network interface e.g. USB (or Universal Serial Bus)
  • HDMI High Definition Multimedia Interface
  • a wireless interface such as a IEEE 802.1 1 interface, WiFi ® or a Bluetooth ® interface
  • bitstream BF and/or F are sent to a destination.
  • bitstream F and BF or both bitstreams F and BF are stored in a local or remote memory, e.g. a video memory (64) or a RAM (64), a hard disk (63).
  • a storage interface (65) e.g. an interface with a mass storage, a flash memory, ROM, an optical disc or a magnetic support and/or transmitted over a communication interface (65), e.g. an interface to a point to point link, a communication bus, a point to multipoint link or a broadcast network.
  • the bitstream BF and/or F is obtained from a source.
  • the bitstream is read from a local memory, e.g. a video memory (64), a RAM (64), a ROM (63), a flash memory (63) or a hard disk (63).
  • the bitstream is received from a storage interface (65), e.g. an interface with a mass storage, a RAM, a ROM, a flash memory, an optical disc or a magnetic support and/or received from a communication interface (65), e.g. an interface to a point to point link, a bus, a point to multipoint link or a broadcast network.
  • device 60 being configured to implement an encoding method described in relation with Fig. 1-4, belongs to a set comprising:
  • a video server e.g. a broadcast server, a video-on-demand server or a web server.
  • device 60 being configured to implement a decoding method described in relation with Fig. 5, belongs to a set comprising:
  • the device A comprises means which are configured to implement a method for encoding an image as described in relation with the Fig. 1 and the device B comprises means which are configured to implement a method for decoding as described in relation with Fig. 5.
  • the network is a broadcast network, adapted to broadcast still images or video images from device A to decoding devices including the device B.
  • Implementations of the various processes and features described herein may be embodied in a variety of different equipment or applications, particularly, for example, equipment or applications.
  • equipment examples include an encoder, a decoder, a post-processor processing output from a decoder, a pre-processor providing input to an encoder, a video coder, a video decoder, a video codec, a web server, a set-top box, a laptop, a personal computer, a cell phone, a PDA, and other communication devices.
  • the equipment may be mobile and even installed in a mobile vehicle.
  • the methods may be implemented by instructions being performed by a processor, and such instructions (and/or data values produced by an implementation) may be stored on a processor-readable medium such as, for example, an integrated circuit, a software carrier or other storage device such as, for example, a hard disk, a compact diskette (“CD"), an optical disc (such as, for example, a DVD, often referred to as a digital versatile disc or a digital video disc), a random access memory (“RAM”), or a read-only memory (“ROM”).
  • the instructions may form an application program tangibly embodied on a processor-readable medium. Instructions may be, for example, in hardware, firmware, software, or a combination.
  • a processor may be characterized, therefore, as, for example, both a device configured to carry out a process and a device that includes a processor-readable medium (such as a storage device) having instructions for carrying out a process. Further, a processor-readable medium may store, in addition to or in lieu of instructions, data values produced by an implementation.
  • implementations may produce a variety of signals formatted to carry information that may be, for example, stored or transmitted.
  • the information may include, for example, instructions for performing a method, or data produced by one of the described implementations.
  • a signal may be formatted to carry as data the rules for writing or reading the syntax of a described embodiment, or to carry as data the actual syntax-values written by a described embodiment.
  • Such a signal may be formatted, for example, as an electromagnetic wave (for example, using a radio frequency portion of spectrum) or as a baseband signal.
  • the formatting may include, for example, encoding a data stream and modulating a carrier with the encoded data stream.
  • the information that the signal carries may be, for example, analog or digital information.
  • the signal may be transmitted over a variety of different wired or wireless links, as is known.
  • the signal may be stored on a processor-readable medium.

Abstract

The present invention generally relates to a method and device for encoding an image. The method comprises: - encoding (12) a backlight image determined (11) from the image; - obtaining (13) a residual image by dividing the image by a decoded version of the backlight image, - obtaining (16) a tone-mapped residual image by tone-mapping the residual image; and - encoding (19) the tone-mapped residual image. The invention relates also to a method and device for decoding a bitstream representing a residual image calculated by dividing an image by a backlight image.

Description

Method and device for encoding a high-dynamic range image and/or decoding a bitstream.
1. Field of invention.
The present invention generally relates to image/video encoding and decoding. In particular, the technical field of the present invention is related to encoding/decoding of an image whose pixels values belong to a high- dynamic range.
2. Technical background.
The present section is intended to introduce the reader to various aspects of art, which may be related to various aspects of the present invention that are described and/or claimed below. This discussion is believed to be helpful in providing the reader with background information to facilitate a better understanding of the various aspects of the present invention. Accordingly, it should be understood that these statements are to be read in this light, and not as admissions of prior art.
Low-Dynamic-Range images (LDR images) are images whose luminance values are represented with a limited number of bits (most often 8 or 10). This limited representation does not allow correct rendering of small signal variations, in particular in dark and bright luminance ranges. In high- dynamic range images (HDR images), the signal representation is extended in order to maintain a high accuracy of the signal over its entire range. In HDR images, pixel values are usually represented in floating-point format (either 32-bit or 16-bit for each component, namely float or half-float), the most popular format being openEXR half-float format (16-bit per RGB component, i.e. 48 bits per pixel) or in integers with a long representation, typically at least 16 bits. A typical approach for encoding an HDR image is to reduce the dynamic range of the image in order to encode the image by means of a traditional encoding scheme (initially configured to encode LDR images).
According to a first approach, a tone-mapping operator is applied to the input HDR image and the tone-mapped image is then encoded by means of a traditional 8-10 bit depth encoding scheme such as JPEG/JPEG200 or MPEG-2, H.264/AVC for video 'Advanced video coding for generic audiovisual Services", SERIES H: AUDIOVISUAL AND MULTIMEDIA SYSTEMS, Recommendation ITU-T H.264, Telecommunication Standardization Sector of ITU, January 2012). Then, an inverse tone- mapping operator is applied to the decoded image and a residual image is calculated between the input image and the decoded and inverse-tone- mapped image. Finally, the residual image is encoded by means of a second traditional 8-10 bit-depth encoder scheme.
This first approach is backward compatible in the sense that a low dynamic range image may be decoded and displayed by means of a traditional apparatus.
However, this first approach uses two encoding schemes and limits the dynamic range of the input image to be twice the dynamic range of a traditional encoding scheme (16-20 bits). Moreover, such approach leads sometimes to a low dynamic range image with a weaker correlation with the input HDR image. This leads to low coding performance of the image.
According to a second approach, a backlight image is determined from the luminance component of the input HDR image. A residual image is then obtained by dividing the input HDR image by the backlight image and both the backlight image and the residual image are directly encoded.
This specific approach for encoding an input HDR image is not backward compatibility with a traditional apparatus which is not able to decode and/or display a high dynamic range. 3. Summary of the invention.
The invention sets out to remedy some of the drawbacks of the prior art with a method for encoding an image comprising:
- encoding a backlight image determined from the image;
- obtaining a residual image by dividing the image by a decoded version of the backlight image,
- obtaining a tone-mapped residual image by tone-mapping the residual image; and
- encoding the tone-mapped residual image.
This provides a viewable residual image, i.e. a residual image in the sense that resulting residual image renders artistically the tone-mapped scene reasonably well and consistently compared to the original scene in the image. This method is thus backward compatible because the viewable residual image may be decoded and/or displayed by a traditional apparatus which is not able to handle high dynamic range.
Moreover, encoding a high dynamic range image by means of such method leads to an efficient encoding scheme because the tone-mapped residual image (low dynamic range image), which is highly spatially correlated (and temporally correlated with other images of a same sequence of images), and the backlight image are encoded separately. A coding gain is thus reached because of the high compression rate of the tone-mapped residual image and of the little amount of data to encode the backlight image.
According to an embodiment, tone-mapping the residual image comprises either a gamma correction or a SLog correction according to the pixel values of the residual image.
Gamma and SLog corrections, such that there is no loss of dark and bright information, lead to the reconstruction of an HDR image, from the residual image and the backlight image, with high precision. Moreover, gamma and S-log correction avoid flat clipped areas in both the reconstructed HRD image and the viewable residual image. According to an embodiment, obtaining the backlight image from the image comprises:
- obtaining a backlight image from a luminance component of the image; and
- modulating the backlight image with a mean luminance value of the image.
Modulating the backlight image with a mean luminance value of the image improves the global luminance coherence between the image and the residual image, e.g. a bright region in the image appears bright in the residual image and a dark region in the image appears dark in the residual image.
According to an embodiment, obtaining the backlight image from the image further comprises:
- normalizing the backlight image by its mean value before modulating the backlight image.
This allows to get a mid-gray-at-one backlight image for the image.
According to an embodiment, the method further comprises scaling of the residual image before encoding.
This put the mean gray of an image obtained from the residual image at an adequate value for both viewing and coding.
According to an embodiment, the method further comprises clipping the residual image before encoding.
Clipping the residual image ensures a limited number of bits and allows the use of a traditional encoding/decoding scheme for encoding it. Also, the encoding/decoding scheme is backward compatible with existing infrastructure (codec, displays, distribution channels, etc.) because only the residual image, which has a low dynamic range, typically 8-10 bits, may be transmitted over such infrastructure to display a low dynamic range version of the image. The small bit-stream, which contains the backlight data, may be carried in a side container over a dedicated infrastructure to distribute the original version of the image (i.e. a HDR image). According to another of its aspects, the invention relates to a method for decoding an image from a bitstream comprising:
- obtaining a backlight image and a decoded residual image by a at least partially decoding of the bitstream, and
- obtaining a decoded image by multiplying the decoded residual image by the backlight image;
characterized in that the decoded residual image is inverse-tone- mapped before multiplying the decoded residual image by the backlight image.
According to another of its aspects, the invention relates to a device for encoding an image and a device for decoding a bitstream which implements the above methods.
The specific nature of the invention as well as other objects, advantages, features and uses of the invention will become evident from the following description of a preferred embodiment taken in conjunction with the accompanying drawings.
4. List of figures. The embodiments will be described with reference to the following figures:
- Fig. 1 shows a block diagram of the steps of a method for encoding an image I in accordance with an embodiment of the invention;
- Fig. 2 shows a block diagram of a step of the method in accordance with an embodiment of the invention;
- Fig. 3 shows a block diagram of a step of the method in accordance with an embodiment of the invention;
- Fig. 4 shows a block diagram of a step of the method in accordance with an embodiment of the invention;
- Fig. 5 shows a block diagram of the steps of a method, in accordance with an embodiment of the invention, for decoding a bitstream representing a residual image calculated by dividing an image by a backlight image;
- Fig. 6 shows an example of an architecture of a device in accordance with an embodiment of the invention; and
- Fig. 7 shows two remote devices communicating over a communication network in accordance with an embodiment of the invention;
5. Detailed description of preferred embodiments of the invention.
The present invention will be described more fully hereinafter with reference to the accompanying figures, in which embodiments of the invention are shown. This invention may, however, be embodied in many alternate forms and should not be construed as limited to the embodiments set forth herein. Accordingly, while the invention is susceptible to various modifications and alternative forms, specific embodiments thereof are shown by way of example in the drawings and will herein be described in detail. It should be understood, however, that there is no intent to limit the invention to the particular forms disclosed, but on the contrary, the invention is to cover all modifications, equivalents, and alternatives falling within the spirit and scope of the invention as defined by the claims. Like numbers refer to like elements throughout the description of the figures.
The terminology used herein is for the purpose of describing particular embodiments only and is not intended to be limiting of the invention. As used herein, the singular forms "a", "an" and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise. It will be further understood that the terms "comprises", "comprising," "includes" and/or "including" when used in this specification, specify the presence of stated features, integers, steps, operations, elements, and/or components but do not preclude the presence or addition of one or more other features, integers, steps, operations, elements, components, and/or groups thereof. Moreover, when an element is referred to as being "responsive" or "connected" to another element, it can be directly responsive or connected to the other element, or intervening elements may be present. In contrast, when an element is referred to as being "directly responsive" or "directly connected" to other element, there are no intervening elements present. As used herein the term "and/or" includes any and all combinations of one or more of the associated listed items and may be abbreviated as"/".
It will be understood that, although the terms first, second, etc. may be used herein to describe various elements, these elements should not be limited by these terms. These terms are only used to distinguish one element from another. For example, a first element could be termed a second element, and, similarly, a second element could be termed a first element without departing from the teachings of the disclosure.
Although some of the diagrams include arrows on communication paths to show a primary direction of communication, it is to be understood that communication may occur in the opposite direction to the depicted arrows.
Some embodiments are described with regard to block diagrams and operational flowcharts in which each block represents a circuit element, module, or portion of code which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that in other implementations, the function(s) noted in the blocks may occur out of the order noted. For example, two blocks shown in succession may, in fact, be executed substantially concurrently or the blocks may sometimes be executed in the reverse order, depending on the functionality involved.
Reference herein to "one embodiment" or "an embodiment" means that a particular feature, structure, or characteristic described in connection with the embodiment can be included in at least one implementation of the invention. The appearances of the phrase "in one embodiment" or "according to an embodiment" in various places in the specification are not necessarily all referring to the same embodiment, nor are separate or alternative embodiments necessarily mutually exclusive of other embodiments. Reference numerals appearing in the claims are by way of illustration only and shall have no limiting effect on the scope of the claims.
While not explicitly described, the present embodiments and variants may be employed in any combination or sub-combination.
The invention is described for encoding/decoding an image but extends to the encoding/decoding of a sequence of images (video) because each image of the sequence is sequentially encoded/decoded as described below.
Fig. 1 shows a block diagram of the steps of a method for encoding an image I in accordance with an embodiment of the invention.
In step 10, a module IC obtains the luminance component L and potentially at least one color component C(i) of the image I to be encoded.
For example, when the image I belongs to the color space (Χ,Υ,Ζ), the luminance component L is obtained by a transform f(.) of the component Y, e.g. L=f(Y).
When the image I belongs to the color space (R,G,B), the luminance component L is obtained, for instance in the 709 gamut, by a linear combination which is given by:
L=0.2127.R+0.7152.G+0.0722.B
In step 1 1 , a module BAM determines a backlight image Bal from the luminance component L of the image I.
According to an embodiment of the step 1 1 , illustrated in Fig. 2, a module Bl determines a backlight image Ba as being a weighted linear combination of shape functions ψι given by:
Figure imgf000009_0001
with cii being weighting coefficients.
Thus, determining a backlight image Ba from a luminance component L consists in finding optimal weighting coefficients (and potentially also toptimal shape functions if not known beforehand) in order that the backlight image Ba fits the luminance component L.
There are many well-known methods to find the weighting coefficients a,. For example, one may use a least mean square method to minimize the mean square error between the backlight image Ba and the luminance component L.
The invention is not limited to any specific method to obtain the backlight image Ba.
It may be noted that the shape functions may be the true physical response of a display backlight (made of LED's for instance, each shape function then corresponding to the response of one LED) or may be a pure mathematical construction in order to fit the luminance component at best.
According to this embodiment, the backlight image Bal, output from step 1 1 , is the backlight image Ba given by equation (1 ).
According to an embodiment of the step 1 1 , illustrated in Fig. 3, a module BM modulates the backlight image Ba (given by equation (1 )) with a mean luminance value Lmean of the image I obtained by the means of a module HL.
According to this embodiment, the backlight image Bal, output from step 1 1 , is the modulated backlight image.
According to an embodiment, the module HL is configured to calculate the mean luminance value Lmean over the whole luminance component L.
According to an embodiment, the module HL is configured to calculate the mean luminance value Lmean by
1
Lmean E^L^^fi
with β being a coefficient less than 1 and E(X) the mathematical expectation value (mean) of the luminance component L.
This last embodiment is advantageous because it avoids that the mean luminance value Lmean be influenced by a few pixels with extreme high values which usually leads to very annoying temporal mean brightness instability when the image I belongs to a sequence of images.
The invention is not limited to a specific embodiment for calculating the mean luminance value Lmean.
According to a variant of this embodiment, illustrated in Fig. 4, a module N normalizes the backlight image Ba (given by equation (1 )) by its mean value E(Ba) such that one gets a mid-gray-at-one backlight image Bagray for the image (or for all images if the image I belongs to a sequence of images):
Ba
Bagray = ~E(Ba
Then, the module BM is configured to modulate the mid-gray-at-one backlight image Bagray with the mean luminance value Lmean of the image L, by using the following relation
Bamod ¾ CSt-mod- Lmean - Bagray (2)
with cstmod being a modulation coefficient and a being another modulation coefficient less than 1 , typically 1/3.
According to this variant, the backlight image Bal, output from step 1 1 , is the modulated backlight image Bamod given by equation (2).
It may be noted that the modulation coefficient cstmod is tuned to get a good looking brightness for the residual image and highly depends on the process to obtain the backlight image. For example, cstm0Ci ~ 1 .7 for a backlight image obtained by least means squares.
Practically, by linearity, all operations to modulate the backlight image apply to the backlight coefficients at as a correcting factor which transforms the coefficients at into new coefficients at such that one gets
Figure imgf000011_0001
In step 12, the data needed to determine the backlight image Bal, output from step 1 1 , are encoded by means of an encoder ENC1 and added in a bitstream BF which may be stored on a local or remote memory and/or transmitted through a communication interface (e.g. to a bus or over a communication network or a broadcast network).
For example, the data to be encoded are limited to the weighting coefficients at or at when known non-adaptive shape functions are used, but the shape functions ψ, may also be a priori unknown and then encoded in the bitstream BF, for instance in a case of a somewhat optimal mathematical construction for better fitting. So, all the weighting coefficients at or a( (and potentially shape functions ψ,) are encoded in the bitstream BF. Advantageously, the weighting coefficients at or ( are quantized before encoded in order to reduce the size of the bitstream BF.
In step 13, a residual image Res is calculated by dividing the image by a decoded version Ba of the backlight image.
It is advantageous to use the decoded version Ba of the backlight image to ensure a same backlight image on both encoder and decoder side, thus leading to a better precision of a final decoded image /.
More precisely, the luminance component L and potentially each colour component C(i) of the image I, obtained from the module IC, is divided by the decoded version Ba of the backlight image. This division is done pixel per pixel.
For example, when the components R, G or B of the image I are expressed in the color space (R,G,B), the component RRes, GRes and BRes are obtained as follows:
Rres= R/Ba, Gres= G/Ba, Bres= B/Ba,
For example, when the components X, Y or Z of the image I are expressed in the color space (Υ,Υ,Ζ), the component XRes, YRes and ZRes are obtained as follows:
Xres= X/Ba Yres= ΎΐΒα Zres= ZlBa
According to an embodiment, in step 14, the decoded version Ba of the backlight image is obtained by decoding at least partially the bitstream BF by means of a decoder DEC1 .
As explained before, some data needed to obtain the backlight image, output of step 1 1 , have been encoded (step 12) and then obtained by at least partially decoding the bitstream BF.
Following the example given above, weighting coefficients ( (and potentially shape functions ¾) are then obtained as output of step 14.
Then, in step 15, a module BAG generates a decoded version Ba of the backlight image from the weighting coefficients at and either some known non-adaptive shape functions or the shape functions ¾ by: In step 16, a module TMO tone-maps the residual image Res in order to get a viewable residual image Resv.
It may appear that the residual image Res may not be viewable because its dynamic range is too high and because a decoded version of this residual image Res shows too visible artifacts. Tone-mapping the residual image remedies to at least one of these drawbacks.
The invention is not limited to any specific tone-mapping operator. This single condition is that the tone-mapping operator shall be reversible.
For example, the tone-mapping operator defined by Reinhard may be used {Reinhard, E., Stark, M., Shirley, P., and Ferwerda, J., \Photographic tone reproduction for digital images, " ACM Transactions on Graphics 21 (July 2002)), or Boitard, R., Bouatouch, K., Cozot, R., Thoreau, D., & Gruson, A. (2012). Temporal coherency for video tone mapping. In A. M. J. van Eijk, C. C. Davis, S. M. Hammel, & A. K. Majumdar (Eds.), Proc. SPIE 8499, Applications of Digital Image Processing (p. 84990D-84990D-10)).
In step 19, the viewable residual image Resv is encoded by means of an encoder ENC2 in a bitstream F which may be stored on a local or remote memory and/or transmitted through a communication interface (e.g. on a bus or over a communication network or a broadcast network).
According to an embodiment of the step 16, tone mapping the residual image comprises either a gamma correction or a SLog correction according to the pixel values of the residual image.
The viewable residual image Resv is then given, for example, by:
Resv = A. Resr
with A being a constant value, γ being a coefficient of a gamma curve equal, for example, to 1/2.4.
Alternatively, the viewable residual image Resv is given, for example, by:
Resv = a. \n Res + b) + c
with a,b and c being coefficients of a SLog curve determined such that 0 and 1 are invariant, and the derivative of the SLog curve is continuous in 1 when prolonged by a gamma curve below 1 . Thus, a,b and c are functions of the parameter y.
According to an embodiment, the parameter γ of the gamma-Slog curve is encoded in the bitstream BF.
Applying a gamma correction on the residual image Res, pulls up the dark regions but does not lower enough high lights to avoid burning of bright pixels.
Applying a SLog correction on the residual image Res lowers enough high lights but does not pull up the dark regions.
Then, according to a preferred embodiment of the step 16, the module
TMO applies either the gamma correction or the SLog correction according to the pixel values of the residual image Res.
For example, when the pixel value of the residual image Res is below a threshold (equal to 1 ), then the gamma correction is applied and otherwise the SLog correction is applied.
By construction, the viewable residual image Resv usually has a mean value more or less close to 1 depending on the brightness of the image I, making the use of the above gamma-Slog combination particularly efficient.
According to an embodiment of the method, in step 17, a module SCA scales the viewable residual image Resv before encoding (step 19) by multiplying each component of the viewable residual image Resv by a scaling factor cstscaiing- The resulting residual image Ress is then given by
ReSs CStscaling- ReSy
In a specific embodiment, the scaling factor cstSCaiing is defined to map the values of the viewable residual image Resv between from 0 to the maximum value 2N-1 , where N is the number of bits allowed as input for the coding by the encoder ENC2.
This is naturally obtained by mapping the value 1 (which is roughly the mean value of the viewable residual image Resv) to the mid-gray value 2N"1. Thus, for a viewable residual image Resv with a standard number of bits N=8, a scaling factor equal to 120 is a very consistent value because very closed to the neutral gray at 27=128. According to this embodiment of the method, in step 19, the residual image Ress is encoded by means of an encoder ENC2.
According to an embodiment of the method, in step 18, a module CLI clips the viewable residual image Resv before encoding to limit its dynamic range to a targeted dynamic range TDR which is defined, for example, according to the capabilities of the encoder ENC2.
According to this last embodiment, the resulting residual image Resc is given, for example, by:
Resc = max(2N, Resv)
Resc = max(2N, Ress)
according to the embodiments of the method.
The invention is not limited to such clipping (max(.)) but extends to any kind of clipping.
According to this embodiment of the method, in step 19, the residual image Resc is encoded by means of an encoder ENC2.
Combining the scaling and clipping embodiments leads to a residual image Ressc given by:
Ressc = max(2N, cstScaiing*Resv)
or by Ressc = max(2N, cstScaiing*Ress) according to the embodiments of the method.
According to this embodiment of the method, in step 19, the residual image Ressc is encoded by means of an encoder ENC2.
The tone-mapping and scaling of the viewable residual image Resv is a parametric process. The parameters may be fixed or not and in the latter case they may be encoded in the bitstream BF by means of the encoder ENC1 .
According to an embodiment of the method, the constant value γ of the gamma correction, the scaling factor cstscaiing may be parameters which are encoded in the bitstream BF.
It may be noted that the choice of the parameters a, cstmod, cstscaiing, Y, gives room for the choice of the tone-mapping which suits the content the best following the taste of an expert in post-production and color grading.
On the other hand, universal parameters may be defined in order to be acceptable for all of a large variety of images. Then, no parameters are encoded in the bitstream BF.
Fig. 5 shows a block diagram of the steps of a method, in accordance with an embodiment of the invention, for decoding a bitstream representing a residual image calculated by dividing an image by a backlight image.
As explained above, in steps 14 and 15, a backlight image Ba ~ is obtained for example by at least partially decoding a bitstream BF by means of the decoder DEC1 .
The bitstream BF may have been stored locally or received from a communication network.
In step 51 , a decoded residual image ResT is obtained by a at least partial decoding of a bitstream F by means of a decoder DEC2.
The bitstream F may have been stored locally or received from a communication network.
As explained below, the decoded residual image Res~ is viewable by a traditional apparatus.
In step 54, a decoded image / is obtained by multiplying the decoded residual image Res~ by the backlight image ίζ.
According to an embodiment of step 14, the parameters γ and/or cstscaiing are also obtained either from a local memory or by a at least partial decoding of the bitstream BF by means of the decoder DEC1 .
According to the method, in step 52, a module ISCA applied an inverse scaling to the decoded residual image Res~ by dividing the decoded residual image ResT by the parameter cst^ing.
In step 53, a module ITMO applied an inverse-tone-mapping to the decoded residual image ResT , by means of the parameters f.
For example, the parameter γ defines a gamma curve and the inverse-tone-mapping is just to find, from the gamma curve, the values which correspond to the pixel values of the decoded residual image Res~ . The decoders DEC1 , respectively DEC2, is configured to decode data which have been encoded by the encoder ENC1 , respectively DEC2.
The encoders ENC1 and ENC2 (and decoders DEC1 and DEC2) are not limited to a specific encoder (decoder) but when an entropy encoder (decoder) is required, an entropy encoder such as a Huffmann coder, an arithmetic coder or a context adaptive coder like Cabac used in h264/AVC or HEVC is advantageous.
The encoders ENC1 and ENC2 (and decoders DEC1 and DEC2) are not limited to a specific encoder which may be, for example, an image/video coder with loss like JPEG, JPEG2000, MPEG2, h264/AVC or HEVC.
On Fig. 1-5, the modules are functional units, which may or not be in relation with distinguishable physical units. For example, these modules or some of them may be brought together in a unique component or circuit, or contribute to functionalities of a software. A contrario, some modules may potentially be composed of separate physical entities. The apparatus which are compatible with the invention are implemented using either pure hardware, for example using dedicated hardware such ASIC or FPGA or VLSI, respectively « Application Specific Integrated Circuit », « Field- Programmable Gate Array », « Very Large Scale Integration », or from several integrated electronic components embedded in a device or from a blend of hardware and software components.
Fig. 6 represents an exemplary architecture of a device 60 which may be configured to implement a method described in relation with Fig. 1-5.
Device 60 comprises following elements that are linked together by a data and address bus 61 :
- a microprocessor 62 (or CPU), which is, for example, a DSP (or Digital Signal Processor);
- a ROM (or Read Only Memory) 63;
- a RAM (or Random Access Memory) 64;
- an I/O interface 65 for reception of data to transmit, from an application; and
- a battery 66 According to a variant, the battery 66 is external to the device. Each of these elements of Fig. 6 are well-known by those skilled in the art and won't be disclosed further. In each of mentioned memory, the word « register » used in the specification can correspond to area of small capacity (some bits) or to very large area (e.g. a whole program or large amount of received or decoded data). ROM 63 comprises at least a program and parameters. Algorithm of the methods according to the invention is stored in the ROM 63. When switched on, the CPU 62 uploads the program in the RAM and executes the corresponding instructions.
RAM 64 comprises, in a register, the program executed by the CPU 62 and uploaded after switch on of the device 60, input data in a register, intermediate data in different states of the method in a register, and other variables used for the execution of the method in a register.
The implementations described herein may be implemented in, for example, a method or a process, an apparatus, a software program, a data stream, or a signal. Even if only discussed in the context of a single form of implementation (for example, discussed only as a method or a device), the implementation of features discussed may also be implemented in other forms (for example a program). An apparatus may be implemented in, for example, appropriate hardware, software, and firmware. The methods may be implemented in, for example, an apparatus such as, for example, a processor, which refers to processing devices in general, including, for example, a computer, a microprocessor, an integrated circuit, or a programmable logic device. Processors also include communication devices, such as, for example, computers, cell phones, portable/personal digital assistants ("PDAs"), and other devices that facilitate communication of information between end-users.
According to a specific embodiment of encoding or encoder, the image I is obtained from a source. For example, the source belongs to a set comprising: - a local memory (63 or 64), e.g. a video memory or a RAM (or Random Access Memory), a flash memory, a ROM (or Read Only Memory), a hard disk ;
- a storage interface (65), e.g. an interface with a mass storage, a RAM, a flash memory, a ROM, an optical disc or a magnetic support;
- a communication interface (65), e.g. a wireline interface (for example a bus interface, a wide area network interface, a local area network interface) or a wireless interface (such as a IEEE 802.1 1 interface or a Bluetooth® interface); and
- an image capturing circuit (e.g. a sensor such as, for example, a CCD (or Charge-Coupled Device) or CMOS (or Complementary Metal-Oxide-Semiconductor)).
According to different embodiments of the decoding or decoder, the decoded image ΐ is sent to a destination; specifically, the destination belongs to a set comprising:
- a local memory (63 or 64), e.g. a video memory or a RAM, a flash memory, a hard disk ;
- a storage interface (65), e.g. an interface with a mass storage, a RAM, a flash memory, a ROM, an optical disc or a magnetic support;
- a communication interface (65), e.g. a wireline interface (for example a bus interface (e.g. USB (or Universal Serial Bus)), a wide area network interface, a local area network interface, a HDMI (High Definition Multimedia Interface) interface) or a wireless interface (such as a IEEE 802.1 1 interface, WiFi ® or a Bluetooth ® interface); and
- a display.
According to different embodiments of encoding or encoder, the bitstream BF and/or F are sent to a destination. As an example, one of bitstream F and BF or both bitstreams F and BF are stored in a local or remote memory, e.g. a video memory (64) or a RAM (64), a hard disk (63). In a variant, one or both bitstreams are sent to a storage interface (65), e.g. an interface with a mass storage, a flash memory, ROM, an optical disc or a magnetic support and/or transmitted over a communication interface (65), e.g. an interface to a point to point link, a communication bus, a point to multipoint link or a broadcast network.
According to different embodiments of decoding or decoder, the bitstream BF and/or F is obtained from a source. Exemplarily, the bitstream is read from a local memory, e.g. a video memory (64), a RAM (64), a ROM (63), a flash memory (63) or a hard disk (63). In a variant, the bitstream is received from a storage interface (65), e.g. an interface with a mass storage, a RAM, a ROM, a flash memory, an optical disc or a magnetic support and/or received from a communication interface (65), e.g. an interface to a point to point link, a bus, a point to multipoint link or a broadcast network.
According to different embodiments, device 60 being configured to implement an encoding method described in relation with Fig. 1-4, belongs to a set comprising:
- a mobile device ;
- a communication device ;
- a game device ;
- a tablet (or tablet computer) ;
- a laptop ;
- a still image camera;
- a video camera ;
- an encoding chip;
- a still image server ; and
- a video server (e.g. a broadcast server, a video-on-demand server or a web server).
According to different embodiments, device 60 being configured to implement a decoding method described in relation with Fig. 5, belongs to a set comprising:
- a mobile device ;
- a communication device ; - a game device ;
- a set top box;
- a TV set;
- a tablet (or tablet computer) ;
- a laptop ;
- a display and
- a decoding chip.
According to an embodiment illustrated in Fig. 7, in a transmission context between two remote devices A and B over a communication network NET, the device A comprises means which are configured to implement a method for encoding an image as described in relation with the Fig. 1 and the device B comprises means which are configured to implement a method for decoding as described in relation with Fig. 5.
According to a variant of the invention, the network is a broadcast network, adapted to broadcast still images or video images from device A to decoding devices including the device B.
Implementations of the various processes and features described herein may be embodied in a variety of different equipment or applications, particularly, for example, equipment or applications. Examples of such equipment include an encoder, a decoder, a post-processor processing output from a decoder, a pre-processor providing input to an encoder, a video coder, a video decoder, a video codec, a web server, a set-top box, a laptop, a personal computer, a cell phone, a PDA, and other communication devices. As should be clear, the equipment may be mobile and even installed in a mobile vehicle.
Additionally, the methods may be implemented by instructions being performed by a processor, and such instructions (and/or data values produced by an implementation) may be stored on a processor-readable medium such as, for example, an integrated circuit, a software carrier or other storage device such as, for example, a hard disk, a compact diskette ("CD"), an optical disc (such as, for example, a DVD, often referred to as a digital versatile disc or a digital video disc), a random access memory ("RAM"), or a read-only memory ("ROM"). The instructions may form an application program tangibly embodied on a processor-readable medium. Instructions may be, for example, in hardware, firmware, software, or a combination. Instructions may be found in, for example, an operating system, a separate application, or a combination of the two. A processor may be characterized, therefore, as, for example, both a device configured to carry out a process and a device that includes a processor-readable medium (such as a storage device) having instructions for carrying out a process. Further, a processor-readable medium may store, in addition to or in lieu of instructions, data values produced by an implementation.
As will be evident to one of skill in the art, implementations may produce a variety of signals formatted to carry information that may be, for example, stored or transmitted. The information may include, for example, instructions for performing a method, or data produced by one of the described implementations. For example, a signal may be formatted to carry as data the rules for writing or reading the syntax of a described embodiment, or to carry as data the actual syntax-values written by a described embodiment. Such a signal may be formatted, for example, as an electromagnetic wave (for example, using a radio frequency portion of spectrum) or as a baseband signal. The formatting may include, for example, encoding a data stream and modulating a carrier with the encoded data stream. The information that the signal carries may be, for example, analog or digital information. The signal may be transmitted over a variety of different wired or wireless links, as is known. The signal may be stored on a processor-readable medium.
A number of implementations have been described. Nevertheless, it will be understood that various modifications may be made. For example, elements of different implementations may be combined, supplemented, modified, or removed to produce other implementations. Additionally, one of ordinary skill will understand that other structures and processes may be substituted for those disclosed and the resulting implementations will perform at least substantially the same function(s), in at least substantially the same way(s), to achieve at least substantially the same result(s) as the implementations disclosed. Accordingly, these and other implementations are contemplated by this application.

Claims

CLAIMS 1 . Method for encoding an image, characterized in that it comprises:
- encoding (12) a backlight image determined (1 1 ) from the image;
- obtaining (13) a residual image by dividing the image by a decoded version of the backlight image;
- obtaining (16) a tone-mapped residual image by tone-mapping the residual image; and
- encoding (19) the tone-mapped residual image.
2. Method for decoding a bitstream representing a residual image calculated by dividing an image by a backlight image, the method comprising:
- obtaining a backlight image (14, 15) and a decoded residual image
(51 ) by a at least partially decoding of the bitstream, and
- obtaining (54) a decoded image by multiplying the decoded residual image by the backlight image;
characterized in that the decoded residual image is inverse-tone- mapped (53) before multiplying the decoded residual image by the backlight image.
3. Device for encoding an image, characterized in that it is configured to:
- encode (ENC1 ) a backlight image determined (BAM) from the image; - obtain a residual image by dividing the image by a decoded version of the backlight image,
- obtain (TMO) a tone-mapped residual image by tone-mapping the residual image; and
- encode (ENC2) the tone-mapped residual image.
4. Device for decoding a bitstream representing a residual image calculated by dividing an image by a backlight image, wherein it is configured to: - obtain a backlight image (DEC1 , BAG) and a decoded residual image (DEC2) by a at least partially decoding of the bitstream, and
- obtain a decoded image by multiplying the decoded residual image by the backlight image;
characterized in that it further configured to for inverse tone-map
(ITMO) a decoded residual image before multiplying the decoded residual image by a backlight image.
5. A computer program product comprising program code instructions to execute the steps of the encoding method according to claim 1 when this program is executed on a computer.
6. A computer program product comprising program code instructions to execute the steps of the decoding method according to claim 2 when this program is executed on a computer.
7. A processor readable medium having stored therein instructions for causing a processor to perform at least the steps of the encoding method according to claim 1 .
8. A processor readable medium having stored therein instructions for causing a processor to perform at least the steps of the decoding method according to claim 2.
PCT/EP2014/078948 2013-12-27 2014-12-22 Method and device for encoding a high-dynamic range image and/or decoding a bitstream WO2015097124A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
EP13306879.1 2013-12-27
EP13306879 2013-12-27

Publications (1)

Publication Number Publication Date
WO2015097124A1 true WO2015097124A1 (en) 2015-07-02

Family

ID=49955854

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/EP2014/078948 WO2015097124A1 (en) 2013-12-27 2014-12-22 Method and device for encoding a high-dynamic range image and/or decoding a bitstream

Country Status (2)

Country Link
TW (1) TW201537961A (en)
WO (1) WO2015097124A1 (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20100046612A1 (en) * 2008-08-25 2010-02-25 Microsoft Corporation Conversion operations in scalable video encoding and decoding
EP2375383A2 (en) * 2004-04-23 2011-10-12 Dolby Laboratories Licensing Corporation Encoding, decoding and representing high dynamic range images
WO2011163114A1 (en) * 2010-06-21 2011-12-29 Dolby Laboratories Licensing Corporation Displaying images on local-dimming displays

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP2375383A2 (en) * 2004-04-23 2011-10-12 Dolby Laboratories Licensing Corporation Encoding, decoding and representing high dynamic range images
US20100046612A1 (en) * 2008-08-25 2010-02-25 Microsoft Corporation Conversion operations in scalable video encoding and decoding
WO2011163114A1 (en) * 2010-06-21 2011-12-29 Dolby Laboratories Licensing Corporation Displaying images on local-dimming displays

Non-Patent Citations (10)

* Cited by examiner, † Cited by third party
Title
BOITARD, R.; BOUATOUCH, K.; COZOT, R.; THOREAU, D.; GRUSON, A.: "Proc. SPIE 8499, Applications of Digital Image Processing", 2012, article "Temporal coherency for video tone mapping", pages: 84990D - 84990D,1
DAVID TOUZÉ ET AL: "HDR Video Coding based on Local LDR Quantization", HDRI2014 -SECOND INTERNATIONAL CONFERENCE AND SME WORKSHOP ON HDR IMAGING, 4 March 2014 (2014-03-04), XP055112158, Retrieved from the Internet <URL:http://people.irisa.fr/Ronan.Boitard/articles/2014/HDR Video Coding based on Local LDR Quantization.pdf> [retrieved on 20140404] *
FIRAS HASSAN ET AL: "High throughput JPEG2000 compatible encoder for high dynamic range images", IEEE INTERNATIONAL CONFERENCE ON IMAGE PROCESSING, 12 October 2008 (2008-10-12), pages 1424 - 1427, XP031374279, ISBN: 978-1-4244-1765-0 *
RAFAL MANTIUK: "Multidimensional retargeting: Tone Mapping", ACM SIGGRAPH ASIA 2011 COURSES: MULTIDIMENSIONAL IMAGE RETARGETING, 1 December 2011 (2011-12-01), pages 1 - 75, XP055112802, Retrieved from the Internet <URL:http://vcg.isti.cnr.it/Publications/2011/BAADEGMM11/talk1_tone_mapping.pdf> [retrieved on 20140408] *
REINHARD, E.; STARK, M.; SHIRLEY, P.; FERWERDA, J.: "IPhotographic tone reproduction for digital images", ACM TRANSACTIONS ON GRAPHICS, vol. 21, July 2002 (2002-07-01)
TAKAO JINNO ET AL: "High Contrast HDR Video Tone Mapping Based on Gamma Curves", IEICE TRANSACTIONS ON FUNDAMENTALS OF ELECTRONICS, COMMUNICATIONS AND COMPUTER SCIENCES, vol. E94A, no. 2, 1 February 2011 (2011-02-01), pages 525 - 532, XP001560934, ISSN: 0916-8508, [retrieved on 20110201], DOI: 10.1587/TRANSFUN.E94.A.525 *
TAKAO JINNO ET AL: "New local tone mapping and two-layer coding for HDR images", 2012 IEEE INTERNATIONAL CONFERENCE ON ACOUSTICS, SPEECH AND SIGNAL PROCESSING, 25 March 2012 (2012-03-25) - 30 March 2012 (2012-03-30), pages 765 - 768, XP032227239, ISBN: 978-1-4673-0045-2, DOI: 10.1109/ICASSP.2012.6287996 *
TOUZE DAVID ET AL: "High dynamic range video distribution using existing video codecs", 2013 PICTURE CODING SYMPOSIUM (PCS), IEEE, 8 December 2013 (2013-12-08), pages 349 - 352, XP032566992, DOI: 10.1109/PCS.2013.6737755 *
YASIR SALIH ET AL: "Tone mapping of HDR images: A review", IEEE INTERNATIONAL CONFERENCE ON INTELLIGENT AND ADVANCED SYSTEMS, 12 June 2012 (2012-06-12), pages 368 - 373, XP032238666, ISBN: 978-1-4577-1968-4, DOI: 10.1109/ICIAS.2012.6306220 *
YEU-HORNG SHIAU ET AL: "High Dynamic Range Image Rendering with Order-Statistics Filter", IEEE INTERNATIONAL CONFERENCE ON GENETIC AND EVOLUTIONARY COMPUTING, 25 August 2012 (2012-08-25), pages 352 - 355, XP032327353, ISBN: 978-1-4673-2138-9, DOI: 10.1109/ICGEC.2012.100 *

Also Published As

Publication number Publication date
TW201537961A (en) 2015-10-01

Similar Documents

Publication Publication Date Title
US9924178B2 (en) Method and device for encoding a high-dynamic range image and/or decoding a bitstream
US10250893B2 (en) Method and device for encoding both a high-dynamic range frame and an imposed low-dynamic range frame
WO2015097118A1 (en) Method and device for encoding a high-dynamic range image into a bitstream and/or decoding a bitstream representing a high-dynamic range image
US10148958B2 (en) Method and device for encoding and decoding a HDR picture and a LDR picture
WO2015097135A1 (en) Method and device for encoding a high-dynamic range image
WO2015097126A1 (en) Method and device for encoding a high-dynamic range image and/or decoding a bitstream
EP3113494A1 (en) Method and device for encoding a high-dynamic range image
WO2015097124A1 (en) Method and device for encoding a high-dynamic range image and/or decoding a bitstream
WO2015097131A1 (en) Method and device for encoding a high-dynamic range image
WO2015097129A1 (en) Method and device for encoding a high-dynamic range image
WO2015097134A1 (en) Method and device for encoding a high-dynamic range image and/or decoding a bitstream
WO2015177132A1 (en) Method and device for encoding a high-dynamic range frame and/or decoding a bitstream
WO2015177123A1 (en) Method and device for encoding a frame and/or decoding a bitstream representing a frame
EP3146718B1 (en) Method and device for scalable encoding of a high dynamic range frame and/or decoding a bitstream representing such a frame
EP2938083A1 (en) Method and device for processing an information data indicating that a frame contains samples of at least two distinct packed constituent frames according to a specific frame-packing-arrangement scheme
WO2015177136A1 (en) Method and device for encoding a high-dynamic range frame and/or decoding a bitstream
WO2015177133A1 (en) Method and device for encoding a high-dynamic range frame and/or decoding a bitstream
WO2015177139A1 (en) Method and device for encoding a high-dynamic range frame and/or decoding a bitstream
TW201532424A (en) Method and device for encoding a high-dynamic range image
WO2015177125A1 (en) Method and device for encoding a frame and/or decoding a bitstream representing a frame
WO2015177119A1 (en) Method and device for encoding a frame and/or decoding a bitstream representing a frame
WO2015177126A1 (en) Method and device for encoding a frame and/or decoding a bitstream representing a frame

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: 14816286

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 14816286

Country of ref document: EP

Kind code of ref document: A1