Re: 48 bit TIFF images with libtiff?
From: Spam Fighter (spamcollector_at_sympatico.ca)
Date: 03/13/05
- Previous message: mariavoss_at_gmail.com: "Overlaying images with NIH Image 1.61"
- In reply to: Nicola Montecchiari: "48 bit TIFF images with libtiff?"
- Messages sorted by: [ date ] [ thread ]
Date: Sun, 13 Mar 2005 15:16:39 -0500
On Sat, 12 Mar 2005 18:32:13 +0000, Nicola Montecchiari wrote:
> Dear All,
>
> can anyone tell me if it's at all possible to work with a 48bit TIFF
> image using the libtiff library. It doesn't seem so, at least not
> easily, the main problem is that I can't find the way the 48bit images
> are saved in a tiff file.
>
> thanks in advance
>
> Regards
> Nicola
Exactly the same way 24 bit images are saved only here sixteen bits each
of red, green and blue instead of eight bits each of red, green and blue.
Take look at the sample programs that come with libtiff. There is some
skeleton code that saves a file. You will see where they inform libtiff
the data is eight bits per color component. Change that line of code to
sixteen from eight and pass sixteen bit data when outputting a row of
data. That is all there is to it. Easy eh???
- Previous message: mariavoss_at_gmail.com: "Overlaying images with NIH Image 1.61"
- In reply to: Nicola Montecchiari: "48 bit TIFF images with libtiff?"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|