[Insight-users] 16-bit -> 8-bit pixels

Gib Bogle g.bogle at auckland.ac.nz
Tue Sep 13 23:29:05 EDT 2011


I'm reading a set of 2D tiff images and writing a 3D tiff (essentially the 
example IO/ImageSeriesReadWrite.cxx).  The 2D tiffs have 16-bit pixels, but the 
pixel values are all less than 255.  I want the output file to be 8-bit.  How 
should I do the conversion (the example ImageReadCastWrite uses 
RescaleIntensityImageFilter to convert between different pixel formats, but I do 
not want to rescale the values).


More information about the Insight-users mailing list