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

Home » Public Forums » archive » Re: Large TIFF file question
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: Large TIFF file question [message #28829 is a reply to message #28823] Wed, 16 January 2002 01:17 Go to previous messageGo to previous message
Martin Downing is currently offline  Martin Downing
Messages: 136
Registered: September 1998
Senior Member
"Craig Markwardt" <craigmnet@cow.physics.wisc.edu> wrote in message
news:ond70alxii.fsf@cow.physics.wisc.edu...
> "Dick Jackson" <dick@d-jackson.com> writes:
>
>> "Neil Talsania" <talsania@kodak.com> wrote in message
>> news:a228o1$4n6$1@news.kodak.com...
>>> Hi,
>>> I have what should be a simple question (I hope!). I am trying to
run an
>>> IDL routine that was given to me. The routine has run successfully on
>> small
>>> images, but when I try to run it on my 1.5 Gig image it fails on the
>> memory
>>> allocation.
>>>
>>> Looking at the code, it does the following:
>>>
>>> a = float(read_tiff(filename).
>>
> ...
>> Perhaps this is the problem, and you may need to get creative to find a
>> solution. (subsampling the array for further use?)
>
> Or, how about reading only a portion of the image at a time using the
> SUB_RECT keyword. This is a technique known as tiling, and of course
> the slightly more difficult part is the logic to stitch together
> the tiles at the end.
>
> Craig
>
> --
> ------------------------------------------------------------ --------------
> Craig B. Markwardt, Ph.D. EMAIL: craigmnet@cow.physics.wisc.edu
> Astrophysics, IDL, Finance, Derivatives | Remove "net" for better response
> ------------------------------------------------------------ --------------

If you are crazy/unfortunate enough to be doing this on a windows OS, you'll
be facing the 1/2Gb limit on process memory, and anyway no matter how much
memory you have the chances are you will be watching the grass grow as page
faulting takes up most of the time :( [I'd be happy for someone to prove
me wrong!]. Craig's method is undoubtedly the way to go.

Martin
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: spectral angle mapper algorithm
Next Topic: Re: gif from true color image

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

Current Time: Wed Oct 08 19:52:32 PDT 2025

Total time taken to generate the page: 0.00443 seconds