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

Home » Public Forums » archive » Re: Read _ tiff with Sub_Rect Keyword
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: Read _ tiff with Sub_Rect Keyword [message #44903 is a reply to message #44892] Fri, 22 July 2005 06:52 Go to previous messageGo to previous message
btt is currently offline  btt
Messages: 345
Registered: December 2000
Senior Member
raval.chintan@gmail.com wrote:
> Hi...
>
> I have a geo tiff file which containing the 14000 X 14000 Pixels
> (Samples and Lines), I am reading it through the read_tiff function.
> Over here i want to show that image on to the 500 X 500 window Means
> by buffer for image will contain dimension [3,500,500]. For that I am
> reading with the help of read_tiff function with the sub_rect keyword.
> Where i m reading the pixels based on the ratio of 14000/500, but it is
> taking to much time. While the same thing in ENVI it is taking less
> time to read the image and display it. So is there any other method for
> read that image fast. for that i have to write my own code in IDL to
> read the tiff file?
>
> Regards,
> Chintan Raval
>
Hello,

I don't think I understand what it is that you are trying to do, but I
would assume that IDL and ENVI are accessing the image using the same
procedure. Here is an example of how to use the SUB_RECT keyword (which
I use all the time on much smaller images with no problem.)

file = FILE_SEARCH(!DIR, 'image.tif')
whole = READ_TIFF(file[0])
sub = READ_TIFF(file[0], sub_rect = [200, 200, 50, 100] )
TV, whole
TV, sub, 100, 0

Is this example similar to how you are using the SUB_RECT keyword?

Ben
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Re: Displaying 2D arrays
Next Topic: Read _ tiff with Sub_Rect Keyword

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

Current Time: Fri Oct 10 11:07:29 PDT 2025

Total time taken to generate the page: 0.24069 seconds