[vtkusers] Save as a vtkImageData (Huge Data Set)

Yi-Yu Chou chouyiyu at hotmail.com
Wed Jan 26 15:25:06 EST 2005


Dear vtk users,
I used the following C++ code to generate a vtkImageData under Linux.
It works ok when the input image I1 is small. However, if I1 is huge (about 
200MB),
the program crashs when executing AllocateScalars().
Any suggestions ?
Thanks in advance !!!!


  vtkImageData *I2 = vtkImageData::New();
  I2->SetDimensions(I1->GetDimensions());
  I2->SetOrigin(ori);
  I2->SetSpacing(Spacing);
  I2->SetScalarType(I1->GetScalarType());
  I2->AllocateScalars();
  .............................................(skip)

_________________________________________________________________
想戀愛?交朋友?MSN 線上交友:由 Match.com 提供,全世界最受歡迎的線上交友服
務 http://match.msn.com.tw 




More information about the vtkusers mailing list