I'm using VTK to open and edit .raw 16 bit grayscale images. I'm using the vtkPNMreader, and have been able to open the image in a renderwindow.
Because the image is 16 bit grayscale however, the colors are off: it should be 0-65536 instead of 0-255. Also the color scale is reversed, i.e. 0 is white, not black. How do you work with information of the individual pixels?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I'm using VTK to open and edit .raw 16 bit grayscale images. I'm using the vtkPNMreader, and have been able to open the image in a renderwindow.
Because the image is 16 bit grayscale however, the colors are off: it should be 0-65536 instead of 0-255. Also the color scale is reversed, i.e. 0 is white, not black. How do you work with information of the individual pixels?