Z spacing when saving dicom

Hi, I have image with -let’s say 88 frames. The spacing between frames is changing. It may be 0, 0.04, 0.02 etc. I know to save it correctly with pydicom in python code of course. I need help when savings it with itk. How can I save the z spacing vectot?

Hello @ilan,

ITK assumes uniform spacing, so will not work well with the setup you are describing. Please see this discussion for more details and possible workaround using Slicer.

1 Like