Open planar float RGB
I'm using YUView 2.13 and wondering if it's possible to load a raw RGB file which contains a image with planar float data? I'm asking because when I try to open such a raw file YUView crashes. Not sure why it crashes as I only select the file and press "open".
Hi! Currently YUView only supports RGB formats based on integer data. Floating point values are not supported. But I am always interested in adding support for more formats. So if you could send over a file in that format (or give some instructions on how to easily create one) then I could take a look.
Sorry for the late reply.
I think it's good to share a bit of background info why I menttoned support for RGB float images: at the moment I'm working on a project where I use several different AI-models in combination with TensorRT (cuda). Most (or all?) models seem to require one to supply normalized planar RGB buffers. While developing the Cuda kernels it's very helpful to be able to download the results and store them in a raw RGB file. Currently I convert them into packed R,G,B uint8_t buffers before saving them to a file. This works, but it would be so much nicer to be able to use YUView to directly load these files.
The files store raw floats where first the red-plane is written then the green-plane and blue-plane. The values are 0 to 1, sometimes 0-255.
I hope this provides enough info.
Not exactly what you asked for, but I added support for 32-bit integers, which can be considered as the first step to having 32-bit floats (YUView was completely unprepared for anything larger than 16-bit). Just FYI.
https://github.com/IENT/YUView/pull/624
Hi @samsnori . Thanks for the explanation. As I said I would be open to add this. Could you please add some sample file? That would be very helpfull to the implementation