Hi,

I would like to know if there is a straightforward way to represent a 2 dimensional dataset
of float values (that can be negative) as an image (8bit or else).
Until now, I have to create a 8bit image (with function H5IMmake_image_8bit) by applying a prior "255 * (data[i] - datamin ) ) / (datamax - datamin )" conversion on each value of the data array. With this method I am also loosing the float precision on the result (float to int cast)...
Thanks
Daniel

_______________________________________________
Hdf-forum is for HDF software users discussion.
[email protected]
http://mail.hdfgroup.org/mailman/listinfo/hdf-forum_hdfgroup.org

Reply via email to