<table cellspacing="0" cellpadding="0" border="0" ><tr><td valign="top" style="font: inherit;"><P class=MsoNormal style="MARGIN: 0cm 0cm 10pt"><FONT face=Calibri size=3>Hi Luis and itk users, </FONT></DIV>
<P class=MsoNormal style="MARGIN: 0cm 0cm 10pt"><FONT face=Calibri size=3>Hope some one can help me, I have posted my question but I still with no answer.</FONT></DIV>
<P class=MsoNormal style="MARGIN: 0cm 0cm 10pt"><FONT face=Calibri size=3>I’m always stack on the problem of resmapling a volume using AffineTransform. What I want to do is simply sclaing a volume to another volume which differ in size(it depends in the data, some times I want to scale down and sometime I want to scale up the volume so that its size will be the same as a predefined size) … I dug in the itk maling list and I have found a code writen by Mr Luis in the link </FONT><A href="http://www.itk.org/pipermail/insight-users/2004-February/006509.html"><FONT face=Calibri size=3>http://www.itk.org/pipermail/insight-users/2004-February/006509.html</FONT></A><FONT face=Calibri size=3>.</FONT></DIV>
<P class=MsoNormal style="MARGIN: 0cm 0cm 10pt"><FONT face=Calibri size=3>So I used the a modified code to do my scaling (atached):</FONT></DIV>
<P class=MsoNormal style="MARGIN: 0cm 0cm 10pt"><FONT size=3><FONT face=Calibri>(1 instead to use “itkNearestNeighborInterpolateImageFunction” I use <SPAN style="mso-bidi-font-family: 'Courier New'; mso-no-proof: yes">"itkNearestNeighborInterpolateImageFunction” <SPAN style="mso-spacerun: yes">&nbsp;</SPAN>as interpolater, <SPAN style="mso-spacerun: yes">&nbsp;</SPAN>and <?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" /><o:p></o:p></SPAN></FONT></FONT></DIV>
<P class=MsoNormal style="MARGIN: 0cm 0cm 10pt"><FONT size=3><FONT face=Calibri><SPAN style="mso-bidi-font-family: 'Courier New'; mso-no-proof: yes">(2 instead of use “</SPAN>itkIdentityTransform” I use “<SPAN style="mso-bidi-font-family: 'Courier New'; mso-no-proof: yes">itkAffineTransform” and I set it to identity.<o:p></o:p></SPAN></FONT></FONT></DIV>
<P class=MsoNormal style="MARGIN: 0cm 0cm 10pt"><SPAN style="mso-bidi-font-family: 'Courier New'; mso-no-proof: yes"><FONT size=3><FONT face=Calibri>So basically it’s the same code.<o:p></o:p></FONT></FONT></SPAN></DIV>
<P class=MsoNormal style="MARGIN: 0cm 0cm 10pt"><FONT size=3><FONT face=Calibri>When I use for instance <SPAN style="mso-bidi-font-family: 'Courier New'; mso-no-proof: yes">brainweb165a10f17.mha" as output volume and its segmenetd volume(white matter)as input volume, the result is fine. But when I use the segmented volume as output volume and brainweb165a10f17.mha" as input volume, the output volume is black with no information.<o:p></o:p></SPAN></FONT></FONT></DIV>
<P class=MsoNormal style="MARGIN: 0cm 0cm 10pt"><SPAN style="mso-bidi-font-family: 'Courier New'; mso-no-proof: yes"><FONT size=3><FONT face=Calibri>As the two volumes have the same size, origine and spacing, I could not understand the origin of this problem? <o:p></o:p></FONT></FONT></SPAN></DIV>
<P class=MsoNormal style="MARGIN: 0cm 0cm 10pt"><SPAN style="mso-bidi-font-family: 'Courier New'; mso-no-proof: yes"><FONT size=3><FONT face=Calibri>Also is there any rule to resize a volume(up or down)regarding the size,origine and spacing of the original volume and the desired output volume size.<o:p></o:p></FONT></FONT></SPAN></DIV>
<P class=MsoNormal style="MARGIN: 0cm 0cm 10pt"><FONT size=3><FONT face=Calibri>I have <SPAN style="COLOR: black">upload the two volumes at: <A href="http://www.kitware.com/cgi-bin/uploadfile.cgi" target=_blank>http://www.kitware.com/cgi-bin/uploadfile.cgi</A></SPAN></FONT></FONT></DIV>
<P class=MsoNormal style="MARGIN: 0cm 0cm 10pt"><SPAN style="mso-bidi-font-family: 'Courier New'; mso-no-proof: yes"><o:p><FONT face=Calibri size=3></FONT></o:p></SPAN></DIV>
<P class=MsoNormal style="MARGIN: 0cm 0cm 10pt"><SPAN style="mso-bidi-font-family: 'Courier New'; mso-no-proof: yes"><FONT size=3><FONT face=Calibri>Thank you in advance for your time.<o:p></o:p></FONT></FONT></SPAN></DIV>
<P class=MsoNormal style="MARGIN: 0cm 0cm 10pt"><FONT face=Calibri size=3>Juliette <SPAN style="mso-spacerun: yes">&nbsp;</SPAN>whos wainting with inpatiance for your answers.</FONT></DIV></td></tr></table><br>