[Insight-users] Failed to allocate memory for image

Luis Ibanez luis.ibanez at kitware.com
Sun Aug 20 17:31:22 EDT 2006


Hi Ming,


What tool did you used for monitoring the memory usage ?


What was the memory usage for the entire machine ?
(you only reported the usage for the registration application).

Do you have other applications running at the same time that
your are running the registration application ?


In Windows 32 bits, a process can only access 2Gb of contiguous
RAM.

What Image Metric are you using ?
(e.g. is it one of the metrics that computes the image gradient?)


What other ITK and/or VTK filter do you have in that pipeline.


At what point in the execution of your program do you get this
message ?


Have the registration started ?
Do you got some optimization iterations ?


It is very likely that you are actually using most of those
2Gb of data, and may have to release memory as your appllication
progresses with its pipeline.



   Please let us know what you find.


      Thanks



         Luis




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




More information about the Insight-users mailing list