Search code examples
c#.netimagemagick

Pixels contain different values than what is exported?


I am using Magick.NET to read and write exr files and transfer data to an external encoder. I noticed that the exr files Imagemagick writes contain the correct values.

When I try to read the pixels myself, they are extraordinarily large.

While the exr file has values between 0.0 and 1.0, the pixel value in the program is withint the 1000.0 and higher. a.exr inspector grafik

I want the values that are within the exr file since these were the values I process within my program


Solution

  • According to this, ImageMagick writes "in quantum depth", which in my case is 16 bit HDRI. Dividing the pixel values by 65535.0f seems to result in what I want.