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 #28832 is a reply to message #28830] Tue, 15 January 2002 15:06 Go to previous messageGo to previous message
Dick Jackson is currently offline  Dick Jackson
Messages: 347
Registered: August 1998
Senior Member
"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).

I might guess that if you did it in two stages, you'd see something
interesting:

1.
aTemp = read_tiff(filename)

- this should use roughly 1.5 GB if it's an ordinary TIFF file with three
bytes per pixel (RGB)

2.
a = float(a)

- this would convert every byte to a 4-byte float, using roughly 6.0 GB!
(The aTemp can be deleted, of course, and your original wouldn't end up
with this 1.5 GB hanging around.)

Perhaps this is the problem, and you may need to get creative to find a
solution. (subsampling the array for further use?)

Cheers,
--
-Dick

Dick Jackson / dick@d-jackson.com
D-Jackson Software Consulting / http://www.d-jackson.com
Calgary, Alberta, Canada / +1-403-242-7398 / Fax: 241-7392
[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 20:02:17 PDT 2025

Total time taken to generate the page: 0.40482 seconds