<div dir="ltr">Hi,<div><br></div><div>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.</div><div><br></div><div>All my images have spacing of 2.000003 and the resulting mha has spacing of 1.9692</div><div><br></div><div>I have <b>79 </b>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)..</div><div><br></div><div>Am I missing something?</div><div><br></div><div>Thank you,</div><div><br></div><div>Matias.</div></div><div dir="ltr">-- <br></div><div dir="ltr">Matias</div>