[Insight-users] `Image Memory Management

David Holmes holmesd3@yahoo.com
Tue, 10 Dec 2002 13:00:38 -0800 (PST)


I have a situation where I would like to have more
control over the memory managment of Image data as it
is passed through a filter.  I'd appreciate any help
that y'all may be able to provide.

Basically, I'd like to keep the 1D array of image data
after the destruction of the ITK object.  In
particular, after after applying a filter to some
input data, I realize that there is an output Image
which I can retrieve with filt->GetOutput().  I would
like to keep the 1D array of data beyond the local
scope.

>From my best guess, the filter deconstructs when the
code leaves its scope and then so does the output
image data.  How can I get around that without copying
the data from the itk image into another chunk of
memory (which is a waste of time and memory)?

Thanks

david

__________________________________________________
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
http://mailplus.yahoo.com