Reading a Tiff image [message #30802] |
Thu, 16 May 2002 22:09  |
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  |
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
|
|
|