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

Home » Public Forums » archive » INSIGHT 3D Visualization ?
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: Insight [message #14514 is a reply to message #13585] Fri, 26 February 1999 00:00 Go to previous message
korpela is currently offline  korpela
Messages: 59
Registered: September 1993
Member
In article <36D67D6D.84DBD771@clinmed.gla.ac.uk>,
Dave Brennan <9147261b@clinmed.gla.ac.uk> wrote:
> I have a problem with Insight. When I try to load a 3D array into
> insight using Import File the program uses vast amounts of memory and
> swap space slowing the program until it grinds to a halt.
> The files are quite large (256x256x128 integer arrays), however, I have
> no problems working with this data in my own programs.

> Why is insight so memory intensive, and is there a way to combat this?

I'm not familiar with Insight, but since you posted to this group, I'm
assuming it's an analysis package written in IDL. If so you could
check out VARRAY at my web site, which allows files to be memory mapped
under IDL (Unix only).

The other potential problem is using data in a way that requires temporary
arrays to be created, rather than doing processing in place.

a=intarr(256,256,128)
b=intarr(256,256,128)
b=b+a ;creates a 16 MB temporary array.
b[*]=b[*]+a[*] ; doesn't use much additional memory
b=5*b+a*a ; creates 32 MB in temporary arrays,
b[*]=5*b[*]+a[*]*a[*] ; doesn't use much additional memory

Eric
--
Eric Korpela | An object at rest can never be
korpela@ssl.berkeley.edu | stopped.
<a href="http://sag-www.ssl.berkeley.edu/~korpela">Click for home page.</a>
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Previous Topic: Principal Components Analysis
Next Topic: Can I make entries in CW_PDMENU insensitive?

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

Current Time: Sun Oct 12 08:43:16 PDT 2025

Total time taken to generate the page: 1.59904 seconds