<div dir="ltr">Hello, <div><br></div><div>I have a question regarding writing Dicom series using SimpleITK in Python. I read a 3D scan, resampled it, and stored it as a Dicom series. However, when I try to read the stored data, I am unable to load the whole 3D images and it only displays one of the slices. It seems that the header is corrupted. I would be thankful if someone could help me to fix this issue. </div><div><br></div><div>Here is my write method:</div><div><br></div><div><div>def WriteDicomSeries(imagein,outDir):</div><div>    writer = sitk.ImageSeriesWriter()</div><div>    filenames = [ outDir+'MR_{0:04}.dcm'.format(i) for i in range(imagein.GetSize()[2])] </div><div>    writer.SetFileNames(filenames)</div><div>    writer.Execute(imagein)</div></div><div><br></div><div>Thanks,</div><div>Sara</div></div>