A method for converting an input image (Iin) having a first
dynamic range (Δ1), into an output image (Iout), having a second
dynamic range (Δ2) distinct from the first
dynamic range, the input image being represented by an input luminance component (Yin) comprising first input pixel values, and at least one input
chrominance component (Cbin, Crin) comprising second input pixel values, the output image being represented by an output luminance component (Yout) comprising first output pixel values, and at least one output
chrominance component (Cbout, Crout) comprising second output pixels values, the method comprising the steps of: a) determining at least one statistical value (sin) associated with the input image, based on at least part of the first input pixel values, b) determining each first output pixel value based on a corresponding first input pixel value and said at least one statistical value, c) applying on first input nodes (115, 116, 117) of an
artificial neural network (CNN1), the second input pixel values, respectively, and applying on at least one second node of the
artificial neural network, the at least one statistical value, the
artificial neural network being configured to provide on respective output nodes (111,112), the second output pixel values. A corresponding device (1) for converting an input image into an output image is also described.