[Insight-users] runtime error allocaing space fo an image
    Aaron Skewes 
    adskewes at uh.edu
       
    Fri Nov 12 18:37:05 EST 2004
    
    
  
I am attempting to create a 3D image to visualize data from a 3D array. I
receive a runtime error at the Allocate() phase:
 
This program has requested the runtime to terminate in an unusual way.
 
Any Ideas?
 
  
  typedef unsigned int AccPixelType;
  typedef itk::Image< AccPixelType,  3 > AccImageType;
 
  AccImageType::Pointer accimage = AccImageType::New();
  AccImageType::IndexType start;
 
  start[0]=0;
  start[1]=0;
  start[2]=0;
 
  AccImageType::SizeType accsize;
 
  accsize[0] = (R_min-R_max);
  accsize[1] = size[0];
  accsize[2] = size[1];
 
  AccImageType::RegionType accregion;
  accregion.SetSize(accsize);
  accregion.SetIndex(start);
  accimage->SetRegions(accregion);
  accimage->Allocate();
 
Thanks;
Aaron
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://public.kitware.com/pipermail/insight-users/attachments/20041112/87eab32a/attachment.html
    
    
More information about the Insight-users
mailing list