<div id="RTEContent"> Hi all<br> 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?<br> ImageType3::PointType origin;<br> origin[0]=0;<br> origin[1]=0;<br> origin[2]=0;<br> <br> ImageType3::IndexType start;<br> start[0]=0;<br> start[1]=0;<br> start[2]=0;<br> <br> ImageType3::SpacingType spacing;<br> spacing[0]=0.1;<br> spacing[1]=0.1;<br> spacing[2]=0.1;<br> <br> <br> ImageType3::SizeType size;<br> size[0]=512;<br> size[1]=512;<br> size[2]=512;<br> <br>
ImageType3::RegionType region;<br> region.SetSize(size);<br> region.SetIndex(start);<br> volume->SetSpacing(spacing);<br> volume->SetOrigin(origin);<br> volume->SetRegions(region);<br> volume->Allocate();<br> <br> thx<br> Amir.<br> </div><p>
                <hr size=1> Nouveau : téléphonez moins cher avec Yahoo! Messenger ! Découvez les tarifs exceptionnels pour appeler la France et l'international.
<a href="http://us.rd.yahoo.com/messenger/mail_taglines/default/*http://fr.beta.messenger.yahoo.com">Téléchargez</a> la version beta.