[Insight-users] what is the différence between image origin and region index?

charfeddine amir charfeddine_amir at yahoo.fr
Sat Jan 14 08:58:17 EST 2006


 Hi all
 i want to declare a new image, and to set the differents parameters, should i define a region to the image and its index and size, or should i define only the image, and what is the différence between image origin and region index?
 ImageType3::PointType origin;
     origin[0]=0;
     origin[1]=0;
     origin[2]=0;
 
     ImageType3::IndexType start;
     start[0]=0;
     start[1]=0;
     start[2]=0;
 
     ImageType3::SpacingType spacing;
     spacing[0]=0.1;
     spacing[1]=0.1;
     spacing[2]=0.1;
     
     
     ImageType3::SizeType size;
     size[0]=512;
     size[1]=512;
     size[2]=512;
     
     ImageType3::RegionType region;
     region.SetSize(size);
     region.SetIndex(start);
     volume->SetSpacing(spacing);
     volume->SetOrigin(origin);
     volume->SetRegions(region);
     volume->Allocate();
 
 thx
 Amir.
 

		
---------------------------------
 Nouveau : téléphonez moins cher avec Yahoo! Messenger ! Découvez les tarifs exceptionnels pour appeler la France et l'international.Téléchargez la version beta.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://public.kitware.com/pipermail/insight-users/attachments/20060114/503d0684/attachment.htm


More information about the Insight-users mailing list