I suspect that your size calculation is incorrect.<br><br>Attached is a program that will resample a meta volume. (Note it uses a LinearInterpolateImageFunction. You should change this to a nearest neighbor interpolator).<br>
<br>You can see how I calculate the size.<br><br>Bill<br><br><div class="gmail_quote">On Tue, Oct 6, 2009 at 10:09 AM, Juliette Deniau <span dir="ltr">&lt;<a href="mailto:juliette.deniau@yahoo.fr">juliette.deniau@yahoo.fr</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><table border="0" cellpadding="0" cellspacing="0"><tbody><tr><td style="font-family: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; font-size: inherit; line-height: inherit; font-size-adjust: inherit; font-stretch: inherit;" valign="top">
<p style="margin: 0cm 0cm 10pt;"><font face="Calibri" size="3">Dear Luis and Itk users,</font>
</p><p style="margin: 0cm 0cm 10pt;"><font face="Calibri" size="3">I’m trying to scale a segmented volume (obtained by confidence connected filter)using itkAffineTransform but the result volume has information only in one slide. When I use the original volume instead of the segmented one, the results are fine.</font>
</p><p style="margin: 0cm 0cm 10pt;"><font face="Calibri" size="3">I applied the same code to <span> </span>2D image ( segmented <span> </span>image using confidence connected filter)and the original image, the results are fine for both of them.</font>
</p><p style="margin: 0cm 0cm 10pt;"><font face="Calibri" size="3">What I cannot understand is why<span> </span> this is working for 2D original image, 2D segmented image, the original volume and not for the 3D segmented volume ?</font>
</p><p style="margin: 0cm 0cm 10pt;"><font face="Calibri" size="3">I attach both codes that I use for my test(2D and 3D cases)</font>
</p><p style="margin: 0cm 0cm 10pt;"><font face="Calibri" size="3">Thank you </font>
</p><p style="margin: 0cm 0cm 10pt;"><font face="Calibri" size="3">Juliette</font></p></td></tr></tbody></table><font color="#888888"><br>



      </font><br>_____________________________________<br>
Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at<br>
<a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Please keep messages on-topic and check the ITK FAQ at: <a href="http://www.itk.org/Wiki/ITK_FAQ" target="_blank">http://www.itk.org/Wiki/ITK_FAQ</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://www.itk.org/mailman/listinfo/insight-users" target="_blank">http://www.itk.org/mailman/listinfo/insight-users</a><br>
<br></blockquote></div><br>