2006.03.31 05:49 "[Tiff] 16-bit TIFF to 8-bit BMP/TIF ???", by Chris L.

2006.03.31 13:47 "Re: [Tiff] 16-bit TIFF to 8-bit BMP/TIF ???", by Edward Lam

Hi Chris,

I'm I relative newbie when it comes to LibTiff but this link provides basic (but good) information on using libtiff: http://www.remotesensing.org/libtiff/libtiff.html

As noted under the TIFFRBAImage Support section, libtiff already has basic support for 16-bit to 8-bit sample conversion already. Assuming that you have available memory to read the entire image at once, this looks like it might be the quickest way.

Cheers,

-Edward

I am in the process of writing a program using openCV that analyses 8 bit images. The problem I have is that images produced from a fluorescent camera are 16 bit unsigned greyscale TIFF images (industry standard).

This is a major project for University (DNA Microarray Image Analysis)

I would like to convert this image to an 8 bit greyscale image so that I can analyse and display the image with intensities in proportion with the original image.

The way I would like to do this is to get every pixels intensity value (16 bit) and Square root it to bring it into the range between 0 and 255.

I am very much a newbie to the LibTIF package so any help will be greatly appreciated.

I would like to steer away from using other programs to accomplish this task so I can combine it into the analysis program.

This part is pretty urgent. The analysis is complete I am now trying to get TIFF images working with it.

Regards,
   Chris Le Brese