Hi Sara,<div><br></div><div>I don&#39;t know whether this is the same or different problem, but when I tried to do something with similarly large image (512x512x497), using double precision internally (nearly 2GB), it constantly failed to allocate on 32-bit system, even though I had enough free memory. After spending some time trying to figure out what was going on, I concluded that the image fails to allocate because my memory space was fragmented - even though there was enough free memory overall, there was no free block large enough into which my image would fit. This problem is resolved by switching to 64bit OS+app.<div>
<br></div><div>Regards,</div><div>Dženan<br><br><div class="gmail_quote">On Tue, Jul 20, 2010 at 01:45, Sara Rolfe <span dir="ltr">&lt;<a href="mailto:smrolfe@u.washington.edu">smrolfe@u.washington.edu</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><div style="word-wrap:break-word">Hello,<div><br></div><div>I am having trouble trying to resize a volume using SubsampleVolume.cxx from the /Examples/Filtering directory.  After checking the mail archives, I added <span style="font-family:Monaco;font-size:10px">filter-&gt;SetReleaseDataFlag( </span><span style="font-family:Monaco;font-size:10px"><span style="color:#aa0d91">true</span></span><span style="font-family:Monaco;font-size:10px"> ); </span>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.  </div>
<div><br></div><div>Could you suggest any further fixes?  I am working on a Mac with 2G of memory.  The image I&#39;m working with is 402 MB (1024x1024x402).</div></div><br>_____________________________________<br>
Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at<br>
<a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Kitware offers ITK Training Courses, for more information visit:<br>
<a href="http://www.kitware.com/products/protraining.html" target="_blank">http://www.kitware.com/products/protraining.html</a><br>
<br>
Please keep messages on-topic and check the ITK FAQ at:<br>
<a href="http://www.itk.org/Wiki/ITK_FAQ" target="_blank">http://www.itk.org/Wiki/ITK_FAQ</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://www.itk.org/mailman/listinfo/insight-users" target="_blank">http://www.itk.org/mailman/listinfo/insight-users</a><br>
<br></blockquote></div><br></div></div>