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 #30852 is a reply to message #30776] Mon, 20 May 2002 11:14 Go to previous message
idlfreak is currently offline  idlfreak
Messages: 47
Registered: October 2001
Member
I finally increased the window size as 379x1200 and the image is
displayed. But i think the window size is larger than my monitor and
so, i miss out either the beginning of the image or the last few rows.
Is there any way i can scale the image while displaying as in MATLAB?

Any help is welcome.

-Akhila.

thompson@orpheus.nascom.nasa.gov (William Thompson) wrote in message news:<ac3uql$d9g$1@skates.gsfc.nasa.gov>...
> 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 Apr 25 23:05:34 PDT 2026

Total time taken to generate the page: 2.72122 seconds