[Insight-users] writing grayscale TIFF files

P K xtalswing at yahoo.com
Mon, 29 Mar 2004 17:55:27 -0800 (PST)


I'm having trouble writing grayscale TIFF files in
ITK.
Using the code from Examples/IO/ImageReadWrite.cxx, I
attempt to read and then write a 8- or 16-bit
grayscale TIFF file.
In both cases, the file written has colortype:
'truecolor' rather than 'grayscale,' and Matlab gives
the following error:
??? RGB image has 1 (not 3) samples per pixel.

Any ideas?
Thanks,
--Peter

__________________________________
Do you Yahoo!?
Yahoo! Finance Tax Center - File online. File on time.
http://taxes.yahoo.com/filing.html