[Insight-users] Operations on large 3D 8 bits datas

Yannick Pannier pannier at lms.polytechnique.fr
Fri Jul 27 09:52:03 EDT 2007


Hi everobody,

I have some difficulties to adapt  
GradientMagnitudeRecursiveGaussianImageFilter to be used on 
1024*1024*512 8-bits data.
I have modified the  "InputPixelType" and "OutputPixelType" to be 
"unsigned char", also :
"typedef itk::Image< InputPixelType,  3 >   InputImageType;
  typedef itk::Image< OutputPixelType, 3 >   OutputImageType; "
and :
"typedef unsigned char WritePixelType;
  typedef itk::Image< WritePixelType, 3 > WriteImageType;"
and when executed on 1024*1024*512 8 bits data, it returns :
"terminate called after throwing an instance of 'itk::ExceptionObject'
  what():  .../src/Insight/Code/Common/itkImportImageContainer.txx:188:
Failed to allocate memory for image."
I think there stills some hidden float operations due to the gaussian 
filtering because when I launch the GradientMagnitudeImageFilter (with 
the same modifications in the code) with the same data, it ends with 
success.
Can you tell me what I've missed ?

Thanks

Yannick





More information about the Insight-users mailing list