How can I display 16 bit grayscale pictures?
How can I display 16 bit grayscale pictures?
Have u tried QPixmap?
I've used QImage because I want to modify the pixels.
So convert the image to QPixmap and display it.
To point it out I don't have a problem to display pictures but I don't know what Format I should use.
With qRGB(value, value, value) do I only get a 8 bit grayscale, don't I?
Last edited by reimer; 20th August 2008 at 14:51.
You can only display 8-bit gray values on a standard computer screen, so you need to convert your data to 8 bit first. You can use adaptable min and max values to rescale. This way you can keep the original 16 bit in memory and let the user choose the scaling limits interactively.
I use QImage::Format_Indexed8 with a color map where the R,G,B components are always equal to eachother.
Bookmarks