comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Re: TIFF Read/Write Bug?
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: TIFF Read/Write Bug? [message #84249 is a reply to message #84243] Fri, 10 May 2013 16:04 Go to previous messageGo to previous message
Heinz Stege is currently offline  Heinz Stege
Messages: 189
Registered: January 2003
Senior Member
On Fri, 10 May 2013 14:29:16 -0700 (PDT), Phillip Bitzer wrote:

> I similar behavior David. Integer array in, integer array out .. unless the color vectors are included. Then it's byte out.
>
Same here. !version={ x86 Win32 Windows Microsoft Windows 8.0.1 Oct 5
2010 32 64}.

However, I wonder if it makes any sense to write integer arrays in
TIFF files with color palettes. I don't know the TIFF standard. But
the IDL manual for the Red, Green and Blue keywords says: "If you are
writing a Palette color image, set these keywords equal to the color
table vectors, scaled from 0 to 255."

My understanding is, that a TIFF file written by
Write_Tiff, outFilename, Reverse(ageImage,2), GEOTIFF=geo, $
/SHORT, /SIGNED, RED=r, GREEN=g, BLUE=b
has to be read by
testImage = Read_Tiff(outfilename,r,g,b)
And the pixel color values can be calculated by
red=r[testImage]
green=g[testImage]
blue=b[testImage]

r, g and b have 256 elements maximum. So it does not make any sense
for testImage to be integer instead of byte.

Cheers, Heinz
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Re: Help in Astronomy /curvefitting
Next Topic: Maximum number of elements in a hash

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Wed Oct 08 17:32:46 PDT 2025

Total time taken to generate the page: 0.00411 seconds