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

Home » Public Forums » archive » Re: Reading a 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: Reading a Tiff image [message #30776] Fri, 17 May 2002 15:05 Go to previous message
thompson is currently offline  thompson
Messages: 584
Registered: August 1991
Senior Member
Strange, I have no problems reading that image on my computer:

IDL> print,!version
{ alpha OSF unix 5.4.1 Jan 16 2001 64 64}
IDL> a=read_tiff('8bit.tif') & help,a
A BYTE = Array[379, 1200]

Is the fact that this is 379x1200 instead of 1200x379 part of the problem?

An interesting thing is that when I open this file in xv, I get the error
message

Warning, TIFF directory is missing
required "StripByteCounts" field, calculating
from image length.

William Thompson



idlfreak@yahoo.com (Akhila) writes:

> nope, it does the samething as well. I can only see the last bit of
> the image. The image i'm using is loaded here.
> http://www.geocities.com/r_akhila/8bit.tif

> I'm sure that i'm missing out on something very simple.

> Akhila.

> David Fanning <david@dfanning.com> wrote in message news:<MPG.174e64d07cccf12b9898df@news.frii.com>...
>> Akhila (idlfreak@yahoo.com) writes:
>>
>>> I have a tiff image of size 1200x379. To open that file i wrote:
>>>
>>> filename = FilePath(Subdirectory = ['Akhila', 'Project'],'8bit.tif')
>>> OPenR,lun, filename, /Get_Lun
>>> ReadU, lun, image
>>> Free_Lun, lun
>>> image = bytarr(1200,379)
>>> image = read_tiff(filename)
>>> tv, image
>>>
>>> The image that is opened is not the complete image. I guess i'm
>>> missing on something....Can anybody please help me with that.
>>
>> Oh, dear. How about something like this:
>>
>> filename = FilePath(Subdirectory = ['Akhila', 'Project'],'8bit.tif')
>> image = Read_Tiff(filename)
>>
>> Does that work better?
>>
>> Cheers,
>>
>> David
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Re: Low quality with 'IDLgrClipboard' object
Next Topic: Reading a Tiff image

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

Current Time: Sat Oct 11 00:28:07 PDT 2025

Total time taken to generate the page: 0.72139 seconds