<div id="RTEContent">&nbsp;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> &nbsp;&nbsp;&nbsp; origin[0]=0;<br> &nbsp;&nbsp;&nbsp; origin[1]=0;<br> &nbsp;&nbsp;&nbsp; origin[2]=0;<br> <br> &nbsp;&nbsp;&nbsp; ImageType3::IndexType start;<br> &nbsp;&nbsp;&nbsp; start[0]=0;<br> &nbsp;&nbsp;&nbsp; start[1]=0;<br> &nbsp;&nbsp;&nbsp; start[2]=0;<br> <br> &nbsp;&nbsp;&nbsp; ImageType3::SpacingType spacing;<br> &nbsp;&nbsp;&nbsp; spacing[0]=0.1;<br> &nbsp;&nbsp;&nbsp; spacing[1]=0.1;<br> &nbsp;&nbsp;&nbsp; spacing[2]=0.1;<br> &nbsp;&nbsp;&nbsp; <br> &nbsp;&nbsp;&nbsp; <br> &nbsp;&nbsp;&nbsp; ImageType3::SizeType size;<br> &nbsp;&nbsp;&nbsp; size[0]=512;<br> &nbsp;&nbsp;&nbsp; size[1]=512;<br> &nbsp;&nbsp;&nbsp; size[2]=512;<br> &nbsp;&nbsp;&nbsp; <br>
 &nbsp;&nbsp;&nbsp; ImageType3::RegionType region;<br> &nbsp;&nbsp;&nbsp; region.SetSize(size);<br> &nbsp;&nbsp;&nbsp; region.SetIndex(start);<br> &nbsp;&nbsp;&nbsp; volume-&gt;SetSpacing(spacing);<br> &nbsp;&nbsp;&nbsp; volume-&gt;SetOrigin(origin);<br> &nbsp;&nbsp;&nbsp; volume-&gt;SetRegions(region);<br> &nbsp;&nbsp;&nbsp; volume-&gt;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.