[Insight-users] memory allocation issue in deformable registration

Wenwu cool.wenwu at gmail.com
Fri May 11 10:48:19 EDT 2012


Hi all,

Now I want to do deformable image registration of liver using CT image data.

The registration process is : rigid registration-> affine
registration->deformable registraion coase->deformable registration fine.

Main itk classes we use are as following:
itk::ImageRegistrationMethod
itk::
MattesMutualInformationImageToImageMetric
itk::LinearInterpolateImageFunction
itk::CenteredTransformInitializer
itk::VersorRigid3DTransform
itk::AffineTransform
itk::BSplineDeformableTransform
itk::RegularStepGradientDescentOptimizer

The itk version is itk3.2.

Now the issue is that when program run into the "deformable registration
fine" step, the memory allocation error occurs.

The error information is :
 [SLM] FATAL - error itk::ExceptionObject (0018B76C)
Location: "float *__thiscall itk::ImportImageContainer<unsigned
long,float>::AllocateElements(unsigned long) const"
File: d:\fw4spl\binpkgs\debug32\itk_3-20-0
_win_32_cl9-0_d\include\insighttoolkit\common\itkImportImageContainer.txx
Line: 188
Description: Failed to allocate memory for image.


Then I debug and explore the source code, found that the registration
object call 8 threads to calculate the metric, it makes large memory cost,
so i set the number of threads to 1. And the progam can work. but once I
increase the size of the data, the program is in crash again, can anyone
give some suggestion?  thanks in advance!


The property of CT image :
Image size: 351*281*242,
Voxel size:     0.961*0.961*1.8
Both of fixed image and moving image have  same property.






-- 
Wenwu Zhu
IRCAD
University of Strasbourg, France
Email address: cool.wenwu at gmail.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.itk.org/pipermail/insight-users/attachments/20120511/13798a92/attachment.htm>


More information about the Insight-users mailing list