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

Home » Public Forums » archive » Re: 16 bit Tiff image
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: 16 bit Tiff image [message #58995 is a reply to message #58934] Thu, 28 February 2008 23:34 Go to previous message
Stefano Scardigli is currently offline  Stefano Scardigli
Messages: 7
Registered: February 2008
Junior Member
what a mess =:-O

I'm on IDL 5.1 and I'm working on a remote server via ssh.

I haven't QUERY_TIFF
I haven't SWAP_ENDIAN_INPLACE

the images I'm dealing with are about 24 Mb each and they seem fine.
I'm thinking about some problem with multiband image (what is thinking
IDL) and the monocromatic mine.


I'm thinking to give up to this IDL.
I spent a lot of time in compiling GDL and all the other stuff it
requires. But I'm still not sure it is working fine.

Any idea?

Thanks to all


Stefano Scardigli


On Wed, 27 Feb 2008 16:12:24 -0700, David Fanning wrote:

> Stefano Scardigli writes:
>
>> better, thanks:
>>
>> IDL> img=read_tiff("V13A5.00.tif",/unsigned)
>> IDL> help,img
>> IMG LONG = Array[1000, 1000]
>> IDL> print,max(img)
>> 65535
>> IDL> write_tiff,"prova.tiff",fix(img),/SHORT <---------
>> IDL> help,img
>> IMG LONG = Array[1000, 1000]
>> IDL> print,max(img)
>> 65535
>> IDL> img2=read_tiff("prova.tiff",/unsigned)
>> IDL> help,img2
>> IMG2 LONG = Array[1000, 1000]
>> IDL> print,max(img2)
>> 255
>>
>> and now both img and img2 are LONG, but the reloaded img2 is still shrunk
>> to 255 levels (ie 8 bit)!
>
> I still don't think so. Are you being *very*
> careful with your variables? You might try using
> a .reset after you write the file and before you
> read it again. I think it is not possible to get
> what you are getting. :-)
>
> Cheers,
>
> David
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Posting html form data with idlNetURL?
Next Topic: AX and AZ keywords of iSurface and iVolume

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

Current Time: Sun Oct 12 13:12:19 PDT 2025

Total time taken to generate the page: 2.80096 seconds