Read _ tiff with Sub_Rect Keyword [message #44929] |
Wed, 20 July 2005 23:43  |
raval.chintan
Messages: 54 Registered: May 2005
|
Member |
|
|
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
|
|
|
Re: Read _ tiff with Sub_Rect Keyword [message #44978 is a reply to message #44929] |
Wed, 27 July 2005 23:27  |
raval.chintan
Messages: 54 Registered: May 2005
|
Member |
|
|
Hi Chris,
Thank you for your valuable suggestion that makes my program much
faster.
I am a coming from C++ programming backgroud. So i m new to IDL.
While learning IDL i came to know that LOOPS are making program much
slower,so instead of loops one should use the direct array operation
that are provided by IDL,
I have even checked out with some examples, that loops will make your
program slower.
But i m thinking that while processing with array internally it is
using loops, but in much faster way, i tried to find this answer, but
i do not get success. I have some compiler designing concept and
autometa theory concept. So if you have some idea then i would like to
know about it.
With regards,
Chintan
|
|
|