2002.02.03 23:41 "Re: Working w 16-bit per channel RGB tiffs", by Michael Still
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.
I use TIFFReadRGBAImage(), and then calls to TIFFGet[RGB](). Note that these functions return the _bottom_ row of the image as the first, instead of the top.
Let me know if you need more help.
Michael Still (firstname.lastname@example.org) UMT+11hrs