<div dir="ltr"><div><div><div>Hello Fijoy,<br><br></div>As far as I know this example is the best way to do what you are trying to do. ITK does not currently have an easy way to save an itk::Image as a DICOM series.<br></div>Thanks,<br><br></div>Francois<br></div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Jul 7, 2017 at 11:04 AM, Fijoy Vadakkumpadan <span dir="ltr"><<a href="mailto:tofijoy@gmail.com" target="_blank">tofijoy@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hello,<div><br></div><div>What is the best way to write a 3D itk::Image to DICOM series in a way that preserves geometry metadata (slice positions, orientation, and spacing)?</div><div><br></div><div>The itk::Image I'm referring to is coming from a non-DICOM source. I tried to use itk::ImageSeriesWriter with itk::GDCMImageIO as the IO type to do the above writing. But that does not seem to automatically pick up the metadata from the image object - when I read the written series back (using itk::ImageSeriesReader), only the in-plane spacing is correctly set. After some research, I found this example</div><div><br></div><div><a href="https://itk.org/Wiki/ITK/Examples/DICOM/ResampleDICOM" target="_blank">https://itk.org/Wiki/ITK/<wbr>Examples/DICOM/ResampleDICOM</a><br></div><div><br></div><div>which explicitly sets the metadata dictionary for each slice before writing. Is this the best way?</div><div><br></div><div>Thanks,</div><div>--Fijoy</div></div>
<br>______________________________<wbr>_________________<br>
Community mailing list<br>
<a href="mailto:Community@itk.org">Community@itk.org</a><br>
<a href="http://public.kitware.com/mailman/listinfo/community" rel="noreferrer" target="_blank">http://public.kitware.com/<wbr>mailman/listinfo/community</a><br>
<br></blockquote></div><br></div>