[Insight-users] Complex image region initialization

habibbaluwala2010 habibbaluwala at gmail.com
Tue Aug 17 07:21:23 EDT 2010


Hi everyone , 
                  I am currently looking at allocating memory for a complex
image but I am finding an error in allocating the region. My code goes as
follows : 

typedef std::complex< float > cpixel;
typedef itk::Image< cpixel, Dimension > CImageType;
CImageType:: IndexType start;
    start[0]=0;start[1]=0;start[2]=0;
 CImageType::Pointer test2;
     CImageType::RegionType regions; 
     regions.SetSize(im_size);
     CImageType::Pointer test2;
     regions.SetIndex(start); 
test2->SetRegions(regions);

 std::cout<<"Checking the third point of error "<<std::endl;
     test2->Allocate();     

if someone could provide me am answer for this it will be very helpful of
you....

-- 
View this message in context: http://old.nabble.com/Complex-image-region-initialization-tp29449249p29449249.html
Sent from the ITK - Users mailing list archive at Nabble.com.



More information about the Insight-users mailing list