<div>Hi Luis,</div>
<div> </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> </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> </div>
<div>I don't remember the exact number, but I do know that the registration application had the largest consumption of memory. 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> </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> </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> </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> </div>
<div>Thanks,</div>
<div>Ming</div>
<div><br><br><br>--------------------<br>Ming Chao wrote:<br>> Hi,<br>><br>> I know this question has been asked many times, but it's still not clear<br>> to me how to solve it. I try to register two images which are ~70mb each
<br>> (512X512X136). I got the the following error:<br>><br>> ===================================<br>> ExceptionObject caught !<br>><br>> itk::ExceptionObject (0129FB70)<br>> Location: "unknown"
<br>> File: C: \ITK\InsightToolkit-2.8.1\Code\Common\itkImportImageContainer.txx<br>> Line: 188<br>> Description: Failed to allocate memory for image.<br>><br>> ===================================<br>><br>
> I am using ITK 2.8.1, VTK 5.01, VC++ 6.0. The operating system is<br>> Windows XP professional edition (32 bits) with Xeon CPU 3.6GHz and 3.0<br>> GB memory. I monitored the memory usage and found that only 280 MB used
<br>> for the registration process which is nothing unreasonable. What is<br>> wrong here? How to solve the problem. I know if I filtered the image by<br>> 2X2, then it would be fine, but I would still like to keep the image as
<br>> it is.<br>><br>> Thanks for any hints,<br>> Ming<br>><br>><br>><br>> ------------------------------------------------------------------------<br>><br>> _______________________________________________
<br>> Insight-users mailing list<br>> <a href="mailto:Insight-users@itk.org">Insight-users@itk.org</a><br>> <a href="http://www.itk.org/mailman/listinfo/insight-users">http://www.itk.org/mailman/listinfo/insight-users
</a><br><br><br> </div><br>