2002.01.30 04:35 "Working w 16-bit per channel RGB tiffs", by Josh Anon

2002.01.30 04:35 "Working w 16-bit per channel RGB tiffs", by Josh Anon

Hi,

I'm sorry if this is a basic question, but I haven't been able to find an answer for it. I have a 16-bit per channel tif from a digital camera. I can open it w/ libtiff, but I'm not sure about how to access the values for each pixel (as either a 16-bit/channel or 8-bit/channel sample) using libtiff. I have my own bit of code which will convert a 48-bit RGB sample to a 32-bit RGBA packed pixel, but I'm not sure where to plug it in. What I'm trying to do is to then read out the 8-bit per channel image and display it in an app.

Thanks for any ideas,

Josh

//josha@cs.northwestern.edu   ||   http://www.areax.net
"Flying is simple. You just throw yourself at the ground and miss." --
Douglas Adams, So Long, and Thanks for All the Fish