Hi all,<div><br></div><div>I use itk::ImageFileReader and GDCMImageIO to read the slices , then, after preprocessing I write this slice with itk::ImageFileWriter copying the dicom header of the initial image to mantain the spacing and the inital positions. But with this method when I open the image with a dicom viewer the slices are not ordered as if the header was changed during the writer process. </div>
<div><br></div><div><meta http-equiv="content-type" content="text/html; charset=utf-8">How can I write a series of 2d dicom files but inside a loop mantaining the information header ? I.e. :</div><div><br></div><div><meta http-equiv="content-type" content="text/html; charset=utf-8"><div>
for(all the files of a series){</div><div> Read a single slice();</div><div> Make a preprocess of this slice();</div><div> Write the slice();</div><div>}</div></div><div><meta http-equiv="content-type" content="text/html; charset=utf-8"><div>
<br></div><div><br></div></div><div>Thank you in advance.</div><meta http-equiv="content-type" content="text/html; charset=utf-8">