(EN) One embodiment provides a method comprising determining multi-dimensional metadata corresponding to an input image, and determining ambient light information indicative of a level of ambient light in an ambient environment of a display device. The multi-dimensional metadata comprises a distribution function of pixels in the input image. The method further comprises determining, based on the ambient light information, one or more gains that adaptively compensate for the level of ambient light in the ambient environment. The method further comprises generating a tone mapping function based on the multi-dimensional metadata and the one or more gains, and applying the tone mapping function to the input image to generate a tone-mapped image that adaptively compensates for the level of ambient light in the ambient environment. The tone-mapped image is provided to the display device for presentation.
(FR) Selon un mode de réalisation, l'invention concerne un procédé qui comprend la détermination de métadonnées multidimensionnelles correspondant à une image d'entrée, et la détermination d'informations de lumière ambiante indiquant un niveau de lumière ambiante dans un environnement ambiant d'un dispositif d'affichage. Les métadonnées multidimensionnelles comprennent une fonction de distribution de pixels dans l'image d'entrée. Le procédé comprend en outre la détermination, sur la base des informations de lumière ambiante, d'un ou de plusieurs gains qui compensent de manière adaptative le niveau de lumière ambiante dans l'environnement ambiant. Le procédé comprend en outre la génération d'une fonction de mappage tonal sur la base des métadonnées multidimensionnelles et du ou des gains, et l'application de la fonction de mappage tonal à l'image d'entrée pour générer une image à mappage tonal qui compense de manière adaptative le niveau de lumière ambiante dans l'environnement ambiant. L'image à mappage tonal est fournie au dispositif d'affichage en vue de sa présentation.