[Insight-users] Failed to allocate memory for image

Sara Rolfe smrolfe at u.washington.edu
Mon Jul 19 19:45:07 EDT 2010


Hello,

I am having trouble trying to resize a volume using  
SubsampleVolume.cxx from the /Examples/Filtering directory.  After  
checking the mail archives, I added filter- 
 >SetReleaseDataFlag( true ); to each of the filters.  I then replaced  
the RecursiveGaussianImageFilter with the GradientMagnitudeImageFilter  
since it requires less memory.  These fixes did not solve my problem.   
I next commented out one filter at a time and found that I get the  
memory error when I include the ImageFileReader, CastImageFilter, and  
GradientMagnitudeImageFilter.

Could you suggest any further fixes?  I am working on a Mac with 2G of  
memory.  The image I'm working with is 402 MB (1024x1024x402).
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.itk.org/pipermail/insight-users/attachments/20100719/db27379c/attachment.htm>


More information about the Insight-users mailing list