How to display raw rgb 32 bits floating-point images ?
Posted: 2008-09-02T01:39:55-07:00
Hi,
I generate a file with 200*100 "pixels" written as follow (in C) :
/* red */
float red = 1.0f;
fwrite (&red, sizeof(float), 1, file);
/* same for green and blue */
I'd like to display the file but I just get a black picture.
Say the file is named rbg.out, I use the following command :
display -size 200x100 -depth 32 -define quantum:format=floating-point rgb:out.rgb
I use ImageMagick 6.4.3.
What's wrong ?
Thanks a lot.
I generate a file with 200*100 "pixels" written as follow (in C) :
/* red */
float red = 1.0f;
fwrite (&red, sizeof(float), 1, file);
/* same for green and blue */
I'd like to display the file but I just get a black picture.
Say the file is named rbg.out, I use the following command :
display -size 200x100 -depth 32 -define quantum:format=floating-point rgb:out.rgb
I use ImageMagick 6.4.3.
What's wrong ?
Thanks a lot.