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

Home » Public Forums » archive » Reading a Tiff image
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
Reading a Tiff image [message #30802] Thu, 16 May 2002 22:09 Go to next message
idlfreak is currently offline  idlfreak
Messages: 47
Registered: October 2001
Member
Hi,
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.

Thanx in advance.

Akhila.
Re: Reading a Tiff image [message #30851 is a reply to message #30802] Mon, 20 May 2002 11:22 Go to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
Akhila (idlfreak@yahoo.com) writes:

> 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?

IDL> TVImage, image, /Keep_Aspect

Cheers,

David

--
David W. Fanning, Ph.D.
Fanning Software Consulting
Phone: 970-221-0438, E-mail: david@dfanning.com
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Toll-Free IDL Book Orders: 1-888-461-0155
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Re: Reading a Tiff image
Next Topic: X-axis value from histogram

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

Current Time: Fri Oct 10 14:02:27 PDT 2025

Total time taken to generate the page: 0.80138 seconds