<div>Hi Luis,</div>
<div>&nbsp;</div>
<div>Sorry for my late response. Please see the following for your questions.<br><br><br>What tool did you used for monitoring the memory usage ?<br>&nbsp;</div>
<div>The tool I used is just the Windows Task Manager.<br><br>What was the memory usage for the entire machine ?<br>(you only reported the usage for the registration application).<br>&nbsp;</div>
<div>I don't remember the exact number, but I do know that the registration application had the largest consumption of memory.&nbsp; I am sure the total memory usage did not exceed the allowed memory.</div>
<div><br>Do you have other applications running at the same time that<br>your are running the registration application ?<br><br>No.</div>
<div><br>In Windows 32 bits, a process can only access 2Gb of contiguous<br>RAM.<br><br>What Image Metric are you using ?<br>(e.g. is it one of the metrics that computes the image gradient?)<br>&nbsp;</div>
<div>Normalized Cross Correlation.<br><br>What other ITK and/or VTK filter do you have in that pipeline.<br><br>I did not have any other filters.</div>
<div><br>At what point in the execution of your program do you get this<br>message ?<br><br>Before the first iteration during the registration which is actually a rigid one.</div>
<div><br>Have the registration started ?</div>
<div>&nbsp;</div>
<div>Yes. </div>
<div><br>Do you got some optimization iterations ?<br><br>No.</div>
<div><br>It is very likely that you are actually using most of those<br>2Gb of data, and may have to release memory as your appllication<br>progresses with its pipeline.<br><br>I am not sure what you meant here. Why do you say that I used most of the 2GB data? How can I release memory?
</div>
<div>&nbsp;</div>
<div>I want to repeat that my registration is actually very simple one, ie, rigid registration. I don't have any intermediate filters. Hope my answers to your questions help to debug the problem.</div>
<div>&nbsp;</div>
<div>Thanks,</div>
<div>Ming</div>
<div><br><br><br>--------------------<br>Ming Chao wrote:<br>&gt; Hi,<br>&gt;<br>&gt; I know this question has been asked many times, but it's still not clear<br>&gt; to me how to solve it. I try to register two images which are ~70mb each
<br>&gt; (512X512X136). I got the the following error:<br>&gt;<br>&gt; ===================================<br>&gt; ExceptionObject caught !<br>&gt;<br>&gt; itk::ExceptionObject (0129FB70)<br>&gt; Location: &quot;unknown&quot;
<br>&gt; File: C: \ITK\InsightToolkit-2.8.1\Code\Common\itkImportImageContainer.txx<br>&gt; Line: 188<br>&gt; Description: Failed to allocate memory for image.<br>&gt;<br>&gt; ===================================<br>&gt;<br>
&gt; I am using ITK 2.8.1, VTK 5.01, VC++ 6.0. The operating system is<br>&gt; Windows XP professional edition (32 bits) with Xeon CPU 3.6GHz and 3.0<br>&gt; GB memory. I monitored the memory usage and found that only 280 MB used
<br>&gt; for the registration process which is nothing unreasonable. What is<br>&gt; wrong here? How to solve the problem. I know if I filtered the image by<br>&gt; 2X2, then it would be fine, but I would still like to keep the image as
<br>&gt; it is.<br>&gt;<br>&gt; Thanks for any hints,<br>&gt; Ming<br>&gt;<br>&gt;<br>&gt;<br>&gt; ------------------------------------------------------------------------<br>&gt;<br>&gt; _______________________________________________
<br>&gt; Insight-users mailing list<br>&gt; <a href="mailto:Insight-users@itk.org">Insight-users@itk.org</a><br>&gt; <a href="http://www.itk.org/mailman/listinfo/insight-users">http://www.itk.org/mailman/listinfo/insight-users
</a><br><br><br>&nbsp;</div><br>