| Re: Solve memory problems [message #64698 is a reply to message #64623] |
Tue, 13 January 2009 13:01   |
David Fanning
Messages: 11724 Registered: August 2001
|
Senior Member |
|
|
Jean H. writes:
> if not already in use, using pointers can be of great help. You can save
> each band in a different pointer, or even each line etc. Therefore, the
> size of the required contiguous memory space decreases.
I was so upset with the HEAP_GC suggestion this morning
that I forgot to respond to this. But I don't immediately
see how this will help, unless, of course you have some
ability to read all three bands from the file as bands
and not as an image.
Otherwise, I think you would have to allocate twice
the image size to do the transfer to pointers.
Plus, you have to put the bands together again to display
the image, so I don't see where I am ahead of anything
here. What am I missing?
Cheers,
David
--
David Fanning, Ph.D.
Coyote's Guide to IDL Programming (www.dfanning.com)
Sepore ma de ni thui. ("Perhaps thou speakest truth.")
|
|
|
|