[ITK-users] Z Spacing issue in TK

Matias Montroull matimontg at gmail.com
Fri Jul 3 22:08:13 EDT 2015


Hi,

I'm playing around with the code to convert a stack of images into an mha
file. Now, there seems to be a problem with the spacing.

All my images have spacing of 2.000003 and the resulting mha has spacing of
1.9692

I have *79 *images. What I saw is that ITK seems to calculate the spacing
between slices as the (Zmax - Zmin)  / number_of_images when I think should
be (Zmax - Zmin) / (number_of_images -1)..

Am I missing something?

Thank you,

Matias.
-- 
Matias
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/insight-users/attachments/20150704/fc9f3e8b/attachment.html>


More information about the Insight-users mailing list